getaddrinfo: Unconditionally use malloc for address list
[platform/upstream/glibc.git] / ChangeLog
1 2017-05-11  Florian Weimer  <fweimer@redhat.com>
2
3         * sysdeps/posix/getaddrinfo.c (gethosts): Remove malloc_addrmem.
4         (gaih_inet): Likewise.
5
6 2017-05-10  Andreas Schwab  <schwab@suse.de>
7
8         * nptl/tst-fork1.c: Include <support/test-driver.c>.
9         (main): Rename to do_test and make static.
10
11 2017-05-10  Joseph Myers  <joseph@codesourcery.com>
12
13         * string/rawmemchr.c: Include <libc-diag.h>.
14         (RAWMEMCHR): Disable -Wstringop-overflow around call to memchr
15         with size (size_t)-1.
16
17 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
18
19         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Remove file.
20         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
21         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
22
23         * sysdeps/unix/sysv/linux/accept4.c (accept4): Use syscall if
24         [__ASSUME_ACCEPT4_SYSCALL], otherwise socketcall.
25         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Use syscall if
26         [__ASSUME_RECVMMSG_SYSCALL], otherwise socketcall.
27         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Use syscall if
28         [__ASSUME_SENDMMSG_SYSCALL], otherwise socketcall.
29         * sysdeps/unix/sysv/linux/kernel-features.h
30         (__ASSUME_ACCEPT4_SYSCALL): Move to general list of macros for
31         socket syscalls.
32         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
33         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
34         * sysdeps/unix/sysv/linux/i386/kernel-features.h
35         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Remove.
36         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
38         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Remove.
39         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
40         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41         * sysdeps/unix/sysv/linux/sh/kernel-features.h
42         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
43         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
44         (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
45         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
46         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
47
48 2017-05-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
49
50         * posix/Makefile (headers): Add pthreadtypes-arch.h and
51         thread-shared-types.h.
52         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h: New file: arch
53         specific thread definition.
54         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h: Likewise.
55         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h: Likewise.
56         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h: Likewise.
57         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h: Likewise.
58         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h: Likewise.
59         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h: Likewise.
60         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h: Likewise.
61         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h: Likewise.
62         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h: Likewise.
63         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
64         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h: Likewise.
65         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h: Likewise.
66         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h: Likewise.
67         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h: Likewise.
68         * sysdeps/nptl/bits/thread-shared-types.h: New file: shared
69         thread definition between POSIX and C11.
70         * sysdeps/aarch64/nptl/bits/pthreadtypes.h.: Remove file.
71         * sysdeps/alpha/nptl/bits/pthreadtypes.h: Likewise.
72         * sysdeps/arm/nptl/bits/pthreadtypes.h: Likewise.
73         * sysdeps/hppa/nptl/bits/pthreadtypes.h: Likewise.
74         * sysdeps/m68k/nptl/bits/pthreadtypes.h: Likewise.
75         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Likewise.
76         * sysdeps/mips/nptl/bits/pthreadtypes.h: Likewise.
77         * sysdeps/nios2/nptl/bits/pthreadtypes.h: Likewise.
78         * sysdeps/ia64/nptl/bits/pthreadtypes.h: Likewise.
79         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: Likewise.
80         * sysdeps/s390/nptl/bits/pthreadtypes.h: Likewise.
81         * sysdeps/sh/nptl/bits/pthreadtypes.h: Likewise.
82         * sysdeps/sparc/nptl/bits/pthreadtypes.h: Likewise.
83         * sysdeps/tile/nptl/bits/pthreadtypes.h: Likewise.
84         * sysdeps/x86/nptl/bits/pthreadtypes.h: Likewise.
85         * sysdeps/nptl/bits/pthreadtypes.h: New file: common thread
86         definitions shared across all architectures.
87
88 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
89
90         * sysdeps/unix/sysv/linux/kernel-features.h
91         (__ASSUME_SENDMMSG_SYSCALL): Define unconditionally.
92         (__ASSUME_SENDMMSG): Likewise.
93         (__ASSUME_SENDMMSG_SOCKETCALL): Remove macro.
94         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Define using
95         sendmmsg syscall if that can be assumed to be present, socketcall
96         otherwise, with no fallback for runtime failure.
97
98         * sysdeps/unix/sysv/linux/kernel-features.h
99         (__ASSUME_RECVMMSG_SYSCALL): Define unconditionally.
100         (__ASSUME_RECVMMSG_SOCKETCALL): Remove macro.
101         (__ASSUME_RECVMMSG): Likewise.
102         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Define using
103         recvmmsg syscall if it can be assumed to be present, socketcall
104         otherwise, with no fallback for runtime failure.
105
106 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
107             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
108
109         * bits/libc-header-start.h:
110         (__GLIBC_USE_IEC_60559_TYPES_EXT): New macro.
111         * include/features.h: Describe __STDC_WANT_IEC_60559_TYPES_EXT__.
112         * manual/creature.texi: Likewise.
113
114 2017-05-09  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
115             Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
116
117         * math/Makefile:
118         (type-float128-suffix): New variable
119         (type-float128-routines): Likewise
120         (type-float128-yes): Likewise
121         (types): Append float128 if supported
122         (types-basic): New variable to control the use of templates for
123         float, double, and long double, but not for float128 or newer types.
124         (type-basic-foreach): Likewise.
125
126         * sysdeps/ieee754/float128/Makeconfig: New file.
127         * sysdeps/ieee754/float128/Versions: New file.
128
129 2017-05-09  Joseph Myers  <joseph@codesourcery.com>
130
131         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PRLIMIT64):
132         Remove macro.
133         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Assume
134         prlimit64 is always available and does not give an ENOSYS error.
135         * sysdeps/unix/sysv/linux/prlimit.c [__NR_prlimit64]: Make code
136         unconditional.
137         [!__NR_prlimit64]: Remove conditional code.
138         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Assume
139         prlimit64 is always available and does not give an ENOSYS error.
140         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit64): Likewise.
141
142 2017-05-09  Zack Weinberg  <zackw@panix.com>
143
144         * sunrpc/tst-xdrmem2.c: Include stdint.h.
145
146 2017-05-09  Florian Weimer  <fweimer@redhat.com>
147
148         [BZ #21474]
149         * resolv/res_libc.c (res_init): Use RES_DFLRETRY.
150         (__res_maybe_init): Likewise.
151
152 2017-05-09  Zack Weinberg  <zackw@panix.com>
153
154         * extra-modules.mk: Delete file.
155         * cppflags-iterator.mk: Rename to ...
156         * libof-iterator.mk: ...this.  Adjust comments.
157
158         * Makerules, extra-lib.mk, benchtests/Makefile, elf/Makefile
159         * elf/rtld-Rules, iconv/Makefile, locale/Makefile, malloc/Makefile
160         * nscd/Makefile, sunrpc/Makefile, sysdeps/s390/Makefile:
161         Use libof-iterator.mk instead of cppflags-iterator.mk or
162         extra-modules.mk.
163
164         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Remove
165         extra-modules.mk and cppflags-iterator.mk, add libof-iterator.mk.
166
167 2017-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
168
169         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
170
171 2017-05-08  Carlos O'Donell  <carlos@redhat.com>
172
173         * stdio-common/vfprintf.c (EXTSIZ): Define.
174         (vfprintf): Use EXTSIZ.
175         (printf_positional): Likewise.
176
177 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
178
179         * sysdeps/unix/sysv/linux/kernel-features.h
180         (__ASSUME_PROC_PID_TASK_COMM): Remove macro.
181         * sysdeps/unix/sysv/linux/tst-setgetname.c: Do not include
182         <kernel-features.h>.
183         (do_test) [!__ASSUME_PROC_PID_TASK_COMM]: Remove conditional code.
184
185         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
186         (__ASSUME_GETCPU_SYSCALL): Remove macro.
187
188 2017-05-08  Florian Weimer  <fweimer@redhat.com>
189
190         Prevent multiple deletion of temporary files.
191         * support/temp_file.c (struct temp_name_list): Add owner member.
192         (add_temp_file): Record owner.
193         (support_delete_temp_files): Delete file only if owner matches.
194         * posix/tst-exec.c (temp_fd1, temp_fd2): Define.
195         (do_prepare): Use create_temp_file instead of add_temp_file.
196         Initialize temp_fd1, temp_fd2.
197         (do_test): Use global temp_fd1, temp_fd2 variables.  Let the test
198         framework remove the temporary files.
199         * posix/tst-exec.c (temp_fd1, temp_fd2, temp_fd3): Define.
200         (do_prepare): Use create_temp_file instead of add_temp_file.
201         Initialize temp_fd1, temp_fd2, temp_fd3.
202         (do_test): Use global temp_fd1, temp_fd2, temp_fd3 variables.  Let
203         the test framework remove the temporary files.
204         * posix/tst-vfork3.c (do_prepare): Adjust for LIFO order of file
205         deletion.
206         * posix/tst-pathconf.c (do_test): Do not call rmdir on the
207         temporary directory.  It is removed by the test framework.
208         * dirent/tst-scandir.c (do_test): Likewise.
209
210 2017-05-08  Florian Weimer  <fweimer@redhat.com>
211
212         Delete temporary files in LIFO order.
213         * support/temp_file.c (struct temp_name_list): Replace q member
214         with next.
215         (add_temp_file): Add new file to front of linked list.
216         (support_delete_temp_files): Use next member.
217         (support_print_temp_files): Likewise.
218
219 2017-05-08  Florian Weimer  <fweimer@redhat.com>
220
221         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
222         sys/ultrasound.h.
223         * sysdeps/unix/sysv/linux/sys/ultrasound.h: Remove file.
224
225 2017-05-08  Joseph Myers  <joseph@codesourcery.com>
226
227         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
228         Remove.
229         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
230         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
231         (arch_minimum_kernel): Remove.
232         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
233         * README: Update statement about Linux kernel requirements.
234
235 2017-05-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
236
237         * manual/llio.texi: Add preadv and pwritev documentation.
238
239 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
240
241         [BZ #21455]
242         * bits/stdint-intn.h: New file.
243         * bits/stdint-uintn.h: Likewise.
244         * stdlib/Makefile (headers): Add bits/stdint-intn.h and
245         bits/stdint-uintn.h.
246         * inet/netinet/in.h: Include <bits/stdint-uintn.h> instead of
247         <stdint.h>.
248         * posix/sys/types.h: Include <bits/stdint-intn.h>.
249         (__int8_t_defined): Do not define here.
250         (int8_t): Likewise.
251         (int16_t): Likewise.
252         (int32_t): Likewise.
253         (int64_t): Likewise.
254         [__GNUC_PREREQ (2, 7)] (__intN_t): Likewise.
255         * resolv/netdb.h: Include <bits/stdint-uintn.h> instead of
256         <stdint.h>.
257         * include/netdb.h [_ISOMAC]: Do not include <stdint.h>.
258         * sysdeps/generic/stdint.h: Include <bits/stdint-intn.h> and
259         <bits/stdint-uintn.h>.
260         (int8_t): Do not define here.
261         (int16_t): Likewise.
262         (int32_t): Likewise.
263         (int64_t): Likewise.
264         (uint8_t): Likewise.
265         (uint16_t): Likewise.
266         (uint32_t): Likewise.
267         (uint64_t): Likewise.
268         * conform/Makefile (test-xfail-XPG42/arpa/inet.h/conform): Remove
269         variable.
270         (test-xfail-XPG42/netdb.h/conform): Likewise.
271         (test-xfail-XPG42/netinet/in.h/conform): Likewise.
272         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
273         (test-xfail-UNIX98/netdb.h/conform): Likewise.
274         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
275
276 2017-05-04  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
277
278         * sysdeps/generic/math_private.h (mathx_hidden_def): New macro.
279         * sysdeps/ieee754/ldbl-128/s_finitel.c: Replace hidden_def with
280         the above.
281         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
282         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
283
284 2017-05-04  Joseph Myers  <joseph@codesourcery.com>
285
286         [BZ #21445]
287         * signal/signal.h [__USE_XOPEN2K8] (bsd_signal): Do not declare.
288
289         [BZ #21457]
290         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
291         [_MIPS_SIM != _ABIO32] (mcontext_t): Rename field reserved to
292         __glibc_reserved1.
293         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
294         (struct _fpx_sw_bytes): Rename field padding to __glibc_reserved1.
295         (struct _fpxreg): Likewise.
296         [!__x86_64__] (struct _fpstate): Rename field reserved to
297         __glibc_reserved1.  Rename field padding to __glibc_reserved2.
298         [__x86_64__] (struct _fpstate): Rename field padding to
299         __glibc_reserved1.
300         (struct _xsave_hdr): Rename field reserved1 to __glibc_reserved1.
301         Rename field reserved2 to __glibc_reserved2.
302         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h
303         [__x86_64__] (struct _libc_fpxreg): Rename field padding to
304         __glibc_reserved1.
305         [__x86_64__] (struct _libc_fpstate): Rename field padding to
306         __glibc_reserved1.
307
308 2017-05-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
309
310         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
311         variable name.
312
313 2017-05-03  H.J. Lu  <hongjiu.lu@intel.com>
314
315         [BZ #21391]
316         * sysdeps/i386/dl-machine.h (dl_platform_init) [IS_IN (rtld)]:
317         Only call init_cpu_features.
318         [!IS_IN (rtld)]: Only set GLRO(dl_platform) to NULL if needed.
319         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
320         * sysdeps/i386/dl-procinfo.h: Removed.
321         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Don't include
322         <sysdeps/i386/dl-procinfo.h> nor <ldsodefs.h>.  Include
323         <sysdeps/x86/dl-procinfo.h>.
324         (_dl_procinfo): Replace _DL_HWCAP_COUNT with 32.
325         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h [!IS_IN (ldconfig)]:
326         Include <sysdeps/x86/dl-procinfo.h> instead of
327          <sysdeps/generic/dl-procinfo.h>.
328         * sysdeps/x86/cpu-features.c: Include <dl-hwcap.h>.
329         (init_cpu_features): Set dl_platform, dl_hwcap and dl_hwcap_mask.
330         * sysdeps/x86/cpu-features.h (bit_cpu_LZCNT): New.
331         (bit_cpu_MOVBE): Likewise.
332         (bit_cpu_BMI1): Likewise.
333         (bit_cpu_BMI2): Likewise.
334         (index_cpu_BMI1): Likewise.
335         (index_cpu_BMI2): Likewise.
336         (index_cpu_LZCNT): Likewise.
337         (index_cpu_MOVBE): Likewise.
338         (index_cpu_POPCNT): Likewise.
339         (reg_BMI1): Likewise.
340         (reg_BMI2): Likewise.
341         (reg_LZCNT): Likewise.
342         (reg_MOVBE): Likewise.
343         (reg_POPCNT): Likewise.
344         * sysdeps/x86/dl-hwcap.h: New file.
345         * sysdeps/x86/dl-procinfo.h: Likewise.
346         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): New.
347         (_dl_x86_platforms): Likewise.
348
349 2017-05-03  DJ Delorie  <dj@redhat.com>
350
351         [BZ #21411]
352         * malloc/malloc.c: Tweak realloc/MREMAP comment to be more accurate.
353
354 2017-05-03  Phil Blundell  <pb@pbcl.net>
355
356         * inet/netinet/in.h (struct ip_mreq_source): Correct misplaced
357         comments.
358
359 2017-05-03  Carlos O'Donell  <carlos@redhat.com>
360
361         [BZ #20116]
362         * nptl/pthread_create.c: Expand comments to describe
363         semaphore-like and mutex-like uses of PD->lock.
364
365 2017-04-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
366
367         * sysdeps/unix/sysv/linux/epoll_wait.c: New file.
368         * sysdeps/unix/sysv/linux/generic/epoll_wait.c: Remove file.
369         * sysdeps/unix/sysv/linux/syscalls.list: Remove epoll_wait from
370         auto-generation list.
371         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
372         epoll_wait.
373         * sysdeps/unix/sysv/linux/generic/Makefile (sysdep_routines):
374         Remove epoll_wait.
375
376         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Add
377         osf_select.
378         * sysdeps/unix/sysv/linux/alpha/select.c: New file.
379         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove select and
380         osf_select from auto-generation list.
381         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
382         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
383         * sysdeps/unix/sysv/linux/generic/select.c: Remove file.
384         * sysdeps/unix/sysv/linux/select.c: New file.
385
386         * sysdeps/unix/sysv/linux/generic/poll.c: Remove file.
387         * sysdeps/unix/sysv/linux/poll.c: New file.
388         * sysdeps/unix/sysv/linux/syscalls.list: Remove poll from
389         auto-generation list.
390
391 2017-05-03  Joseph Myers  <joseph@codesourcery.com>
392
393         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDRDM):
394         New macro.
395
396 2017-05-02  Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
397
398         [BZ #21179]
399         * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
400         R_SPARC_REGISTER relocations.
401
402 2017-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
403
404         * include/unistd.h (__pread): Add libc_hidden_proto.
405         (__pread64): Likewise.
406         (__pwrite): Likewise.
407         * sysdeps/unix/sysv/linux/microblaze/localplt.data [libc.so]
408         (__pread64): Remove.
409         * sysdeps/unix/sysv/linux/pread.c (__pread64): Add libc_hidden_weak.
410         * sysdeps/unix/sysv/linux/pread64.c (__pread64): Likewise.
411         * sysdeps/unix/sysv/linux/pwrite.c (__pwrite): Likewise.
412
413 2017-05-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
414
415         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
416
417 2017-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
418
419         * nptl/tst-cancel4-common.c: Use libsupport.
420         * nptl/tst-cancel4-common.h: Likewise.
421         * nptl/tst-cancel4.c (tf_read): Likewise.
422         (tf_readv): Likewise.
423         (tf_write): Likewise.
424         (tf_writev): Likewise.
425         (tf_sleep): Likewise.
426         (tf_usleep): Likewise.
427         (tf_nanosleep): Likewise.
428         (tf_select): Likewise.
429         (tf_pselect): Likewise.
430         (tf_poll): Likewise.
431         (tf_ppoll): Likewise.
432         (tf_wait): Likewise.
433         (tf_waitpid): Likewise.
434         (tf_waitid): Likewise.
435         (tf_sigpause): Likewise.
436         (tf_sigsuspend): Likewise.
437         (tf_sigwait): Likewise.
438         (tf_sigwaitinfo): Likewise.
439         (tf_sigtimedwait): Likewise.
440         (tf_pause): Likewise.
441         (tf_accept): Likewise.
442         (tf_send): Likewise.
443         (tf_recv): Likewise.
444         (tf_recvfrom): Likewise.
445         (tf_recvmsg): Likewise.
446         (tf_open): Likewise.
447         (tf_close): Likewise.
448         (tf_pread): Likewise.
449         (tf_pwrite): Likewise.
450         (tf_preadv): Likewise.
451         (tf_pwritev): Likewise.
452         (tf_fsync): Likewise.
453         (tf_fdatasync): Likewise.
454         (tf_msync): Likewise.
455         (tf_sendto): Likewise.
456         (tf_sendmsg): Likewise.
457         (tf_creat): Likewise.
458         (tf_connect): Likewise.
459         (tf_tcdrain): Likewise.
460         (tf_msgrcv): Likewise.
461         (tf_msgsnd): Likewise.
462         * nptl/tst-cancel4_1.c (tf_sendmmsg): Likewise.
463         * nptl/tst-cancel4_2.c (tf_recvmmsg): Likewise.
464
465         * misc/tst-preadvwritev-common.c (do_prepare): Use libsupport
466         expected arguments.
467         (do_test): Adapt to use libsupport.
468
469 2017-05-01  Joseph Myers  <joseph@codesourcery.com>
470
471         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_CONNECT): New macro.
472
473         * sysdeps/unix/sysv/linux/bits/socket.h (PF_SMC): New macro.
474         (PF_MAX): Set to 44.
475         (AF_SMC): New macro.
476
477         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
478         kernel version to 4.11.
479
480 2017-04-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
481
482         [BZ #21280]
483         * sysdeps/powerpc/power7/fpu/s_logbl.c (__logbl): Ignore the
484         signal of subnormals and adjust the exponent of power of 2 down
485         when low part has opposite sign.
486
487 2017-04-28  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
488
489         * sysdeps/powerpc/powerpc64le/Implies: New file.
490         * sysdeps/powerpc/powerpc64le/fpu/Implies: New file.
491         * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: New file.
492         * sysdeps/powerpc/powerpc64le/multiarch/Implies: New file.
493         * sysdeps/powerpc/powerpc64le/power7/Implies: New file.
494         * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: New file.
495         * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: New file.
496         * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: New file.
497         * sysdeps/powerpc/powerpc64le/power8/Implies: New file.
498         * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: New file.
499         * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: New file.
500         * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: New file.
501         * sysdeps/powerpc/powerpc64le/power9/Implies: New file.
502         * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: New file.
503         * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: New file.
504         * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: New file.
505         * sysdeps/powerpc/preconfigure: New file.
506         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: New file.
507         * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: New file.
508
509 2017-04-28  Joseph Myers  <joseph@codesourcery.com>
510
511         * conform/data/semaphore.h-data [XOPEN2K] (time.h): Allow header
512         inclusion.
513         * conform/Makefile (test-xfail-XOPEN2K/semaphore.h/conform):
514         Remove.
515
516 2017-04-27  Joseph Myers  <joseph@codesourcery.com>
517
518         * conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
519         (XPG3): Rename standard to XPG4.
520         * conform/Makefile: Likewise.
521         * conform/list-header-symbols.pl: Likewise.
522         * conform/data/aio.h-data: Likewise.
523         * conform/data/arpa/inet.h-data: Likewise.
524         * conform/data/complex.h-data: Likewise.
525         * conform/data/ctype.h-data: Likewise.
526         * conform/data/dlfcn.h-data: Likewise.
527         * conform/data/fcntl.h-data: Likewise.
528         * conform/data/fenv.h-data: Likewise.
529         * conform/data/float.h-data: Likewise.
530         * conform/data/fmtmsg.h-data: Likewise.
531         * conform/data/ftw.h-data: Likewise.
532         * conform/data/grp.h-data: Likewise.
533         * conform/data/inttypes.h-data: Likewise.
534         * conform/data/iso646.h-data: Likewise.
535         * conform/data/langinfo.h-data: Likewise.
536         * conform/data/libgen.h-data: Likewise.
537         * conform/data/limits.h-data: Likewise.
538         * conform/data/locale.h-data: Likewise.
539         * conform/data/math.h-data: Likewise.
540         * conform/data/mqueue.h-data: Likewise.
541         * conform/data/ndbm.h-data: Likewise.
542         * conform/data/net/if.h-data: Likewise.
543         * conform/data/netdb.h-data: Likewise.
544         * conform/data/netinet/in.h-data: Likewise.
545         * conform/data/poll.h-data: Likewise.
546         * conform/data/pthread.h-data: Likewise.
547         * conform/data/pwd.h-data: Likewise.
548         * conform/data/sched.h-data: Likewise.
549         * conform/data/search.h-data: Likewise.
550         * conform/data/semaphore.h-data: Likewise.
551         * conform/data/signal.h-data: Likewise.
552         * conform/data/spawn.h-data: Likewise.
553         * conform/data/stdbool.h-data: Likewise.
554         * conform/data/stdint.h-data: Likewise.
555         * conform/data/stdio.h-data: Likewise.
556         * conform/data/stdlib.h-data: Likewise.
557         * conform/data/string.h-data: Likewise.
558         * conform/data/strings.h-data: Likewise.
559         * conform/data/stropts.h-data: Likewise.
560         * conform/data/sys/mman.h-data: Likewise.
561         * conform/data/sys/resource.h-data: Likewise.
562         * conform/data/sys/select.h-data: Likewise.
563         * conform/data/sys/socket.h-data: Likewise.
564         * conform/data/sys/stat.h-data: Likewise.
565         * conform/data/sys/statvfs.h-data: Likewise.
566         * conform/data/sys/time.h-data: Likewise.
567         * conform/data/sys/timeb.h-data: Likewise.
568         * conform/data/sys/types.h-data: Likewise.
569         * conform/data/sys/uio.h-data: Likewise.
570         * conform/data/sys/un.h-data: Likewise.
571         * conform/data/sys/wait.h-data: Likewise.
572         * conform/data/syslog.h-data: Likewise.
573         * conform/data/termios.h-data: Likewise.
574         * conform/data/tgmath.h-data: Likewise.
575         * conform/data/time.h-data: Likewise.
576         * conform/data/ucontext.h-data: Likewise.
577         * conform/data/unistd.h-data: Likewise.
578         * conform/data/utmpx.h-data: Likewise.
579         * conform/data/varargs.h-data: Likewise.
580         * conform/data/wchar.h-data: Likewise.
581         * conform/data/wctype.h-data: Likewise.
582
583 2017-04-26  Joseph Myers  <joseph@codesourcery.com>
584
585         * scripts/build-many-glibcs.py (Context.checkout): Default gcc
586         version to 7 branch.
587
588 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
589
590         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Add
591         earlyclobber to output operand of sqrt insn.
592         (__ieee754_sqrtf): Ditto.
593
594 2017-04-25  Joseph Myers  <joseph@codesourcery.com>
595
596         [BZ #21426]
597         * misc/bits/types/struct_iovec.h: New file.
598         * misc/Makefile (headers): Add bits/types/struct_iovec.h.
599         * include/bits/types/struct_iovec.h: New file.
600         * bits/uio.h (struct iovec): Replace by inclusion of
601         <bits/types/struct_iovec.h>.
602         * sysdeps/unix/sysv/linux/bits/uio.h (struct iovec): Likewise.
603         * socket/sys/socket.h: Include <bits/types/struct_iovec.h> instead
604         of <sys/uio.h>.
605         * nptl/tst-cancel4.c: Include <sys/uio.h>
606         * posix/test-errno.c: Likewise.
607         * support/resolv_test.c: Likewise.
608         * conform/Makefile (test-xfail-POSIX2008/arpa/inet.h/conform):
609         Remove.
610         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
611         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
612         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
613
614         * conform/data/sys/socket.h-data (*_t): Allow.
615
616 2017-04-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
617
618         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Remove ununsed
619         assignment.
620
621 2017-04-24  Daurnimator  <quae@daurnimator.com>
622             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
623
624         [BZ #21340]
625         * posix/Makefile (tests): Add tst-posix_spawn-setsid to list of tests.
626         * posix/spawn.h: define POSIX_SPAWN_SETSID flag.
627         * posix/spawnattr_setflags.c (ALL_FLAGS): Add POSIX_SPAWN_SETSID to
628         valid flags.
629         * posix/tst-posix_spawn-setsid.c: Add test for POSIX_SPAWN_SETSID.
630         * sysdeps/mach/hurd/spawni.c (__spawni): Implementation of
631         POSIX_SPAWN_SETSID.
632         * sysdeps/posix/spawni.c (__spawni): Likewise.
633         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
634         * NEWS: Add note about POSIX_SPAWN_SETSID support.
635
636 2017-04-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
637
638         * sysdeps/generic/math_private.h: Move the declaration of many
639         functions to sysdeps/generic/math_private_calls.h.
640         * sysdeps/generic/math_private_calls.h: New file with the
641         declarations of the functions removed from math_private.h
642         macroized by floating-point type.
643
644 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
645
646         * sysdeps/s390/multiarch/utf8-utf32-z9.c: New File.
647         * sysdeps/s390/utf8-utf32-z9.c: Move ifunc resolvers to multiarch
648         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
649         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
650         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
651         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
652
653 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
654
655         * sysdeps/s390/multiarch/utf16-utf32-z9.c: New File.
656         * sysdeps/s390/utf16-utf32-z9.c: Move ifunc resolvers to multiarch
657         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|VX].
658         (HAVE_FROM_C, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX, FROM_LOOP_DEFAULT,
659         FROM_LOOP_C, FROM_LOOP_VX, TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX):
660         New Define.
661
662 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
663
664         * sysdeps/s390/multiarch/utf8-utf16-z9.c: New File.
665         * sysdeps/s390/utf8-utf16-z9.c: Move ifunc resolvers to multiarch
666         folder and define ifunc versions depending on HAVE_[FROM|TO]_[C|CU|VX].
667         (HAVE_FROM_C, HAVE_FROM_CU, HAVE_FROM_VX, HAVE_TO_C, HAVE_TO_VX,
668         FROM_LOOP_DEFAULT, FROM_LOOP_C, FROM_LOOP_CU, FROM_LOOP_VX,
669         TO_LOOP_DEFAULT, TO_LOOP_C, TO_LOOP_VX): New Define.
670
671 2017-04-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
672
673         * sysdeps/s390/multiarch/ifunc-resolve.h
674         (s390_libc_ifunc_expr_init, s390_libc_ifunc_expr): New Define.
675         * sysdeps/s390/multiarch/8bit-generic.c
676         (__to_generic, __from_generic): Use s390_libc_ifunc_expr to
677         define ifunc resolvers.
678
679 2017-04-21  Florian Weimer  <fweimer@redhat.com>
680
681         [BZ #20424]
682         * manual/memory.texi (Replacing malloc): New section.
683         (Allocating Storage For Program Data): Reference it.
684         (The GNU Allocator): Likewise.
685
686 2017-04-20  Joseph Myers  <joseph@codesourcery.com>
687
688         * stdlib/Versions (__strtod_internal): List explicitly, not as
689         wildcard.
690         (__strtof_internal): Likewise.
691         (__strtold_internal): Likewise.
692         (__strtol_internal): Likewise.
693         (__strtoll_internal): Likewise.
694         (__strtoul_internal): Likewise.
695         (__strtoull_internal): Likewise.
696         (__strtoq_internal): Likewise.
697         (__strtouq_internal): Likewise.
698         * wcsmbs/Versions (__wcstod_internal): Likewise.
699         (__wcstof_internal): Likewise.
700         (__wcstold_internal): Likewise.
701         (__wcstol_internal): Likewise.
702         (__wcstoll_internal): Likewise.
703         (__wcstoul_internal): Likewise.
704         (__wcstoull_internal): Likewise.
705
706 2017-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
707
708         * io/sys/stat.h: Use __USE_XOPEN2K8 insteaf of __USE_ATFILE for
709         struct timespec definition.
710
711 2017-04-19  Florian Weimer  <fweimer@redhat.com>
712
713         * resolv/nss_dns/dns-host.c (getanswer_r): Fix parentheses.
714
715 2017-04-19  Florian Weimer  <fweimer@redhat.com>
716
717         * inet/rcmd.c (rresvport_af): Fix typo in comment.
718         * inet/rexec.c (rexec_af): Likewise.
719
720 2017-04-19  Zack Weinberg  <zackw@panix.com>
721
722         * posix/tst-mmap-offset.c: Include stdint.h.
723         * resolv/tst-ns_name_compress.c: Include string.h.
724         * resolv/tst-resolv-edns.c: Include resolv.h.
725
726 2017-04-19  Florian Weimer  <fweimer@redhat.com>
727
728         * resolv/gai_suspend.c (gai_suspend): Replace __builtin_expect
729         with __glibc_likely.
730         * resolv/nss_dns/dns-host.c (getanswer_r, gaih_getanswer_slice):
731         Replace __builtin_expect with __glibc_unlikely.
732         * resolv/res_init.c (__res_vinit): Likewise.
733         * resolv/res_query.c (__libc_res_nquery): Likewise.
734         * resolv/res_send.c (__libc_res_nsend): Likewise.
735
736 2017-04-19  Florian Weimer  <fweimer@redhat.com>
737
738         [BZ #15722]
739         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Create socket
740         with SOCK_CLOEXEC.
741         * resolv/res_send.c (send_vc, reopen): Likewise.
742         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
743         * sysdeps/unix/sysv/linux/check_native.c (__check_native):
744         Likewise.
745         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open): Likewise.
746         * inet/rexec.c (rexec_af): Add comment.
747         * inet/rcmd.c (rresvport_af): Likewise.
748
749 2017-04-19  Florian Weimer  <fweimer@redhat.com>
750
751         * nscd/connections.c (have_accept4): Removed definition.
752         (nscd_run_worker, main_loop_poll, main_loop_epolll): Assume that
753         accept4 works.
754         * manual/install.texi (Linux): Require at least kernel 3.2.18 for
755         ia64 because that was the first version with accept4 support.
756         * support/Makefile (libsupport-routines): Add xaccept4.
757         * support/xsocket.h (xaccept4): Declare.
758         * support/xaccept4.c: New file.
759         * socket/tst-accept4.c: New file.
760         * socket/Makefile (tests): Add tst-accept4.
761         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Remove
762         definition.
763         * sysdeps/nacl/kernel-features.h (__ASSUME_ACCEPT4): Remove
764         comment.
765         * sysdeps/unix/sysv/linux/accept4.c: Assume that an accept4
766         implementation is available.
767         (accept4): Use the system call if available, otherwise use the
768         socket call.
769         * sysdeps/unix/sysv/linux/ia64/configure.ac (arch_minimum_kernel):
770         Set to 3.2.18.
771         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
772         (__ASSUME_ACCEPT4_SYSCALL, __ASSUME_ACCEPT4): Do not undefine.
773         accept4 is unconditionally available in later 3.2 stable kernels.
774         (__ASSUME_ACCEPT4_SYSCALL): Define.
775         * sysdeps/unix/sysv/linux/kernel-features.h
776         (__ASSUME_ACCEPT4_SOCKETCALL, __ASSUME_ACCEPT4): Remove
777         definitions.
778         * sysdeps/unix/sysv/linux/i386/kernel-features.h
779         (__ASSUME_ACCEPT4_SYSCALL): Define for Linux 4.3 or later.
780
781 2017-04-18  Joseph Myers  <joseph@codesourcery.com>
782
783         * conform/Makefile (tests-special): Do not make addition of
784         $(conformtest-header-tests) conditional on [$(cross-compiling) = no].
785         (generated): Do not make addition of $(conformtest-header-base)
786         conditional on [$(cross-compiling) = no].
787
788         [BZ #21267]
789         * sysdeps/unix/sysv/linux/bits/socket.h (IOCSIZE_MASK): Undefine
790         if defined by <asm/socket.h> and not previously defined.
791         (IOCSIZE_SHIFT): Likewise.
792         (IOC_IN): Likewise.
793         (IOC_INOUT): Likewise.
794         (IOC_OUT): Likewise.
795
796 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
797
798         [BZ #21396]
799         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
800         Prefer_No_AVX512 if AVX512ER isn't available.
801         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_No_AVX512): New.
802         (index_arch_Prefer_No_AVX512): Likewise.
803         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Don't use
804         AVX512 version if Prefer_No_AVX512 is set.
805         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk):
806         Likewise.
807         * sysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Likewise.
808         * sysdeps/x86_64/multiarch/memmove_chk.S (__memmove_chk):
809         Likewise.
810         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
811         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk):
812         Likewise.
813         * sysdeps/x86_64/multiarch/memset.S (memset): Likewise.
814         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk):
815         Likewise.
816
817 2017-04-18  H.J. Lu  <hongjiu.lu@intel.com>
818
819         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
820         Prefer_No_VZEROUPPER if AVX512ER is available.
821         * sysdeps/x86/cpu-features.h
822         (bit_cpu_AVX512PF): New.
823         (bit_cpu_AVX512ER): Likewise.
824         (bit_cpu_AVX512CD): Likewise.
825         (bit_cpu_AVX512BW): Likewise.
826         (bit_cpu_AVX512VL): Likewise.
827         (index_cpu_AVX512PF): Likewise.
828         (index_cpu_AVX512ER): Likewise.
829         (index_cpu_AVX512CD): Likewise.
830         (index_cpu_AVX512BW): Likewise.
831         (index_cpu_AVX512VL): Likewise.
832         (reg_AVX512PF): Likewise.
833         (reg_AVX512ER): Likewise.
834         (reg_AVX512CD): Likewise.
835         (reg_AVX512BW): Likewise.
836         (reg_AVX512VL): Likewise.
837
838 2017-04-18  Florian Weimer  <fweimer@redhat.com>
839
840         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Assume that
841         O_CLOEXEC is defined.
842         * include/fcntl.h (__have_o_cloexec): Remove declaration.
843         * io/Makefile (aux): Remove.
844         * io/have_o_cloexec.c: Remove file.
845         * libio/fileops.c (_IO_new_file_fopen): Assume that O_CLOEXEC is
846         defined and works.
847         * libio/iopopen.c (_IO_new_proc_open): Assume that O_CLOEXEC is
848         defined.
849         * login/utmp_file.c (O_flags): Remove definition.
850         (setutent_file): Use O_CLOEXEC instead of O_flags.  Assume that
851         O_CLOEXEC works.
852         (pututline_file): Likewise.
853         * malloc/mtrace.c: Assume that O_CLOEXEC works.
854         * nis/nss_compat/compat-grp.c (__compat_have_cloexec): Remove
855         definition.
856         (internal_setgrent): Assume that O_CLOEXEC works.
857         * nis/nss_compat/compat-initgroups.c (__compat_have_cloexec):
858         Remove definition.
859         (internal_setgrent): Assume that O_CLOEXEC works.
860         * nis/nss_compat/compat-pwd.c (__compat_have_cloexec): Remove
861         definition.
862         (internal_setpwent): Assume that O_CLOEXEC works.
863         * nis/nss_compat/compat-spwd.c (__compat_have_cloexec): Remove
864         definition.
865         (internal_setspent): Assume that O_CLOEXEC works.
866         * nscd/connections.c (EXTRA_O_FLAGS): Remove definition.
867         (nscd_init): Use O_CLOEXEC instead of EXTRA_O_FLAGS.  Assume that
868         O_CLOEXEC is defined and works.
869         * nss/Makefile (libnss_files-routines): Remove
870         files-have_o_cloexec.
871         * nss/nss_db/db-open.c (internal_setent): Assume that O_CLOEXEC is
872         defined.
873         * nss/nss_files/files-XXX.c (internal_setent): Assume that
874         O_CLOEXEC is defined and works.
875         * nss/nss_files/files-alias.c (internal_setent): Likewise.
876         * nss/nss_files/files-have_o_cloexec.c: Remove.
877         * posix/wordexp.c (exec_comm_child): Assume that O_CLOEXEC is
878         defined.
879         * shadow/lckpwdf.c (__lckpwdf): Assume that O_CLOEXEC is defined
880         and works.
881         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_O_CLOEXEC): Remove
882         definition.
883         * sysdeps/nacl/kernel-features.h (__ASSUME_O_CLOEXEC): Likewise.
884         * sysdeps/posix/getcwd.c (__getcwd): Assume that O_CLOEXEC works.
885         * sysdeps/posix/opendir.c (opendir_oflags): Turn into enum constant.
886         (__opendirat, __opendir): Adjust opendir_oflags call.
887         (check_have_o_cloexec): Remove.
888         (__alloc_dir): Assume that O_CLOEXEC is defined and works.
889         * sysdeps/posix/shm_open.c (shm_open): Assume that O_CLOEXEC is
890         defined.
891         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_O_CLOEXEC):
892         Remove definition.
893
894 2017-04-18  Florian Weimer  <fweimer@redhat.com>
895
896         * include/unistd.h (__have_dup3): Remove declaration.
897         * libio/freopen.c (freopen): Assume that O_CLOEXEC is defined and
898         dup3 is available.
899         * libio/freopen64.c (freopen64): Likewise.
900         * socket/Makefile (aux): Remove have_sock_cloexec.
901         * socket/have_sock_cloexec.c: Remove file.
902         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Remove
903         definition.
904         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_DUP3):
905         Likewise.
906         * sysdeps/nacl/kernel-features.h: Update comment.
907
908 2017-04-18  Florian Weimer  <fweimer@redhat.com>
909
910         * include/unistd.h (__have_pipe2): Remove declaration.
911         * socket/have_sock_cloexec.c (__have_pipe2): Remove definition.
912         * libio/iopopen.c (_IO_new_proc_open): Assume that pipe2 is
913         available.
914         * posix/wordexp.c (exec_comm_child, exec_comm): Likewise.
915         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PIPE2):
916         Remove definition.
917
918 2017-04-18  Florian Weimer  <fweimer@redhat.com>
919
920         * malloc/malloc.c (cfree): Turn into compat symbol.
921         (__cfree): Remove alias.
922         * stdlib/stdlib.h (cfree): Remove declaration.
923         * malloc/malloc.h (cfree): Likewise.
924         * manual/memory.texi (Freeing after Malloc): Remove cfree.
925         * malloc/Versions (GLIBC_2.26): Add.
926
927 2017-04-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
928
929         * sysdeps/powerpc/powerpc64/multiarch/Makefile
930         (sysdep_routines): Add strrchr-power8.
931         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
932         (strrchr): Add __strrchr_power8 to list of strrchr functions.
933         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: New file.
934         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c
935         (strrchr): Add __strrchr_power8 to ifunc list.
936         * sysdeps/powerpc/powerpc64/power8/strrchr.S: New file.
937
938 2017-04-17  Rabin Vincent  <rabinv@axis.com>
939
940         [BZ #21357]
941         * sysdeps/generic/unwind-dw2-fde.c (__deregister_frame_info_bases):
942         Call free() outside of mutex.
943
944 2017-04-13  Florian Weimer  <fweimer@redhat.com>
945
946         * csu/check_fds.c (__libc_check_standard_fds): Assume O_NOFOLLOW
947         is defined.
948         * elf/rtld.c (process_envvars): Likewise.
949         * sysdeps/posix/shm_open.c (shm_open): Likewise.
950         * elf/dl-profile.c (EXTRA_FLAGS): Remove definition.  Use
951         O_NOFOLLOW directly.
952         * gmon/gmon.c (O_NOFOLLOW): Remove definition.
953
954 2017-04-13  Florian Weimer  <fweimer@redhat.com>
955
956         [BZ #21369]
957         Remove EDNS fallback.
958         * resolv/res_query.c (__libc_res_nquery): Remove RES_F_EDNS0ERR
959         handling.
960         * resolv/res_send.c (send_dg): Likewise.
961         * resolv/tst-resolv-edns.c (response): Handle "formerr." and
962         "tcp." prefixes.
963         (do_test): Send a "formerr."-prefixed query in an attempt to
964         trigger EDNS fallback.
965
966 2017-04-13  Florian Weimer  <fweimer@redhat.com>
967
968         [BZ #21361]
969         Limit EDNS buffer size to 1200 bytes.
970         * include/resolv.h (__res_nopt): Remove declaration.
971         * resolv/Makefile (tests): tst-resolv-edns.
972         (tst-resolv-edns): Link with -lresolv, -lpthread.
973         * resolv/res_mkquery.c (__res_ntop): Limit EDNS buffer size to the
974         interval [512, 1200].
975         * resolv/res_query.c (__libc_res_nquery): Use 1200 buffer size if
976         we can resize the buffer.
977         * resolv/resolv-internal.h (RESOLV_EDNS_BUFFER_SIZE): Define.
978         (__res_nopt): Declare.
979         * resolv/tst-resolv-edns.c: New file.
980         * resolv/resolv_test.h (struct resolv_edns_info): Define.
981         (struct resolv_response_context): Add edns member.
982         * resolv/resolv_test.c (struct query_info): Add edns member.
983         (parse_query): Extract EDNS information from the query.
984         (server_thread_udp_process_one): Propagate EDNS data.
985         (server_thread_tcp_client): Likewise.
986
987 2017-04-13  Florian Weimer  <fweimer@redhat.com>
988
989         [BZ #21359]
990         * resolv/ns_name.c (ns_name_pack): Do not require an additional
991         byte in the destination buffer.  Avoid out-of-bounds pointer
992         arithmetic.
993         * resolv/Makefile (tests): Add tst-ns_name_compress.
994         (tst-ns_name_compress): Link with -lresolv.
995         * resolv/tst-ns_name_compress.c: New file.
996         * resolv/tst-resolv-basic.c (LONG_NAME): Define.
997         (response): Recognize LONG_NAME.
998         (do_test): Add LONG_NAME tests.
999         * resolv/tst-ns_name.c (run_test_case): Fix expected data check
1000         for ns_name_unpack.  Add tests for ns_name_pton and
1001         ns_name_compress.
1002
1003 2017-04-13  Florian Weimer  <fweimer@redhat.com>
1004
1005         * resolv/resolv.h (RES_EXHAUSTIVE, p_section, res_npquery)
1006         (res_nisourserver): Remove definition.
1007         (p_section, res_npquery, res_nisourserver): Remove declaration.
1008         (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR): Move ...
1009         * resolv/resolv-internal.h (RES_F_VC, RES_F_CONN, RES_F_EDNS0ERR):
1010         ... here.
1011         * resolv/res_send.c: Include <resolv/resolv-internal.h> instead of
1012         <resolv.h>.
1013         * resolv/res_query.c: Likewise.
1014         * resolv/res_debug.c (p_section): Define as static.
1015
1016 2017-04-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1017
1018         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines): Add
1019         strncat-power8.
1020         * sysdeps/powerpc/powerpc64/multiarch/strncat.c (strncat): Add
1021         __strncat_power8 to ifunc list.
1022         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1023         (strncat): Add __strncat_power8 to list of strncat functions.
1024         * sysdeps/powerpc/powerpc64/multiarch/strncat-power8.c: New file.
1025
1026 2017-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1027
1028         [BZ #21270]
1029         * posix/tst-mmap-offset.c (do_prepare): New function.
1030         (do_test): Rename to do_test_bz18877 and use FAIL_RET.
1031         (do_test_bz21270): New function.
1032         * sysdeps/unix/sysv/linux/aarch64/mmap.c: Remove file.
1033         * sysdeps/unix/sysv/linux/arm/mmap.c: Remove file.
1034         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c: Likewise.
1035         * sysdeps/unix/sysv/linux/hppa/mmap.c: Likewise.
1036         * sysdeps/unix/sysv/linux/i386/mmap.c: Likewise.
1037         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
1038         * sysdeps/unix/sysv/linux/m68k/mmap64.c: Likewise.
1039         * sysdeps/unix/sysv/linux/microblaze/mmap.S: Likewise.
1040         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: Likewise.
1041         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: Likewise.
1042         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: Likewise.
1043         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1044         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1045         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
1046         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: Likewise.
1047         * sysdeps/unix/sysv/linux/wordsize-64/mmap64.c: Likewise.
1048         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
1049         * sysdeps/unix/sysv/linux/mmap_internal.h: New file.
1050         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h: Likewise.
1051         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap_internal.h: Likewise.
1052         * sysdeps/unix/sysv/linux/s390/mmap_internal.h: Likewise.
1053         * sysdeps/unix/sysv/linux/x86_64/64/mmap_internal.h: Likewise.
1054         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Remove mmap
1055         from auto-generation list.
1056         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list: Likewise.
1057         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
1058         * sysdeps/unix/sysv/linux/mmap.c: New file.
1059         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Add check for invalid
1060         offsets and support for mmap2 syscall.
1061
1062         * posix/globtest.sh: Add cleanup routine on trap 0.
1063
1064 2017-04-11  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1065
1066         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Define the
1067         implementation-specific function name and remove unneeded
1068         macros definition.
1069         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
1070         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
1071         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
1072         name if not defined and pass as parameter to macros accordingly.
1073         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
1074         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
1075
1076         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Define the
1077         implementation-specific function name and remove unneeded
1078         macros definition.
1079         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
1080         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
1081         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
1082         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
1083         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1084         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
1085         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Set a default function
1086         name if not defined and pass as parameter to macros accordingly.
1087         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
1088         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
1089         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1090         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1091         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
1092         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.
1093
1094         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the
1095         implementation-specific function name and remove unneeded macros
1096         definition.
1097         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
1098         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
1099         * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default
1100         function name if not defined and pass as parameter to macros
1101         accordingly.
1102         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
1103         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
1104
1105         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Define the
1106         implementation-specific function name and remove unneeded macros
1107         definition.
1108         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
1109         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
1110         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
1111         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
1112         * sysdeps/powerpc/powerpc64/memset.S: Set a default function name if
1113         not defined and pass as parameter to macros accordingly.
1114         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1115         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1116         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
1117         * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
1118
1119         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Define the
1120         strcasestr implementation name and remove unneeded macros definition.
1121         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Define
1122         strstr implementation name and remove unneeded macros definition.
1123         * sysdeps/powerpc/powerpc64/power7/strstr.S: Set a default function
1124         name if not defined and pass as parameter to macros accordingly.
1125         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Likewise.
1126
1127         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Define the
1128         implementation-specific function name and remove unneeded macros
1129         definition.
1130         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
1131         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
1132         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
1133         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
1134         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
1135         * sysdeps/powerpc/powerpc64/power7/strchr.S: Set a default
1136         function name if not defined and pass as parameter to macros
1137         accordingly.
1138         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Likewise.
1139         * sysdeps/powerpc/powerpc64/power7/strrchr.S: Likewise.
1140         * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
1141         * sysdeps/powerpc/powerpc64/strchr.S: Likewise.
1142
1143         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Define
1144         the strlen implementation name and remove unneeded macros definition.
1145         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
1146         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1147         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Define
1148         the strnlen implementation name and remove unneeded macros definition.
1149         * sysdeps/powerpc/powerpc64/power7/strlen.S: Set a default function
1150         name if not defined and pass as parameter to macros accordingly.
1151         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Likewise.
1152         * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
1153         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
1154
1155         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Define
1156         the implementation-specific function name and remove unneeded
1157         macros definition.
1158         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
1159         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S Likewise.
1160         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
1161         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1162         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
1163         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
1164         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
1165         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
1166         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1167         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Set a default function
1168         name if not defined and pass as parameter to macros accordingly.
1169         * sysdeps/powerpc/powerpc64/power7/strcmp.S: Likewise.
1170         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1171         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
1172         * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
1173         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
1174         * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
1175         * sysdeps/powerpc/powerpc64/strcmp.S: Likewise.
1176         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1177
1178         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Define the
1179         implementation-specific function name and remove unneeded macros
1180         definition.
1181         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
1182         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
1183         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
1184         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
1185         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
1186         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Set a default
1187         function name if not defined.
1188         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Likewise.
1189         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
1190
1191 2017-04-11  Paul Clarke  <pc@us.ibm.com>
1192
1193         * elf/elf.h (AT_L1I_CACHESIZE, AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE,
1194         AT_L1D_CACHEGEOMETRY, AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY,
1195         AT_L3_CACHESIZE, AT_L3_CACHEGEOMETRY): New.  Add auxvec
1196         identifiers from kernel arch/powerpc/include/uapi/asm/auxvec.h.
1197
1198 2017-04-11  Florian Weimer  <fweimer@redhat.com>
1199             Zack Weinberg  <zackw@panix.com>
1200
1201         * manual/filesys.texi (Reading/Closing Directory): Mark readdir,
1202         readdir64 as thread-safe.  Update warning about readdir_r.
1203
1204 2017-04-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1205
1206         * sysdeps/unix/sysv/linux/x86/Implies: New file.
1207         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: Move to ...
1208         * sysdeps/alpha/nptl/bits/pthreadtypes.h: ... here.
1209         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Move to ...
1210         * sysdeps/powerpc/nptl/bits/pthreadtypes.h: ... here.
1211         * sysdeps/x86/bits/pthreadtypes.h: Move to ...
1212         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
1213
1214 2017-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1215
1216         * sysdeps/i386/dl-procinfo.c: Include
1217         <sysdeps/x86/dl-procinfo.c>.
1218         * sysdeps/x86_64/dl-procinfo.c: Likewise.
1219         * sysdeps/x86/dl-procinfo.c: New file.
1220
1221 2017-04-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1222
1223         * sysdeps/generic/math_private.h: Remove declarations of
1224         many functions that are already declared in math.h.
1225         * sysdeps/ieee754/ldbl-128/e_logl.c: Include math.h to get the
1226         declaration for __frexpl.
1227         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Include math.h to get
1228         the declarations for __scalbnl and fabsl.
1229
1230 2017-04-09  Dmitry V. Levin  <ldv@altlinux.org>
1231
1232         [BZ #20831]
1233         * elf/dl-map-segments.h (_dl_map_segments): Check for failure
1234         of __mprotect to change protection on the excess portion
1235         to disallow all access.
1236
1237 2017-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1238
1239         * sysdeps/i386/fpu/fclrexcpt.c (__feclearexcept): Use
1240         HAS_CPU_FEATURE to check for SSE.
1241         * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
1242         * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Likewise.
1243         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Likewise.
1244         * sysdeps/i386/fpu/fegetmode.c (fegetmode): Likewise.
1245         * sysdeps/i386/fpu/feholdexcpt.c (__feholdexcept): Likewise.
1246         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Likewise.
1247         * sysdeps/i386/fpu/fesetmode.c (fesetmode): Likewise.
1248         * sysdeps/i386/fpu/fesetround.c (__fesetround): Likewise.
1249         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
1250         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Likewise.
1251         * sysdeps/i386/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
1252         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
1253         * sysdeps/i386/setfpucw.c (__setfpucw): Likewise.
1254         * sysdeps/x86/cpu-features.h (bit_cpu_SSE): New.
1255         (index_cpu_SSE): Likewise.
1256         (reg_SSE): Likewise.
1257
1258 2017-04-07  Paul Eggert  <eggert@cs.ucla.edu>
1259
1260         * posix/getopt1.c: Include <config.h>, not "config.h".
1261
1262 2017-04-07  Zack Weinberg  <zackw@panix.com>
1263
1264         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h
1265         * posix/getopt.c, posix/getopt1.c, posix/getopt_int.h:
1266         Mention in top-of-file boilerplate that these files are shared
1267         with gnulib.
1268         * posix/getopt.h, posix/bits/getopt_posix.h:
1269         Mention in top-of-file boilerplate that these files are NOT shared
1270         with gnulib, unlike the rest of the getopt implementation.
1271
1272         * posix/bits/getopt_core.h, posix/bits/getopt_ext.h:
1273         New files, intended to be shared with gnulib.
1274         * posix/bits/getopt_posix.h:
1275         New file, not intended to be shared with gnulib.
1276         * posix/getopt.h: Now just includes features.h,
1277         bits/getopt_core.h, and bits/getopt_ext.h.  Will
1278         no longer be shared with gnulib.
1279         * include/bits/getopt_core.h, include/bits/getopt_ext.h
1280         * include/bits/getopt_posix.h: New wrappers.
1281         * posix/Makefile: Install new headers.
1282         * posix/unistd.h, libio/stdio.h:
1283         Include bits/getopt_posix.h instead of getopt.h.
1284
1285         * include/libc-symbols.h: For gnulib compatibility, define
1286         _GL_UNUSED, _GL_UNUSED_LABEL, _GL_ATTRIBUTE_PURE, and
1287         _GL_ATTRIBUTE_CONST.
1288         * posix/getopt.c (_getopt_initialize): Mark argc and argv
1289         parameters with _GL_UNUSED.
1290
1291         * posix/getopt.c: When used standalone, define __libc_use_alloca
1292         as always false and alloca to abort if called.
1293         (process_long_option): Rewrite handling of ambiguous long options
1294         to use a single boolean vector, not a linked list; use
1295         __libc_use_alloca to decide whether to allocate this using alloca.
1296         * posix/tst-getopt_long1.c: Adjust text of expected error message.
1297
1298         * posix/getopt.c (process_long_option): New function split out
1299         from _getopt_internal_r.
1300         (_getopt_internal_r): Replace both copies of the long-option
1301         processing code with calls to process_long_option.
1302         * posix/bug-getopt4.c (one_test): Print argv[0] in error messages.
1303         (do_test): Differentiate argv[0] in the two subtests.
1304
1305         * posix/getopt_int.h (_getopt_data): Remove __posixly_correct field.
1306         * posix/getopt.c (_getopt_internal_r): Move some initialization code...
1307         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
1308
1309         * posix/getopt.h: Add backup definition of __nonnull for
1310         consistency with gnulib.  Define __getopt_argv_const to const
1311         if not already defined.
1312         (getopt): Update doc comment from gnulib.  Prototype
1313         unconditionally.  Add __nonnull annotation.
1314         (__posix_getopt): Add __nonnull annotation.
1315         (getopt_long, getopt_long_only): Use __getopt_argv_const in
1316         prototypes for consistency with gnulib.  Add __nonnull
1317         annotations.
1318         * posix/getopt.c (_getopt_initialize, _getopt_internal_r)
1319         (getopt_internal): Change 'argv' argument to type 'char **'.
1320         Remove now-unnecessary casts.
1321         (getopt, __posix_getopt): Eliminate repetition with a macro.
1322         Cast 'argv' to 'char **' when calling _getopt_internal.
1323         * posix/getopt1.c (getopt_long, getopt_long_only):
1324         Use __getopt_argv_const for consistency with gnulib.
1325         Cast 'argv' to 'char **' when calling _getopt_internal.
1326         (_getopt_long_r, _getopt_long_only_r):
1327         Change 'argv' argument to type 'char **'.
1328         (main): Constify 'long_options'.
1329         * posix/getopt_int.h (getopt_internal, _getopt_internal_r)
1330         (_getopt_long_r, _getopt_long_only_r):
1331         Change 'argv' argument to type 'char **'.
1332
1333         * stdio-common/fxprintf.c (__fxprintf_nocancel): New function.
1334         (locked_vfxprintf): New helper function. Handle arbitrary
1335         multibyte strings, not just ASCII.
1336         * include/stdio.h: Declare __fxprintf_nocancel.
1337         * posix/getopt.c: When _LIBC is defined, define fprintf to
1338         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
1339         to _IO_funlockfile.  When neither _LIBC nor
1340         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
1341         funlockfile as no-ops.
1342         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks;
1343         the standalone error-printing code can now be used for libc as
1344         well.  Add an flockfile/funlockfile pair around one case where
1345         the error message is printed in several chunks.  Don't use fputc.
1346         * posix/tst-getopt-cancel.c: New test.
1347         * posix/Makefile: Run it.
1348
1349         * posix/getopt.c (_getopt_internal_r): Don't increment
1350         d->optind a second time when reporting ambiguous -W options.
1351
1352         * posix/getopt_int.h: Include getopt.h.
1353         Use impl-namespace names for all arguments to _getopt_internal and
1354         _getopt_internal_r.
1355         Declare __ordering enum outside the struct.
1356         Harmonize comments with gnulib.
1357         * posix/getopt1.c: Simplify #ifdeffage at top of file. Remove
1358         ELIDE_CODE logic entirely.  Move inclusion of stdlib.h to
1359         #ifdef TEST block and make unconditional.  Do not define NULL.
1360         * posix/getopt.c: Partial merge from gnulib, covering the
1361         initial includes and global declarations, commentary, and
1362         a couple of semantically-neutral code changes.
1363
1364         * posix/getopt.c, posix/getopt.h, posix/getopt1.c, posix/getopt_int.h:
1365         Use '...' instead of `...' for quotation marks inside
1366         comments and strings.
1367
1368         * config.h.in (USE_NONOPTION_FLAGS): Remove.
1369         * csu/init-first.c: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
1370         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
1371         * posix/getopt_int.h: Likewise.
1372         * posix/getopt.c: Likewise. Also remove SWAP_FLAGS and the
1373         __libc_argc and __libc_argv externs, which were only used by
1374         #ifdef USE_NONOPTION_FLAGS blocks.
1375         * posix/getopt_init.c: Remove file.
1376         * posix/Makefile (routines): Remove getopt_init.
1377         * include/getopt.h: Don't declare __getopt_initialize_environment.
1378         * manual/getopt.texi: Remove mention of USE_NONOPTION_FLAGS in
1379         a comment.
1380
1381 2017-04-07  Florian Weimer  <fweimer@redhat.com>
1382
1383         * resolv/res_mkquery.c (res_nmkquery): Remove IQUERY support.
1384
1385 2017-04-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1386
1387         * sysdeps/sparc/sparc32/Makefile (libc.so-gnulib): New rule.
1388         * sysdeps/sparc/sparc32/sparcv8/udiv.S (.udiv): Make a strong_alias
1389         to __wrap_.udiv.
1390         * sysdeps/sparc/sparc32/sparcv9/udiv.S (.udiv): Likewise.
1391         * sysdeps/sparc/sparc32/udiv.S (.udiv): Likewise.
1392
1393         * sysdeps/i386/symbol-hacks.h: New file.
1394         * sysdeps/m68k/symbol-hacks.h: New file.
1395         * sysdeps/powerpc/powerpc32/symbol-hacks.h: New file.
1396         * sysdeps/s390/s390-32/symbol-hacks.h: New file.
1397         * sysdeps/unix/sysv/linux/i386/Makefile
1398         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
1399         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1400         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1401         * sysdeps/unix/sysv/linux/m68k/Makefile
1402         [$(subdir) = csu] (sysdep_routines): Likewise.
1403         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1404         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
1406         [$(subdir) = csu] (sysdep_routines): Likewise.
1407         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1408         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1409         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
1410         [$(subdir) = csu] (sysdep_routines): Likewise.
1411         [$(subdir) = csu] (sysdep-only-routines): Likewise.
1412         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1413         * sysdeps/wordsize-32/Makefile: Remove file.
1414         * sysdeps/wordsize-32/symbol-hacks.h: Definitions move to ...
1415         * sysdeps/wordsize-32/divdi3-symbol-hacks.h: ... here.
1416
1417 2017-04-05  H.J. Lu  <hongjiu.lu@intel.com>
1418
1419         * elf/tst-dlopen-aout.c (TEST_FUNCTION): Removed.
1420         (TEST_FUNCTION_ARGV): New.
1421
1422 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1423
1424         * elf/next.c: Import support/test-driver.c instead of
1425         test-skeleton.c and delete TEST_FUNCTION macro definition.
1426         * elf/nodelete.c: Likewise.
1427         * elf/order2.c: Likewise.
1428         * elf/tst-_dl_addr_inside_object.c: Likewise.
1429         * elf/tst-addr1.c: Likewise.
1430         * elf/tst-align.c: Likewise.
1431         * elf/tst-align2.c: Likewise.
1432         * elf/tst-audit11.c: Likewise.
1433         * elf/tst-audit12.c: Likewise.
1434         * elf/tst-audit2.c: Likewise.
1435         * elf/tst-audit9.c: Likewise.
1436         * elf/tst-auxv.c: Likewise and define TEST_FUNCTION_ARGV macro.
1437         * elf/tst-deep1.c: Likewise.
1438         * elf/tst-dl-iter-static.c: Likewise.
1439         * elf/tst-dlmodcount.c: Likewise.
1440         * elf/tst-dlmopen1.c: Likewise.
1441         * elf/tst-dlmopen2.c: Likewise.
1442         * elf/tst-dlmopen3.c: Likewise.
1443         * elf/tst-dlopen-aout.c: Likewise.
1444         * elf/tst-dlopenrpath.c: Likewise.
1445         * elf/tst-dlsym-error.c: Likewise.
1446         * elf/tst-execstack-needed.c: Likewise.
1447         * elf/tst-execstack-prog.c: Likewise.
1448         * elf/tst-execstack.c: Likewise.
1449         * elf/tst-global1.c: Likewise.
1450         * elf/tst-gnu2-tls1.c: Likewise.
1451         * elf/tst-latepthread.c: Likewise.
1452         * elf/tst-leaks1.c: Likewise.
1453         * elf/tst-linkall-static.c: Likewise.
1454         (do_test): New function.
1455         * elf/tst-nodelete-opened.c: Likewise.
1456         * elf/tst-nodelete.cc: Likewise.
1457         * elf/tst-nodelete2.c: Likewise.
1458         * elf/tst-noload.c: Likewise.
1459         * elf/tst-null-argv.c: Likewise and define TEST_FUNCTION_ARGV marcro.
1460         * elf/tst-order-main.c: Likewise.
1461         * elf/tst-pathopt.c: Likewise.
1462         * elf/tst-pie2.c: Likewise.
1463         * elf/tst-piemod1.c: Likewise.
1464         * elf/tst-prelink.c: Likewise.
1465         * elf/tst-protected1a.c: Likewise.
1466         * elf/tst-protected1b.c: Likewise.
1467         * elf/tst-ptrguard1.c: Likewise, import getopt.h,
1468         and define _GNU_SOURCE macro.
1469         (cmdline_process_function): New function.
1470         * elf/tst-relsort1.c: Likewise.
1471         * elf/tst-stackguard1.c: Likewise, import getopt.h,
1472         and define _GNU_SOURCE macro.
1473         (cmdline_process_function): New function.
1474         * elf/tst-thrlock.c: Likewise.
1475         * elf/tst-tls-dlinfo.c: Likewise.
1476         * elf/tst-tls-manydynamic.c: Likewise and import support/xthread.h.
1477         * elf/tst-tls1.c: Likewise.
1478         * elf/tst-tls10.c: Likewise.
1479         * elf/tst-tls11.c: Likewise.
1480         * elf/tst-tls12.c: Likewise.
1481         * elf/tst-tls13.c: Likewise.
1482         * elf/tst-tls14.c: Likewise.
1483         * elf/tst-tls15.c: Likewise.
1484         * elf/tst-tls16.c: Likewise.
1485         * elf/tst-tls17.c: Likewise.
1486         * elf/tst-tls18.c: Likewise.
1487         * elf/tst-tls19.c: Likewise.
1488         * elf/tst-tls2.c: Likewise.
1489         * elf/tst-tls3.c: Likewise.
1490         * elf/tst-tls4.c: Likewise.
1491         * elf/tst-tls5.c: Likewise.
1492         * elf/tst-tls6.c: Likewise.
1493         * elf/tst-tls7.c: Likewise.
1494         * elf/tst-tls8.c: Likewise.
1495         * elf/tst-tls9.c: Likewise.
1496         * elf/tst-tlsalign-extern.c: Likewise.
1497         * elf/tst-tlsalign.c: Likewise.
1498         * elf/tst-unique1.c: Likewise.
1499         * elf/tst-unique2.c: Likewise.
1500         * elf/vismain.c: Likewise.
1501
1502 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1503
1504         * string/test-strnlen.c (do_page_tests): New function
1505         to check length of strings ending at the page boundary.
1506         (test_main): Added call to the do_page_tests function.
1507
1508 2017-04-05  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1509             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1510
1511         * sysdeps/powerpc/powerpc64/multiarch/Makefile
1512         (sysdep_routines): Add strnlen-power8.
1513         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1514         (strnlen): Add __strnlen_power8 to list of strnlen functions.
1515         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: New file.
1516         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c
1517         (__strnlen): Add __strnlen_power8 to ifunc list.
1518         * sysdeps/powerpc/powerpc64/power8/strnlen.S: New file.
1519
1520 2017-04-04  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1521
1522         * wcsmbs/tst-btowc.c: Import support/test-driver.c and remove
1523         the TEST_FUNCTION macro definition.
1524         * wcsmbs/tst-mbrtowc2.c: Likewise.
1525         * wcsmbs/tst-mbsrtowcs.c: Likewise.
1526         * wcsmbs/tst-wchar-h.c: Likewise.
1527         * wcsmbs/tst-wcpncpy.c: Likewise.
1528         * wcsmbs/tst-wcrtomb.c: Likewise.
1529         * wcsmbs/tst-wcsnlen.c: Likewise.
1530         * wcsmbs/tst-wcstof.c: Likewise.
1531
1532 2017-04-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1533
1534         * nptl/pthread_create.c (START_THREAD_DEFN): Remove
1535         CALL_THREAD_FCT macro usage.
1536         * sysdeps/i386/nptl/tls.h (CALL_THREAD_FCT): Remove definition.
1537         * sysdeps/x86_64/nptl/tls.h (CALL_THREAD_FCT): Likewise.
1538         * sysdeps/x86_64/32/nptl/tls.h: Remove file.
1539
1540         * nptl/pthreadP.h (USE_REQUEUE_PI): Remove ununsed macro.
1541         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1542         (__ASSUME_REQUEUE_PI): Likewise.
1543         * sysdeps/unix/sysv/linux/kernel-features.h
1544         (__ASSUME_REQUEUE_PI): Likewise.
1545         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
1546         (__ASSUME_REQUEUE_PI): Likewise.
1547         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1548         (__ASSUME_REQUEUE_PI): Likewise.
1549         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
1550         (__ASSUME_REQUEUE_PI): Likewise.
1551
1552 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1553
1554         * resolv/tst-resolv-canonname.c: New file.
1555         * resolv/Makefile (tests): Add tst-resolv-canonname.
1556         (tst-resolv-canonname): Link with -ldl, -lresolv, -lpthread.
1557
1558 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1559
1560         * include/arpa/nameser.h (__ns_name_ntop, __ns_name_unpack):
1561         Declare.
1562         * resolv/nss_dns/dns-network.c: Include <arpa/nameser.h>.
1563         (NS_MAXCDNAME): Remove definition.
1564         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1565         * resolv/nss_dns/dns-host.c: Include <arpa/nameser.h>.
1566         (NS_MAXCDNAME): Remove definition.
1567         (__ns_name_ntop, __ns_name_unpack): Remove declaration.
1568
1569 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1570
1571         * resolv/nss_dns/dns-network.c (getanswer_r): Remove __dn_expand
1572         call whose result is not used.
1573
1574 2017-04-04  Florian Weimer  <fweimer@redhat.com>
1575
1576         * resolv/tst-ns_name.c, resolv/tst-ns_name.data: New file.
1577         * resolv/Makefile (tests): Add tst-ns_name.
1578         (tst-ns_name): Link with -lresolv.
1579         (tst-ns_name.out): Depend on the input data file.
1580
1581 2017-04-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
1582
1583         * sysdeps/s390/s390-32/tls-macros.h (TLS_LD, TLS_GD):
1584         Clobber also r14.
1585
1586 2017-04-03  Mike Frysinger  <vapier@gentoo.org>
1587
1588         [BZ #21253]
1589         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Increase argv_size
1590         slack space by 32KiB.
1591
1592 2017-04-01  Wladimir van der Laan  <laanwj@gmail.com>
1593
1594         [BZ #21338]
1595         * malloc/malloc.c: Call do_set_arena_max for M_ARENA_MAX
1596         instead of incorrect do_set_arena_test
1597
1598 2017-03-31  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1599
1600         * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
1601         * math/bits/math-finite.h: Likewise.
1602
1603 2017-03-31  Slava Barinov  <v.barinov@samsung.com>
1604
1605         [BZ #21289]
1606         * io/fts.h (fts_set): Replace __REDIRECT with __REDIRECT_NTH.
1607
1608 2017-03-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1609
1610         * sysdeps/unix/sysv/linux/test-errno-linux.c (do_test): Handle
1611         non expected inotify_add_watch and quotactl return.
1612
1613 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1614
1615         * math/e_rem_pio2l.c (__ieee754_rem_pio2l): Change return type
1616         to int32_t.
1617         * sysdeps/generic/math_private.h: Declare __ieee754_rem_pio2l
1618         as returning int32_t.
1619
1620 2017-03-30  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
1621
1622         * math/math.h: Include bits/math-finite.h once per
1623         floating-point type.
1624         * math/bits/math-finite.h: Macroize all declarations by
1625         floating-point type.
1626
1627 2017-03-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1628
1629         [BZ #21182]
1630         * string/test-memchr.c (do_test): Add BZ#21182 checks for address
1631         near end of a page.
1632         * sysdeps/i386/i686/multiarch/memchr-sse2.S (__memchr): Fix
1633         overflow calculation.
1634
1635 2017-03-28  Steve Ellcey  <sellcey@caviumnetworks.com>
1636
1637         * benchtests/bench-memcpy-random.c (TEST_NAME): Change to memcpy.
1638         (IMPL) Call with 1 instead of 0 as argument.
1639
1640 2017-03-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1641
1642         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1643         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1644         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1645         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1646         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1647         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1648         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1649         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1650         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1651         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1652         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1653         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1654         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1655         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1656         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1657         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1658         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1659         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1660         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1661         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1662         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1663         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1664         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1665         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1666         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1667         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1668         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1669         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1670         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1671         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1672         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1673         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1674         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1675         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1676         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1677         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1678         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1679         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1680         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1681         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1682         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1683         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1684         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1685         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1686         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1687         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1688         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1689         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1690         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1691         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1692         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1693         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1694         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1695         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1696         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1697         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1698         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1699         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1700         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1701         defined.
1702         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1703         __NR_setgroups32 if defined.
1704         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1705         if defined.
1706         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1707         __NR_setresgid32 is defined.
1708         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1709         __NR_setresuid32 if defined.
1710         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1711         __NR_setreuid32 if defined.
1712         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1713         defined.
1714         * sysdeps/unix/sysv/linux/arm/setegid.c: Remove file.
1715         * sysdeps/unix/sysv/linux/arm/seteuid.c: Likewise.
1716         * sysdeps/unix/sysv/linux/arm/setgid.c: Likewise.
1717         * sysdeps/unix/sysv/linux/arm/setgroups.c: Likewise.
1718         * sysdeps/unix/sysv/linux/arm/setregid.c: Likewise.
1719         * sysdeps/unix/sysv/linux/arm/setresgid.c: Likewise.
1720         * sysdeps/unix/sysv/linux/arm/setresuid.c: Likewise.
1721         * sysdeps/unix/sysv/linux/arm/setreuid.c: Likewise.
1722         * sysdeps/unix/sysv/linux/arm/setuid.c: Likewise.
1723         * sysdeps/unix/sysv/linux/i386/setegid.c: Likewise.
1724         * sysdeps/unix/sysv/linux/i386/seteuid.c: Likewise.
1725         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
1726         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1727         * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise.
1728         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
1729         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
1730         * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise.
1731         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
1732         * sysdeps/unix/sysv/linux/m68k/setegid.c: Likewise.
1733         * sysdeps/unix/sysv/linux/m68k/seteuid.c: Likewise.
1734         * sysdeps/unix/sysv/linux/m68k/setgid.c: Likewise.
1735         * sysdeps/unix/sysv/linux/m68k/setgroups.c: Likewise.
1736         * sysdeps/unix/sysv/linux/m68k/setregid.c: Likewise.
1737         * sysdeps/unix/sysv/linux/m68k/setresgid.c: Likewise.
1738         * sysdeps/unix/sysv/linux/m68k/setresuid.c: Likewise.
1739         * sysdeps/unix/sysv/linux/m68k/setreuid.c: Likewise.
1740         * sysdeps/unix/sysv/linux/m68k/setuid.c: Likewise.
1741         * sysdeps/unix/sysv/linux/microblaze/setgroups.c: Likewise.
1742         * sysdeps/unix/sysv/linux/s390/s390-32/setegid.c: Likewise.
1743         * sysdeps/unix/sysv/linux/s390/s390-32/seteuid.c: Likewise.
1744         * sysdeps/unix/sysv/linux/s390/s390-32/setgid.c: Likewise.
1745         * sysdeps/unix/sysv/linux/s390/s390-32/setgroups.c: Likewise.
1746         * sysdeps/unix/sysv/linux/s390/s390-32/setregid.c: Likewise.
1747         * sysdeps/unix/sysv/linux/s390/s390-32/setresgid.c: Likewise.
1748         * sysdeps/unix/sysv/linux/s390/s390-32/setresuid.c: Likewise.
1749         * sysdeps/unix/sysv/linux/s390/s390-32/setreuid.c: Likewise.
1750         * sysdeps/unix/sysv/linux/s390/s390-32/setuid.c: Likewise.
1751         * sysdeps/unix/sysv/linux/sh/setegid.c: Likewise.
1752         * sysdeps/unix/sysv/linux/sh/seteuid.c: Likewise.
1753         * sysdeps/unix/sysv/linux/sh/setgid.c: Likewise.
1754         * sysdeps/unix/sysv/linux/sh/setgroups.c: Likewise.
1755         * sysdeps/unix/sysv/linux/sh/setregid.c: Likewise.
1756         * sysdeps/unix/sysv/linux/sh/setresgid.c: Likewise.
1757         * sysdeps/unix/sysv/linux/sh/setresuid.c: Likewise.
1758         * sysdeps/unix/sysv/linux/sh/setreuid.c: Likewise.
1759         * sysdeps/unix/sysv/linux/sh/setuid.c: Likewise.
1760         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: Likewise.
1761         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: Likewise.
1762         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: Likewise.
1763         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: Likewise.
1764         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: Likewise.
1765         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: Likewise.
1766         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: Likewise.
1767         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: Likewise.
1768         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: Likewise.
1769         * sysdeps/unix/sysv/linux/setegid.c (setegid): Use
1770         INLINE_SYSCALL_ERROR_RETURN_VALUE.
1771         * sysdeps/unix/sysv/linux/seteuid.c (seteuid): Likewise.
1772         * sysdeps/unix/sysv/linux/setgid.c (setgid): Use __NR_setgid32 if
1773         defined.
1774         * sysdeps/unix/sysv/linux/setgroups.c (setgroups): Use
1775         __NR_setgroups32 if defined.
1776         * sysdeps/unix/sysv/linux/setregid.c (__setregid): Use __NR_setregid32
1777         if defined.
1778         * sysdeps/unix/sysv/linux/setresgid.c (__setresgid): Use
1779         __NR_setresgid32 is defined.
1780         * sysdeps/unix/sysv/linux/setresuid.c (__setresuid): Use
1781         __NR_setresuid32 if defined.
1782         * sysdeps/unix/sysv/linux/setreuid.c (__setreuid): Use
1783         __NR_setreuid32 if defined.
1784         * sysdeps/unix/sysv/linux/setuid.c (__setuid): Use __NR_setuid32 if
1785         defined.
1786
1787 2017-03-27  Joseph Myers  <joseph@codesourcery.com>
1788
1789         [BZ #21277]
1790         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IUCLC): Define
1791         unconditionally.
1792         (IMAXBEL): Likewise.
1793         (IUTF8): Likewise.
1794
1795 2017-03-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1796
1797         * sysdeps/aarch64/libm-test-ulps: Update.
1798
1799 2017-03-24  Sunyeop Lee  <sunyeop97@gmail.com>
1800
1801         * README.tunables: Updated descriptions.
1802         * elf/dl-tunables.list: Fixed typo: SXID_NONE -> NONE.
1803         * scripts/gen-tunables.awk: Updated the code related to the
1804         commit.
1805
1806 2017-03-23  Wilco Dijkstra  <wdijkstr@arm.com>
1807
1808         * benchtests/Makefile (string-benchset): Add memcpy-random.
1809         * benchtests/bench-memcpy-random.c: New file.
1810
1811 2017-03-23  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1812
1813         * stdio-common/printf.h (register_printf_modifier): Change the
1814         order of __wur and __THROW.
1815         (register_printf_type): Likewise.
1816
1817 2017-03-23  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
1818
1819         * string/test-string.h (TEST_FUNCTION): Use test_main instead of
1820         test_main ().
1821         (CMDLINE_PROCESS): Use function instead of defined macro.
1822         * debug/test-strcpy_chk.c: Import support/test-driver.c and also
1823         <suppport/support.h> to use set_fortify_handler().
1824         * string/bug-envz1.c: Import support/test-driver.c instead of
1825         test-skeleton.c.
1826         * string/bug-strcoll2.c: Likewise.
1827         * string/bug-strtok1.c: Likewise.
1828         * string/stratcliff.c: Likewise.
1829         * string/test-ffs.c: Likewise.
1830         * string/test-memccpy.c: Likewise.
1831         * string/test-memchr.c: Likewise.
1832         * string/test-memcmp.c: Likewise.
1833         * string/test-memcpy.c: Likewise.
1834         * string/test-memmem.c: Likewise.
1835         * string/test-memmove.c: Likewise.
1836         * string/test-memrchr.c: Likewise.
1837         * string/test-memset.c: Likewise.
1838         * string/test-rawmemchr.c: Likewise.
1839         * string/test-strcasecmp.c: Likewise.
1840         * string/test-strcasestr.c: Likewise.
1841         * string/test-strcat.c: Likewise.
1842         * string/test-strchr.c: Likewise.
1843         * string/test-strcmp.c: Likewise.
1844         * string/test-strcpy.c: Likewise.
1845         * string/test-string.h: Likewise.
1846         * string/test-strlen.c: Likewise.
1847         * string/test-strncasecmp.c: Likewise.
1848         * string/test-strncat.c: Likewise.
1849         * string/test-strncmp.c: Likewise.
1850         * string/test-strncpy.c: Likewise.
1851         * string/test-strnlen.c: Likewise.
1852         * string/test-strpbrk.c: Likewise.
1853         * string/test-strrchr.c: Likewise.
1854         * string/test-strspn.c: Likewise.
1855         * string/test-strstr.c: Likewise.
1856         * string/tst-bswap.c: Likewise.
1857         * string/tst-cmp.c: Likewise.
1858         * string/tst-endian.c: Likewise.
1859         * string/tst-inlcall.c: Likewise.
1860         * string/tst-strcoll-overflow.c: Likewise.
1861         * string/tst-strfry.c: Likewise.
1862         * string/tst-strlen.c: Likewise.
1863         * string/tst-strtok.c: Likewise.
1864         * string/tst-strtok_r.c: Likewise.
1865         * string/tst-strxfrm.c: Likewise.
1866         * string/tst-strxfrm2.c: Likewise.
1867         * string/tst-svc.c: Likewise.
1868         * string/tst-svc2.c: Likewise.
1869
1870 2017-03-22  Zack Weinberg  <zackw@panix.com>
1871
1872         * stdio-common/bug25.c: Include stdlib.h.
1873         * support/tst-support_format_dns_packet.c: Include stdio.h,
1874         stdlib.h, and string.h.
1875         * support/tst-support_record_failure.c: Include string.h.
1876         * support/tst-support_record_failure-2.sh: Adjust line number
1877         expectations and correct a typo in an error message.
1878
1879 2017-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1880
1881         [BZ #21258]
1882         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve_opt):
1883         Define only if _dl_runtime_resolve is defined to
1884         _dl_runtime_resolve_sse_vex.
1885         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_opt):
1886         Fallthrough to _dl_runtime_resolve_sse_vex.
1887
1888 2017-03-21  Joseph Myers  <joseph@codesourcery.com>
1889
1890         * INSTALL: Regenerated.
1891
1892 2017-03-21  Thorsten Kukuk  <kukuk@suse.com>
1893
1894         * config.h.in: Add LINK_OBSOLETE_NSL.
1895         * config.make.in: Add build-obsolete-nsl.
1896         * configure.ac: Add obsolete-nsl option.
1897         * include/libc-symbols.h: Define libnsl_hidden_nolink_def.
1898         * include/rpcsvc/yp.h: Add missing functions as libnsl_hidden_proto.
1899         * include/rpcsvc/nislib.h: Likewise.
1900         * include/rpcsvc/ypclnt.h: Likewise.
1901         * manual/install.texi: Document --enable-obsolete-nsl.
1902         * nis/Makefile: Build only libnsl by default (add build-obsolete-nsl).
1903         * nis/nis_add.c: Replace libnsl_hidden_def with
1904         libnsl_hidden_nolink_def.
1905         * nis/nis_addmember.c: Likewise.
1906         * nis/nis_call.c: Likewise.
1907         * nis/nis_clone_obj.c: Likewise.
1908         * nis/nis_defaults.c: Likeise.
1909         * nis/nis_domain_of_r.c: Likewise.
1910         * nis/nis_error.c: Likewise.
1911         * nis/nis_file.c: Likewise.
1912         * nis/nis_free.c: Likewise.
1913         * nis_local_names.c: Likewise.
1914         * nis/nis_lookup.c: Likewise.
1915         * nis/nis_modify.c: Likewise.
1916         * nis/nis_print.c: Likewise.
1917         * nis/nis_remove.c: Likewise.
1918         * nis/nis_table.c: Likewise.
1919         * nis/nis_util.c: Likewise.
1920         * nis/nis_xdr.c: Likewise.
1921         * nis/yp_xdr.c: Likewise.
1922         * nis/ypclnt.c: Likewise.
1923         * nis/ypupdate_xdr.c: Likewise.
1924         * nis/nis_checkpoint.c: Add libnsl_hidden_nolink_def to all functions.
1925         * nis/nis_clone_dir.c: Likewise.
1926         * nis/nis_clone_res.c: Likewise.
1927         * nis/nis_creategroup.c: Likewise.
1928         * nis/nis_destroygroup.c: Likewise.
1929         * nis/nis_domain_of.c: Likewise.
1930         * nis/nis_getservlist.c: Likewise.
1931         * nis/nis_ismember.c: Likewise.
1932         * nis/nis_mkdir.c: Likewise.
1933         * nis/nis_ping.c: Likewise.
1934         * nis/nis_print_group_entry.c: Likewise.
1935         * nis/nis_removemember.c: Likewise.
1936         * nis/nis_rmdir.c: Likewise.
1937         * nis/nis_server.c: Likewise.
1938         * nis/nis_subr.c: Likewise.
1939         * nis/nis_verifygroup.c: Likewise.
1940
1941 2017-03-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
1942
1943         * malloc/tst-interpose-aux.c (check_for_allocations):
1944         Move compiler barrier before free.
1945
1946 2017-03-20  Joseph Myers  <joseph@codesourcery.com>
1947
1948         [BZ #21279]
1949         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1950         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1951         * conform/data/mqueue.h-data (mq_attr.mq_flags): XFAIL for
1952         x86_64-x32-linux.
1953         (mq_attr.mq_maxmsg): Likewise.
1954         (mq_attr.mq_msgsize): Likewise.
1955         (mq_attr.mq_curmsgs): Likewise.
1956
1957         [BZ #21278]
1958         * sysdeps/unix/sysv/linux/mips/mips32/Makefile
1959         [$(subdir) = conform] (conformtest-xfail-conds): Update comment.
1960         * conform/data/sys/stat.h-data (stat.st_rdev): XFAIL for
1961         mips-o32-linux.
1962
1963         [BZ #21268]
1964         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (NL2): Define only
1965         if [__USE_MISC]
1966         (NL3): Likewise.
1967
1968 2017-03-20  Mike Frysinger  <vapier@gentoo.org>
1969
1970         [BZ #21275]
1971         * sysdeps/unix/sysv/linux/spawni.c [__ia64__] (CLONE): Rename
1972         __stack to __stackbase.
1973         (STACK): Invert _STACK_GROWS_DOWN and _STACK_GROWS_UP order of
1974         checks so we can include defined(__ia64__) first.
1975
1976 2017-03-19  Christian Brauner  <christian.brauner@ubuntu.com>
1977
1978         * sysdeps/unix/sysv/linux/ttyname.h: New file.
1979         * sysdeps/unix/sysv/linux/ttyname.c: Include "ttyname.h".
1980         (ttyname) [!_STATBUF_ST_RDEV]: Make code unconditional.
1981         Call is_pty when the link does not exist or does not match, fail
1982         with ENODEV when it returns true.
1983         * sysdeps/unix/sysv/linux/ttyname_r.c: Include "ttyname.h".
1984         (__ttyname_r) [!_STATBUF_ST_RDEV]: Make code unconditional.
1985         Call is_pty when the link does not exist or does not match, fail
1986         with ENODEV when it returns true.
1987
1988 2017-03-18  Joseph Myers  <joseph@codesourcery.com>
1989
1990         [BZ #16437]
1991         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile
1992         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
1993         * conform/data/signal.h-data (timespec.tv_nsec): XFAIL for
1994         x86_64-x32-linux.
1995         * conform/data/sys/select.h-data (timespec.tv_nsec): Likewise.
1996         * conform/data/sys/stat.h-data (timespec.tv_nsec): Likewise.
1997         * conform/data/time.h-data (timespec.tv_nsec): Likewise.
1998
1999         [BZ #21261]
2000         * sysdeps/unix/sysv/linux/sparc/bits/setjmp.h
2001         [__WORDSIZE == 64 && !_ASM] (__sparc64_jmp_buf): Use reserved
2002         names for all fields.
2003         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Update
2004         for jmp_buf field renaming.
2005         (_JMPBUF_UNWINDS_ADJ): Likewise.
2006
2007         * conform/conformtest.pl: Handle xfail[cond]- in header mentioned
2008         with allow-header.
2009
2010 2017-03-17  Chris Evans  <scarybeasts@gmail.com>
2011
2012         * malloc/malloc.c (unlink): Add consistency check between size and
2013         next->prev->size, to further harden against 1-byte overflows.
2014
2015 2017-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2016
2017         * sysdeps/x86/cpu-features.c (init_cpu_features): Check AVX with
2018         CPU_FEATURES_CPU_P.
2019
2020 2017-03-17  Joseph Myers  <joseph@codesourcery.com>
2021
2022         [BZ #21259]
2023         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (IXANY): Define
2024         unconditionally, not just for [__USE_MISC].
2025
2026         [BZ #17786]
2027         * sysdeps/unix/sysv/linux/mips/mips32/Makefile: New file.
2028         * conform/data/sys/stat.h-data (stat.st_dev): XFAIL for
2029         mips-o32-linux.
2030
2031         [BZ #21260]
2032         * sysdeps/unix/sysv/linux/alpha/Makefile
2033         [$(subdir) = conform] (conformtest-xfail-conds): New variable.
2034         * conform/data/netdb.h-data (netent.n_net): XFAIL for alpha-linux.
2035
2036         * conform/conformtest.pl ($cross): New variable.
2037         (--cross): New command-line option.
2038         (runtest): Skip test execution when cross-compiling.
2039         * conform/Makefile (conformtest-cross): New variable.
2040         ($(conformtest-header-tests)): Pass $(conformtest-cross) to
2041         conformtest.pl.
2042
2043         * conform/conformtest.pl ($xfail_str): New variable.
2044         (--xfail=): New command-line option.
2045         (top level): Handle expectations starting xfail[cond]-.
2046         * conform/Makefile (conformtest-xfail): New variable.
2047         ($(conformtest-header-tests)): Pass $(conformtest-xfail) to
2048         conformtest.pl.
2049
2050 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
2051
2052         * conform/conformtest.pl: Use compilation instead of execution
2053         tests for testing values of constants and usability in #if.
2054
2055 2017-03-16  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2056
2057         * math/auto-libm-test-in: Mark some catan and catanh as
2058         xfail-rounding:ibm128-libgcc.
2059         * math/auto-libm-test-out-catan: Regenerate.
2060         * math/auto-libm-test-out-catanh: Likewise.
2061
2062 2017-03-16  Joseph Myers  <joseph@codesourcery.com>
2063
2064         * misc/sys/cdefs.h (__BEGIN_NAMESPACE_STD): Remove macro.
2065         (__END_NAMESPACE_STD): Likewise.
2066         (__USING_NAMESPACE_STD): Likewise.
2067         (__BEGIN_NAMESPACE_C99): Likewise.
2068         (__END_NAMESPACE_C99): Likewise.
2069         (__USING_NAMESPACE_C99): Likewise.
2070         * math/math.h (_Mdouble_BEGIN_NAMESPACE): Do not define and
2071         undefine macro.
2072         (_Mdouble_END_NAMESPACE): Likewise.
2073         * ctype/ctype.h: Do not handle C++ namespaces.
2074         * libio/bits/stdio-ldbl.h: Likewise.
2075         * libio/stdio.h: Likewise.
2076         * locale/locale.h: Likewise.
2077         * math/bits/mathcalls.h: Likewise.
2078         * setjmp/setjmp.h: Likewise.
2079         * signal/signal.h: Likewise.
2080         * stdlib/bits/stdlib-float.h: Likewise.
2081         * stdlib/bits/stdlib-ldbl.h: Likewise.
2082         * stdlib/stdlib.h: Likewise.
2083         * string/string.h: Likewise.
2084         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
2085         * time/bits/types/clock_t.h: Likewise.
2086         * time/bits/types/struct_tm.h: Likewise.
2087         * time/bits/types/time_t.h: Likewise.
2088         * time/time.h: Likewise.
2089         * wcsmbs/bits/wchar-ldbl.h: Likewise.
2090         * wcsmbs/uchar.h: Likewise.
2091         * wcsmbs/wchar.h: Likewise.
2092         [_GLIBCPP_USE_NAMESPACES] (wint_t): Remove conditional definition.
2093         * wctype/wctype.h: Do not handle C++ namespaces.
2094         * scripts/begin-end-check.pl: Remove.
2095         * Makefile (installed-headers): Likewise.
2096         (tests-special): Do not add $(objpfx)begin-end-check.out.
2097         ($(objpfx)begin-end-check.out): Remove.
2098
2099 2017-03-15  Steve Ellcey  <sellcey@caviumnetworks.com>
2100             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2101
2102         * sysdeps/aarch64/dl-machine.h: Include cpu-features.c.
2103         (DL_PLATFORM_INIT): New define.
2104         (dl_platform_init): New function.
2105         * sysdeps/aarch64/ldsodefs.h: Include cpu-features.h.
2106         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: New file.
2107         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h: Likewise.
2108         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c: Likewise.
2109         * sysdeps/unix/sysv/linux/aarch64/libc-start.c: Likewise.
2110
2111 2017-03-15  Mike Frysinger  <vapier@gentoo.org>
2112
2113         * sysdeps/x86_64/mempcpy_chk.S (__mempcpy_chk): Check for SHARED
2114         instead of PIC.
2115
2116 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
2117
2118         [BZ #21094]
2119         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
2120         24+24+24-bit pi for wider range of values around pi/2.
2121         * math/auto-libm-test-in: Add more tests of cos and tan.
2122         * math/auto-libm-test-out-cos: Regenerated.
2123         * math/auto-libm-test-out-tan: Likewise.
2124
2125 2017-03-15  John David Anglin  <danglin@gcc.gnu.org>
2126
2127         * sysdeps/hppa/dl-machine.h (DL_STACK_END): Define.
2128         (RTLD_START): Don't record stack end address in _dl_start_user.
2129
2130 2017-03-15  Alexey Neyman  <stilor@att.net>
2131
2132         [BZ #21088]
2133         * nss/nsswitch.c (nscd_init_cb, is_nscd): Make the #if check
2134         around definitions match those around use.
2135
2136 2017-03-15  Alexey Neyman  <stilor@att.net>
2137
2138         * configure.ac: Avoid empty subexpression in grep.
2139         * configure: Regenerate.
2140
2141 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2142
2143         * posix/test-errno.c (do_test): Initialize setsockopt optlen.
2144         * sysdeps/unix/sysv/linux/test-errno.c: Move to ...
2145         * sysdeps/unix/sysv/linux/test-errno-linux.c: ... here.
2146         (test_wrp_rv): Fix format.
2147         (test_wrp_rv2): New macro.
2148         (do_test): Handle mlock return on 64 bits kernels with 32 bits
2149         binaries.
2150
2151 2017-03-15  Joseph Myers  <joseph@codesourcery.com>
2152
2153         * sysdeps/x86/fpu/test-math-vector-sincos.h (INIT_VEC_PTRS_LOOP):
2154         Use a union when storing pointers.
2155         (VECTOR_WRAPPER_fFF_2): Do not take address of integer vector and
2156         cast result when passing to INIT_VEC_PTRS_LOOP.
2157         (VECTOR_WRAPPER_fFF_3): Likewise.
2158         (VECTOR_WRAPPER_fFF_4): Likewise.
2159
2160 2017-03-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2161
2162         * include/bits/mathcalls-helper-functions.h: New file.
2163         * math/Makefile (headers): Add bits/mathcalls-helper-functions.h.
2164         * math/bits/mathcalls.h (__finite, __fpclassify, __iseqsig)
2165         (__isinf, __isnan, __issignaling, __signbit): Move declarations to
2166         math/bits/mathcalls-helper-functions.h.
2167         * math/bits/mathcalls-helper-functions.h: New file.
2168         * math/math.h: Include bits/mathcalls-helper-functions.h for
2169         float, double, and long double.
2170
2171 2017-03-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2172
2173         * math/s_iseqsig_template.c (__iseqsig): Use __feraiseexcept
2174         instead of feraiseexcept.
2175
2176 2017-03-15  Florian Weimer  <fweimer@redhat.com>
2177
2178         [BZ #21243]
2179         * support/temp_file.c (support_delete_temp_files): Add comment
2180         about ignored errors.
2181
2182 2017-03-15  Florian Weimer  <fweimer@redhat.com>
2183
2184         [BZ #21244]
2185         * support/xclose.c: New file.
2186         * support/Makefile (libsupport-routines): Add xclose.
2187         * support/xunistd.h (xclose): Declare.
2188         * support/resolv_test.c (server_thread_tcp_client)
2189         (server_thread_tcp, make_server_sockets, resolv_test_start)
2190         (resolv_test_end): Call xclose instead of close.
2191         * support/support_enter_network_namespace.c
2192         (support_enter_network_namespace): Likewise.
2193         * support/support_run_diff.c (write_to_temp_file): Likewise.
2194
2195 2017-03-15  Florian Weimer  <fweimer@redhat.com>
2196
2197         * support/support_format_dns_packet.c (support_format_dns_packet):
2198         Handle CNAME records in the response.  Extract RDATA names from
2199         rdata, not the whole packet.  Check AAAA record length.
2200         * support/tst-support_format_dns_packet.c: New file.
2201         * support/Makefile (tests): Add tst-support_format_dns_packet.
2202         (tst-support_format_dns_packet): Link against libresolv.
2203
2204 2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2205
2206         [BZ #21232]
2207         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
2208         posix_fadvise64 weak_alias for static build.
2209
2210 2017-03-14  Andreas Schwab  <schwab@suse.de>
2211
2212         * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
2213         * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
2214         (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
2215         * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
2216         * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
2217         (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
2218         * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
2219         * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
2220
2221 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2222
2223         * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
2224         posix error code.
2225         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
2226
2227 2017-03-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2228
2229         * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
2230         no_isolate usage for SH.
2231
2232 2017-03-13  Wilco Dijkstra  <wdijkstr@arm.com>
2233
2234         [BZ #15105]
2235         [BZ #19463]
2236         * elf/dl-cache.c (_dl_load_cache_lookup): Use __strdup.
2237         * inet/rcmd.c (rcmd_af): Likewise.
2238         * inet/rexec.c   (rexec_af): Likewise.
2239         * intl/dcigettext.c (_LIBC): Likewise.
2240         * intl/finddomain.c (_nl_find_domain): Use strdup expansion.
2241         * locale/loadarchive.c (_nl_load_locale_from_archive): Use __strdup.
2242         * locale/setlocale.c (setlocale): Likewise.
2243         * posix/spawn_faction_addopen.c
2244         (posix_spawn_file_actions_addopen): Likewise.
2245         * stdlib/putenv.c (putenv): Use __strndup.
2246         * sunrpc/svc_simple.c (__registerrpc): Use __strdup.
2247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Use __strdup/__strndup.
2248         * include/stdlib.h (__need_malloc_and_calloc): Remove uses.
2249         (__Need_M_And_C) Remove define/undef.
2250         * stdlib/stdlib.h (__need_malloc_and_calloc): Remove uses.
2251         (__malloc_and_calloc_defined): Remove define.
2252         * string/bits/string2.h (__strdup): Remove define.
2253         (strdup): Likewise.
2254         (__strndup): Likewise.
2255         (strndup): Likewise.
2256
2257 2017-03-13  Joseph Myers  <joseph@codesourcery.com>
2258
2259         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_AUTOFLOWLABEL): New
2260         macro.
2261         (IPV6_ADDR_PREFERENCES): Likewise.
2262         (IPV6_MINHOPCOUNT): Likewise.
2263         (IPV6_ORIGDSTADDR): Likewise.
2264         (IPV6_RECVORIGDSTADDR): Likewise.
2265         (IPV6_TRANSPARENT): Likewise.
2266         (IPV6_UNICAST_IF): Likewise.
2267         (IPV6_RECVFRAGSIZE): Likewise.
2268
2269 2017-03-13  Thorsten Kukuk  <kukuk@suse.com>
2270
2271         * sunrpc/Makefile: only run rpcgen tests if we build rpcgen.
2272
2273 2017-03-12  Alexey Neyman <stilor@att.net>
2274
2275         * sysdeps/sh/dl-machine.h (elf_machine_rela): The condition
2276         in R_SH_DIR32 case is always false when inlined from
2277         dl-conflict.c. Ifdef out to prevent GCC from insertin an
2278
2279 2016-03-12  Marko Myllynen  <myllynen@redhat.com>
2280
2281         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2282         (__ASSUME_RECV_SYSCALL): Replace duplicate by
2283         __ASSUME_SEND_SYSCALL.
2284
2285 2017-03-11  Thorsten Kukuk  <kukuk@suse.com>
2286
2287         * sunrpc/Makefile: don't build and install rpcsvc header
2288         files, rpcgen and librpcsvc.a by default.
2289
2290 2017-03-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
2291
2292         * math/auto-libm-test-out-catan: Regenerated.
2293         * math/auto-libm-test-out-catanh: Likewise.
2294         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2295
2296 2017-03-09  Joseph Myers  <joseph@codesourcery.com>
2297
2298         * sysdeps/mips/mips64/libm-test-ulps: Update catan and catanh ulps
2299         for long double with corrected test expectations.
2300
2301 2016-03-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2302
2303         * sysdeps/unix/sysv/linux/sysdep.h (HAVE_INTERNAL_SEND_SYMBOL):
2304         Define.
2305         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
2306         (HAVE_INTERNAL_SEND_SYMBOL): Undefine.
2307         * sysdeps/unix/sysv/linux/nios2/sysdep.h
2308         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2309         * sysdeps/unix/sysv/linux/tile/sysdep.h
2310         (HAVE_INTERNAL_SEND_SYMBOL): Likewise.
2311         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2312         (__ASSUME_RECV_SYSCALL): Define.
2313         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2314         (__ASSUME_RECV_SYSCALL): Likewise.
2315         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2316         (__ASSUME_RECV_SYSCALL): Likewise.
2317         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2318         (__ASSUME_RECV_SYSCALL): Likewise.
2319         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2320         (__ASSUME_RECV_SYSCALL): Likewise.
2321         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2322         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Remove define.
2323         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2324         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2325         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2326         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
2327         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove send from
2328         auto-generation list.
2329         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2330         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2331         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewike.
2332         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2333         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2334         * sysdeps/unix/sysv/linux/send.c: Simplify includes.
2335         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Replace by
2336         __ASSUME_SENDTO_SYSCALL.
2337         * sysdeps/unix/sysv/linux/x86_64/send.c: Remove file.
2338         * sysdeps/unix/sysv/linux/mips/mips64/send.c: Likewise.
2339         * sysdeps/unix/sysv/linux/generic/send.c: Likewise.
2340
2341         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove sendto from
2342         auto-generation list.
2343         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2344         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2345         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2346         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2347         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2348         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2349         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2350         * sysdeps/unix/sysv/linux/kernel-features.h
2351         (__ASSUME_SENDTO_SYSCALL): Define by default.
2352         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2353         (__ASSUME_SENDTO_SYSCALL): Undef it is kernel does not support
2354         __NR_sendto.
2355         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2356         (__ASSUME_SENDTO_SYSCALL): Likewise.
2357         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2358         (__ASSUME_SENDTO_SYSCALL): Likewise.
2359         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2360         (__ASSUME_SENDTO_SYSCALL): Remove definition.
2361         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2362         (__ASSUME_SENDTO_SYSCALL): Likewise.
2363         * sysdeps/unix/sysv/linux/sh/kernel-features.h:
2364         (__ASSUME_SENDTO_SYSCALL): Likewise.
2365         * sysdeps/unix/sysv/linux/sendto.c: Simplify includes.
2366
2367         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recv from
2368         auto-generation list.
2369         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2370         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2371         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2372         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2373         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2374         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2375         (__ASSUME_RECV_SYSCALL): New define.
2376         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2377         (__ASSUME_RECV_SYSCALL): Likewise.
2378         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2379         (__ASSUME_RECV_SYSCALL): Likewise.
2380         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2381         (__ASSUME_RECV_SYSCALL): Likewise.
2382         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2383         (__ASSUME_RECV_SYSCALL): Likewise.
2384         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2385         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2386         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2387         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2388         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2389         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Remove define.
2390         * sysdeps/unix/sysv/linux/generic/recv.c: Remove file.
2391         * sysdeps/unix/sysv/linux/mips/mips64/recv.c: Likewise.
2392         * sysdeps/unix/sysv/linux/x86_64/recv.c: Likewise.
2393         * sysdeps/unix/sysv/linux/recv.c: Simplify includes.
2394         (__libc_recv): Use __ASSUME_RECVFROM_SYSCALL instead of
2395         __ASSUME_RECVFROM_FOR_RECV_SYSCALL to issue recvfrom syscall.
2396
2397         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove recvfrom from
2398         auto-generation list.
2399         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2400         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2401         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2402         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2403         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2404         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2405         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2406         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2407         (__ASSUME_RECVFROM_SYSCALL): Define by default.
2408         * sysdeps/unix/sysv/linux/kernel-features.h
2409         (__ASSUME_RECVFROM_SYSCALL): Undef it if kernel does not support
2410         __NR_recvfrom.
2411         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2412         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2413         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2414         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2415         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2416         (__ASSUME_RECVFROM_SYSCALL): Remove definition.
2417         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2418         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2419         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2420         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2421         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2422         (__ASSUME_RECVFROM_SYSCALL): Likewise.
2423         * sysdeps/unix/sysv/linux/recvfrom.c: Simplify includes.
2424
2425         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove connect from
2426         auto-generation list.
2427         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2428         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2429         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2430         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2431         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2432         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2433         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2434         * sysdeps/unix/sysv/linux/connect.c: Simplify include list.
2435         * sysdeps/unix/sysv/linux/kernel-features.h
2436         (__ASSUME_CONNECT_SYSCALL): Define.
2437         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2438         (__ASSUME_CONNECT_SYSCALL): Undef if kernel does not support it.
2439         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2440         (__ASSUME_CONNECT_SYSCALL): Likewise.
2441         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2442         (__ASSUME_CONNECT_SYSCALL): Likewise.
2443         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2444         (__ASSUME_CONNECT_SYSCALL): Likewise.
2445
2446         * sysdeps/unix/sysv/linux/accept.c (__libc_accept): Replace
2447         __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL by __ASSUME_ACCEPT4_SYSCALL.
2448         * sysdeps/unix/sysv/linux/alpha/syscalls.list?: Remove accept from
2449         auto-generation list.
2450         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
2451         * sysdeps/unix/sysv/linux/generic/syscalls.list: Likewise.
2452         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
2453         * sysdeps/unix/sysv/linux/ia64/syscalls.list: Likewise.
2454         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
2455         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Likewise.
2456         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
2457         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2458         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2459         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2460         * sysdeps/unix/sysv/linux/kernel-features.h
2461         (__ASSUME_ACCEPT_SYSCALL): New define.
2462         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2463         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2464         (__ASSUME_ACCEPT_SYSCALL): Define wheter kernel version supports.
2465         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2466         (__ASSUME_ACCEPT_SYSCALL): Define.
2467         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2468         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2469         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2470         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Remove define.
2471         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2472         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2473         (__ASSUME_ACCEPT_SYSCALL): Undefine.
2474         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2475         (__ASSUME_ACCEPT_SYSCALL): Undefine for 32 bits.
2476
2477 2017-03-08  Yury Norov <ynorov@caviumnetworks.com>
2478             Zack Weinberg  <zackw@panix.com>
2479
2480         * posix/test-errno.c: New file.
2481         * posix/Makefile (tests): Add test-errno.
2482         * sysdeps/unix/sysv/linux/test-errno.c: New file.
2483         * sysdeps/unix/sysv/linux/Makefile (tests): Add test-errno.
2484
2485 2017-03-08  Stefan Liebler  <stli@linux.vnet.ibm.com>
2486
2487         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2488
2489 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2490
2491         * time/tzset.c (compute_offset): Open-code min macro.
2492         (min, max, sign): Remove.
2493
2494 2017-03-07  Florian Weimer  <fweimer@redhat.com>
2495
2496         [BZ #15576]
2497         Remove TZNAME_MAX limit from sysconf.
2498         * include/time.h (__tzname_cur_max, __tzname_max): Remove
2499         declaration.
2500         * time/tzfile.c (__tzfile_read, __tzfile_default): Do not call
2501         compute_tzname_max.
2502         (compute_tzname_max): Remove.
2503         * time/tzset.c (__tzname_cur_max, __tzname_max): Remove.
2504         (update_vars): Do not update __tzname_cur_max.
2505         (tzset_internal): Remove argument.
2506         (__tzset): Adjust call to tzset_internal.
2507         (__tz_convert): Likewise.
2508
2509         * posix/sysconf.c (__sysconf): Return -1 for _SC_TZNAME_MAX.
2510         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
2511         * manual/conf.texi (Sysconf Definition): Update comment.
2512
2513 2017-03-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2514
2515         [BZ #21209]
2516         * elf/rtld.c (process_envvars): Ignore LD_HWCAP_MASK for
2517         AT_SECURE processes.
2518         * sysdeps/generic/unsecvars.h: Add LD_HWCAP_MASK.
2519         * elf/tst-env-setuid.c (test_parent): Test LD_HWCAP_MASK.
2520         (test_child): Likewise.
2521         * elf/Makefile (tst-env-setuid-ENV): Add LD_HWCAP_MASK.
2522
2523 2017-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2524
2525         * sysdeps/unix/sysv/linux/hppa/ipc_priv.h: New file.
2526
2527 2017-03-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2528
2529         * sysdeps/s390/atomic-machine.h
2530         (USE_ATOMIC_COMPILER_BUILTINS): Define to 1.
2531         (__arch_compare_and_exchange_val_8_acq,
2532         __arch_compare_and_exchange_val_16_acq,
2533         __arch_compare_and_exchange_val_32_acq,
2534         __arch_compare_and_exchange_val_64_acq):
2535         Delete macro.
2536         (atomic_compare_and_exchange_val_acq,
2537         atomic_compare_and_exchange_val_rel,
2538         atomic_compare_and_exchange_bool_acq,
2539         catomic_compare_and_exchange_bool_acq,
2540         atomic_exchange_acq, atomic_exchange_rel,
2541         atomic_exchange_and_add_acq,
2542         atomic_exchange_and_add_rel,
2543         catomic_exchange_and_add, atomic_or_val,
2544         atomic_or, catomic_or, atomic_bit_test_set,
2545         atomic_and_val, atomic_and, catomic_and):
2546         Define macros with help of C11 atomic builtins.
2547
2548 2017-03-03  Justus Winter <justus@gnupg.org>
2549
2550         * sysdeps/mach/hurd/ftruncate64.c: New file.
2551         * sysdeps/mach/hurd/truncate64.c: Likewise.
2552
2553 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2554
2555         * time/tzfile.c (NOID): Do not define.
2556         * time/tzset.c (NOID): Likewise.
2557
2558 2017-03-03  Florian Weimer  <fweimer@redhat.com>
2559
2560         * time/tzset.c (compute_offset): Remove __attribute_noinline__.
2561
2562 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2563
2564         * elf/get-dynamic-info.h: Remove header file inclusion guard.
2565
2566 2017-03-02  Florian Weimer  <fweimer@redhat.com>
2567
2568         [BZ #21015]
2569         * manual/install.texi (Configuring and compiling): Document
2570         --enable-bind-now.
2571         * Makeconfig [bind-now] (LDFLAGS-lib.so): Set.
2572         (build-shlib-helper): Use $(LDFLAGS-lib.so).
2573         (format.lds): Likewise.
2574         [bind-now] (LDFLAGS-c.so): Remove.
2575         * sysdeps/x86_64/localplt.data (libm.so): matherr relocation can
2576         be R_X86_64_GLOB_DAT.
2577         * sysdeps/unix/sysv/linux/i386/localplt.data (libm.so): matherr
2578         relocation can be R_386_GLOB_DAT.
2579         * sysdeps/unix/sysv/linux/alpha/localplt.data (libm.so): matherr
2580         relocaiton can be R_ALPHA_GLOB_DAT.
2581         * iconvdata/Makefile [bind-now] (LDFLAGS.so): Add -Wl,-z,now.
2582
2583 2017-03-01  Zack Weinberg  <zackw@panix.com>
2584
2585         * include/libc-pointer-arith.h: New file.  Define
2586         cast_to_integer, ALIGN_UP, ALIGN_DOWN, PTR_ALIGN_UP, and
2587         PTR_ALIGN_DOWN here.
2588         * include/libc-internal.h: Definitions of above macros
2589         moved from here.  Don't include libc-diag.h anymore either.
2590         * posix/wordexp-test.c: Include stdint.h and libc-pointer-arith.h.
2591         Don't include libc-internal.h.
2592
2593         * debug/pcprofile.c, elf/dl-tunables.c, elf/soinit.c, io/openat.c
2594         * io/openat64.c, misc/ptrace.c, nptl/pthread_clock_gettime.c
2595         * nptl/pthread_clock_settime.c, nptl/pthread_cond_common.c
2596         * string/strcoll_l.c, sysdeps/nacl/brk.c
2597         * sysdeps/unix/clock_settime.c
2598         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c
2599         * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c
2600         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
2601         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c:
2602         Don't include libc-internal.h.
2603
2604         * elf/get-dynamic-info.h, iconv/loop.c
2605         * iconvdata/iso-2022-cn-ext.c, locale/weight.h, locale/weightwc.h
2606         * misc/reboot.c, nis/nis_table.c, nptl_db/thread_dbP.h
2607         * nscd/connections.c, resolv/res_send.c, soft-fp/fmadf4.c
2608         * soft-fp/fmasf4.c, soft-fp/fmatf4.c, stdio-common/vfscanf.c
2609         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2610         * sysdeps/ieee754/dbl-64/k_rem_pio2.c
2611         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2612         * sysdeps/ieee754/flt-32/k_rem_pio2f.c
2613         * sysdeps/ieee754/ldbl-128/k_tanl.c
2614         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
2615         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
2616         * sysdeps/ieee754/ldbl-96/k_tanl.c, sysdeps/nptl/futex-internal.h:
2617         Include libc-diag.h instead of libc-internal.h.
2618
2619         * elf/dl-load.c, elf/dl-reloc.c, locale/programs/locarchive.c
2620         * nptl/nptl-init.c, string/strcspn.c, string/strspn.c
2621         * malloc/malloc.c, sysdeps/i386/nptl/tls.h
2622         * sysdeps/nacl/dl-map-segments.h, sysdeps/x86_64/atomic-machine.h
2623         * sysdeps/unix/sysv/linux/spawni.c
2624         * sysdeps/x86_64/nptl/tls.h:
2625         Include libc-pointer-arith.h instead of libc-internal.h.
2626
2627         * elf/get-dynamic-info.h, sysdeps/nacl/dl-map-segments.h
2628         * sysdeps/x86_64/atomic-machine.h:
2629         Add multiple include guard.
2630
2631         * nss/tst-cancel-getpwuid_r.c: Include nss.h.
2632         * string/strcasestr.c: No need to include config.h.
2633         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2634         sys/auxv.h. Don't include sysdep.h.
2635         * sysdeps/powerpc/tst-set_ppr.c: Don't include dl-procinfo.h.
2636
2637         * dlfcn/tst-dladdr.c: Don't include ldsodefs.h.  Don't use
2638         DL_LOOKUP_ADDRESS.
2639         * math/test-misc.c: Instead of testing NO_LONG_DOUBLE, test whether
2640         LDBL_MANT_DIG is greater than DBL_MANT_DIG.
2641         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Use
2642         sysconf (_SC_PAGESIZE) instead of __getpagesize in definition
2643         of ARTIFICIAL_LIMIT.
2644         * sysdeps/unix/sysv/linux/tst-clone.c [__ia64__]: Add extern
2645         declaration of __clone2.
2646
2647 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2648
2649         * scripts/backport-support.sh (latest_commit): New file.
2650
2651 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2652
2653         [BZ #20257]
2654         * inet/Makefile (routines): Add deadline.
2655         (tests-static): Add tst-deadline.
2656         * inet/net-internal.h (struct deadline_current_time)
2657         (__deadline_current_time, struct deadline, __deadline_is_infinite)
2658         (__deadline_elapsed, __deadline_first, __deadline_from_timeval)
2659         (__deadline_to_ms, __is_timeval_valid_timeout): Declare.
2660         * inet/deadline.c: New file.
2661         * inet/tst-deadline.c: Likewise.
2662         * sunrpc/Makefile (tests): Add tst-udp-nonblocking,
2663         tst-udp-timeout, tst-udp-garbage.
2664         (tst-udp-nonblocking, tst-udp-timeout): Link against libc.so
2665         explicitly.
2666         (tst-udp-garbage): Likewise.  Also link against thread library.
2667         * sunrpc/clnt_udp.c (struct cu_data): Mention in comment that the
2668         struct layout is part of the ABI.
2669         (clntudp_call): Rework timeout handling.
2670         * sunrpc/tst-udp-garbage.c: New file.
2671         * sunrpc/tst-udp-nonblocking.c: Likewise.
2672         * sunrpc/tst-udp-timeout.c: Likewise.
2673
2674 2017-02-28  Florian Weimer  <fweimer@redhat.com>
2675
2676         [BZ #5010]
2677         * sunrpc/svc.c (svc_is_mapped): Remove.
2678         (svc_unregister): Obtain mapped status while the service is still
2679         registered.
2680         * sunrpc/Makefile [have-thread-library] (tests): Add
2681         tst-svc_register.
2682         (tst-svc_register): Link against libc.so explicitly and the thread
2683         library.
2684         * sunrpc/tst-svc_register.c: New file.
2685
2686 2017-02-28  Andreas Schwab  <schwab@linux-m68k.org>
2687
2688         * bits/sigthread.h: Refer to <signal.h>, not <pthread.h>.
2689         * sysdeps/pthread/bits/sigthread.h: Likewise.
2690
2691 2017-02-27  Florian Weimer  <fweimer@redhat.com>
2692
2693         [BZ #21115]
2694         * sunrpc/clnt_udp.c (clntudp_call): Free ancillary data later.
2695         * sunrpc/Makefile (tests): Add tst-udp-error.
2696         (tst-udp-error): Link against libc.so explicitly.
2697         * sunrpc/tst-udp-error: New file.
2698
2699 2017-02-25  Zack Weinberg  <zackw@panix.com>
2700
2701         * sysdeps/generic/math_private.h: Use __BIG_ENDIAN and
2702         __LITTLE_ENDIAN, not BIG_ENDIAN and LITTLE_ENDIAN.
2703
2704         * sysdeps/generic/math_ldbl.h
2705         * sysdeps/ia64/fpu/math_ldbl.h
2706         * sysdeps/ieee754/ldbl-128/math_ldbl.h
2707         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2708         * sysdeps/ieee754/ldbl-96/math_ldbl.h
2709         * sysdeps/powerpc/fpu/math_ldbl.h
2710         * sysdeps/x86_64/fpu/math_ldbl.h:
2711         Allow direct inclusion.  Use uintNN_t instead of u_intNN_t.
2712         Use __BIG_ENDIAN and __LITTLE_ENDIAN, not BIG_ENDIAN and
2713         LITTLE_ENDIAN.  Include endian.h and/or stdint.h if necessary.
2714         Add copyright notices.
2715
2716         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
2717         Don't use EXTRACT_WORDS64.
2718
2719         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c
2720         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c
2721         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c
2722         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c:
2723         Include math_ldbl.h, not math_private.h.
2724
2725 2017-02-25  Zack Weinberg  <zackw@panix.com>
2726
2727         * include/libc-diag.h: New file.  Define ignore_value,
2728         DIAG_PUSH_NEEDS_COMMENT, DIAG_POP_NEEDS_COMMENT,
2729         DIAG_IGNORE_NEEDS_COMMENT, and DIAG_IGNORE_Os_NEEDS_COMMENT here.
2730
2731         * include/libc-internal.h: Definitions of above macros moved from
2732         here.  Include libc-diag.h.  Add copyright notice.
2733
2734         * malloc/tst-malloc.c, malloc/tst-memcheck.c, malloc/tst-realloc.c
2735         * misc/tst-error1.c, posix/tst-dir.c, stdio-common/bug21.c
2736         * stdio-common/scanf14.c, stdio-common/scanf4.c, stdio-common/scanf7.c
2737         * stdio-common/test-vfprintf.c, stdio-common/tst-printf.c
2738         * stdio-common/tst-printfsz.c, stdio-common/tst-sprintf.c
2739         * stdio-common/tst-unlockedio.c, stdio-common/tstdiomisc.c
2740         * stdlib/bug-getcontext.c, string/tester.c, string/tst-endian.c
2741         * time/tst-strptime2.c, wcsmbs/tst-wcstof.c:
2742         Include libc-diag.h instead of libc-internal.h.
2743
2744         * stdlib/tst-environ.c: Include libc-diag.h.  Suppress -Wnonnull for
2745         call to unsetenv (NULL).
2746         * nptl/tst-mutex1.c: Include libc-diag.h.  Suppress -Wnonnull for
2747         call to pthread_mutexattr_destroy (NULL).
2748
2749 2017-02-25  Zack Weinberg  <zackw@panix.com>
2750
2751         * include/features.h (__GLIBC_USE_DEPRECATED_GETS): New macro.
2752         * libio/stdio.h, libio/bits/stdio2.h: Condition gets on
2753         __GLIBC_USE (DEPRECATED_GETS).  Update comments to indicate
2754         gets was removed from C++ in C++14.
2755         * include/stdio.h: Remove redundant declaration of gets.
2756         * debug/tst-chk1.c, stdio-common/tst-gets.c: Force gets to
2757         be declared, since we are testing it.
2758         * stdio-common/Makefile (tst-gets.c): Compile with
2759         -Wno-deprecated-declarations.
2760         * debug/Makefile (tst-chk1.c, tst-chk2.c, tst-chk3.c, tst-chk4.cc)
2761         (tst-chk5.cc, tst-chk6.cc, tst-lfschk1.c, tst-lfschk2.c)
2762         (tst-lfschk3.c, tst-lfschk4.cc, tst-lfschk5.cc, tst-lfschk6.cc):
2763         Compile with -Wno-deprecated-declarations.
2764
2765 2017-02-24  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2766
2767         * math/libm-test-support.c (check_ulp): Use LIT() around literal
2768         numbers.
2769
2770 2017-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2771
2772         * resolv/tst-resolv-qtypes.c (domain):
2773         Change type to const pointer to const char.
2774
2775 2017-02-24  Joseph Myers  <joseph@codesourcery.com>
2776
2777         * math/Makefile (libm-tests-generated): Remove variable.
2778         (libm-tests-base-normal): New variable.
2779         (libm-tests-base-finite): Likewise.
2780         (libm-tests-base-inline): Likewise.
2781         (libm-tests-base): Likewise.
2782         (libm-tests-normal): Likewise.
2783         (libm-tests-finite): Likewise.
2784         (libm-tests-inline): Likewise.
2785         (libm-tests-vector): Likewise.
2786         (libm-tests): Define in terms of these new variables.
2787         (libm-tests-for-type): New variable.
2788         (libm-tests.o): Move definition.
2789         (tests): Move addition of $(libm-tests).
2790         (generated): Update for new and removed libm test files.
2791         ($(objpfx)libm-test.c): Remove target.
2792         ($(objpfx)libm-have-vector-test.h): Likewise.
2793         (CFLAGS-test-double-vlen2.c): Remove variable.
2794         (CFLAGS-test-double-vlen4.c): Likewise.
2795         (CFLAGS-test-double-vlen8.c): Likewise.
2796         (CFLAGS-test-float-vlen4.c): Likewise.
2797         (CFLAGS-test-float-vlen8.c): Likewise.
2798         (CFLAGS-test-float-vlen16.c): Likewise.
2799         (CFLAGS-test-float.c): Likewise.
2800         (CFLAGS-test-float-finite.c): Likewise.
2801         (CFLAGS-libm-test-support-float.c): Likewise.
2802         (CFLAGS-test-double.c): Likewise.
2803         (CFLAGS-test-double-finite.c): Likewise.
2804         (CFLAGS-libm-test-support-double.c): Likewise.
2805         (CFLAGS-test-ldouble.c): Likewise.
2806         (CFLAGS-test-ldouble-finite.c): Likewise.
2807         (CFLAGS-libm-test-support-ldouble.c): Likewise.
2808         (libm-test-inline-cflags): New variable.
2809         (CFLAGS-test-ifloat.c): Remove variable.
2810         (CFLAGS-test-idouble.c): Likewise.
2811         (CFLAGS-test-ildouble.c): Likewise.
2812         ($(addprefix $(objpfx), $(libm-tests.o))): Move target and update
2813         dependencies.
2814         ($(foreach t,$(libm-tests-normal),$(objpfx)$(t).c)): New rule.
2815         ($(foreach t,$(libm-tests-finite),$(objpfx)$(t).c)): Likewise.
2816         ($(foreach t,$(libm-tests-inline),$(objpfx)$(t).c)): Likewise.
2817         ($(foreach t,$(libm-tests-vector),$(objpfx)$(t).c)): Likewise.
2818         ($(foreach t,$(types),$(objpfx)libm-test-support-$(t).c)):
2819         Likewise.
2820         (dependencies on libm-test-support-*.o): Remove.
2821         ($(foreach f,$(libm-test-funcs-all),$(objpfx)$(o)-$(f).o)): New
2822         rules using iterators.
2823         ($(addprefix $(objpfx),$(call libm-tests-for-type,$(o)))):
2824         Likewise.
2825         ($(objpfx)libm-test-support-$(o).o): Likewise.
2826         ($(addprefix $(objpfx),$(filter-out $(tests-static)
2827         $(libm-vec-tests),$(tests)))): Filter out $(libm-tests-vector)
2828         instead.
2829         ($(addprefix $(objpfx), $(libm-vec-tests))): Use iterator to
2830         define rule instead.
2831         * math/README.libm-test: Update.
2832         * math/libm-test-acos.inc: Include libm-test-driver.c.
2833         (do_test): New function.
2834         * math/libm-test-acosh.inc: Include libm-test-driver.c.
2835         (do_test): New function.
2836         * math/libm-test-asin.inc: Include libm-test-driver.c.
2837         (do_test): New function.
2838         * math/libm-test-asinh.inc: Include libm-test-driver.c.
2839         (do_test): New function.
2840         * math/libm-test-atan.inc: Include libm-test-driver.c.
2841         (do_test): New function.
2842         * math/libm-test-atan2.inc: Include libm-test-driver.c.
2843         (do_test): New function.
2844         * math/libm-test-atanh.inc: Include libm-test-driver.c.
2845         (do_test): New function.
2846         * math/libm-test-cabs.inc: Include libm-test-driver.c.
2847         (do_test): New function.
2848         * math/libm-test-cacos.inc: Include libm-test-driver.c.
2849         (do_test): New function.
2850         * math/libm-test-cacosh.inc: Include libm-test-driver.c.
2851         (do_test): New function.
2852         * math/libm-test-canonicalize.inc: Include libm-test-driver.c.
2853         (do_test): New function.
2854         * math/libm-test-carg.inc: Include libm-test-driver.c.
2855         (do_test): New function.
2856         * math/libm-test-casin.inc: Include libm-test-driver.c.
2857         (do_test): New function.
2858         * math/libm-test-casinh.inc: Include libm-test-driver.c.
2859         (do_test): New function.
2860         * math/libm-test-catan.inc: Include libm-test-driver.c.
2861         (do_test): New function.
2862         * math/libm-test-catanh.inc: Include libm-test-driver.c.
2863         (do_test): New function.
2864         * math/libm-test-cbrt.inc: Include libm-test-driver.c.
2865         (do_test): New function.
2866         * math/libm-test-ccos.inc: Include libm-test-driver.c.
2867         (do_test): New function.
2868         * math/libm-test-ccosh.inc: Include libm-test-driver.c.
2869         (do_test): New function.
2870         * math/libm-test-ceil.inc: Include libm-test-driver.c.
2871         (do_test): New function.
2872         * math/libm-test-cexp.inc: Include libm-test-driver.c.
2873         (do_test): New function.
2874         * math/libm-test-cimag.inc: Include libm-test-driver.c.
2875         (do_test): New function.
2876         * math/libm-test-clog.inc: Include libm-test-driver.c.
2877         (do_test): New function.
2878         * math/libm-test-clog10.inc: Include libm-test-driver.c.
2879         (do_test): New function.
2880         * math/libm-test-conj.inc: Include libm-test-driver.c.
2881         (do_test): New function.
2882         * math/libm-test-copysign.inc: Include libm-test-driver.c.
2883         (do_test): New function.
2884         * math/libm-test-cos.inc: Include libm-test-driver.c.
2885         (do_test): New function.
2886         * math/libm-test-cosh.inc: Include libm-test-driver.c.
2887         (do_test): New function.
2888         * math/libm-test-cpow.inc: Include libm-test-driver.c.
2889         (do_test): New function.
2890         * math/libm-test-cproj.inc: Include libm-test-driver.c.
2891         (do_test): New function.
2892         * math/libm-test-creal.inc: Include libm-test-driver.c.
2893         (do_test): New function.
2894         * math/libm-test-csin.inc: Include libm-test-driver.c.
2895         (do_test): New function.
2896         * math/libm-test-csinh.inc: Include libm-test-driver.c.
2897         (do_test): New function.
2898         * math/libm-test-csqrt.inc: Include libm-test-driver.c.
2899         (do_test): New function.
2900         * math/libm-test-ctan.inc: Include libm-test-driver.c.
2901         (do_test): New function.
2902         * math/libm-test-ctanh.inc: Include libm-test-driver.c.
2903         (do_test): New function.
2904         * math/libm-test-erf.inc: Include libm-test-driver.c.
2905         (do_test): New function.
2906         * math/libm-test-erfc.inc: Include libm-test-driver.c.
2907         (do_test): New function.
2908         * math/libm-test-exp.inc: Include libm-test-driver.c.
2909         (do_test): New function.
2910         * math/libm-test-exp10.inc: Include libm-test-driver.c.
2911         (do_test): New function.
2912         * math/libm-test-exp2.inc: Include libm-test-driver.c.
2913         (do_test): New function.
2914         * math/libm-test-expm1.inc: Include libm-test-driver.c.
2915         (do_test): New function.
2916         * math/libm-test-fabs.inc: Include libm-test-driver.c.
2917         (do_test): New function.
2918         * math/libm-test-fdim.inc: Include libm-test-driver.c.
2919         (do_test): New function.
2920         * math/libm-test-floor.inc: Include libm-test-driver.c.
2921         (do_test): New function.
2922         * math/libm-test-fma.inc: Include libm-test-driver.c.
2923         (do_test): New function.
2924         * math/libm-test-fmax.inc: Include libm-test-driver.c.
2925         (do_test): New function.
2926         * math/libm-test-fmaxmag.inc: Include libm-test-driver.c.
2927         (do_test): New function.
2928         * math/libm-test-fmin.inc: Include libm-test-driver.c.
2929         (do_test): New function.
2930         * math/libm-test-fminmag.inc: Include libm-test-driver.c.
2931         (do_test): New function.
2932         * math/libm-test-fmod.inc: Include libm-test-driver.c.
2933         (do_test): New function.
2934         * math/libm-test-fpclassify.inc: Include libm-test-driver.c.
2935         (do_test): New function.
2936         * math/libm-test-frexp.inc: Include libm-test-driver.c.
2937         (do_test): New function.
2938         * math/libm-test-fromfp.inc: Include libm-test-driver.c.
2939         (do_test): New function.
2940         * math/libm-test-fromfpx.inc: Include libm-test-driver.c.
2941         (do_test): New function.
2942         * math/libm-test-getpayload.inc: Include libm-test-driver.c.
2943         (do_test): New function.
2944         * math/libm-test-hypot.inc: Include libm-test-driver.c.
2945         (do_test): New function.
2946         * math/libm-test-ilogb.inc: Include libm-test-driver.c.
2947         (do_test): New function.
2948         * math/libm-test-iscanonical.inc: Include libm-test-driver.c.
2949         (do_test): New function.
2950         * math/libm-test-iseqsig.inc: Include libm-test-driver.c.
2951         (do_test): New function.
2952         * math/libm-test-isfinite.inc: Include libm-test-driver.c.
2953         (do_test): New function.
2954         * math/libm-test-isgreater.inc: Include libm-test-driver.c.
2955         (do_test): New function.
2956         * math/libm-test-isgreaterequal.inc: Include libm-test-driver.c.
2957         (do_test): New function.
2958         * math/libm-test-isinf.inc: Include libm-test-driver.c.
2959         (do_test): New function.
2960         * math/libm-test-isless.inc: Include libm-test-driver.c.
2961         (do_test): New function.
2962         * math/libm-test-islessequal.inc: Include libm-test-driver.c.
2963         (do_test): New function.
2964         * math/libm-test-islessgreater.inc: Include libm-test-driver.c.
2965         (do_test): New function.
2966         * math/libm-test-isnan.inc: Include libm-test-driver.c.
2967         (do_test): New function.
2968         * math/libm-test-isnormal.inc: Include libm-test-driver.c.
2969         (do_test): New function.
2970         * math/libm-test-issignaling.inc: Include libm-test-driver.c.
2971         (do_test): New function.
2972         * math/libm-test-issubnormal.inc: Include libm-test-driver.c.
2973         (do_test): New function.
2974         * math/libm-test-isunordered.inc: Include libm-test-driver.c.
2975         (do_test): New function.
2976         * math/libm-test-iszero.inc: Include libm-test-driver.c.
2977         (do_test): New function.
2978         * math/libm-test-j0.inc: Include libm-test-driver.c.
2979         (do_test): New function.
2980         * math/libm-test-j1.inc: Include libm-test-driver.c.
2981         (do_test): New function.
2982         * math/libm-test-jn.inc: Include libm-test-driver.c.
2983         (do_test): New function.
2984         * math/libm-test-lgamma.inc: Include libm-test-driver.c.
2985         (do_test): New function.
2986         * math/libm-test-llogb.inc: Include libm-test-driver.c.
2987         (do_test): New function.
2988         * math/libm-test-llrint.inc: Include libm-test-driver.c.
2989         (do_test): New function.
2990         * math/libm-test-llround.inc: Include libm-test-driver.c.
2991         (do_test): New function.
2992         * math/libm-test-log.inc: Include libm-test-driver.c.
2993         (do_test): New function.
2994         * math/libm-test-log10.inc: Include libm-test-driver.c.
2995         (do_test): New function.
2996         * math/libm-test-log1p.inc: Include libm-test-driver.c.
2997         (do_test): New function.
2998         * math/libm-test-log2.inc: Include libm-test-driver.c.
2999         (do_test): New function.
3000         * math/libm-test-logb.inc: Include libm-test-driver.c.
3001         (do_test): New function.
3002         * math/libm-test-lrint.inc: Include libm-test-driver.c.
3003         (do_test): New function.
3004         * math/libm-test-lround.inc: Include libm-test-driver.c.
3005         (do_test): New function.
3006         * math/libm-test-modf.inc: Include libm-test-driver.c.
3007         (do_test): New function.
3008         * math/libm-test-nearbyint.inc: Include libm-test-driver.c.
3009         (do_test): New function.
3010         * math/libm-test-nextafter.inc: Include libm-test-driver.c.
3011         (do_test): New function.
3012         * math/libm-test-nextdown.inc: Include libm-test-driver.c.
3013         (do_test): New function.
3014         * math/libm-test-nexttoward.inc: Include libm-test-driver.c.
3015         (do_test): New function.
3016         * math/libm-test-nextup.inc: Include libm-test-driver.c.
3017         (do_test): New function.
3018         * math/libm-test-pow.inc: Include libm-test-driver.c.
3019         (do_test): New function.
3020         * math/libm-test-remainder.inc: Include libm-test-driver.c.
3021         (do_test): New function.
3022         * math/libm-test-remquo.inc: Include libm-test-driver.c.
3023         (do_test): New function.
3024         * math/libm-test-rint.inc: Include libm-test-driver.c.
3025         (do_test): New function.
3026         * math/libm-test-round.inc: Include libm-test-driver.c.
3027         (do_test): New function.
3028         * math/libm-test-roundeven.inc: Include libm-test-driver.c.
3029         (do_test): New function.
3030         * math/libm-test-scalb.inc: Include libm-test-driver.c.
3031         (do_test): New function.
3032         * math/libm-test-scalbln.inc: Include libm-test-driver.c.
3033         (do_test): New function.
3034         * math/libm-test-scalbn.inc: Include libm-test-driver.c.
3035         (do_test): New function.
3036         * math/libm-test-setpayload.inc: Include libm-test-driver.c.
3037         (do_test): New function.
3038         * math/libm-test-setpayloadsig.inc: Include libm-test-driver.c.
3039         (do_test): New function.
3040         * math/libm-test-signbit.inc: Include libm-test-driver.c.
3041         (do_test): New function.
3042         * math/libm-test-significand.inc: Include libm-test-driver.c.
3043         (do_test): New function.
3044         * math/libm-test-sin.inc: Include libm-test-driver.c.
3045         (do_test): New function.
3046         * math/libm-test-sincos.inc: Include libm-test-driver.c.
3047         (do_test): New function.
3048         * math/libm-test-sinh.inc: Include libm-test-driver.c.
3049         (do_test): New function.
3050         * math/libm-test-sqrt.inc: Include libm-test-driver.c.
3051         (do_test): New function.
3052         * math/libm-test-tan.inc: Include libm-test-driver.c.
3053         (do_test): New function.
3054         * math/libm-test-tanh.inc: Include libm-test-driver.c.
3055         (do_test): New function.
3056         * math/libm-test-tgamma.inc: Include libm-test-driver.c.
3057         (do_test): New function.
3058         * math/libm-test-totalorder.inc: Include libm-test-driver.c.
3059         (do_test): New function.
3060         * math/libm-test-totalordermag.inc: Include libm-test-driver.c.
3061         (do_test): New function.
3062         * math/libm-test-trunc.inc: Include libm-test-driver.c.
3063         (do_test): New function.
3064         * math/libm-test-ufromfp.inc: Include libm-test-driver.c.
3065         (do_test): New function.
3066         * math/libm-test-ufromfpx.inc: Include libm-test-driver.c.
3067         (do_test): New function.
3068         * math/libm-test-y0.inc: Include libm-test-driver.c.
3069         (do_test): New function.
3070         * math/libm-test-y1.inc: Include libm-test-driver.c.
3071         (do_test): New function.
3072         * math/libm-test-yn.inc: Include libm-test-driver.c.
3073         (do_test): New function.
3074         * math/libm-test-driver.c: Do not include libm-have-vector-test.h.
3075         (HAVE_VECTOR): Remove macro.
3076         (START): Do not call HAVE_VECTOR.
3077         * math/test-double-vlen2.h (FUNC_TEST): Remove macro.
3078         * math/test-double-vlen4.h (FUNC_TEST): Remove macro.
3079         * math/test-double-vlen8.h (FUNC_TEST): Remove macro.
3080         * math/test-float-vlen16.h (FUNC_TEST): Remove macro.
3081         * math/test-float-vlen4.h (FUNC_TEST): Remove macro.
3082         * math/test-float-vlen8.h (FUNC_TEST): Remove macro.
3083         * math/test-math-vector.h (FUNC_TEST): New macro.
3084         (WRAPPER_DECL): Rename to WRAPPER_DECL_f.
3085         * sysdeps/x86_64/fpu/Makefile (double-vlen2-funcs): New variable.
3086         (double-vlen4-funcs): Likewise.
3087         (double-vlen4-avx2-funcs): Likewise.
3088         (double-vlen8-funcs): Likewise.
3089         (float-vlen4-funcs): Likewise.
3090         (float-vlen8-funcs): Likewise.
3091         (float-vlen8-avx2-funcs): Likewise.
3092         (float-vlen16-funcs): Likewise.
3093         (CFLAGS-test-double-vlen4-avx2.c): Remove variable.
3094         (CFLAGS-test-float-vlen8-avx2.c): Likewise.
3095         * sysdeps/x86_64/fpu/test-double-vlen4.h (TEST_VECTOR_cos): Remove
3096         macro.
3097         (TEST_VECTOR_sin): Likewise.
3098         (TEST_VECTOR_sincos): Likewise.
3099         (TEST_VECTOR_log): Likewise.
3100         (TEST_VECTOR_exp): Likewise.
3101         (TEST_VECTOR_pow): Likewise.
3102         * sysdeps/x86_64/fpu/test-double-vlen8.h (TEST_VECTOR_cos):
3103         Likewise.
3104         (TEST_VECTOR_sin): Likewise.
3105         (TEST_VECTOR_sincos): Likewise.
3106         (TEST_VECTOR_log): Likewise.
3107         (TEST_VECTOR_exp): Likewise.
3108         (TEST_VECTOR_pow): Likewise.
3109         * sysdeps/x86_64/fpu/test-float-vlen16.h (TEST_VECTOR_cosf):
3110         Likewise.
3111         (TEST_VECTOR_sinf): Likewise.
3112         (TEST_VECTOR_sincosf): Likewise.
3113         (TEST_VECTOR_logf): Likewise.
3114         (TEST_VECTOR_expf): Likewise.
3115         (TEST_VECTOR_powf): Likewise.
3116         * sysdeps/x86_64/fpu/test-float-vlen8.h (TEST_VECTOR_cosf):
3117         Likewise.
3118         (TEST_VECTOR_sinf): Likewise.
3119         (TEST_VECTOR_sincosf): Likewise.
3120         (TEST_VECTOR_logf): Likewise.
3121         (TEST_VECTOR_expf): Likewise.
3122         (TEST_VECTOR_powf): Likewise.
3123         * math/gen-libm-have-vector-test.sh: Remove file.
3124         * math/libm-test.inc: Likewise.
3125         * math/libm-test-support-double.c: Likewise.
3126         * math/libm-test-support-float.c: Likewise.
3127         * math/libm-test-support-ldouble.c: Likewise.
3128         * math/test-double-finite.c: Likewise.: Likewise.
3129         * math/test-double.c: Likewise.
3130         * math/test-float-finite.c: Likewise.
3131         * math/test-float.c: Likewise.
3132         * math/test-idouble.c: Likewise.
3133         * math/test-ifloat.c: Likewise.
3134         * math/test-ildouble.c: Likewise.
3135         * math/test-ldouble-finite.c: Likewise.
3136         * math/test-ldouble.c: Likewise.
3137         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
3138         * sysdeps/x86_64/fpu/test-double-vlen2.h: Likewise.
3139         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
3140         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
3141         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
3142         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
3143         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
3144         * sysdeps/x86_64/fpu/test-float-vlen4.h: Likewise.
3145         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
3146         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
3147
3148 2017-02-23 Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3149            Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3150
3151         * math/Makefile: Add wrappers to gen-libm-calls.
3152         * math/w_acos_template.c: New file.
3153         * math/w_acosh_template.c: Likewise.
3154         * math/w_asin_template.c: Likewise.
3155         * math/w_atan2_template.c: Likewise.
3156         * math/w_atanh_template.c: Likewise.
3157         * math/w_cosh_template.c: Likewise.
3158         * math/w_exp10_template.c: Likewise.
3159         * math/w_exp2_template.c: Likewise.
3160         * math/w_exp_template.c: Likewise.
3161         * math/w_fmod_template.c: Likewise.
3162         * math/w_hypot_template.c: Likewise.
3163         * math/w_j0_template.c: Likewise.
3164         * math/w_j1_template.c: Likewise.
3165         * math/w_jn_template.c: Likewise.
3166         * math/w_lgamma_r_template.c: Likewise.
3167         * math/w_lgamma_template.c: Likewise.
3168         * math/w_log10_template.c: Likewise.
3169         * math/w_log2_template.c: Likewise.
3170         * math/w_log_template.c: Likewise.
3171         * math/w_pow_template.c: Likewise.
3172         * math/w_remainder_template.c: Likewise.
3173         * math/w_sinh_template.c: Likewise.
3174         * math/w_sqrt_template.c: Likewise.
3175         * math/w_tgamma_template.c: Likewise.: Likewise.
3176         * sysdeps/generic/math-type-macros-double.h
3177         (__USE_WRAPPER_TEMPLATE): New macro to control inclusion of
3178         the new wrappers.
3179         * sysdeps/generic/math-type-macros-float.h: Likewise.
3180         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
3181
3182 2017-02-22  Joseph Myers  <joseph@codesourcery.com>
3183
3184         * sysdeps/unix/sysv/linux/sys/timerfd.h (TFD_TIMER_CANCEL_ON_SET):
3185         New enum constant and macro.
3186
3187         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3188         kernel version to 4.10.
3189
3190 2017-02-21  Joseph Myers  <joseph@codesourcery.com>
3191
3192         * sysdeps/unix/sysv/linux/bits/in.h (IP_RECVFRAGSIZE): New macro.
3193
3194 2017-02-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3195
3196         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3197
3198 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
3199
3200         * sysdeps/powerpc/tst-set_ppr.c: New file.
3201         Implement test cases for __ppc_set_ppr_* functions.
3202         * sysdeps/powerpc/Makefile ($(subdir),misc): Add tst-set_ppr
3203         in the list of tests.
3204
3205 2017-02-21  Wainer dos Santos Moschetta  <wainersm@linux.vnet.ibm.com>
3206
3207         * sysdeps/powerpc/test-get_hwcap.c: Use <support/test-driver.c>
3208         instead of test-skeleton.c.
3209         (do_test): Replaced pthread_create and pthread_join with
3210         xpthread_create and xpthread_join.  Use TEST_VERIFY_EXIT macro.
3211         Removed unneeded status variable.
3212         * sysdeps/powerpc/test-gettimebase.c: Use <support/test-driver.c>
3213         instead of test-skeleton.c.
3214         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Likewise.
3215
3216 2017-02-20  Mike FABIAN  <mfabian@redhat.com>
3217
3218         [BZ #20313]
3219         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
3220         201605L, for Unicode 9.
3221
3222 2017-02-20  Joseph Myers  <joseph@codesourcery.com>
3223
3224         * math/libm-test-support.h (EXCEPTIONS_OK): Remove macro.
3225         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3226         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3227         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3228         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3229         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3230
3231 2017-02-19  Zack Weinberg  <zackw@panix.com>
3232
3233         * rt/tst-mqueue4.c: Include stdint.h.
3234
3235 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3236
3237         * sysdeps/arm/libm-test-ulps: Update.
3238         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
3239         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
3240         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
3241
3242 2017-01-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3243
3244         [BZ #21029]
3245         * config.h.in [CAN_USE_REGISTER_ASM_EBP]: New define.
3246         * sysdeps/unix/sysv/linux/i386/Makefile
3247         [$(subdir) = elf] (sysdep-dl-routines): Add libc-do-syscall.
3248         (uses-6-syscall-arguments): Remove.
3249         [$(subdir) = misc] (CFLAGS-epoll_pwait.o): Likewise.
3250         [$(subdir) = misc] (CFLAGS-epoll_pwait.os): Likewise.
3251         [$(subdir) = misc] (CFLAGS-mmap.o): Likewise.
3252         [$(subdir) = misc] (CFLAGS-mmap.os): Likewise.
3253         [$(subdir) = misc] (CFLAGS-mmap64.o): Likewise.
3254         [$(subdir) = misc] (CFLAGS-mmap64.os): Likewise.
3255         [$(subdir) = misc] (CFLAGS-pselect.o): Likewise.
3256         [$(subdir) = misc] (cflags-pselect.o): Likewise.
3257         [$(subdir) = misc] (cflags-pselect.os): Likewise.
3258         [$(subdir) = misc] (cflags-rtld-mmap.os): Likewise.
3259         [$(subdir) = sysvipc] (cflags-semtimedop.o): Likewise.
3260         [$(subdir) = sysvipc] (cflags-semtimedop.os): Likewise.
3261         [$(subdir) = io] (CFLAGS-posix_fadvise64.o): Likewise.
3262         [$(subdir) = io] (CFLAGS-posix_fadvise64.os): Likewise.
3263         [$(subdir) = io] (CFLAGS-posix_fallocate.o): Likewise.
3264         [$(subdir) = io] (CFLAGS-posix_fallocate.os): Likewise.
3265         [$(subdir) = io] (CFLAGS-posix_fallocate64.o): Likewise.
3266         [$(subdir) = io] (CFLAGS-posix_fallocate64.os): Likewise.
3267         [$(subdir) = io] (CFLAGS-sync_file_range.o): Likewise.
3268         [$(subdir) = io] (CFLAGS-sync_file_range.os): Likewise.
3269         [$(subdir) = io] (CFLAGS-fallocate.o): Likewise.
3270         [$(subdir) = io] (CFLAGS-fallocate.os): Likewise.
3271         [$(subdir) = io] (CFLAGS-fallocate64.o): Likewise.
3272         [$(subdir) = io] (CFLAGS-fallocate64.os): Likewise.
3273         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o):
3274         Likewise.
3275         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrdlock.os):
3276         Likewise.
3277         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.o):
3278         Likewise.
3279         [$(subdir) = nptl] (CFLAGS-pthread_rwlock_timedrwlock.os):
3280         Likewise.
3281         [$(subdir) = nptl] (CFLAGS-sem_wait.o): Likewise.
3282         [$(subdir) = nptl] (CFLAGS-sem_wait.os): Likewise.
3283         [$(subdir) = nptl] (CFLAGS-sem_timedwait.o): Likewise.
3284         [$(subdir) = nptl] (CFLAGS-sem_timedwait.os): Likewise.
3285         * sysdeps/unix/sysv/linux/i386/configure.ac: Add check if compiler allows
3286         ebp on inline assembly.
3287         * sysdeps/unix/sysv/linux/i386/configure: Regenerate.
3288         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
3289         Set if CAN_USE_REGISTER_ASM_EBP is set.
3290
3291 2017-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3292
3293         * sysdeps/x86/cpu-features.c (init_cpu_features): Use
3294         index_cpu_RTM and reg_RTM to clear the bit_cpu_RTM bit.
3295
3296 2017-02-17  Joseph Myers  <joseph@codesourcery.com>
3297
3298         * math/auto-libm-test-in: Add tests of catan and catanh.
3299         * math/auto-libm-test-out-catan: New generated file.
3300         * math/auto-libm-test-out-catanh: Likewise.
3301         * math/libm-test-catan.inc (catan_test_data): Use AUTO_TESTS_c_c.
3302         Move tests with finite inputs, except divide-by-zero cases, to
3303         auto-libm-test-in.
3304         * math/libm-test-catanh.inc (catanh_test_data): Likewise.
3305         * math/Makefile (libm-test-funcs-auto): Add catan and catanh.
3306         (libm-test-funcs-noauto): Remove catan and catanh.
3307         * sysdeps/i386/fpu/libm-test-ulps: Update.
3308         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3310
3311         * math/auto-libm-test-in: Add tests of casin and casinh.
3312         * math/auto-libm-test-out-casin: New generated file.
3313         * math/auto-libm-test-out-casinh: Likewise.
3314         * math/libm-test-casin.inc (casin_test_data): Use AUTO_TESTS_c_c.
3315         Move tests with finite inputs to auto-libm-test-in.
3316         * math/libm-test-casinh.inc (casinh_test_data): Likewise.
3317         * math/Makefile (libm-test-funcs-auto): Add casin and casinh.
3318         (libm-test-funcs-noauto): Remove casin and casinh.
3319         * sysdeps/i386/fpu/libm-test-ulps: Update.
3320         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3322
3323         * math/auto-libm-test-in: Add tests of cacos and cacosh.
3324         * math/auto-libm-test-out-cacos: New generated file.
3325         * math/auto-libm-test-out-cacosh: Likewise.
3326         * math/libm-test-cacos.inc (cacos_test_data): Use AUTO_TESTS_c_c.
3327         Move tests with finite inputs to auto-libm-test-in.
3328         * math/libm-test-cacosh.inc (cacosh_test_data): Likewise.
3329         * math/Makefile (libm-test-funcs-auto): Add cacos and cacosh.
3330         (libm-test-funcs-noauto): Remove cacos and cacosh.
3331         * sysdeps/i386/fpu/libm-test-ulps: Update.
3332         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
3333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3334
3335         Revert:
3336         2017-02-16  Zack Weinberg  <zackw@panix.com>
3337
3338         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3339         Don't include init-arch.h.
3340         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3341         Don't include init-arch.h.
3342
3343 2017-02-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3344
3345         [BZ #21171]
3346         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Return
3347         +Inf and raise divide-by-zero when x is negative.
3348         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Likewise.
3349         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Likewise.
3350         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10):  Return
3351         -Inf and raise divide-by-zero when x = +-0.
3352         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3353         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3354         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3355         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3356         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3357         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3358         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3359
3360 2017-02-16  Zack Weinberg  <zackw@panix.com>
3361
3362         * scripts/build-many-glibcs.py (bot_build_mail): If the
3363         bot_config does not contain all of the necessary email-
3364         related settings, just print a warning and continue.
3365
3366 2017-02-16  Zack Weinberg  <zackw@panix.com>
3367
3368         * crypt/md5.h: Test _LIBC with #if defined, not #if.
3369         * dirent/opendir-tst1.c: Include sys/stat.h.
3370         * dirent/tst-fdopendir.c: Include sys/stat.h.
3371         * dirent/tst-fdopendir2.c: Include stdlib.h.
3372         * dirent/tst-scandir.c: Include stdbool.h.
3373         * elf/tst-auditmod1.c: Include link.h and stddef.h.
3374         * elf/tst-tls15.c: Include stdlib.h.
3375         * elf/tst-tls16.c: Include stdlib.h.
3376         * elf/tst-tls17.c: Include stdlib.h.
3377         * elf/tst-tls18.c: Include stdlib.h.
3378         * iconv/tst-iconv6.c: Include endian.h.
3379         * iconvdata/bug-iconv11.c: Include limits.h.
3380         * io/test-utime.c: Include stdint.h.
3381         * io/tst-faccessat.c: Include sys/stat.h.
3382         * io/tst-fchmodat.c: Include sys/stat.h.
3383         * io/tst-fchownat.c: Include sys/stat.h.
3384         * io/tst-fstatat.c: Include sys/stat.h.
3385         * io/tst-futimesat.c: Include sys/stat.h.
3386         * io/tst-linkat.c: Include sys/stat.h.
3387         * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
3388         * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
3389         * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
3390         * io/tst-openat.c: Include stdbool.h.
3391         * io/tst-readlinkat.c: Include sys/stat.h.
3392         * io/tst-renameat.c: Include sys/stat.h.
3393         * io/tst-symlinkat.c: Include sys/stat.h.
3394         * io/tst-unlinkat.c: Include stdbool.h.
3395         * libio/bug-memstream1.c: Include stdlib.h.
3396         * libio/bug-wmemstream1.c: Include stdlib.h.
3397         * libio/tst-fwrite-error.c: Include stdlib.h.
3398         * libio/tst-memstream1.c: Include stdlib.h.
3399         * libio/tst-memstream2.c: Include stdlib.h.
3400         * libio/tst-memstream3.c: Include stdlib.h.
3401         * malloc/tst-interpose-aux.c: Include stdint.h.
3402         * misc/tst-preadvwritev-common.c: Include sys/stat.h.
3403         * nptl/tst-basic7.c: Include limits.h.
3404         * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
3405         * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
3406         * nptl/tst-cancel4_1.c: Include stddef.h.
3407         * nptl/tst-cancel4_2.c: Include stddef.h.
3408         * nptl/tst-cond16.c: Include limits.h.
3409         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3410         * nptl/tst-cond18.c: Include limits.h.
3411         Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
3412         * nptl/tst-cond4.c: Include stdint.h.
3413         * nptl/tst-cond6.c: Include stdint.h.
3414         * nptl/tst-stack2.c: Include limits.h.
3415         * nptl/tst-stackguard1.c: Include stddef.h.
3416         * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
3417         * nptl/tst-tls4moda.c: Include stddef.h.
3418         Don't include stdio.h, unistd.h, or tls.h.
3419         * nptl/tst-tls4modb.c: Include stddef.h.
3420         Don't include stdio.h, unistd.h, or tls.h.
3421         * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
3422         * posix/tst-getaddrinfo2.c: Include stdio.h.
3423         * posix/tst-getaddrinfo5.c: Include stdio.h.
3424         * posix/tst-pathconf.c: Include sys/stat.h.
3425         * posix/tst-posix_fadvise-common.c: Include stdint.h.
3426         * posix/tst-preadwrite-common.c: Include sys/stat.h.
3427         * posix/tst-regex.c: Include stdint.h.
3428         Don't include spawn.h or spawn_int.h.
3429         * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
3430         * posix/tst-vfork3.c: Include sys/stat.h.
3431         * resolv/tst-bug18665-tcp.c: Include stdlib.h.
3432         * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
3433         * resolv/tst-resolv-search.c: Include stdlib.h.
3434         * stdio-common/tst-fmemopen2.c: Include stdint.h.
3435         * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
3436         * stdlib/test-canon.c: Include sys/stat.h.
3437         * stdlib/tst-tls-atexit.c: Include stdbool.h.
3438         * string/test-memchr.c: Include stdint.h.
3439         * string/tst-cmp.c: Include stdint.h.
3440         * sysdeps/pthread/tst-timer.c: Include stdint.h.
3441         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
3442         * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
3443         * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
3444         Don't include init-arch.h.
3445         * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
3446         Don't include init-arch.h.
3447         * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
3448         * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
3449         * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
3450         * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
3451         * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
3452         * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
3453         * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
3454         * time/clocktest.c: Include stdint.h.
3455         * time/tst-posixtz.c: Include stdint.h.
3456         * timezone/tst-timezone.c: Include stdint.h.
3457
3458 2017-02-16  Zack Weinberg  <zackw@panix.com>
3459
3460         * string/string.h [__USE_MISC]: Include strings.h.
3461         (__bzero, bcmp, bcopy, bzero, index, rindex)
3462         (strcasecmp, strncasecmp, strcasecmp_l, strncasecmp_l)
3463         (ffs, ffsl, ffsll): Don't declare.
3464         * string/strings.h: Do not suppress the file if string.h has
3465         already been included.
3466         (bcmp, bcopy, bzero, strcasecmp, strncasecmp): Add __nonnull
3467         annotations.
3468         (index, rindex): Define inline forwarders even if
3469         __CORRECT_ISO_CPP_STRING_H_PROTO is defined.
3470         (ffs): Use __attribute_const__.
3471         (ffsl, ffsll): Declare here.
3472         (strcasecmp_l, strncasecmp_l): Correct comments; these functions
3473         have now been standardized.
3474         * include/string.h (__bzero): Declare here.
3475
3476         * bits/types.h: Move to posix/bits.
3477         * include/bits/types.h: New wrapper.
3478
3479 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3480
3481         * string/bits/string2.h (strcmp): Remove define.
3482         (__strcmp_cg): Likewise.
3483         (strncmp): Likewise.
3484
3485 2017-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
3486
3487         * include/string.h: Add __cplusplus check.
3488
3489 2017-02-15  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3490
3491         [BZ #21134]
3492         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_y0): Raise the
3493         "divide by zero" exception when the input is zero.
3494         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_y1): Likewise.
3495         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Likewise.
3496         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Likewise.
3497         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Likewise.
3498         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3499
3500 2017-02-15  Joseph Myers  <joseph@codesourcery.com>
3501
3502         * sysdeps/x86_64/fpu/test-double-vlen2.c: Move most contents to,
3503         and include ...
3504         * sysdeps/x86_64/fpu/test-double-vlen2.h: ... here.  New file.
3505         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Move most contents
3506         to, and include ...
3507         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.h: ... here.  New
3508         file.
3509         * sysdeps/x86_64/fpu/test-double-vlen4.c: Move most contents to,
3510         and include ...
3511         * sysdeps/x86_64/fpu/test-double-vlen4.h: ... here.  New file.
3512         * sysdeps/x86_64/fpu/test-double-vlen8.c: Move most contents to,
3513         and include ...
3514         * sysdeps/x86_64/fpu/test-double-vlen8.h: ... here.  New file.
3515         * sysdeps/x86_64/fpu/test-float-vlen16.c: Move most contents to,
3516         and include ...
3517         * sysdeps/x86_64/fpu/test-float-vlen16.h: ... here.  New file.
3518         * sysdeps/x86_64/fpu/test-float-vlen4.c: Move most contents to,
3519         and include ...
3520         * sysdeps/x86_64/fpu/test-float-vlen4.h: ... here.  New file.
3521         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Move most contents
3522         to, and include ...
3523         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.h: ... here.  New file.
3524         * sysdeps/x86_64/fpu/test-float-vlen8.c: Move most contents to,
3525         and include ...
3526         * sysdeps/x86_64/fpu/test-float-vlen8.h: ... here.  New file.
3527
3528 2017-02-14  Joseph Myers  <joseph@codesourcery.com>
3529
3530         * math/libm-test-support.h: Do not include <math-tests-arch.h>
3531         here.
3532         * math/libm-test-support.c (libm_test_init): Do not call
3533         INIT_ARCH_EXT here.
3534         * math/libm-test-driver.c: Include <math-tests-arch.h>.
3535         (main): Call INIT_ARCH_EXT.
3536
3537 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3538
3539         [BZ #21130]
3540         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_y0l): Return NAN
3541         with the "invalid" exception raised when x is -Inf.
3542         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
3543
3544 2017-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3545
3546         * string/bits/string2.h (strchr): Remove define.
3547
3548 2017-02-09  H.J. Lu  <hongjiu.lu@intel.com>
3549
3550         * sysdeps/x86_64/Makefile (tests): Add tst-sse, tst-avx and
3551         tst-avx512.
3552         (test-extras): Add tst-avx-aux and tst-avx512-aux.
3553         (extra-test-objs): Add tst-avx-aux.o and tst-avx512-aux.o.
3554         (modules-names): Add tst-ssemod, tst-avxmod and tst-avx512mod.
3555         ($(objpfx)tst-sse): New rule.
3556         ($(objpfx)tst-avx): Likewise.
3557         ($(objpfx)tst-avx512): Likewise.
3558         (CFLAGS-tst-avx-aux.c): New.
3559         (CFLAGS-tst-avxmod.c): Likewise.
3560         (CFLAGS-tst-avx512-aux.c): Likewise.
3561         (CFLAGS-tst-avx512mod.c): Likewise.
3562         * sysdeps/x86_64/tst-avx-aux.c: New file.
3563         * sysdeps/x86_64/tst-avx.c: Likewise.
3564         * sysdeps/x86_64/tst-avx512-aux.c: Likewise.
3565         * sysdeps/x86_64/tst-avx512.c: Likewise.
3566         * sysdeps/x86_64/tst-avx512mod.c: Likewise.
3567         * sysdeps/x86_64/tst-avxmod.c: Likewise.
3568         * sysdeps/x86_64/tst-sse.c: Likewise.
3569         * sysdeps/x86_64/tst-ssemod.c: Likewise.
3570
3571 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3572
3573         * math/auto-libm-test-in: Add more tests of csin and csinh.
3574         * math/auto-libm-test-out-csin: Regenerated.
3575         * math/auto-libm-test-out-csinh: Likewise.
3576         * math/libm-test-csin.inc (csin_test_data): Remove tests moved to
3577         auto-libm-test-in.
3578         * math/libm-test-csinh.inc (csinh_test_data): Likewise.
3579
3580 2017-02-09  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3581
3582         * math/Makefile (libm-compat-calls-ldouble-yes): Merge into
3583         libm-compat-calls-auto.
3584         (libm-compat-calls): Likewise.
3585         (libm-compat-calls-auto): Rename to libm-compat-calls and add
3586         w_lgamma_compatF and k_standardF (merged from the items above).
3587         (libm-routines): Use libm-compat-calls, instead of
3588         libm-compat-calls-auto, with type-foreach.
3589
3590 2017-02-09  Joseph Myers  <joseph@codesourcery.com>
3591
3592         * math/test-math-inline.h (__LIBC_INTERNAL_MATH_INLINES): Undefine
3593         macro.
3594         * math/Makefile (CPPFLAGS-test-ifloat.c): Rename to ...
3595         (CFLAGS-test-ifloat.c): ... this.  Remove
3596         -U__LIBC_INTERNAL_MATH_INLINES.
3597         * math/Makefile (CPPFLAGS-test-idouble.c): Rename to ...
3598         (CFLAGS-test-idouble.c): ... this.  Remove
3599         -U__LIBC_INTERNAL_MATH_INLINES.
3600         * math/Makefile (CPPFLAGS-test-ildouble.c): Rename to ...
3601         (CFLAGS-test-ildouble.c): ... this.  Remove
3602         -U__LIBC_INTERNAL_MATH_INLINES.
3603
3604 2017-02-08  Joseph Myers  <joseph@codesourcery.com>
3605
3606         * math/libm-test-support.c: New file.  Content from
3607         math/libm-test-driver.c.
3608         * math/libm-test-support.h: Likewise.
3609         * math/libm-test-support-double.c: New file.
3610         * math/libm-test-support-float.c: Likewise.
3611         * math/libm-test-support-ldouble.c: Likewise.
3612         * math/libm-test-driver.c: Remove main comment and header
3613         includes.  Include libm-test-support.h.
3614         [!_GNU_SOURCE] (_GNU_SOURCE): Do not define.
3615         (flag_test_errno): Remove static.
3616         (flag_test_exceptions): Likewise.
3617         (flag_test_finite): Likewise.
3618         (flag_test_inline): Likewise.
3619         (flag_test_mathvec): Likewise.
3620         (test_msg): Likewise.
3621         (NO_EXCEPTION): Remove.
3622         (INVALID_EXCEPTION): Likewise.
3623         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
3624         (OVERFLOW_EXCEPTION): Likewise.
3625         (UNDERFLOW_EXCEPTION): Likewise.
3626         (INEXACT_EXCEPTION): Likewise.
3627         (INVALID_EXCEPTION_OK): Likewise.
3628         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3629         (OVERFLOW_EXCEPTION_OK): Likewise.
3630         (UNDERFLOW_EXCEPTION_OK): Likewise.
3631         (NO_INEXACT_EXCEPTION): Likewise.
3632         (EXCEPTIONS_OK): Likewise.
3633         (IGNORE_ZERO_INF_SIGN): Likewise.
3634         (TEST_NAN_SIGN): Likewise.
3635         (TEST_NAN_PAYLOAD): Likewise.
3636         (NO_TEST_INLINE): Likewise.
3637         (XFAIL_TEST): Likewise.
3638         (ERRNO_UNCHANGED): Likewise.
3639         (ERRNO_EDOM): Likewise.
3640         (ERRNO_ERANGE): Likewise.
3641         (IGNORE_RESULT): Likewise.
3642         (NON_FINITE): Likewise.
3643         (TEST_SNAN): Likewise.
3644         (NO_TEST_MATHVEC): Likewise.
3645         (__CONCATX): Likewise.
3646         (TYPE_MIN): Likewise.
3647         (TYPE_TRUE_MIN): Likewise.
3648         (TYPE_MAX): Likewise.
3649         (MIN_EXP): Likewise.
3650         (MAX_EXP): Likewise.
3651         (MANT_DIG): Likewise.
3652         (FSTR_MAX): Likewise.
3653         (ulp_idx): Likewise.
3654         (qtype_str): Remove static.
3655         (TEST_COND_binary32): Remove.
3656         (TEST_COND_binary64): Likewise.
3657         (TEST_COND_binary128): Likewise.
3658         (TEST_COND_ibm128): Likewise.
3659         (TEST_COND_intel96): Likewise.
3660         (TEST_COND_m68k96): Likewise.
3661         (TEST_COND_ibm128_libgcc): Likewise.
3662         (XFAIL_IBM128_LIBGCC): Likewise.
3663         (PAYLOAD_DIG): Likewise.
3664         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3665         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3666         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3667         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
3668         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3669         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
3670         (TEST_COND_long32): Likewise.
3671         (TEST_COND_long64): Likewise.
3672         (TEST_COND_before_rounding): Likewise.
3673         (TEST_COND_after_rounding): Likewise.
3674         (ulps_file_name): Likewise.
3675         (ulps_file): Likewise.
3676         (output_ulps): Likewise.
3677         (output_dir): Likewise.
3678         (noErrors): Likewise.
3679         (noTests): Likewise.
3680         (noExcTests): Likewise.
3681         (noErrnoTests): Likewise.
3682         (verbose): Likewise.
3683         (output_max_error): Likewise.
3684         (output_points): Likewise.
3685         (ignore_max_ulp): Likewise.
3686         (max_error): Likewise.
3687         (real_max_error): Likewise.
3688         (imag_max_error): Likewise.
3689         (prev_max_error): Likewise.
3690         (prev_real_max_error): Likewise.
3691         (prev_imag_max_error): Likewise.
3692         (max_valid_error): Likewise.
3693         (TYPE_DECIMAL_DIG): Likewise.
3694         (TYPE_HEX_DIG): Likewise.
3695         (fmt_ftostr): Likewise.
3696         (compare_ulp_data): Likewise.
3697         (find_ulps): Likewise.
3698         (init_max_error): Likewise.
3699         (set_max_error): Likewise.
3700         (print_float): Likewise.
3701         (print_screen): Likewise.
3702         (print_screen_max_error): Likewise.
3703         (update_stats): Likewise.
3704         (print_function_ulps): Likewise.
3705         (print_complex_function_ulps): Likewise.
3706         (fpstack_test): Likewise.
3707         (print_max_error): Likewise.
3708         (print_complex_max_error): Likewise.
3709         (test_single_exception): Likewise.
3710         (test_exceptions): Likewise.
3711         (test_single_errno): Likewise.
3712         (test_errno): Likewise.
3713         (ULPDIFF): Likewise.
3714         (ulp): Likewise.
3715         (check_float_internal): Likewise.
3716         (check_float): Likewise.
3717         (check_complex): Likewise.
3718         (check_int): Likewise.
3719         (check_long): Likewise.
3720         (check_bool): Likewise.
3721         (check_longlong): Likewise.
3722         (check_intmax_t): Likewise.
3723         (check_uintmax_t): Likewise.
3724         (enable_test): Likewise.
3725         (matherr): Likewise.
3726         (initialize): Likewise.
3727         (options): Likewise.
3728         (doc): Remove static.
3729         (argp): Likewise.
3730         (parse_opt): Remove.
3731         (check_ulp): Likewise.
3732         (libm_test_init): Likewise.
3733         (libm_test_finish): Likewise.
3734         * math/Makefile (libm-test-support): New variable.
3735         (test-extras): Add libm-test-support files.
3736         (extra-test-objs): Likewise.
3737         (CFLAGS-libm-test-support-float.c): New variable.
3738         (CFLAGS-libm-test-support-double.c): Likewise.
3739         (CFLAGS-libm-test-support-ldouble.c): Likewise.
3740         ($(addprefix $(objpfx),$(libm-tests)): Depend on appropriate
3741         libm-test-support objects.
3742
3743 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3744
3745         * math/Makefile (libm-calls): Move w_exp...
3746         (libm-compat-calls-auto): Here.
3747
3748         * math/w_expl.c: Add suffix "_compat" to filename.
3749         * sysdeps/ia64/fpu/w_expl.c: Likewise.
3750         * sysdeps/ia64/fpu/w_expf.c: Likewise.
3751         * sysdeps/ia64/fpu/w_exp.c: Likewise.
3752         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3753         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3754         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
3755         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
3756         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3757
3758         * math/w_expl_compat.c: New file, copied from above.
3759         * sysdeps/ia64/fpu/w_exp_compat.c: Likewise.
3760         * sysdeps/ia64/fpu/w_expf_compat.c: Likewise.
3761         * sysdeps/ia64/fpu/w_expl_compat.c: Likewise.
3762         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
3763         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
3764         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
3765         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
3766         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
3767
3768         * sysdeps/ieee754/ldbl-64-128/w_expl.c: Add suffix "_compat"
3769         to filename.
3770         * sysdeps/ieee754/ldbl-opt/w_exp.c: Likewise.
3771
3772         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: New file,
3773         copied from above and adjusted for the new filenames.
3774         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3775
3776 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3777
3778         * math/Makefile (libm-calls): Move w_lgammaF...
3779         (libm-compat-calls-auto): Here.
3780
3781         * math/w_lgamma.c: Add suffix "_compat2" to filename.
3782         * math/w_lgammaf.c: Likewise.
3783         * math/w_lgammal.c: Likewise.
3784
3785         * math/w_lgamma_compat2.c: New file, copied from above.
3786         * math/w_lgammaf_compat2.c: Likewise.
3787         * math/w_lgammal_compat2.c: Likewise.
3788
3789 2017-02-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3790
3791         * math/Makefile (libm-calls): Move w_lgammaF_r...
3792         (libm-compat-calls-auto): Here.
3793
3794         * math/w_lgamma_r.c: Add suffix "_compat" to filename.
3795         * math/w_lgammaf_r.c: Likewise.
3796         * math/w_lgammal_r.c: Likewise.
3797         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
3798         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
3799         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
3800
3801         * math/w_lgamma_r_compat.c: New file, copied from above.
3802         * math/w_lgammaf_r_compat.c: Likewise.
3803         * math/w_lgammal_r_compat.c: Likewise.
3804         * sysdeps/ia64/fpu/w_lgamma_r_compat.c: Likewise.
3805         * sysdeps/ia64/fpu/w_lgammaf_r_compat.c: Likewise.
3806         * sysdeps/ia64/fpu/w_lgammal_r_compat.c: Likewise.
3807
3808         * sysdeps/ieee754/ldbl-opt/w_lgamma_r.c: Add suffix "_compat"
3809         to filename.
3810         * sysdeps/ieee754/ldbl-opt/w_lgammal_r.c: Likewise.
3811
3812         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: New file
3813         copied from above and adjusted for the new filenames.
3814         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
3815
3816 2017-02-08  Yury Norov  <ynorov@caviumnetworks.com>
3817
3818         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: use PTR_REG() for offset
3819         calculation in SYSCALL_ERROR_HANDLER().
3820
3821 2017-02-08  Rical Jasan  <ricaljasan@pacific.net>
3822
3823         * manual/contrib.texi: Fix typo.
3824
3825 2017-02-08  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3826
3827         [BZ #21109]
3828         * elf/dl-tunable-types.h (tunable_callback_t): Accept
3829         tunable_val_t as argument.
3830         * elf/dl-tunables.c (__tunable_set_val): Add comment.
3831         * malloc/arena.c (set_mallopt_check): Take tunable_val_t as
3832         argument.
3833         (DL_TUNABLE_CALLBACK_FNDECL): Likewise.
3834
3835 2017-02-08  Kir Kolyshkin  <kir@openvz.org>
3836
3837         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_eventcodes):
3838         Add PTRACE_EVENT_STOP.
3839         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
3840         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3841         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3842         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3843         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
3844         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
3845
3846 2017-02-07  Joseph Myers  <joseph@codesourcery.com>
3847
3848         * math/test-math-finite.h (TEST_EXCEPTIONS): New macro.
3849         * math/test-math-no-finite.h (TEST_EXCEPTIONS): Likewise.
3850         * math/test-math-vector.h (TEST_EXCEPTIONS): Likewise.
3851         * math/test-math-no-inline.h (TEST_EXCEPTIONS): Remove macro.
3852         * math/test-double-vlen2.h (EXCEPTION_TESTS_double): Likewise.
3853         * math/test-double-vlen4.h (EXCEPTION_TESTS_double): Likewise.
3854         * math/test-double-vlen8.h (EXCEPTION_TESTS_double): Likewise.
3855         * math/test-float-vlen4.h (EXCEPTION_TESTS_float): Likewise.
3856         * math/test-float-vlen8.h (EXCEPTION_TESTS_float): Likewise.
3857         * math/test-float-vlen16.h (EXCEPTION_TESTS_float): Likewise.
3858
3859         [BZ #21112]
3860         * sysdeps/ieee754/flt-32/e_powf.c (cp_h): Use value with trailing
3861         12 bits zero.
3862         (cp_l): Update for new value of cp_h.
3863         * math/auto-libm-test-in: Add another test of pow.
3864         * math/auto-libm-test-out-pow: Regenerated.
3865
3866 2017-02-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
3867
3868         * manual/contrib.texi: Fix typo.
3869
3870 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3871
3872         [BZ #15998]
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3874         (arch_minimum_kernel): Set as 3.10.0 for ppc64le.
3875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3876
3877 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3878
3879         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Redefine
3880         STRCHR as __strchr_power8.
3881         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Redefine
3882         strlen as __strlen_power8.
3883
3884 2017-02-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3885
3886         * sysdeps/powerpc/powerpc64/power8/strcmp.S: Adjust address for
3887         unaligned load for shorter strings.
3888         * sysdeps/powerpc/powerpc64/power9/strcmp.S: Likewise.
3889
3890 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
3891
3892         * math/libm-test-driver.c (flag_test_errno): New variable.
3893         (flag_test_exceptions): Likewise.
3894         (flag_test_finite): Likewise.
3895         (flag_test_inline): Likewise.
3896         (flag_test_mathvec): Likewise.
3897         (test_msg): Likewise.
3898         (ulp_idx): Likewise.
3899         (qtype_str): Likewise.
3900         (ULP_IDX): Remove macro.
3901         (QTYPE_STR): Likewise.
3902         (find_ulps): Use ulp_idx not ULP_IDX.
3903         (print_function_ulps): Use qtype_str, printed with %s, not
3904         QTYPE_STR, printed with concatentation to format string.
3905         (print_complex_function_ulps): Likewise.
3906         (test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
3907         (test_errno): Use flag_test_errno not TEST_ERRNO.
3908         (enable_test): Use flag_test_inline, flag_test_finite and
3909         flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
3910         TEST_MATHVEC.
3911         (libm_test_init): New function.  Factored out of main.
3912         (libm_test_finish): Likewise.
3913         (main): Call libm_test_init and libm_test_finish and move most
3914         code to those functions.
3915
3916         * math/libm-test-driver.c (STRX): New macro.
3917         (STR): Likewise.
3918         (STR_FLOAT): Likewise.
3919         (STR_VEC_LEN): Likewise.
3920         (TEST_MSG): Likewise.  Define here instead of expecting to be
3921         defined by including file.
3922         * math/test-double-finite.c (TEST_MSG): Remove macro.
3923         * math/test-double-vlen2.h (TEST_MSG): Likewise.
3924         * math/test-double-vlen4.h (TEST_MSG): Likewise.
3925         * math/test-double-vlen8.h (TEST_MSG): Likewise.
3926         * math/test-double.c (TEST_MSG): Likewise.
3927         * math/test-float-finite.c (TEST_MSG): Likewise.
3928         * math/test-float-vlen16.h (TEST_MSG): Likewise.
3929         * math/test-float-vlen4.h (TEST_MSG): Likewise.
3930         * math/test-float-vlen8.h (TEST_MSG): Likewise.
3931         * math/test-float.c (TEST_MSG): Likewise.
3932         * math/test-idouble.c (TEST_MSG): Likewise.
3933         * math/test-ifloat.c (TEST_MSG): Likewise.
3934         * math/test-ildouble.c (TEST_MSG): Likewise.
3935         * math/test-ldouble-finite.c (TEST_MSG): Likewise.
3936         * math/test-ldouble.c (TEST_MSG): Likewise.
3937
3938         * math/libm-test.inc: Move all tests of individual functions to
3939         libm-test-*.inc and #include libm-test-*.c files.
3940         (acos_test_data): Remove.
3941         (acos_test): Likewise.
3942         (acosh_test_data): Likewise.
3943         (acosh_test): Likewise.
3944         (asin_test_data): Likewise.
3945         (asin_test): Likewise.
3946         (asinh_test_data): Likewise.
3947         (asinh_test): Likewise.
3948         (atan_test_data): Likewise.
3949         (atan_test): Likewise.
3950         (atanh_test_data): Likewise.
3951         (atanh_test): Likewise.
3952         (atan2_test_data): Likewise.
3953         (atan2_test): Likewise.
3954         (cabs_test_data): Likewise.
3955         (cabs_test): Likewise.
3956         (cacos_test_data): Likewise.
3957         (cacos_test): Likewise.
3958         (cacosh_test_data): Likewise.
3959         (cacosh_test): Likewise.
3960         (canonicalize_test_data): Likewise.
3961         (canonicalize_test): Likewise.
3962         (carg_test_data): Likewise.
3963         (carg_test): Likewise.
3964         (casin_test_data): Likewise.
3965         (casin_test): Likewise.
3966         (casinh_test_data): Likewise.
3967         (casinh_test): Likewise.
3968         (catan_test_data): Likewise.
3969         (catan_test): Likewise.
3970         (catanh_test_data): Likewise.
3971         (catanh_test): Likewise.
3972         (cbrt_test_data): Likewise.
3973         (cbrt_test): Likewise.
3974         (ccos_test_data): Likewise.
3975         (ccos_test): Likewise.
3976         (ccosh_test_data): Likewise.
3977         (ccosh_test): Likewise.
3978         (ceil_test_data): Likewise.
3979         (ceil_test): Likewise.
3980         (cexp_test_data): Likewise.
3981         (cexp_test): Likewise.
3982         (cimag_test_data): Likewise.
3983         (cimag_test): Likewise.
3984         (clog_test_data): Likewise.
3985         (clog_test): Likewise.
3986         (clog10_test_data): Likewise.
3987         (clog10_test): Likewise.
3988         (conj_test_data): Likewise.
3989         (conj_test): Likewise.
3990         (copysign_test_data): Likewise.
3991         (copysign_test): Likewise.
3992         (cos_test_data): Likewise.
3993         (cos_test): Likewise.
3994         (cosh_test_data): Likewise.
3995         (cosh_test): Likewise.
3996         (cpow_test_data): Likewise.
3997         (cpow_test): Likewise.
3998         (cproj_test_data): Likewise.
3999         (cproj_test): Likewise.
4000         (creal_test_data): Likewise.
4001         (creal_test): Likewise.
4002         (csin_test_data): Likewise.
4003         (csin_test): Likewise.
4004         (csinh_test_data): Likewise.
4005         (csinh_test): Likewise.
4006         (csqrt_test_data): Likewise.
4007         (csqrt_test): Likewise.
4008         (ctan_test_data): Likewise.
4009         (ctan_test): Likewise.
4010         (ctanh_test_data): Likewise.
4011         (ctanh_test): Likewise.
4012         (erf_test_data): Likewise.
4013         (erf_test): Likewise.
4014         (erfc_test_data): Likewise.
4015         (erfc_test): Likewise.
4016         (exp_test_data): Likewise.
4017         (exp_test): Likewise.
4018         (exp10_test_data): Likewise.
4019         (exp10_test): Likewise.
4020         (pow10_test): Likewise.
4021         (exp2_test_data): Likewise.
4022         (exp2_test): Likewise.
4023         (expm1_test_data): Likewise.
4024         (expm1_test): Likewise.
4025         (fabs_test_data): Likewise.
4026         (fabs_test): Likewise.
4027         (fdim_test_data): Likewise.
4028         (fdim_test): Likewise.
4029         (floor_test_data): Likewise.
4030         (floor_test): Likewise.
4031         (fma_test_data): Likewise.
4032         (fma_test): Likewise.
4033         (fmax_test_data): Likewise.
4034         (fmax_test): Likewise.
4035         (fmaxmag_test_data): Likewise.
4036         (fmaxmag_test): Likewise.
4037         (fmin_test_data): Likewise.
4038         (fmin_test): Likewise.
4039         (fminmag_test_data): Likewise.
4040         (fminmag_test): Likewise.
4041         (fmod_test_data): Likewise.
4042         (fmod_test): Likewise.
4043         (fpclassify_test_data): Likewise.
4044         (fpclassify_test): Likewise.
4045         (frexp_test_data): Likewise.
4046         (frexp_test): Likewise.
4047         (fromfp_test_data): Likewise.
4048         (fromfp_test): Likewise.
4049         (fromfpx_test_data): Likewise.
4050         (fromfpx_test): Likewise.
4051         (getpayload_test_data): Likewise.
4052         (getpayload_test): Likewise.
4053         (hypot_test_data): Likewise.
4054         (hypot_test): Likewise.
4055         (ilogb_test_data): Likewise.
4056         (ilogb_test): Likewise.
4057         (iscanonical_test_data): Likewise.
4058         (iscanonical_test): Likewise.
4059         (iseqsig_test_data): Likewise.
4060         (iseqsig_test): Likewise.
4061         (isfinite_test_data): Likewise.
4062         (isfinite_test): Likewise.
4063         (finite_test): Likewise.
4064         (isgreater_test_data): Likewise.
4065         (isgreater_test): Likewise.
4066         (isgreaterequal_test_data): Likewise.
4067         (isgreaterequal_test): Likewise.
4068         (isinf_test_data): Likewise.
4069         (isinf_test): Likewise.
4070         (isless_test_data): Likewise.
4071         (isless_test): Likewise.
4072         (islessequal_test_data): Likewise.
4073         (islessequal_test): Likewise.
4074         (islessgreater_test_data): Likewise.
4075         (islessgreater_test): Likewise.
4076         (isnan_test_data): Likewise.
4077         (isnan_test): Likewise.
4078         (isnormal_test_data): Likewise.
4079         (isnormal_test): Likewise.
4080         (issignaling_test_data): Likewise.
4081         (issignaling_test): Likewise.
4082         (issubnormal_test_data): Likewise.
4083         (issubnormal_test): Likewise.
4084         (isunordered_test_data): Likewise.
4085         (isunordered_test): Likewise.
4086         (iszero_test_data): Likewise.
4087         (iszero_test): Likewise.
4088         (j0_test_data): Likewise.
4089         (j0_test): Likewise.
4090         (j1_test_data): Likewise.
4091         (j1_test): Likewise.
4092         (jn_test_data): Likewise.
4093         (jn_test): Likewise.
4094         (lgamma_test_data): Likewise.
4095         (lgamma_test): Likewise.
4096         (gamma_test): Likewise.
4097         (llogb_test_data): Likewise.
4098         (llogb_test): Likewise.
4099         (lrint_test_data): Likewise.
4100         (lrint_test): Likewise.
4101         (llrint_test_data): Likewise.
4102         (llrint_test): Likewise.
4103         (log_test_data): Likewise.
4104         (log_test): Likewise.
4105         (log10_test_data): Likewise.
4106         (log10_test): Likewise.
4107         (log1p_test_data): Likewise.
4108         (log1p_test): Likewise.
4109         (log2_test_data): Likewise.
4110         (log2_test): Likewise.
4111         (logb_test_data): Likewise.
4112         (logb_test): Likewise.
4113         (lround_test_data): Likewise.
4114         (lround_test): Likewise.
4115         (llround_test_data): Likewise.
4116         (llround_test): Likewise.
4117         (modf_test_data): Likewise.
4118         (modf_test): Likewise.
4119         (nearbyint_test_data): Likewise.
4120         (nearbyint_test): Likewise.
4121         (nextafter_test_data): Likewise.
4122         (nextafter_test): Likewise.
4123         (nextup_test_data): Likewise.
4124         (nextup_test): Likewise.
4125         (nextdown_test_data): Likewise.
4126         (nextdown_test): Likewise.
4127         (nexttoward_test_data): Likewise.
4128         (nexttoward_test): Likewise.
4129         (pow_test_data): Likewise.
4130         (pow_test): Likewise.
4131         (remainder_test_data): Likewise.
4132         (remainder_test): Likewise.
4133         (drem_test): Likewise.
4134         (remquo_test_data): Likewise.
4135         (remquo_test): Likewise.
4136         (rint_test_data): Likewise.
4137         (rint_test): Likewise.
4138         (round_test_data): Likewise.
4139         (round_test): Likewise.
4140         (roundeven_test_data): Likewise.
4141         (roundeven_test): Likewise.
4142         (scalb_test_data): Likewise.
4143         (scalb_test): Likewise.
4144         (scalbn_test_data): Likewise.
4145         (scalbn_test): Likewise.
4146         (ldexp_test): Likewise.
4147         (scalbln_test_data): Likewise.
4148         (scalbln_test): Likewise.
4149         (setpayload_test_data): Likewise.
4150         (setpayload_test): Likewise.
4151         (setpayloadsig_test_data): Likewise.
4152         (setpayloadsig_test): Likewise.
4153         (signbit_test_data): Likewise.
4154         (signbit_test): Likewise.
4155         (sin_test_data): Likewise.
4156         (sin_test): Likewise.
4157         (sincos_test_data): Likewise.
4158         (sincos_test): Likewise.
4159         (sinh_test_data): Likewise.
4160         (sinh_test): Likewise.
4161         (sqrt_test_data): Likewise.
4162         (sqrt_test): Likewise.
4163         (tan_test_data): Likewise.
4164         (tan_test): Likewise.
4165         (tanh_test_data): Likewise.
4166         (tanh_test): Likewise.
4167         (tgamma_test_data): Likewise.
4168         (tgamma_test): Likewise.
4169         (totalorder_test_data): Likewise.
4170         (totalorder_test): Likewise.
4171         (totalordermag_test_data): Likewise.
4172         (totalordermag_test): Likewise.
4173         (trunc_test_data): Likewise.
4174         (trunc_test): Likewise.
4175         (ufromfp_test_data): Likewise.
4176         (ufromfp_test): Likewise.
4177         (ufromfpx_test_data): Likewise.
4178         (ufromfpx_test): Likewise.
4179         (y0_test_data): Likewise.
4180         (y0_test): Likewise.
4181         (y1_test_data): Likewise.
4182         (y1_test): Likewise.
4183         (yn_test_data): Likewise.
4184         (yn_test): Likewise.
4185         (significand_test_data): Likewise.
4186         (significand_test): Likewise.
4187         * math/Makefile (auto-libm-test-out-files): Remove variable.
4188         (libm-test-funcs-noauto): New variable.
4189         (libm-test-funcs-all): Likewise.
4190         (libm-test-c-auto): Likewise.
4191         (libm-test-c-noauto): Likewise.
4192         (libm-tests-generated): Add $(libm-test-c-auto) and
4193         $(libm-test-c-noauto).
4194         (generated): Do not add auto-libm-test-out.
4195         (libm-test-c-auto-obj): New variable.
4196         (libm-test-c-noauto-obj): Likewise.
4197         ($(objpfx)libm-test.c): Do not generate or use auto-libm-test-out.
4198         ($(libm-test-c-noauto-obj)): New static pattern rule.
4199         ($(libm-test-c-auto-obj)): Likewise.
4200         (libm-test-incs): New variable.
4201         ($(objpfx)libm-have-vector-test.h): Depend on $(libm-test-incs)
4202         and pass it to gen-libm-have-vector-test.sh.
4203         * math/gen-libm-have-vector-test.sh: Expect list of .inc files to
4204         be passed on command line.
4205         * math/libm-test-acos.inc: New file.  Content from
4206         math/libm-test.inc.
4207         * math/libm-test-acosh.inc: Likewise.
4208         * math/libm-test-asin.inc: Likewise.
4209         * math/libm-test-asinh.inc: Likewise.
4210         * math/libm-test-atan.inc: Likewise.
4211         * math/libm-test-atan2.inc: Likewise.
4212         * math/libm-test-atanh.inc: Likewise.
4213         * math/libm-test-cabs.inc: Likewise.
4214         * math/libm-test-cacos.inc: Likewise.
4215         * math/libm-test-cacosh.inc: Likewise.
4216         * math/libm-test-canonicalize.inc: Likewise.
4217         * math/libm-test-carg.inc: Likewise.
4218         * math/libm-test-casin.inc: Likewise.
4219         * math/libm-test-casinh.inc: Likewise.
4220         * math/libm-test-catan.inc: Likewise.
4221         * math/libm-test-catanh.inc: Likewise.
4222         * math/libm-test-cbrt.inc: Likewise.
4223         * math/libm-test-ccos.inc: Likewise.
4224         * math/libm-test-ccosh.inc: Likewise.
4225         * math/libm-test-ceil.inc: Likewise.
4226         * math/libm-test-cexp.inc: Likewise.
4227         * math/libm-test-cimag.inc: Likewise.
4228         * math/libm-test-clog.inc: Likewise.
4229         * math/libm-test-clog10.inc: Likewise.
4230         * math/libm-test-conj.inc: Likewise.
4231         * math/libm-test-copysign.inc: Likewise.
4232         * math/libm-test-cos.inc: Likewise.
4233         * math/libm-test-cosh.inc: Likewise.
4234         * math/libm-test-cpow.inc: Likewise.
4235         * math/libm-test-cproj.inc: Likewise.
4236         * math/libm-test-creal.inc: Likewise.
4237         * math/libm-test-csin.inc: Likewise.
4238         * math/libm-test-csinh.inc: Likewise.
4239         * math/libm-test-csqrt.inc: Likewise.
4240         * math/libm-test-ctan.inc: Likewise.
4241         * math/libm-test-ctanh.inc: Likewise.
4242         * math/libm-test-erf.inc: Likewise.
4243         * math/libm-test-erfc.inc: Likewise.
4244         * math/libm-test-exp.inc: Likewise.
4245         * math/libm-test-exp10.inc: Likewise.
4246         * math/libm-test-exp2.inc: Likewise.
4247         * math/libm-test-expm1.inc: Likewise.
4248         * math/libm-test-fabs.inc: Likewise.
4249         * math/libm-test-fdim.inc: Likewise.
4250         * math/libm-test-floor.inc: Likewise.
4251         * math/libm-test-fma.inc: Likewise.
4252         * math/libm-test-fmax.inc: Likewise.
4253         * math/libm-test-fmaxmag.inc: Likewise.
4254         * math/libm-test-fmin.inc: Likewise.
4255         * math/libm-test-fminmag.inc: Likewise.
4256         * math/libm-test-fmod.inc: Likewise.
4257         * math/libm-test-fpclassify.inc: Likewise.
4258         * math/libm-test-frexp.inc: Likewise.
4259         * math/libm-test-fromfp.inc: Likewise.
4260         * math/libm-test-fromfpx.inc: Likewise.
4261         * math/libm-test-getpayload.inc: Likewise.
4262         * math/libm-test-hypot.inc: Likewise.
4263         * math/libm-test-ilogb.inc: Likewise.
4264         * math/libm-test-iscanonical.inc: Likewise.
4265         * math/libm-test-iseqsig.inc: Likewise.
4266         * math/libm-test-isfinite.inc: Likewise.
4267         * math/libm-test-isgreater.inc: Likewise.
4268         * math/libm-test-isgreaterequal.inc: Likewise.
4269         * math/libm-test-isinf.inc: Likewise.
4270         * math/libm-test-isless.inc: Likewise.
4271         * math/libm-test-islessequal.inc: Likewise.
4272         * math/libm-test-islessgreater.inc: Likewise.
4273         * math/libm-test-isnan.inc: Likewise.
4274         * math/libm-test-isnormal.inc: Likewise.
4275         * math/libm-test-issignaling.inc: Likewise.
4276         * math/libm-test-issubnormal.inc: Likewise.
4277         * math/libm-test-isunordered.inc: Likewise.
4278         * math/libm-test-iszero.inc: Likewise.
4279         * math/libm-test-j0.inc: Likewise.
4280         * math/libm-test-j1.inc: Likewise.
4281         * math/libm-test-jn.inc: Likewise.
4282         * math/libm-test-lgamma.inc: Likewise.
4283         * math/libm-test-llogb.inc: Likewise.
4284         * math/libm-test-llrint.inc: Likewise.
4285         * math/libm-test-llround.inc: Likewise.
4286         * math/libm-test-log.inc: Likewise.
4287         * math/libm-test-log10.inc: Likewise.
4288         * math/libm-test-log1p.inc: Likewise.
4289         * math/libm-test-log2.inc: Likewise.
4290         * math/libm-test-logb.inc: Likewise.
4291         * math/libm-test-lrint.inc: Likewise.
4292         * math/libm-test-lround.inc: Likewise.
4293         * math/libm-test-modf.inc: Likewise.
4294         * math/libm-test-nearbyint.inc: Likewise.
4295         * math/libm-test-nextafter.inc: Likewise.
4296         * math/libm-test-nextdown.inc: Likewise.
4297         * math/libm-test-nexttoward.inc: Likewise.
4298         * math/libm-test-nextup.inc: Likewise.
4299         * math/libm-test-pow.inc: Likewise.
4300         * math/libm-test-remainder.inc: Likewise.
4301         * math/libm-test-remquo.inc: Likewise.
4302         * math/libm-test-rint.inc: Likewise.
4303         * math/libm-test-round.inc: Likewise.
4304         * math/libm-test-roundeven.inc: Likewise.
4305         * math/libm-test-scalb.inc: Likewise.
4306         * math/libm-test-scalbln.inc: Likewise.
4307         * math/libm-test-scalbn.inc: Likewise.
4308         * math/libm-test-setpayload.inc: Likewise.
4309         * math/libm-test-setpayloadsig.inc: Likewise.
4310         * math/libm-test-signbit.inc: Likewise.
4311         * math/libm-test-significand.inc: Likewise.
4312         * math/libm-test-sin.inc: Likewise.
4313         * math/libm-test-sincos.inc: Likewise.
4314         * math/libm-test-sinh.inc: Likewise.
4315         * math/libm-test-sqrt.inc: Likewise.
4316         * math/libm-test-tan.inc: Likewise.
4317         * math/libm-test-tanh.inc: Likewise.
4318         * math/libm-test-tgamma.inc: Likewise.
4319         * math/libm-test-totalorder.inc: Likewise.
4320         * math/libm-test-totalordermag.inc: Likewise.
4321         * math/libm-test-trunc.inc: Likewise.
4322         * math/libm-test-ufromfp.inc: Likewise.
4323         * math/libm-test-ufromfpx.inc: Likewise.
4324         * math/libm-test-y0.inc: Likewise.
4325         * math/libm-test-y1.inc: Likewise.
4326         * math/libm-test-yn.inc: Likewise.
4327         * math/README.libm-test: Update.
4328
4329         * math/gen-auto-libm-tests.c: Update comment about use of program.
4330         (generate_output): Add argument FUNCTION.
4331         (main): Require extra argument.  Pass function name to
4332         generate_output.
4333         * math/Makefile (generated): Add auto-libm-test-out.
4334         (libm-test-funcs-auto): New variable.
4335         (auto-libm-test-out-files): New variable.
4336         ($(objpfx)libm-test.c): Depend on $(auto-libm-test-out-files).
4337         Concatenate those files to form $(objpfx)auto-libm-test-out and
4338         use it as input to gen-libm-test.pl.
4339         * math/README.libm-test: Update.
4340         * math/auto-libm-test-out: Remove.
4341         * math/auto-libm-test-out-acos: New generated file.
4342         * math/auto-libm-test-out-acosh: Likewise.
4343         * math/auto-libm-test-out-asin: Likewise.
4344         * math/auto-libm-test-out-asinh: Likewise.
4345         * math/auto-libm-test-out-atan: Likewise.
4346         * math/auto-libm-test-out-atan2: Likewise.
4347         * math/auto-libm-test-out-atanh: Likewise.
4348         * math/auto-libm-test-out-cabs: Likewise.
4349         * math/auto-libm-test-out-carg: Likewise.
4350         * math/auto-libm-test-out-cbrt: Likewise.
4351         * math/auto-libm-test-out-ccos: Likewise.
4352         * math/auto-libm-test-out-ccosh: Likewise.
4353         * math/auto-libm-test-out-cexp: Likewise.
4354         * math/auto-libm-test-out-clog: Likewise.
4355         * math/auto-libm-test-out-clog10: Likewise.
4356         * math/auto-libm-test-out-cos: Likewise.
4357         * math/auto-libm-test-out-cosh: Likewise.
4358         * math/auto-libm-test-out-cpow: Likewise.
4359         * math/auto-libm-test-out-csin: Likewise.
4360         * math/auto-libm-test-out-csinh: Likewise.
4361         * math/auto-libm-test-out-csqrt: Likewise.
4362         * math/auto-libm-test-out-ctan: Likewise.
4363         * math/auto-libm-test-out-ctanh: Likewise.
4364         * math/auto-libm-test-out-erf: Likewise.
4365         * math/auto-libm-test-out-erfc: Likewise.
4366         * math/auto-libm-test-out-exp: Likewise.
4367         * math/auto-libm-test-out-exp10: Likewise.
4368         * math/auto-libm-test-out-exp2: Likewise.
4369         * math/auto-libm-test-out-expm1: Likewise.
4370         * math/auto-libm-test-out-fma: Likewise.
4371         * math/auto-libm-test-out-hypot: Likewise.
4372         * math/auto-libm-test-out-j0: Likewise.
4373         * math/auto-libm-test-out-j1: Likewise.
4374         * math/auto-libm-test-out-jn: Likewise.
4375         * math/auto-libm-test-out-lgamma: Likewise.
4376         * math/auto-libm-test-out-log: Likewise.
4377         * math/auto-libm-test-out-log10: Likewise.
4378         * math/auto-libm-test-out-log1p: Likewise.
4379         * math/auto-libm-test-out-log2: Likewise.
4380         * math/auto-libm-test-out-pow: Likewise.
4381         * math/auto-libm-test-out-sin: Likewise.
4382         * math/auto-libm-test-out-sincos: Likewise.
4383         * math/auto-libm-test-out-sinh: Likewise.
4384         * math/auto-libm-test-out-sqrt: Likewise.
4385         * math/auto-libm-test-out-tan: Likewise.
4386         * math/auto-libm-test-out-tanh: Likewise.
4387         * math/auto-libm-test-out-tgamma: Likewise.
4388         * math/auto-libm-test-out-y0: Likewise.
4389         * math/auto-libm-test-out-y1: Likewise.
4390         * math/auto-libm-test-out-yn: Likewise.
4391
4392         * math/Makefile (generated): Do not include libm-test.stmp.
4393         ($(addprefix $(objpfx), $(libm-tests-generated))): Do not depend
4394         on $(objpfx)libm-test.stmp.
4395         ($(objpfx)libm-test.stmp): Remove rule.
4396         ($(objpfx)libm-test-ulps.h): New rule.
4397         ($(objpfx)libm-test.c): Likewise.
4398         ($(objpfx)libm-have-vector-test.h): Likewise.
4399         ($(addprefix $(objpfx), $(libm-tests.o)): Depend directly on
4400         individual generated files, not libm-test.stmp.
4401
4402         * math/gen-libm-test.pl ($output_dir): Remove variable.
4403         ($srcdir): Likewise.
4404         ($opt_a): New variable.
4405         ($opt_c): Likewise.
4406         ($opt_C): Likewise.
4407         ($opt_H): Likewise.
4408         (-n): Make option take argument and use it as NewUlps output.
4409         (-a): New option.  Use its argument for auto-libm-test-out input.
4410         (-c): New option.  Use its argument for libm-test.inc input.
4411         (-C): New option.  Use its argument for libm-test.c output.
4412         (-H): New option.  Use its argument for libm-test-ulps.h output.
4413         (top level): Only process inputs needed to generate outputs
4414         specified by command-line options.  Only generate outputs
4415         specified by command-line options.
4416         * math/README.libm-test: Update example gen-libm-test.pl command.
4417         * math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
4418         commands.
4419         (regen-ulps): Likewise.
4420
4421 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
4422
4423         * hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.
4424         * include/string.h (index): Remove define.
4425         (rindex): Likewise.
4426         * misc/getttyent.c (__getttyent): Rename index to strchr.
4427         * misc/ttyslot.c (ttyslot): Rename rindex to strrchr.
4428         * sunrpc/rpc_main.c (mkfile_output): Likewise.
4429
4430 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4431
4432         * math/libm-test-driver.c: New file.  Based on math/libm-test.inc.
4433         * math/libm-test.inc: Move all contents, other than tests of
4434         individual functions, to libm-test-driver.c.
4435         [!FE_TONEAREST] (FE_TONEAREST): Move to libm-test-driver.c.
4436         [!FE_TOWARDZERO] (FE_TOWARDZERO): Likewise.
4437         [!FE_UPWARD] (FE_UPWARD): Likewise.
4438         [!FE_DOWNWARD] (FE_DOWNWARD): Likewise.
4439         (NO_EXCEPTION): Likewise.
4440         (INVALID_EXCEPTION): Likewise.
4441         (DIVIDE_BY_ZERO_EXCEPTION): Likewise.
4442         (OVERFLOW_EXCEPTION): Likewise.
4443         (UNDERFLOW_EXCEPTION): Likewise.
4444         (INEXACT_EXCEPTION): Likewise.
4445         (INVALID_EXCEPTION_OK): Likewise.
4446         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
4447         (OVERFLOW_EXCEPTION_OK): Likewise.
4448         (UNDERFLOW_EXCEPTION_OK): Likewise.
4449         (NO_INEXACT_EXCEPTION): Likewise.
4450         (EXCEPTIONS_OK): Likewise.
4451         (IGNORE_ZERO_INF_SIGN): Likewise.
4452         (TEST_NAN_SIGN): Likewise.
4453         (TEST_NAN_PAYLOAD): Likewise.
4454         (NO_TEST_INLINE): Likewise.
4455         (XFAIL_TEST): Likewise.
4456         (ERRNO_UNCHANGED): Likewise.
4457         (ERRNO_EDOM): Likewise.
4458         (ERRNO_ERANGE): Likewise.
4459         (IGNORE_RESULT): Likewise.
4460         (NON_FINITE): Likewise.
4461         (TEST_SNAN): Likewise.
4462         (NO_TEST_MATHVEC): Likewise.
4463         (TEST_NAN_PAYLOAD_CANONICALIZE): Likewise.
4464         (__CONCATX): Likewise.
4465         (TYPE_MIN): Likewise.
4466         (TYPE_TRUE_MIN): Likewise.
4467         (TYPE_MAX): Likewise.
4468         (MIN_EXP): Likewise.
4469         (MAX_EXP): Likewise.
4470         (MANT_DIG): Likewise.
4471         (FSTR_MAX): Likewise.
4472         (ULP_IDX): Likewise.
4473         (QTYPE_STR): Likewise.
4474         (TEST_COND_binary32): Likewise.
4475         (TEST_COND_binary64): Likewise.
4476         (TEST_COND_binary128): Likewise.
4477         (TEST_COND_ibm128): Likewise.
4478         (TEST_COND_intel96): Likewise.
4479         (TEST_COND_m68k96): Likewise.
4480         (TEST_COND_ibm128_libgcc): Likewise.
4481         (XFAIL_IBM128_LIBGCC): Likewise.
4482         (PAYLOAD_DIG): Likewise.
4483         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
4484         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
4485         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
4486         (UNDERFLOW_EXCEPTION_OK_DOUBLE): Likewise.
4487         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
4488         (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): Likewise.
4489         (TEST_COND_long32): Likewise.
4490         (TEST_COND_long64): Likewise.
4491         (TEST_COND_before_rounding): Likewise.
4492         (TEST_COND_after_rounding): Likewise.
4493         (lit_pi_3_m_4_d): Likewise.
4494         (lit_pi_3_m_4_ln10_m_d): Likewise.
4495         (lit_pi_2_ln10_m_d): Likewise.
4496         (lit_pi_4_ln10_m_d): Likewise.
4497         (lit_pi_ln10_d): Likewise.
4498         (lit_pi_2_d): Likewise.
4499         (lit_pi_4_d): Likewise.
4500         (lit_pi): Likewise.
4501         (lit_e): Likewise.
4502         (ulps_file_name): Likewise.
4503         (ulps_file): Likewise.
4504         (output_ulps): Likewise.
4505         (output_dir): Likewise.
4506         (noErrors): Likewise.
4507         (noTests): Likewise.
4508         (noExcTests): Likewise.
4509         (noErrnoTests): Likewise.
4510         (verbose): Likewise.
4511         (output_max_error): Likewise.
4512         (output_points): Likewise.
4513         (ignore_max_ulp): Likewise.
4514         (plus_zero): Likewise.
4515         (minus_zero): Likewise.
4516         (plus_infty): Likewise.
4517         (minus_infty): Likewise.
4518         (qnan_value_pl): Likewise.
4519         (qnan_value): Likewise.
4520         (snan_value_pl): Likewise.
4521         (snan_value): Likewise.
4522         (max_value): Likewise.
4523         (min_value): Likewise.
4524         (min_subnorm_value): Likewise.
4525         (snan_value_ld): Likewise.
4526         (max_error): Likewise.
4527         (real_max_error): Likewise.
4528         (imag_max_error): Likewise.
4529         (prev_max_error): Likewise.
4530         (prev_real_max_error): Likewise.
4531         (prev_imag_max_error): Likewise.
4532         (max_valid_error): Likewise.
4533         (TYPE_DECIMAL_DIG): Likewise.
4534         (TYPE_HEX_DIG): Likewise.
4535         (fmt_ftostr): Likewise.
4536         (compare_ulp_data): Likewise.
4537         (find_ulps): Likewise.
4538         (init_max_error): Likewise.
4539         (set_max_error): Likewise.
4540         (print_float): Likewise.
4541         (print_screen): Likewise.
4542         (print_screen_max_error): Likewise.
4543         (update_stats): Likewise.
4544         (print_function_ulps): Likewise.
4545         (print_complex_function_ulps): Likewise.
4546         (fpstack_test): Likewise.
4547         (print_max_error): Likewise.
4548         (print_complex_max_error): Likewise.
4549         (test_single_exception): Likewise.
4550         (test_exceptions): Likewise.
4551         (test_single_errno): Likewise.
4552         (test_errno): Likewise.
4553         (ULPDIFF): Likewise.
4554         (ulp): Likewise.
4555         (check_float_internal): Likewise.
4556         (check_float): Likewise.
4557         (check_complex): Likewise.
4558         (check_int): Likewise.
4559         (check_long): Likewise.
4560         (check_bool): Likewise.
4561         (check_longlong): Likewise.
4562         (check_intmax_t): Likewise.
4563         (check_uintmax_t): Likewise.
4564         (enable_test): Likewise.
4565         (struct test_f_f_data): Likewise.
4566         (struct test_ff_f_data): Likewise.
4567         (struct test_fj_f_data): Likewise.
4568         (struct test_fi_f_data): Likewise.
4569         (struct test_fl_f_data): Likewise.
4570         (struct test_if_f_data): Likewise.
4571         (struct test_fff_f_data): Likewise.
4572         (struct test_fiu_M_data): Likewise.
4573         (struct test_fiu_U_data): Likewise.
4574         (struct test_c_f_data): Likewise.
4575         (struct test_f_f1_data): Likewise.
4576         (struct test_fF_f1_data): Likewise.
4577         (struct test_ffI_f1_data): Likewise.
4578         (struct test_c_c_data): Likewise.
4579         (struct test_cc_c_data): Likewise.
4580         (struct test_f_i_data): Likewise.
4581         (struct test_ff_i_data): Likewise.
4582         (struct test_f_l_data): Likewise.
4583         (struct test_f_L_data): Likewise.
4584         (struct test_fFF_11_data): Likewise.
4585         (struct test_Ff_b1_data): Likewise.
4586         (IF_ROUND_INIT_): Likewise.
4587         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4588         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4589         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4590         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4591         (ROUND_RESTORE_): Likewise.
4592         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4593         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4594         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4595         (ROUND_RESTORE_FE_UPWARD): Likewise.
4596         (RM_): Likewise.
4597         (RM_FE_DOWNWARD): Likewise.
4598         (RM_FE_TONEAREST): Likewise.
4599         (RM_FE_TOWARDZERO): Likewise.
4600         (RM_FE_UPWARD): Likewise.
4601         (COMMON_TEST_SETUP): Likewise.
4602         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4603         (COMMON_TEST_CLEANUP): Likewise.
4604         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4605         (RUN_TEST_f_f): Likewise.
4606         (RUN_TEST_LOOP_f_f): Likewise.
4607         (RUN_TEST_fp_f): Likewise.
4608         (RUN_TEST_LOOP_fp_f): Likewise.
4609         (RUN_TEST_2_f): Likewise.
4610         (RUN_TEST_LOOP_2_f): Likewise.
4611         (RUN_TEST_ff_f): Likewise.
4612         (RUN_TEST_LOOP_ff_f): Likewise.
4613         (RUN_TEST_LOOP_fj_f): Likewise.
4614         (RUN_TEST_fi_f): Likewise.
4615         (RUN_TEST_LOOP_fi_f): Likewise.
4616         (RUN_TEST_fl_f): Likewise.
4617         (RUN_TEST_LOOP_fl_f): Likewise.
4618         (RUN_TEST_if_f): Likewise.
4619         (RUN_TEST_LOOP_if_f): Likewise.
4620         (RUN_TEST_fff_f): Likewise.
4621         (RUN_TEST_LOOP_fff_f): Likewise.
4622         (RUN_TEST_fiu_M): Likewise.
4623         (RUN_TEST_LOOP_fiu_M): Likewise.
4624         (RUN_TEST_fiu_U): Likewise.
4625         (RUN_TEST_LOOP_fiu_U): Likewise.
4626         (RUN_TEST_c_f): Likewise.
4627         (RUN_TEST_LOOP_c_f): Likewise.
4628         (RUN_TEST_f_f1): Likewise.
4629         (RUN_TEST_LOOP_f_f1): Likewise.
4630         (RUN_TEST_fF_f1): Likewise.
4631         (RUN_TEST_LOOP_fF_f1): Likewise.
4632         (RUN_TEST_fI_f1): Likewise.
4633         (RUN_TEST_LOOP_fI_f1): Likewise.
4634         (RUN_TEST_ffI_f1_mod8): Likewise.
4635         (RUN_TEST_LOOP_ffI_f1_mod8): Likewise.
4636         (RUN_TEST_Ff_b1): Likewise.
4637         (RUN_TEST_LOOP_Ff_b1): Likewise.
4638         (RUN_TEST_Ffp_b1): Likewise.
4639         (RUN_TEST_LOOP_Ffp_b1): Likewise.
4640         (RUN_TEST_c_c): Likewise.
4641         (RUN_TEST_LOOP_c_c): Likewise.
4642         (RUN_TEST_cc_c): Likewise.
4643         (RUN_TEST_LOOP_cc_c): Likewise.
4644         (RUN_TEST_f_i): Likewise.
4645         (RUN_TEST_LOOP_f_i): Likewise.
4646         (RUN_TEST_f_i_tg): Likewise.
4647         (RUN_TEST_LOOP_f_i_tg): Likewise.
4648         (RUN_TEST_ff_b): Likewise.
4649         (RUN_TEST_LOOP_ff_b): Likewise.
4650         (RUN_TEST_ff_i_tg): Likewise.
4651         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4652         (RUN_TEST_f_b): Likewise.
4653         (RUN_TEST_LOOP_f_b): Likewise.
4654         (RUN_TEST_f_b_tg): Likewise.
4655         (RUN_TEST_LOOP_f_b_tg): Likewise.
4656         (RUN_TEST_f_l): Likewise.
4657         (RUN_TEST_LOOP_f_l): Likewise.
4658         (RUN_TEST_f_L): Likewise.
4659         (RUN_TEST_LOOP_f_L): Likewise.
4660         (RUN_TEST_fFF_11): Likewise.
4661         (RUN_TEST_LOOP_fFF_11): Likewise.
4662         (VEC_SUFF): Likewise.
4663         (STR_CONCAT): Likewise.
4664         (STR_CON3): Likewise.
4665         (HAVE_VECTOR): Likewise.
4666         (START): Likewise.
4667         (END): Likewise.
4668         (END_COMPLEX): Likewise.
4669         (ALL_RM_TEST): Likewise.
4670         (matherr): Likewise.
4671         (initialize): Likewise.
4672         (options): Likewise.
4673         (doc): Likewise.
4674         (parse_opt): Likewise.
4675         (argp): Likewise.
4676         (check_ulp): Likewise.
4677         (main): Likewise.
4678         (do_test): New function.  Call tests of individual functions
4679         previously called from main.
4680
4681         * math/libm-test.inc: Remove comment listing functions tested and
4682         not tested.
4683
4684 2016-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4685
4686         * nptl/allocatestack.c [COLORING_INCREMENT] (nptl_ncreated): Remove.
4687         (allocate_stack): Remove COLORING_INCREMENT usage.
4688         * nptl/stack-aliasing.h (COLORING_INCREMENT). Likewise.
4689         * sysdeps/i386/i686/stack-aliasing.h (COLORING_INCREMENT): Likewise.
4690
4691 2017-02-06  Joseph Myers  <joseph@codesourcery.com>
4692
4693         * manual/libm-err-tab.pl (@all_functions): Change to
4694         %all_functions.  Initialize as empty.
4695         (parse_ulps): Add to %all_functions based on functions found in
4696         ulps files.  Ignore results for non-default rounding modes and
4697         vector functions.
4698         (print_platforms): Use %all_platforms.
4699         * manual/math.texi (Errors in Math Functions): Document omissions
4700         from the table.
4701
4702         * math/Makefile (before-compile): Remove.
4703
4704 2017-02-06  Ivo Raisr <ivo.raisr@oracle.com>
4705
4706         [BZ #21075]
4707         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Remove
4708         unused assignment.
4709         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4710
4711 2017-02-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
4712
4713         * sysdeps/nptl/lowlevellock.h (lll_trylock, lll_cond_trylock):
4714         Add __glibc_unlikely hint.
4715
4716 2017-02-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4717
4718         [BZ #16640]
4719         * sysdeps/i386/i686/strtok.S: Remove file.
4720         * sysdeps/i386/i686/strtok_r.S: Likewise.
4721         * sysdeps/i386/strtok.S: Likewise.
4722         * sysdeps/i386/strtok_r.S: Likewise.
4723         * sysdeps/powerpc/powerpc64/strtok.S: Likewise.
4724         * sysdeps/powerpc/powerpc64/strtok_r.S: Likewise.
4725         * sysdeps/x86_64/strtok.S: Likewise.
4726         * sysdeps/x86_64/strtok_r.S: Likewise.
4727
4728         * sysdeps/unix/sysv/linux/arm/posix_fadvise.c: Remove file.
4729         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
4730         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4731         (__ASSUME_FADVISE64_AS_64_64): Define.
4732         * sysdeps/unix/sysv/linux/posix_fadvise.c [__NR_fadvise64]: Add
4733         !defined __ASSUME_FADVISE64_AS_64_64 to use syscall issue.
4734         [!__NR_fadvise64 && __ASSUME_FADVISE64_64_6ARG]: Remove
4735         __ALIGNMENT_ARG usage.
4736         [!__NR_fadvise64 && !__ASSUME_FADVISE64_64_6ARG]: Define
4737         __NR_fadvise64_64 if it is not defined.
4738
4739 2017-02-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4740
4741         * version.h (RELEASE): Set to "development"
4742         (VERSION): Set to 2.25.90.
4743         * NEWS: Add 2.26 section.
4744
4745         * version.h (RELEASE): Set to "stable"
4746         (VERSION): Set to 2.25.
4747         * include/features.h (__GLIBC_MINOR__): Set to 25.
4748
4749         * manual/contrib.texi: Add more contributors from this release
4750         and past releases.
4751
4752         * NEWS (2.25): Add list of bugs fixed.
4753
4754         * NEWS: Add missing news items.
4755
4756 2017-02-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4757
4758         * elf/tst-env-setuid.c (do_execve): Return EXIT_UNSUPPORTED in
4759         parent if child exited in that manner.  Print WEXITSTATUS
4760         instead of the raw status.
4761         (do_test_prep): Rename to do_test.
4762         (do_test): Return the result of run_executable_sgid.
4763         (TEST_FUNCTION_ARGV): Adjust.
4764
4765 2017-02-03  Alexandre Oliva  <aoliva@redhat.com>
4766             Florian Weimer  <fweimer@redhat.com>
4767             Carlos O'Donell  <carlos@redhat.com>
4768
4769         [BZ #20915]
4770         * elf/dl-reloc.c (_dl_nothread_init_static_tls):
4771         Do not initialize DTV.
4772         * nptl/allocatestack.c (init_one_static_tls): Likewise.
4773
4774 2017-02-03  David S. Miller  <davem@davemloft.net>
4775
4776         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax-vis3.S: Remove file.
4777         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
4778         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: Likewise.
4779         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
4780         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: Likewise.
4781         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
4782         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: Likewise.
4783         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
4784         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
4785         (libm-sysdep_routines): Update.
4786         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Remove file.
4787         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: Likewise.
4788         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4789         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: Likewise.
4790         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4791         * sysdeps/sparc/sparc64/fpu/s_fmax.S: Likewise.
4792         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: Likewise.
4793         * sysdeps/sparc/sparc64/fpu/s_fmin.S: Likewise.
4794         * sysdeps/sparc/sparc64/fpu/s_fminf.S: Likewise.
4795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S:
4796         Likewise.
4797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4798         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S:
4799         Likewise.
4800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
4801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S:
4802         Likewise.
4803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S:
4805         Likewise.
4806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
4807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
4808         (libm-sysdep_routines): Update.
4809
4810 2017-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4811
4812         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
4813         _dl_fatal_printf with _dl_error_printf for IFUNC relocation
4814         against unrelocated shared library.
4815         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4816
4817 2017-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4818
4819         * sysdeps/generic/unsecvars.h: Add GLIBC_TUNABLES.
4820         * elf/tst-env-setuid-tunables.c
4821         (test_child_tunables)[!HAVE_TUNABLES]: Verify that
4822         GLIBC_TUNABLES is removed in a setgid process.
4823
4824         [BZ #21073]
4825         * elf/dl-tunable-types.h (tunable_seclevel_t): New enum.
4826         * elf/dl-tunables.c (tunables_strdup): Remove.
4827         (get_next_env): Also return the previous envp.
4828         (parse_tunables): Erase tunables of category
4829         TUNABLES_SECLEVEL_SXID_ERASE.
4830         (maybe_enable_malloc_check): Make MALLOC_CHECK_
4831         TUNABLE_SECLEVEL_NONE if /etc/setuid-debug is accessible.
4832         (__tunables_init)[TUNABLES_FRONTEND ==
4833         TUNABLES_FRONTEND_valstring]: Update GLIBC_TUNABLES envvar
4834         after parsing.
4835         [TUNABLES_FRONTEND != TUNABLES_FRONTEND_valstring]: Erase
4836         tunable envvars of category TUNABLES_SECLEVEL_SXID_ERASE.
4837         * elf/dl-tunables.h (struct _tunable): Change member is_secure
4838         to security_level.
4839         * elf/dl-tunables.list: Add security_level annotations for all
4840         tunables.
4841         * scripts/gen-tunables.awk: Recognize and generate enum values
4842         for security_level.
4843         * elf/tst-env-setuid.c: New test case.
4844         * elf/tst-env-setuid-tunables: new test case.
4845         * elf/Makefile (tests-static): Add them.
4846
4847 2017-02-01  Richard Henderson  <rth@twiddle.net>
4848
4849         * sysdeps/alpha/memchr.c (__memchr): Use saturating arithmetic
4850         adjusting the byte count.
4851
4852 2017-02-01  Andreas Schwab  <schwab@linux-m68k.org>
4853
4854         * conform/Makefile (linknamespace-libs): Define.
4855
4856         * sysdeps/m68k/m680x0/m68020/atomic-machine.h
4857         (__arch_compare_and_exchange_val_64_acq, atomic_exchange_acq)
4858         (atomic_exchange_and_add, atomic_add): Add casts to 64 bit asm
4859         operands.
4860
4861 2017-01-31  Chung-Lin Tang  <cltang@codesourcery.com>
4862
4863         * sysdeps/unix/sysv/linux/nios2/ipc_priv.h: New file.
4864
4865 2017-01-30  H.J. Lu  <hongjiu.lu@intel.com>
4866
4867         [BZ #21081]
4868         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
4869         (L(stosb)): Add VZEROUPPER before ret.
4870
4871 2016-01-28  Carlos O'Donell  <carlos@redhat.com>
4872             Alexey Makhalov <amakhalov@vmware.com>
4873             Florian Weimer <fweimer@redhat.com>
4874
4875         [BZ #20116]
4876         * nptl/pthread_create.c: Document concurrency notes.
4877         Enhance thread creation notes.
4878         (create_thread): Use bool *stopped_start.
4879         (START_THREAD_DEFN): Comment ownership of PD.
4880         (__pthread_create_2_1): Add local bool stopped_start and use
4881         that instead of pd->stopped_start where appropriate.
4882         * nptl/createthread.c (create_thread): Use bool *stopped_start.
4883         * sysdeps/nacl/createthread.c (create_thread): Use bool *stopped_start.
4884         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
4885         * nptl/tst-create-detached.c: New file.
4886         * nptl/Makefile (tests): Add tst-create-detached.
4887         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
4888         Reference the enhanced thread creation notes.
4889         * nptl/pthread_setschedparam.c (__pthread_setschedparam): Likewise.
4890         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
4891         * nptl/tpp.c (__pthread_tpp_change_priority): Likewise.
4892         (__pthread_current_priority): Likewise.
4893         * support/Makefile (libsupport-routines): Add xpthread_attr_destroy
4894         xpthread_attr_init, xpthread_attr_setdetachstate, and
4895         xpthread_attr_setstacksize.
4896         * support/xpthread_attr_destroy.c: New file.
4897         * support/xpthread_attr_init.c: New file.
4898         * support/xpthread_attr_setdetachstate.c: New file.
4899         * support/xpthread_attr_setstacksize.c: New file.
4900         * support/xthread.h: Define prototypes for xpthread_attr_destroy
4901         xpthread_attr_init, xpthread_attr_setdetachstate, and
4902         xpthread_attr_setstacksize.
4903
4904 2017-01-27  Florian Weimer  <fweimer@redhat.com>
4905
4906         * nptl/Makefile (tests): Add tst-robust-fork.
4907         * nptl/tst-robust-fork.c: New file.
4908         * support/Makefile (libsupport-routines): Add xmmap, xmunmap,
4909         xpthread_mutex_consistent, xpthread_mutex_destroy,
4910         xpthread_mutex_init, xpthread_mutexattr_destroy,
4911         xpthread_mutexattr_init, xpthread_mutexattr_setprotocol,
4912         xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust,
4913         xpthread_mutexattr_settype.
4914         * support/xmmap.c: New file.
4915         * support/xmunmap.c: Likewise.
4916         * support/xpthread_mutex_consistent.c: Likewise.
4917         * support/xpthread_mutex_destroy.c: Likewise.
4918         * support/xpthread_mutex_init.c: Likewise.
4919         * support/xpthread_mutexattr_destroy.c: Likewise.
4920         * support/xpthread_mutexattr_init.c: Likewise.
4921         * support/xpthread_mutexattr_setprotocol.c: Likewise.
4922         * support/xpthread_mutexattr_setpshared.c: Likewise.
4923         * support/xpthread_mutexattr_setrobust.c: Likewise.
4924         * support/xpthread_mutexattr_settype.c: Likewise.
4925         * support/xthread.h (xpthread_mutexattr_destroy)
4926         (xpthread_mutexattr_init, xpthread_mutexattr_setprotocol)
4927         (xpthread_mutexattr_setpshared, xpthread_mutexattr_setrobust)
4928         (xpthread_mutexattr_settype, xpthread_mutex_init)
4929         (xpthread_mutex_destroy, xpthread_mutex_consistent): Declare.
4930         * support/xunistd.h (xmmap, xmunmap): Likewise.
4931
4932 2017-01-25  Florian Weimer  <fweimer@redhat.com>
4933
4934         * string/Makefile (xtests): Add comment.
4935         (LOCALES): Add en_GB.UTF-8.
4936         (tst-strcoll-overflow.out): Depend on generated locales.
4937         * string/tst-strcoll-overflow.c: Convert to support/test-driver.c.
4938         (SIZE, TIMEOUT): Update comments.
4939         (do_test): Define as static.  Fail test if setlocale fails.
4940         Return EXIT_UNSUPPORTED if insufficient memory.  Enhance output
4941         messages.
4942         (EXPECTED_SIGNAL, EXPECTED_STATUS, TEST_FUNCTION): Remove.
4943         TIMEOUT at 300 seconds should be enough to run this test
4944         successfully.
4945
4946 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
4947
4948         * soft-fp/op-common.h (_FP_MUL, _FP_FMA, _FP_DIV): Add
4949         /* FALLTHRU */ comments.
4950
4951 2017-01-24  James Clarke  <jrtc27@jrtc27.com>
4952
4953         [BZ #21053]
4954         * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.sym: Use new REG_R*
4955         constants instead of the old R* ones.
4956         * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym: Likewise.
4957         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (NGPREG): Rename...
4958         (NGREG): ... to this, to fit in with other architectures.
4959         (gpregset_t): Use new NGREG macro.
4960         [__USE_GNU]: Remove condition; all architectures other than tile
4961         are unconditional.
4962         (R*): Rename to REG_R*.
4963
4964 2017-01-20  DJ Delorie  <dj@redhat.com>
4965
4966         * elf/dl-tunables.c (tunable_set_val_if_valid_range): Split into ...
4967         (tunable_set_val_if_valid_range_signed) ... this, and ...
4968         (tunable_set_val_if_valid_range_unsigned) ... this.
4969         (tunable_initialize): Call the correct one of the above based on type.
4970
4971 2017-01-20  Joseph Myers  <joseph@codesourcery.com>
4972
4973         * sysdeps/hppa/fpu/libm-test-ulps: Remove *_tonearest entries.
4974         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
4975         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
4976         * sysdeps/microblaze/libm-test-ulps: Likewise.
4977         * sysdeps/sh/libm-test-ulps: Likewise.
4978
4979         * math/README.libm-test: Update list of characters for input and
4980         output types.
4981
4982 2017-01-20  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4983
4984         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
4985         (__lll_unlock_elision): Fix adapt_count decrement.
4986
4987 2017-01-14  Martin Galvan  <martingalvan@sourceware.org>
4988
4989         * README.pretty-printers (Known issues): Warn about printers not
4990         always covering everything.
4991         * nptl/nptl-printers.py (MutexPrinter): Change output.
4992         * nptl/test-mutex-printers.py: Fix test and adapt to changed output.
4993
4994 2017-01-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
4995
4996         * sysdeps/unix/sysv/linux/s390/htm.h: Adjust comments.
4997         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4998         * sysdeps/unix/sysv/linux/s390/elision-lock.c: Adjust comments.
4999         (__lll_lock_elision): Do not test futex before starting a
5000         transaction.  Use __glibc_likely instead of __builtin_expect.
5001         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Adjust comments.
5002         (__lll_trylock_elision): Do not test futex before starting a
5003         transaction.  Use __glibc_likely instead of __builtin_expect.
5004
5005 2017-01-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5006
5007         * po/Makefile (update-translations): New target.
5008
5009 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
5010
5011         [BZ #21061]
5012         * sysdeps/unix/sysv/linux/microblaze/clock-compat.c: New file.
5013
5014 2017-01-19  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5015
5016         * elf/dl-tunables (get_next_env): Always advance envp.
5017         * stdlib/tst-empty-env.c: New test case.
5018         * stdlib/Makefile (tests): Use it.
5019
5020 2017-01-19  Joseph Myers  <joseph@codesourcery.com>
5021
5022         [BZ #21047]
5023         * sysdeps/arm/fpu_control.h [!__SOFTFP__] (_FPU_GETCW): Use VFP
5024         name for instruction.
5025         [!__SOFTFP__] (_FPU_SETCW): Likewise.
5026
5027 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
5028
5029         * scripts/build-many-glibcs.py (Config.build_cross_tool): Use -j1
5030         for make install.
5031
5032 2017-01-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5033
5034         * po/bg.po: Merge from Translation Project.
5035         * po/fr.po: Likewise.
5036         * po/ko.po: Likewise.
5037         * po/nl.po: Likewise.
5038         * po/sv.po: Likewise.
5039
5040 2017-01-18  Joseph Myers  <joseph@codesourcery.com>
5041
5042         * manual/install.texi (Tools for Compilation): Update GCC version
5043         known to work to build glibc.
5044         * INSTALL: Regenerated.
5045
5046 2017-01-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
5047
5048         [BZ #21006]
5049         * string/Makefile (LDFLAGS-tst-xbzero-opt): New variable.
5050
5051 2017-01-16  Joseph Myers  <joseph@codesourcery.com>
5052
5053         [BZ #21045]
5054         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
5055         (__CONTEXT_FUNC_NAME): Pass address of signal mask to be restored
5056         to __sigprocmask.
5057
5058 2017-01-16  Chris Metcalf  <cmetcalf@mellanox.com>
5059
5060         * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
5061         wrap-around.
5062         * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
5063
5064         * sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
5065
5066 2016-01-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5067
5068         * NEWS: Fix typo.
5069
5070 2016-01-13  Torvald Riegel  <triegel@redhat.com>
5071
5072         * nptl/descr.h (ENQUEUE_MUTEX_BOTH, DEQUEUE_MUTEX): Add compiler
5073         barriers and comments.
5074         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Likewise.
5075         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
5076         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5077
5078 2016-01-13  Torvald Riegel  <triegel@redhat.com>
5079
5080         [BZ #19402]
5081         * sysdeps/nptl/fork.c (__libc_fork): Clear list of acquired robust
5082         mutexes.
5083
5084 2016-01-13  Torvald Riegel  <triegel@redhat.com>
5085
5086         [BZ #20985]
5087         * nptl/Makefile: Adapt.
5088         * nptl/pthread_mutex_cond_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
5089         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
5090         * nptl/pthread_mutex_lock.c (LLL_ROBUST_MUTEX_LOCK): Remove.
5091         (LLL_ROBUST_MUTEX_LOCK_MODIFIER): New.
5092         (__pthread_mutex_lock_full): Inline lll_robust* functions and adapt.
5093         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Inline
5094         lll_robust* functions and adapt.
5095         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5096         * sysdeps/nptl/lowlevellock.h (__lll_robust_lock_wait,
5097         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
5098         __lll_robust_timedlock, __lll_robust_unlock): Remove.
5099         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_robust_lock,
5100         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
5101         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_robust_lock,
5102         lll_robust_cond_lock, lll_robust_timedlock, lll_robust_unlock): Remove.
5103         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (__lll_robust_lock_wait,
5104         __lll_robust_lock, lll_robust_cond_lock, __lll_robust_timedlock_wait,
5105         __lll_robust_timedlock, __lll_robust_unlock): Remove.
5106         * nptl/lowlevelrobustlock.c: Remove file.
5107         * nptl/lowlevelrobustlock.sym: Likewise.
5108         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Likewise.
5109         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Likewise.
5110
5111 2017-01-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5112
5113         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5114
5115 2017-01-12  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5116
5117         * po/cs.po: Merge translations from the Translation Project.
5118         * po/de.po: Likewise.
5119         * po/pl.po: Likewise.
5120         * po/ru.po: Likewise.
5121         * po/tr.po: Likewise.
5122         * po/uk.po: Likewise.
5123         * po/vi.po: Likewise.
5124         * po/zh_CN.po: Likewise.
5125
5126 2017-01-12  Joseph Myers  <joseph@codesourcery.com>
5127
5128         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: New file.
5129
5130         * math/fgetexcptflg.c (__fegetexceptflag): Store 0 in fexcept_t
5131         object.
5132
5133 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
5134
5135         [BZ #16458]
5136         * bits/uintn-identity.h: New file.
5137         * inet/netinet/in.h: Include <bits/uintn-identity.h>.
5138         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl): Use __uint32_identity.
5139         [__BYTE_ORDER == __BIG_ENDIAN] (ntohs): Use __uint16_identity.
5140         [__BYTE_ORDER == __BIG_ENDIAN] (htonl): Use __uint32_identity.
5141         [__BYTE_ORDER == __BIG_ENDIAN] (htohs): Use __uint16_identity.
5142         * string/endian.h: Include <bits/uintn-identity.h>.
5143         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole16): Use
5144         __uint16_identity.
5145         [__BYTE_ORDER == __LITTLE_ENDIAN] (le16toh): Likewise.
5146         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole32): Use
5147         __uint32_identity.
5148         [__BYTE_ORDER == __LITTLE_ENDIAN] (le32toh): Likewise.
5149         [__BYTE_ORDER == __LITTLE_ENDIAN] (htole64): Use
5150         __uint64_identity.
5151         [__BYTE_ORDER == __LITTLE_ENDIAN] (le64toh): Likewise.
5152         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe16): Use
5153         __uint16_identity.
5154         [__BYTE_ORDER != __LITTLE_ENDIAN] (be16toh): Likewise.
5155         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe32): Use
5156         __uint32_identity.
5157         [__BYTE_ORDER != __LITTLE_ENDIAN] (be32toh): Likewise.
5158         [__BYTE_ORDER != __LITTLE_ENDIAN] (htobe64): Use
5159         __uint64_identity.
5160         [__BYTE_ORDER != __LITTLE_ENDIAN] (be64toh): Likewise.
5161         * string/Makefile (headers): Add bits/uintn-identity.h.
5162         (tests): Add test-endian-types.
5163         * string/test-endian-types.c: New file.
5164         * inet/Makefile (tests): Add test-hnto-types.
5165         * inet/test-hnto-types.c: New file.
5166
5167 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5168
5169         * po/be.po: Update from Translation Project.
5170         * po/bg.po: Likewise.
5171         * po/ca.po: Likewise.
5172         * po/cs.po: Likewise.
5173         * po/da.po: Likewise.
5174         * po/de.po: Likewise.
5175         * po/el.po: Likewise.
5176         * po/eo.po: Likewise.
5177         * po/es.po: Likewise.
5178         * po/fi.po: Likewise.
5179         * po/fr.po: Likewise.
5180         * po/gl.po: Likewise.
5181         * po/hr.po: Likewise.
5182         * po/hu.po: Likewise.
5183         * po/ia.po: Likewise.
5184         * po/id.po: Likewise.
5185         * po/it.po: Likewise.
5186         * po/ja.po: Likewise.
5187         * po/ko.po: Likewise.
5188         * po/lt.po: Likewise.
5189         * po/nb.po: Likewise.
5190         * po/nl.po: Likewise.
5191         * po/pl.po: Likewise.
5192         * po/pt_BR.po: Likewise.
5193         * po/ru.po: Likewise.
5194         * po/rw.po: Likewise.
5195         * po/sk.po: Likewise.
5196         * po/sl.po: Likewise.
5197         * po/sv.po: Likewise.
5198         * po/tr.po: Likewise.
5199         * po/uk.po: Likewise.
5200         * po/vi.po: Likewise.
5201         * po/zh_CN.po: Likewise.
5202         * po/zh_TW.po: Likewise.
5203
5204 2017-01-11  Joseph Myers  <joseph@codesourcery.com>
5205
5206         * stdio-common/tst-printf.c [__GNUC_PREREQ (7, 0)]: Ignore
5207         -Wformat-truncation instead of -Wformat-length.
5208         * time/tst-strptime2.c (mkbuf) [__GNUC_PREREQ (7, 0)]: Likewise.
5209         * stdio-common/tstdiomisc.c (F): Ignore -Wformat-truncation for
5210         GCC 7.
5211         * wcsmbs/tst-wcstof.c: Include <libc-internal.h>.
5212         (do_test): Ignore -Wformat-truncation for GCC 7.
5213
5214         * locale/programs/ld-address.c (INT_STR_ELEM): Increase size of
5215         buffer used to print long int value.
5216
5217         * elf/sotruss-lib.c (init): Increase space allocated for pid by
5218         one byte.  Print it with %ld, cast to long int.
5219
5220 2017-01-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5221
5222         * scripts/build-many-glibcs.py (os.cpu_count): Add compatibility definition.
5223         (re.fullmatch, subprocess.run): Likewise.
5224
5225 2016-01-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5226
5227         * po/libc.pot: Regenerate.
5228
5229 2016-01-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5230
5231         * elf/dl-tunables.c (tunables_unsetenv): Remove function.
5232         (min_strlen): Likewise.
5233         (disable_tunable): Likewise.
5234         (maybe_disable_malloc_check): Rename to
5235         maybe_enable_malloc_check.
5236         (maybe_enable_malloc_check): Enable glibc.malloc.check tunable
5237         if /etc/suid-debug file exists.
5238         (__tunables_init): Update caller.
5239         * elf/dl-tunables.list (glibc.malloc.check): Don't mark as
5240         secure.
5241
5242 2016-01-10  Torvald Riegel  <triegel@redhat.com>
5243
5244         * nptl/DESIGN-rwlock.txt: Remove.
5245         * nptl/lowlevelrwlock.sym: Remove.
5246         * nptl/Makefile: Add new tests.
5247         * nptl/pthread_rwlock_common.c: New file.  Contains the new rwlock.
5248         * nptl/pthreadP.h (PTHREAD_RWLOCK_PREFER_READER_P): Remove.
5249         (PTHREAD_RWLOCK_WRPHASE, PTHREAD_RWLOCK_WRLOCKED,
5250         PTHREAD_RWLOCK_RWAITING, PTHREAD_RWLOCK_READER_SHIFT,
5251         PTHREAD_RWLOCK_READER_OVERFLOW, PTHREAD_RWLOCK_WRHANDOVER,
5252         PTHREAD_RWLOCK_FUTEX_USED): New.
5253         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Adapt to new
5254         implementation.
5255         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow): Remove.
5256         (__pthread_rwlock_rdlock): Adapt.
5257         * nptl/pthread_rwlock_timedrdlock.c
5258         (pthread_rwlock_timedrdlock): Adapt.
5259         * nptl/pthread_rwlock_timedwrlock.c
5260         (pthread_rwlock_timedwrlock): Adapt.
5261         * nptl/pthread_rwlock_trywrlock.c (pthread_rwlock_trywrlock): Adapt.
5262         * nptl/pthread_rwlock_tryrdlock.c (pthread_rwlock_tryrdlock): Adapt.
5263         * nptl/pthread_rwlock_unlock.c (pthread_rwlock_unlock): Adapt.
5264         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow): Remove.
5265         (__pthread_rwlock_wrlock): Adapt.
5266         * nptl/tst-rwlock10.c: Adapt.
5267         * nptl/tst-rwlock11.c: Adapt.
5268         * nptl/tst-rwlock17.c: New file.
5269         * nptl/tst-rwlock18.c: New file.
5270         * nptl/tst-rwlock19.c: New file.
5271         * nptl/tst-rwlock2b.c: New file.
5272         * nptl/tst-rwlock8.c: Adapt.
5273         * nptl/tst-rwlock9.c: Adapt.
5274         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5275         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5276         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5277         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5278         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5279         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5280         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5281         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5282         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5283         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5284         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5285         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5286         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
5287         (pthread_rwlock_t): Adapt.
5288         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5289         (pthread_rwlock_t): Adapt.
5290         * sysdeps/x86/bits/pthreadtypes.h (pthread_rwlock_t): Adapt.
5291         * nptl/nptl-printers.py (): Adapt.
5292         * nptl/nptl_lock_constants.pysym: Adapt.
5293         * nptl/test-rwlock-printers.py: Adapt.
5294         * nptl/test-rwlockattr-printers.c: Adapt.
5295         * nptl/test-rwlockattr-printers.py: Adapt.
5296
5297 2017-01-10  Joseph Myers  <joseph@codesourcery.com>
5298
5299         * math/libm-test.inc (XFAIL_IBM128_LIBGCC): New macro.
5300         (fdim_test_data): Use XFAIL_ROUNDING_IBM128_LIBGCC for some tests.
5301         (fma_test_data): Likewise.
5302         (hypot_test_data): Likewise.
5303         (log1p_test_data): Likewise.
5304         (modf_test_data): Likewise.
5305         (pow_test_data): Likewise.
5306         (remainder_test_data): Likewise.
5307         (remquo_test_data): Likewise.
5308         (scalb_test_data): Likewise.
5309         (scalbn_test_data): Likewise.
5310         (scalbln_test_data): Likewise.
5311         * math/gen-libm-test.pl (parse_args): Transform
5312         XFAIL_ROUNDING_IBM128_LIBGCC to XFAIL_IBM128_LIBGCC or 0 depending
5313         on the rounding mode.
5314
5315 2017-01-09  Joseph Myers  <joseph@codesourcery.com>
5316
5317         * math/gen-auto-libm-tests.c (output_for_one_input_case): Apply
5318         xfail-rounding:ibm128-libgcc automatically to tests overflowing
5319         and those that can underflow to zero.
5320         * math/auto-libm-test-in: Remove most XFAILs for ibm128-libgcc and
5321         add others.
5322         * math/auto-libm-test-out: Regenerated.
5323
5324         * math/test-fenv.c (fe_tests): Skip most tests when exceptions not
5325         supported.
5326         (feholdexcept_tests): Skip tests requiring exceptions or rounding
5327         modes support if not supported.
5328
5329         * sysdeps/unix/sysv/linux/microblaze/localplt.data (__pread64):
5330         Add libc.so PLT entry.
5331         (__tls_get_addr): Make ld.so PLT entry optional.
5332
5333 2017-01-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5334
5335         * string/bits/strings_fortified.h (explicit_bzero): Move back to ..
5336         * string/bits/string3.h: ... here.
5337
5338 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5339
5340         [BZ #21028]
5341         * math/fsetexcptflg.c (__fesetexceptflag): Always return 0.
5342         * math/test-fexcept.c (test_set): Allow failure of feraiseexcept
5343         if EXCEPTION_TESTS returns false.
5344
5345 2017-01-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5346
5347         [BZ #20558]
5348         * string/bits/string3.h [__USE_MISC] (bcopy): Move to
5349         strings_fortified.h.
5350         [__USE_MISC] (bzero): Likewise.
5351         [__USE_MISC] (explicit_bzero): Likewise.
5352         * string/strings.h: Include strings_fortified.h.
5353         * string/Makefile (headers): Add strings_fortified.h.
5354         * string/bits/strings_fortified.h: New file.
5355         * include/bits/strings_fortified.h: Likewise.
5356
5357 2017-01-05  Joseph Myers  <joseph@codesourcery.com>
5358
5359         * elf/tst-tls13.c (TIMEOUT): Remove.
5360         * iconvdata/tst-loading.c (TIMEOUT): Likewise.
5361         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Increase to 100.
5362         * malloc/tst-mallocfork2.c (TIMEOUT): Define to 100.
5363         * nss/tst-cancel-getpwuid_r.c (TIMEOUT): Define to 900.
5364         * nss/tst-nss-getpwent.c (TIMEOUT): Define to 300.
5365
5366         [BZ #21026]
5367         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list
5368         (readahead): New syscall entry.
5369
5370 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5371
5372         * string/tester.c (test_strncat): Disable -Wstringop-overflow=
5373         around tests of strncat with large sizes.
5374
5375         * malloc/tst-malloc.c: Include <libc-internal.h>.
5376         (do_test): Disable -Walloc-size-larger-than= around tests of
5377         malloc with negative sizes.
5378         * malloc/tst-mcheck.c: Include <libc-internal.h>.
5379         (do_test): Disable -Walloc-size-larger-than= around tests of
5380         malloc and realloc with negative sizes.
5381         * malloc/tst-realloc.c: Include <libc-internal.h>.
5382         (do_test): Disable -Walloc-size-larger-than= around tests of
5383         realloc with negative sizes.
5384
5385         * math/libm-test.inc (TEST_COND_ibm128_libgcc): New macro.
5386         (init_max_error) [TEST_COND_ibm128]: Increase maximum error
5387         allowed to 16 ulps.
5388         * math/auto-libm-test-in: Change most XFAILs for ibm128 to use
5389         ibm128-libgcc.  XFAIL more tests for ibm128-libgcc.
5390         * math/auto-libm-test-out: Regenerated.
5391
5392 2017-01-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
5393
5394         * math/Makefile (libm-calls): Move wrappers...
5395         (libm-compat-call-auto): Here.
5396         (libm-routines): Add items in libm-compat-calls-auto.
5397         * sysdeps/powerpc/nofpu/Makefile: Add suffix ("_compat") to
5398         the filenames of the wrappers that have been renamed.
5399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Likewise.
5400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5401
5402         * math/w_acos.c: Add _compat suffix to filename.
5403         * math/w_acosf.c: Likewise.
5404         * math/w_acosh.c: Likewise.
5405         * math/w_acoshf.c: Likewise.
5406         * math/w_acoshl.c: Likewise.
5407         * math/w_acosl.c: Likewise.
5408         * math/w_asin.c: Likewise.
5409         * math/w_asinf.c: Likewise.
5410         * math/w_asinl.c: Likewise.
5411         * math/w_atan2.c: Likewise.
5412         * math/w_atan2f.c: Likewise.
5413         * math/w_atan2l.c: Likewise.
5414         * math/w_atanh.c: Likewise.
5415         * math/w_atanhf.c: Likewise.
5416         * math/w_atanhl.c: Likewise.
5417         * math/w_cosh.c: Likewise.
5418         * math/w_coshf.c: Likewise.
5419         * math/w_coshl.c: Likewise.
5420         * math/w_exp10.c: Likewise.
5421         * math/w_exp10f.c: Likewise.
5422         * math/w_exp10l.c: Likewise.
5423         * math/w_exp2.c: Likewise.
5424         * math/w_exp2f.c: Likewise.
5425         * math/w_exp2l.c: Likewise.
5426         * math/w_fmod.c: Likewise.
5427         * math/w_fmodf.c: Likewise.
5428         * math/w_fmodl.c: Likewise.
5429         * math/w_hypot.c: Likewise.
5430         * math/w_hypotf.c: Likewise.
5431         * math/w_hypotl.c: Likewise.
5432         * math/w_j0.c: Likewise.
5433         * math/w_j0f.c: Likewise.
5434         * math/w_j0l.c: Likewise.
5435         * math/w_j1.c: Likewise.
5436         * math/w_j1f.c: Likewise.
5437         * math/w_j1l.c: Likewise.
5438         * math/w_jn.c: Likewise.
5439         * math/w_jnf.c: Likewise.
5440         * math/w_jnl.c: Likewise.
5441         * math/w_log10.c: Likewise.
5442         * math/w_log10f.c: Likewise.
5443         * math/w_log10l.c: Likewise.
5444         * math/w_log2.c: Likewise.
5445         * math/w_log2f.c: Likewise.
5446         * math/w_log2l.c: Likewise.
5447         * math/w_log.c: Likewise.
5448         * math/w_logf.c: Likewise.
5449         * math/w_logl.c: Likewise.
5450         * math/w_pow.c: Likewise.
5451         * math/w_powf.c: Likewise.
5452         * math/w_powl.c: Likewise.
5453         * math/w_remainder.c: Likewise.
5454         * math/w_remainderf.c: Likewise.
5455         * math/w_remainderl.c: Likewise.
5456         * math/w_scalb.c: Likewise.
5457         * math/w_scalbf.c: Likewise.
5458         * math/w_scalbl.c: Likewise.
5459         * math/w_sinh.c: Likewise.
5460         * math/w_sinhf.c: Likewise.
5461         * math/w_sinhl.c: Likewise.
5462         * math/w_sqrt.c: Likewise.
5463         * math/w_sqrtf.c: Likewise.
5464         * math/w_sqrtl.c: Likewise.
5465         * math/w_tgamma.c: Likewise.
5466         * math/w_tgammaf.c: Likewise.
5467         * math/w_tgammal.c: Likewise.
5468
5469         * math/w_acos_compat.c: New file copied from above and
5470         adjusted for new #includes path
5471         * math/w_acosf_compat.c: Likewise.
5472         * math/w_acosh_compat.c: Likewise.
5473         * math/w_acoshf_compat.c: Likewise.
5474         * math/w_acoshl_compat.c: Likewise.
5475         * math/w_acosl_compat.c: Likewise.
5476         * math/w_asin_compat.c: Likewise.
5477         * math/w_asinf_compat.c: Likewise.
5478         * math/w_asinl_compat.c: Likewise.
5479         * math/w_atan2_compat.c: Likewise.
5480         * math/w_atan2f_compat.c: Likewise.
5481         * math/w_atan2l_compat.c: Likewise.
5482         * math/w_atanh_compat.c: Likewise.
5483         * math/w_atanhf_compat.c: Likewise.
5484         * math/w_atanhl_compat.c: Likewise.
5485         * math/w_cosh_compat.c: Likewise.
5486         * math/w_coshf_compat.c: Likewise.
5487         * math/w_coshl_compat.c: Likewise.
5488         * math/w_exp10_compat.c: Likewise.
5489         * math/w_exp10f_compat.c: Likewise.
5490         * math/w_exp10l_compat.c: Likewise.
5491         * math/w_exp2_compat.c: Likewise.
5492         * math/w_exp2f_compat.c: Likewise.
5493         * math/w_exp2l_compat.c: Likewise.
5494         * math/w_fmod_compat.c: Likewise.
5495         * math/w_fmodf_compat.c: Likewise.
5496         * math/w_fmodl_compat.c: Likewise.
5497         * math/w_hypot_compat.c: Likewise.
5498         * math/w_hypotf_compat.c: Likewise.
5499         * math/w_hypotl_compat.c: Likewise.
5500         * math/w_j0_compat.c: Likewise.
5501         * math/w_j0f_compat.c: Likewise.
5502         * math/w_j0l_compat.c: Likewise.
5503         * math/w_j1_compat.c: Likewise.
5504         * math/w_j1f_compat.c: Likewise.
5505         * math/w_j1l_compat.c: Likewise.
5506         * math/w_jn_compat.c: Likewise.
5507         * math/w_jnf_compat.c: Likewise.
5508         * math/w_jnl_compat.c: Likewise.
5509         * math/w_log10_compat.c: Likewise.
5510         * math/w_log10f_compat.c: Likewise.
5511         * math/w_log10l_compat.c: Likewise.
5512         * math/w_log2_compat.c: Likewise.
5513         * math/w_log2f_compat.c: Likewise.
5514         * math/w_log2l_compat.c: Likewise.
5515         * math/w_log_compat.c: Likewise.
5516         * math/w_logf_compat.c: Likewise.
5517         * math/w_logl_compat.c: Likewise.
5518         * math/w_pow_compat.c: Likewise.
5519         * math/w_powf_compat.c: Likewise.
5520         * math/w_powl_compat.c: Likewise.
5521         * math/w_remainder_compat.c: Likewise.
5522         * math/w_remainderf_compat.c: Likewise.
5523         * math/w_remainderl_compat.c: Likewise.
5524         * math/w_scalb_compat.c: Likewise.
5525         * math/w_scalbf_compat.c: Likewise.
5526         * math/w_scalbl_compat.c: Likewise.
5527         * math/w_sinh_compat.c: Likewise.
5528         * math/w_sinhf_compat.c: Likewise.
5529         * math/w_sinhl_compat.c: Likewise.
5530         * math/w_sqrt_compat.c: Likewise.
5531         * math/w_sqrtf_compat.c: Likewise.
5532         * math/w_sqrtl_compat.c: Likewise.
5533         * math/w_tgamma_compat.c: Likewise.
5534         * math/w_tgammaf_compat.c: Likewise.
5535         * math/w_tgammal_compat.c: Likewise.
5536
5537         * sysdeps/i386/fpu/w_sqrt.c: Add _compat suffix to filename.
5538         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5539         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5540         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5541         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5542         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5543         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5544         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5545         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5546         * sysdeps/ia64/fpu/w_scalbl.c: Likewise.
5547         * sysdeps/ia64/fpu/w_scalbf.c: Likewise.
5548         * sysdeps/ia64/fpu/w_scalb.c: Likewise.
5549         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5550         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5551         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5552         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5553         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5554         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5555         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5556         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5557         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5558         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5559         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5560         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5561         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5562         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5563         * sysdeps/ia64/fpu/w_log.c: Likewise.
5564         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5565         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5566         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5567         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5568         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5569         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5570         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5571         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5572         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5573         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5574         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5575         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5576         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5577         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5578         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5579         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5580         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5581         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5582         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5583         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5584         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5585         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5586         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5587         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5588         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5589         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5590         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5591         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5592         * sysdeps/ia64/fpu/w_tgamma.S: Likewise.
5593         * sysdeps/ia64/fpu/w_tgammaf.S: Likewise.
5594         * sysdeps/ia64/fpu/w_tgammal.S: Likewise.
5595         * sysdeps/ieee754/ldbl-opt/w_acos.c: Likewise.
5596         * sysdeps/ieee754/ldbl-opt/w_acosh.c: Likewise.
5597         * sysdeps/ieee754/ldbl-opt/w_acoshl.c: Likewise.
5598         * sysdeps/ieee754/ldbl-opt/w_acosl.c: Likewise.
5599         * sysdeps/ieee754/ldbl-opt/w_asin.c: Likewise.
5600         * sysdeps/ieee754/ldbl-opt/w_asinl.c: Likewise.
5601         * sysdeps/ieee754/ldbl-opt/w_atan2.c: Likewise.
5602         * sysdeps/ieee754/ldbl-opt/w_atan2l.c: Likewise.
5603         * sysdeps/ieee754/ldbl-opt/w_atanh.c: Likewise.
5604         * sysdeps/ieee754/ldbl-opt/w_atanhl.c: Likewise.
5605         * sysdeps/ieee754/ldbl-opt/w_cosh.c: Likewise.
5606         * sysdeps/ieee754/ldbl-opt/w_coshl.c: Likewise.
5607         * sysdeps/ieee754/ldbl-opt/w_exp10.c: Likewise.
5608         * sysdeps/ieee754/ldbl-opt/w_exp10l.c: Likewise.
5609         * sysdeps/ieee754/ldbl-opt/w_fmod.c: Likewise.
5610         * sysdeps/ieee754/ldbl-opt/w_fmodl.c: Likewise.
5611         * sysdeps/ieee754/ldbl-opt/w_hypot.c: Likewise.
5612         * sysdeps/ieee754/ldbl-opt/w_hypotl.c: Likewise.
5613         * sysdeps/ieee754/ldbl-opt/w_j0.c: Likewise.
5614         * sysdeps/ieee754/ldbl-opt/w_j0l.c: Likewise.
5615         * sysdeps/ieee754/ldbl-opt/w_j1.c: Likewise.
5616         * sysdeps/ieee754/ldbl-opt/w_j1l.c: Likewise.
5617         * sysdeps/ieee754/ldbl-opt/w_jn.c: Likewise.
5618         * sysdeps/ieee754/ldbl-opt/w_jnl.c: Likewise.
5619         * sysdeps/ieee754/ldbl-opt/w_log10.c: Likewise.
5620         * sysdeps/ieee754/ldbl-opt/w_log10l.c: Likewise.
5621         * sysdeps/ieee754/ldbl-opt/w_log2.c: Likewise.
5622         * sysdeps/ieee754/ldbl-opt/w_log2l.c: Likewise.
5623         * sysdeps/ieee754/ldbl-opt/w_log.c: Likewise.
5624         * sysdeps/ieee754/ldbl-opt/w_logl.c: Likewise.
5625         * sysdeps/ieee754/ldbl-opt/w_pow.c: Likewise.
5626         * sysdeps/ieee754/ldbl-opt/w_powl.c: Likewise.
5627         * sysdeps/ieee754/ldbl-opt/w_remainder.c: Likewise.
5628         * sysdeps/ieee754/ldbl-opt/w_remainderl.c: Likewise.
5629         * sysdeps/ieee754/ldbl-opt/w_scalb.c: Likewise.
5630         * sysdeps/ieee754/ldbl-opt/w_scalbl.c: Likewise.
5631         * sysdeps/ieee754/ldbl-opt/w_sinh.c: Likewise.
5632         * sysdeps/ieee754/ldbl-opt/w_sinhl.c: Likewise.
5633         * sysdeps/ieee754/ldbl-opt/w_sqrt.c: Likewise.
5634         * sysdeps/ieee754/ldbl-opt/w_sqrtl.c: Likewise.
5635         * sysdeps/ieee754/ldbl-opt/w_tgamma.c: Likewise.
5636         * sysdeps/ieee754/ldbl-opt/w_tgammal.c: Likewise.
5637         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S:
5638         Likewise.
5639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S:
5640         Likewise.
5641         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: Likewise.
5642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S:
5643         Likewise.
5644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S:
5645         Likewise.
5646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: Likewise.
5647         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5648         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5649         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5650         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5651         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
5652         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
5653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: Likewise.
5654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: Likewise.
5656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5657         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
5658         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
5659         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
5660         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
5661
5662         * sysdeps/i386/fpu/w_sqrt_compat.c: New file copied from above
5663         and adjusted for new #includes path
5664         * sysdeps/ia64/fpu/w_acos_compat.c: Likewise.
5665         * sysdeps/ia64/fpu/w_acosf_compat.c: Likewise.
5666         * sysdeps/ia64/fpu/w_acosh_compat.c: Likewise.
5667         * sysdeps/ia64/fpu/w_acoshf_compat.c: Likewise.
5668         * sysdeps/ia64/fpu/w_acoshl_compat.c: Likewise.
5669         * sysdeps/ia64/fpu/w_acosl_compat.c: Likewise.
5670         * sysdeps/ia64/fpu/w_asin_compat.c: Likewise.
5671         * sysdeps/ia64/fpu/w_asinf_compat.c: Likewise.
5672         * sysdeps/ia64/fpu/w_asinl_compat.c: Likewise.
5673         * sysdeps/ia64/fpu/w_atan2_compat.c: Likewise.
5674         * sysdeps/ia64/fpu/w_atan2f_compat.c: Likewise.
5675         * sysdeps/ia64/fpu/w_atan2l_compat.c: Likewise.
5676         * sysdeps/ia64/fpu/w_atanh_compat.c: Likewise.
5677         * sysdeps/ia64/fpu/w_atanhf_compat.c: Likewise.
5678         * sysdeps/ia64/fpu/w_atanhl_compat.c: Likewise.
5679         * sysdeps/ia64/fpu/w_cosh_compat.c: Likewise.
5680         * sysdeps/ia64/fpu/w_coshf_compat.c: Likewise.
5681         * sysdeps/ia64/fpu/w_coshl_compat.c: Likewise.
5682         * sysdeps/ia64/fpu/w_exp10_compat.c: Likewise.
5683         * sysdeps/ia64/fpu/w_exp10f_compat.c: Likewise.
5684         * sysdeps/ia64/fpu/w_exp10l_compat.c: Likewise.
5685         * sysdeps/ia64/fpu/w_exp2_compat.c: Likewise.
5686         * sysdeps/ia64/fpu/w_exp2f_compat.c: Likewise.
5687         * sysdeps/ia64/fpu/w_exp2l_compat.c: Likewise.
5688         * sysdeps/ia64/fpu/w_fmod_compat.c: Likewise.
5689         * sysdeps/ia64/fpu/w_fmodf_compat.c: Likewise.
5690         * sysdeps/ia64/fpu/w_fmodl_compat.c: Likewise.
5691         * sysdeps/ia64/fpu/w_hypot_compat.c: Likewise.
5692         * sysdeps/ia64/fpu/w_hypotf_compat.c: Likewise.
5693         * sysdeps/ia64/fpu/w_hypotl_compat.c: Likewise.
5694         * sysdeps/ia64/fpu/w_log10_compat.c: Likewise.
5695         * sysdeps/ia64/fpu/w_log10f_compat.c: Likewise.
5696         * sysdeps/ia64/fpu/w_log10l_compat.c: Likewise.
5697         * sysdeps/ia64/fpu/w_log2_compat.c: Likewise.
5698         * sysdeps/ia64/fpu/w_log2f_compat.c: Likewise.
5699         * sysdeps/ia64/fpu/w_log2l_compat.c: Likewise.
5700         * sysdeps/ia64/fpu/w_log_compat.c: Likewise.
5701         * sysdeps/ia64/fpu/w_logf_compat.c: Likewise.
5702         * sysdeps/ia64/fpu/w_logl_compat.c: Likewise.
5703         * sysdeps/ia64/fpu/w_pow_compat.c: Likewise.
5704         * sysdeps/ia64/fpu/w_powf_compat.c: Likewise.
5705         * sysdeps/ia64/fpu/w_powl_compat.c: Likewise.
5706         * sysdeps/ia64/fpu/w_remainder_compat.c: Likewise.
5707         * sysdeps/ia64/fpu/w_remainderf_compat.c: Likewise.
5708         * sysdeps/ia64/fpu/w_remainderl_compat.c: Likewise.
5709         * sysdeps/ia64/fpu/w_scalb_compat.c: Likewise.
5710         * sysdeps/ia64/fpu/w_scalbf_compat.c: Likewise.
5711         * sysdeps/ia64/fpu/w_scalbl_compat.c: Likewise.
5712         * sysdeps/ia64/fpu/w_sinh_compat.c: Likewise.
5713         * sysdeps/ia64/fpu/w_sinhf_compat.c: Likewise.
5714         * sysdeps/ia64/fpu/w_sinhl_compat.c: Likewise.
5715         * sysdeps/ia64/fpu/w_sqrt_compat.c: Likewise.
5716         * sysdeps/ia64/fpu/w_sqrtf_compat.c: Likewise.
5717         * sysdeps/ia64/fpu/w_sqrtl_compat.c: Likewise.
5718         * sysdeps/ia64/fpu/w_tgamma_compat.S: Likewise.
5719         * sysdeps/ia64/fpu/w_tgammaf_compat.S: Likewise.
5720         * sysdeps/ia64/fpu/w_tgammal_compat.S: Likewise.
5721         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Likewise.
5722         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
5723         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5724         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5725         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
5726         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5727         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
5728         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5729         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
5730         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5731         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
5732         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5733         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c: Likewise.
5734         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Likewise.
5735         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
5736         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5737         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
5738         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5739         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
5740         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5741         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
5742         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5743         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
5744         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5745         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
5746         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5747         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
5748         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5749         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
5750         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5751         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
5752         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5753         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c: Likewise.
5754         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5755         * sysdeps/ieee754/ldbl-opt/w_scalb_compat.c: Likewise.
5756         * sysdeps/ieee754/ldbl-opt/w_scalbl_compat.c: Likewise.
5757         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
5758         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5759         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
5760         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5761         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
5762         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5764         Likewise.
5765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5766         Likewise.
5767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5768         Likewise.
5769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5770         Likewise.
5771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5772         Likewise.
5773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5774         Likewise.
5775         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5776         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5777         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5778         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5779         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
5780         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5782         Likewise.
5783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5784         Likewise.
5785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5786         Likewise.
5787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5788         Likewise.
5789         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
5790         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5791         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5792         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5793
5794 2017-01-04  Joseph Myers  <joseph@codesourcery.com>
5795
5796         * sysdeps/microblaze/bits/setjmp.h (__jmp_buf): Give struct tag
5797         __jmp_buf_internal_tag.
5798
5799         * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Always
5800         preserve NaN payload if [__mips_nan2008].
5801         * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
5802
5803         [BZ #21022]
5804         * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
5805
5806 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5807
5808         * sysdeps/i386/fpu/libm-test-ulps: Update.
5809
5810 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5811
5812         * sysdeps/ia64/strcat.c: Remove file.
5813         * sysdeps/powerpc/strcat.c: Likewise.
5814         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Use default
5815         C implementation.
5816         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: Likewise.
5817         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: Likewise.
5818
5819 2017-01-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5820             Steven Munroe  <sjmunroe@us.ibm.com>
5821             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5822
5823         [BZ #20822]
5824         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
5825         (__lll_lock_elision): Access adapt_count via C11 atomics.
5826         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
5827         (__lll_trylock_elision): Likewise.
5828         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
5829         (__lll_unlock_elision):  Update adapt_count variable inside the
5830         critical section using C11 atomics.
5831
5832 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5833
5834         * math/test-fenvinline.c (do_test): Disable tests of raised
5835         exceptions if !EXCEPTION_TESTS (FLOAT).
5836
5837 2017-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5838
5839         [BZ #19390]
5840         * string/test-strncat.c (test_main): Add tests with SIZE_MAX as
5841         maximum string size.
5842         * sysdeps/i386/i686/multiarch/strcat-sse2.S (STRCAT): Avoid overflow
5843         in pointer addition.
5844         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S (STRCPY):
5845         Likewise.
5846
5847 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
5848
5849         * elf/Makefile ($(objpfx)tst-ldconfig-X.out): Correct arguments
5850         passed to tst-ldconfig-X.sh.
5851
5852 2017-01-03  Martin Galvan  <martingalvan@sourceware.org>
5853
5854         * nptl/nptl-printers.py: Fix tabs/spaces mismatches.
5855
5856 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5857
5858         [BZ #21019]
5859         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (lseek64):
5860         New syscall entry.
5861         * sysdeps/unix/sysv/linux/mips/mips64/n32/lseek.c: New file.
5862         * io/test-lfs.c (do_test): Test offset returned from lseek64 and
5863         lseek.
5864
5865         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
5866         power4 glibc for powerpc-linux-gnu.
5867
5868 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5869
5870         * sysvipc/test-sysvsem.c (do_test): Define and use union semun on
5871         semctl.
5872
5873 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5874
5875         * math/test-nearbyint-except.c: Include <stdbool.h>.
5876         (any_supported): New variable.
5877         (TEST_FUNC): Return early if !EXCEPTION_TESTS (FLOAT).  Otherwise
5878         set any_supported.
5879         (do_test): Return 77 if no floating-point type supported
5880         exceptions.
5881
5882         * sysdeps/mips/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): Do not
5883         condition on [__mips_hard_float].
5884
5885 2017-01-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5886
5887         [BZ #21014]
5888         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S (MEMCHR): Avoid overflow
5889         in pointer addition.
5890         * sysdeps/i386/i686/multiarch/memchr-sse2.S (MEMCHR): Likewise.
5891
5892 2017-01-02  Torvald Riegel  <triegel@redhat.com>
5893
5894         * sysdeps/sparc/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt to
5895         new condvar.
5896
5897 2017-01-02  Joseph Myers  <joseph@codesourcery.com>
5898
5899         * scripts/build-many-glibcs.py (Context.checkout): Default
5900         binutils version to 2.28 branch.
5901
5902 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5903
5904         * support/support_format_netent.c (support_format_netent): Work
5905         around alpha struct netent definition difference.
5906
5907 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5908
5909         * support/xwrite.c (xwrite): Use %td for pointer difference.
5910
5911 2017-01-01  Florian Weimer  <fweimer@redhat.com>
5912
5913         * malloc/Makefile (tests): Add tst-malloc-usable-tunables for
5914         have-tunables only.
5915         (tests-static): Add tst-malloc-usable-static-tunables for
5916         have-tunables only.
5917
5918 2017-01-01  Joseph Myers  <joseph@codesourcery.com>
5919
5920         * scripts/config.guess: Update to version 2017-01-01.
5921         * scripts/config.sub: Update to version 2017-01-01.
5922
5923         * NEWS: Update copyright dates.
5924         * catgets/gencat.c (print_version): Likewise.
5925         * csu/version.c (banner): Likewise.
5926         * debug/catchsegv.sh: Likewise.
5927         * debug/pcprofiledump.c (print_version): Likewise.
5928         * debug/xtrace.sh (do_version): Likewise.
5929         * elf/ldconfig.c (print_version): Likewise.
5930         * elf/ldd.bash.in: Likewise.
5931         * elf/pldd.c (print_version): Likewise.
5932         * elf/sotruss.sh: Likewise.
5933         * elf/sprof.c (print_version): Likewise.
5934         * iconv/iconv_prog.c (print_version): Likewise.
5935         * iconv/iconvconfig.c (print_version): Likewise.
5936         * locale/programs/locale.c (print_version): Likewise.
5937         * locale/programs/localedef.c (print_version): Likewise.
5938         * login/programs/pt_chown.c (print_version): Likewise.
5939         * malloc/memusage.sh (do_version): Likewise.
5940         * malloc/memusagestat.c (print_version): Likewise.
5941         * malloc/mtrace.pl: Likewise.
5942         * manual/libc.texinfo: Likewise.
5943         * nptl/version.c (banner): Likewise.
5944         * nscd/nscd.c (print_version): Likewise.
5945         * nss/getent.c (print_version): Likewise.
5946         * nss/makedb.c (print_version): Likewise.
5947         * posix/getconf.c (main): Likewise.
5948         * scripts/test-installation.pl: Likewise.
5949         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5950
5951         * All files with FSF copyright notices: Update copyright dates
5952         using scripts/update-copyrights.
5953         * intl/plural.c: Regenerated.
5954         * locale/programs/charmap-kw.h: Likewise.
5955         * locale/programs/locfile-kw.h: Likewise.
5956
5957 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5958
5959         [BZ #20593]
5960         Update DNS RR type definitions.
5961         * scripts/gen-rrtypes.py: New file.
5962         * resolv/arpa/nameser.h (ns_type): Remove ns_t_zxfr, a
5963         BIND-internal RR type not used on the Internet.  Add ns_t_ds,
5964         ns_t_sshfp, ns_t_ipseckey, ns_t_rrsig, ns_t_nsec, ns_t_dnskey,
5965         ns_t_dhcid, ns_t_nsec3, ns_t_nsec3param, ns_t_tlsa, ns_t_smimea,
5966         ns_t_hip, ns_t_ninfo, ns_t_rkey, ns_t_talink, ns_t_cds,
5967         ns_t_cdnskey, ns_t_openpgpkey, ns_t_csync, ns_t_spf, ns_t_uinfo,
5968         ns_t_uid, ns_t_gid, ns_t_unspec, ns_t_nid, ns_t_l32, ns_t_l64,
5969         ns_t_lp, ns_t_eui48, ns_t_eui64, ns_t_uri, ns_t_caa, ns_t_avc,
5970         ns_t_ta, ns_t_dlv.
5971         * resolv/arpa/nameser_compat.h (T_KX, T_CERT, T_SINK, T_OPT)
5972         (T_APL, T_DS, T_SSHFP, T_IPSECKEY, T_RRSIG, T_NSEC, T_DNSKEY)
5973         (T_DHCID, T_NSEC3, T_NSEC3PARAM, T_TLSA, T_SMIMEA, T_HIP, T_NINFO)
5974         (T_RKEY, T_TALINK, T_CDS, T_CDNSKEY, T_OPENPGPKEY, T_CSYNC, T_SPF)
5975         (T_UINFO, T_UID, T_GID, T_UNSPEC, T_NID, T_L32, T_L64, T_LP)
5976         (T_EUI48, T_EUI64, T_TKEY, T_URI, T_CAA, T_AVC, T_TA, T_DLV):
5977         Define.
5978         * resolv/res_debug.c (__p_type_syms): Update comment.  Remove
5979         entry for ns_t_zxfr.
5980
5981 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5982
5983         [BZ #18784]
5984         CVE-2015-5180
5985         * include/arpa/nameser_compat.h (T_QUERY_A_AND_AAAA): Rename from
5986         T_UNSPEC.  Adjust value.
5987         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Use it.
5988         * resolv/res_query.c (__libc_res_nquery): Likewise.
5989         * resolv/res_mkquery.c (res_nmkquery): Check for out-of-range
5990         QTYPEs.
5991         * resolv/tst-resolv-qtypes.c: New file.
5992         * resolv/Makefile (xtests): Add tst-resolv-qtypes.
5993         (tst-resolv-qtypes): Link against libresolv and libpthread.
5994
5995 2016-12-31  Florian Weimer  <fweimer@redhat.com>
5996
5997         * elf/dl-tunables.h (__tunables_init): Fix unused attribute.
5998
5999 2016-12-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6000
6001         * manual/tunables.texi: New chapter.
6002         * manual/Makefile (chapters): Add it.
6003         * manual/probes.texi (@node): Point to the Tunables chapter.
6004
6005         * Makeconfig (have-tunables): Check for non-negative instead
6006         of positive.
6007         * configure.ac: Add 'valstring' as a valid value for
6008         --enable-tunables.
6009         * configure: Regenerate.
6010         * elf/Makefile (have-tunables): Check for non-negative instead
6011         of positive.
6012         (CPPFLAGS-dl-tunables.c): Define TUNABLES_FRONTEND for
6013         dl-tunables.c.
6014         * elf/dl-tunables.c (GLIBC_TUNABLES): Define only when
6015         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
6016         (tunables_strdup): Likewise.
6017         (disable_tunables): Likewise.
6018         (parse_tunables): Likewise.
6019         (__tunables_init): Process GLIBC_TUNABLES envvar only when.
6020         TUNABLES_FRONTEND == TUNABLES_FRONTEND_valstring.
6021         * elf/dl-tunables.h (TUNABLES_FRONTEND_valstring): New macro.
6022         (TUNABLES_FRONTEND_yes): New macro, define as
6023         TUNABLES_FRONTEND_valstring by default.
6024         * manual/install.texi: Document new acceptable values for
6025         --enable-tunables.
6026         * INSTALL: Regenerate.
6027
6028         * config.make.in (have-loop-to-function): Define.
6029         * elf/Makefile (CFLAGS-dl-tunables.c): Add
6030         -fno-tree-loop-distribute-patterns.
6031         * elf/dl-tunables.c: Include libc-internals.h.
6032         (GLIBC_TUNABLES): New macro.
6033         (tunables_strdup): New function.
6034         (parse_tunables): New function.
6035         (min_strlen): New function.
6036         (__tunables_init): Use the new functions and macro.
6037         (disable_tunable): Disable tunable from GLIBC_TUNABLES.
6038         * malloc/tst-malloc-usable-tunables.c: New test case.
6039         * malloc/tst-malloc-usable-static-tunables.c: New test case.
6040         * malloc/Makefile (tests, tests-static): Add tests.
6041
6042         * manual/install.texi: Add --enable-tunables option.
6043         * INSTALL: Regenerate.
6044         * README.tunables: New file.
6045         * Makeconfig (CPPFLAGS): Define TOP_NAMESPACE.
6046         (before-compile): Generate dl-tunable-list.h early.
6047         * config.h.in: Add HAVE_TUNABLES.
6048         * config.make.in: Add have-tunables.
6049         * configure.ac: Add --enable-tunables option.
6050         * configure: Regenerate.
6051         * csu/init-first.c (__libc_init_first): Move
6052         __libc_init_secure earlier...
6053         * csu/init-first.c (LIBC_START_MAIN):... to here.
6054         Include dl-tunables.h, libc-internal.h.
6055         (LIBC_START_MAIN) [!SHARED]: Initialize tunables for static
6056         binaries.
6057         * elf/Makefile (dl-routines): Add dl-tunables.
6058         * elf/Versions (ld): Add __tunable_set_val to GLIBC_PRIVATE
6059         namespace.
6060         * elf/dl-support (_dl_nondynamic_init): Unset MALLOC_CHECK_
6061         only when !HAVE_TUNABLES.
6062         * elf/rtld.c (process_envvars): Likewise.
6063         * elf/dl-sysdep.c [HAVE_TUNABLES]: Include dl-tunables.h
6064         (_dl_sysdep_start): Call __tunables_init.
6065         * elf/dl-tunable-types.h: New file.
6066         * elf/dl-tunables.c: New file.
6067         * elf/dl-tunables.h: New file.
6068         * elf/dl-tunables.list: New file.
6069         * malloc/tst-malloc-usable-static.c: New test case.
6070         * malloc/Makefile (tests-static): Add it.
6071         * malloc/arena.c [HAVE_TUNABLES]: Include dl-tunables.h.
6072         Define TUNABLE_NAMESPACE.
6073         (DL_TUNABLE_CALLBACK (set_mallopt_check)): New function.
6074         (DL_TUNABLE_CALLBACK_FNDECL): New macro.  Use it to define
6075         callback functions.
6076         (ptmalloc_init): Set tunable values.
6077         * scripts/gen-tunables.awk: New file.
6078         * sysdeps/mach/hurd/dl-sysdep.c: Include dl-tunables.h.
6079         (_dl_sysdep_start): Call __tunables_init.
6080
6081 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6082
6083         * resolv/resolv.h (RES_BLAST): Deprecate.
6084         * resolv/res_debug.c (p_option): Remove RES_BLAST.
6085         * resolv/res_send.c (__libc_res_nsend): Remove vestigial reference
6086         to RES_BLAST.
6087
6088 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6089
6090         [BZ #19582]
6091         Deprecate RES_USE_INET6.
6092         * nis/nss_nis/nis-hosts.c (_nss_nis_gethostent_r)
6093         (_nss_nis_gethostbyname2_r, _nss_nis_gethostbyname_r)
6094         (_nss_nis_gethostbyaddr_r): Use res_use_inet6 instead of
6095         RES_USE_INET6.
6096         * nis/nss_nisplus/nisplus-hosts.c (internal_nisplus_gethostent_r)
6097         (_nss_nisplus_gethostbyname2_r, _nss_nisplus_gethostbyname_r)
6098         (_nss_nisplus_gethostbyaddr_r): Likewise.
6099         * nscd/aicache.c (addhstaiX): Use DEPRECATED_RES_USE_INET6 instead
6100         of res_use_inet6.
6101         * nscd/nscd_gethst_r.c (__nscd_gethostbyname_r): Use res_use_inet6
6102         instead of RES_USE_INET6.
6103         * nss/digits_dots.c (__nss_hostname_digits_dots): Likewise.
6104         * nss/nss_files/files-hosts.c (EXTRA_ARGS_VALUE)
6105         (_nss_files_gethostbyname3_r, _nss_files_gethostbyname_r):
6106         Likewise.
6107         * resolv/compat-gethnamaddr.c (getanswer, res_gethostbyname)
6108         (res_gethostbyname2, res_gethostbyaddr, _gethtent, _gethtbyname):
6109         Likewise.
6110         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r)
6111         (_nss_dns_gethostbyname_r): Likewise.
6112         (_nss_dns_gethostbyaddr2_r): Remove commented-out code for
6113         alternate RES_USE_INET6 handling.
6114         * resolv/res_debug.c (p_option): Use DEPRECATED_RES_USE_INET6
6115         instead of RES_USE_INET6.
6116         * resolv/res_init.c (res_setoptions): Likewise.
6117         * resolv/resolv.h (RES_USE_INET6): Mark as deprecated.
6118         * resolv/resolv-internal.h: New file.
6119         * resolv/Makefile (CFLAGS-tst-res_use_inet6.c): Use -Wno-error to
6120         make the deprecation warning non-fatal.
6121         * resolv/README (Using the resolver in multi-threaded code): Drop
6122         reference to RES_USE_INET6.
6123         * sysdeps/posix/getaddrinfo.c (gethosts, gaih_inet): Use
6124         DEPRECATED_RES_USE_INET6 instead of res_use_inet6.
6125
6126 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6127
6128         * resolv/Makefile (tests): Add tst-bug18665, tst-bug18665-tcp,
6129         tst-res_use_inet6, tst-resolv-basic, tst-resolv-network,
6130         tst-resolv-search.
6131         (tst-bug18665, tst-bug18665-tcp, tst-res_use_inet6)
6132         (tst-resolv-basic, tst-resolv-network, tst-resolv-search): Link
6133         with libresolv and libpthread.
6134         * resolv/tst-bug18665.c: New file.
6135         * resolv/tst-bug18665-tcp: Likewise.
6136         * resolv/tst-res_use_inet6: Likewise.
6137         * resolv/tst-resolv-basic: Likewise.
6138         * resolv/tst-resolv-network: Likewise.
6139         * resolv/tst-resolv-search: Likewise.
6140         * support/Makefile (libsupport-routines): Add check_addrinfo,
6141         check_dns_packet, check_hostent, check_netent, resolv_test,
6142         support_format_address_family, support_format_addrinfo,
6143         support_format_dns_packet, support_format_herrno,
6144         support_format_hostent, support_format_netent, support_run_diff,
6145         xaccept, xbind, xconnect, xfclose, xfopen, xgetsockname, xlisten,
6146         xmemstream, xpoll, xpthread_once, xrecvfrom, xsendto, xsetsockopt,
6147         xstrdup, xwrite.
6148         * support/check_addrinfo.c: New file.
6149         * support/check_dns_packet.c: Likewise.
6150         * support/check_hostent.c: Likewise.
6151         * support/check_netent.c: Likewise.
6152         * support/check_nss.h: Likewise.
6153         * support/format_nss.h: Likewise.
6154         * support/resolv_test.c: Likewise.
6155         * support/resolv_test.h: Likewise.
6156         * support/run_diff.h: Likewise.
6157         * support/support_format_address_family.c: Likewise.
6158         * support/support_format_addrinfo.c: Likewise.
6159         * support/support_format_dns_packet.c: Likewise.
6160         * support/support_format_herrno.c: Likewise.
6161         * support/support_format_hostent.c: Likewise.
6162         * support/support_format_netent.c: Likewise.
6163         * support/support_run_diff.c: Likewise.
6164         * support/xaccept.c: Likewise.
6165         * support/xbind.c: Likewise.
6166         * support/xconnect.c: Likewise.
6167         * support/xfclose.c: Likewise.
6168         * support/xfopen.c: Likewise.
6169         * support/xgetsockname.c: Likewise.
6170         * support/xlisten.c: Likewise.
6171         * support/xmemstream.c: Likewise.
6172         * support/xmemstream.h: Likewise.
6173         * support/xpoll.c: Likewise.
6174         * support/xpthread_once.c: Likewise.
6175         * support/xrecvfrom.c: Likewise.
6176         * support/xsendto.c: Likewise.
6177         * support/xsetsockopt.c: Likewise.
6178         * support/xstdio.h: Likewise.
6179         * support/xstrdup.c: Likewise.
6180         * support/support.h (xstrdup): Declare.
6181         * support/xsocket.h (xsetsockopt, xgetsockname, xconnect, xbind)
6182         (xlisten, xaccept, xsendto, xrecvfrom, xpoll): Likewise.
6183         * support/xthread.h (xpthread_once): Likwise.
6184         * support/xunistd.h (xwrite): Declare.
6185
6186 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6187
6188         * support/test-driver.h (TEST_DEFAULT_OPTIONS): Add --verbose.
6189         (test_verbose): Declare.
6190         * support/test-driver.c (main): Use TEST_DEFAULT_OPTIONS.
6191         * support/support_test_main.c (default_options): Likewise.
6192         (usage, support_test_main): Handle 'v'.
6193         (test_verbose): Define.
6194         * support/tst-support_record_failure.c (do_test): Use
6195         test_verbose.
6196         * support/tst-support_record_failure-2.sh (different_status): Add
6197         --verbose test.
6198
6199 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6200
6201         * support/check.h (FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Document that
6202         test failures are recorded.
6203         * support/check.c (support_print_failure_impl): Call
6204         support_record_failure.
6205         (support_exit_failure_impl): Call support_record_failure if status
6206         indicates failure.
6207         * support/delayed_exit.c (delayed_exit_thread): Use FAIL_EXIT1.
6208         * support/xasprintf.c (xasprintf): Likewise.
6209         * support/xfork.c (xfork): Likewise.
6210         * support/xpthread_check_return.c (xpthread_check_return):
6211         Likewise.
6212         * support/xsocket.c (xsocket): Likeweise.
6213         * support/xwaitpid.c (xwaitpid): Likewise.
6214         * support/support_record_failure.c (struct test_failures): Adjust
6215         to coding style.
6216         * support/support_test_verify_impl.c (support_test_verify_impl):
6217         Adjust error messages.
6218         * support/tst-support_record_failure-2.sh (different_status):
6219         Adjust error messages.
6220
6221 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6222
6223         * support/namespace.h: New file.
6224         * support/support_become_root.c: Likewise.
6225         * support/support_enter_network_namespace.c: Likewise.
6226         * support/tst-support-namespace.c: Likewise.
6227         * support/xsocket.c: Likewise.
6228         * support/xsocket.h: Likewise.
6229         * support/Makefile (libsupport-routines): Add support_become_root,
6230         support_enter_network_namespace, xsocket.
6231         (tests): Add tst-support-namespace.
6232
6233 2016-12-31  Florian Weimer  <fweimer@redhat.com>
6234
6235         [BZ #17252]
6236         * posix/unistd.h (getentropy): Declare for __USE_MISC, not just
6237         __USE_GNU.
6238
6239 2016-12-31  Torvald Riegel  <triegel@redhat.com>
6240
6241         [BZ #13165]
6242         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast): Rewrite to
6243         use new algorithm.
6244         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
6245         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
6246         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
6247         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
6248         (__pthread_cond_timedwait): Move here from pthread_cond_timedwait.c.
6249         (__condvar_confirm_wakeup, __condvar_cancel_waiting,
6250         __condvar_cleanup_waiting, __condvar_dec_grefs,
6251         __pthread_cond_wait_common): New.
6252         (__condvar_cleanup): Remove.
6253         * npt/pthread_condattr_getclock.c (pthread_condattr_getclock): Adapt.
6254         * npt/pthread_condattr_setclock.c (pthread_condattr_setclock):
6255         Likewise.
6256         * npt/pthread_condattr_getpshared.c (pthread_condattr_getpshared):
6257         Likewise.
6258         * npt/pthread_condattr_init.c (pthread_condattr_init): Likewise.
6259         * nptl/tst-cond1.c: Add comment.
6260         * nptl/tst-cond20.c (do_test): Adapt.
6261         * nptl/tst-cond22.c (do_test): Likewise.
6262         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (pthread_cond_t): Adapt
6263         structure.
6264         * sysdeps/arm/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6265         * sysdeps/ia64/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6266         * sysdeps/m68k/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6267         * sysdeps/microblaze/nptl/bits/pthreadtypes.h (pthread_cond_t):
6268         Likewise.
6269         * sysdeps/mips/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6270         * sysdeps/nios2/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6271         * sysdeps/s390/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6272         * sysdeps/sh/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6273         * sysdeps/tile/nptl/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6274         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h (pthread_cond_t):
6275         Likewise.
6276         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h (pthread_cond_t):
6277         Likewise.
6278         * sysdeps/x86/bits/pthreadtypes.h (pthread_cond_t): Likewise.
6279         * sysdeps/nptl/internaltypes.h (COND_NWAITERS_SHIFT): Remove.
6280         (COND_CLOCK_BITS): Adapt.
6281         * sysdeps/nptl/pthread.h (PTHREAD_COND_INITIALIZER): Adapt.
6282         * nptl/pthreadP.h (__PTHREAD_COND_CLOCK_MONOTONIC_MASK,
6283         __PTHREAD_COND_SHARED_MASK): New.
6284         * nptl/nptl-printers.py (CLOCK_IDS): Remove.
6285         (ConditionVariablePrinter, ConditionVariableAttributesPrinter): Adapt.
6286         * nptl/nptl_lock_constants.pysym: Adapt.
6287         * nptl/test-cond-printers.py: Adapt.
6288         * sysdeps/unix/sysv/linux/hppa/internaltypes.h (cond_compat_clear,
6289         cond_compat_check_and_clear): Adapt.
6290         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: Remove file ...
6291         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
6292         (__pthread_cond_timedwait): ... and move here.
6293         * nptl/DESIGN-condvar.txt: Remove file.
6294         * nptl/lowlevelcond.sym: Likewise.
6295         * nptl/pthread_cond_timedwait.c: Likewise.
6296         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: Likewise.
6297         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Likewise.
6298         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise.
6299         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Likewise.
6300         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: Likewise.
6301         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: Likewise.
6302         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: Likewise.
6303         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Likewise.
6304         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: Likewise.
6305         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: Likewise.
6306         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Likewise.
6307         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Likewise.
6308         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: Likewise.
6309         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Likewise.
6310         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Likewise.
6311         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Likewise.
6312
6313 2016-12-31  Joseph Myers  <joseph@codesourcery.com>
6314
6315         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
6316         (fromfp): New declaration.
6317         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6318         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6319         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6320         * math/tgmath.h (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): New macro.
6321         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfp): Likewise.
6322         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfp): Likewise.
6323         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fromfpx): Likewise.
6324         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ufromfpx): Likewise.
6325         * math/math.h: Include <bits/types.h>.
6326         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_INT_UPWARD): New enum
6327         constant and macro.
6328         (FP_INT_DOWNWARD): Likewise.
6329         (FP_INT_TOWARDZERO): Likewise.
6330         (FP_INT_TONEARESTFROMZERO): Likewise.
6331         (FP_INT_TONEAREST): Likewise.
6332         * math/Versions (fromfp): New libm symbol at version GLIBC_2.25.
6333         (fromfpf): Likewise.
6334         (fromfpl): Likewise.
6335         (ufromfp): Likewise.
6336         (ufromfpf): Likewise.
6337         (ufromfpl): Likewise.
6338         (fromfpx): Likewise.
6339         (fromfpxf): Likewise.
6340         (fromfpxl): Likewise.
6341         (ufromfpx): Likewise.
6342         (ufromfpxf): Likewise.
6343         (ufromfpxl): Likewise.
6344         * math/Makefile (libm-calls): Add s_fromfpF, s_ufromfpF,
6345         s_fromfpxF and s_ufromfpxF.
6346         * math/gen-fromfp-tests.py: New file.
6347         * math/gen-fromfp-tests-inputs: Likewise.
6348         * math/libm-test.inc: Include <stdint.h>
6349         (check_intmax_t): New function.
6350         (check_uintmax_t): Likewise.
6351         (struct test_fiu_M_data): New type.
6352         (struct test_fiu_U_data): Likewise.
6353         (RUN_TEST_fiu_M): New macro.
6354         (RUN_TEST_LOOP_fiu_M): Likewise.
6355         (RUN_TEST_fiu_U): Likewise.
6356         (RUN_TEST_LOOP_fiu_U): Likewise.
6357         (fromfp_test_data): New array.
6358         (fromfp_test): New function.
6359         (fromfpx_test_data): New array.
6360         (fromfpx_test): New function.
6361         (ufromfp_test_data): New array.
6362         (ufromfp_test): New function.
6363         (ufromfpx_test_data): New array.
6364         (ufromfpx_test): New function.
6365         (main): Call fromfp_test, fromfpx_test, ufromfp_test and
6366         ufromfpx_test.
6367         * math/gen-libm-test.pl (parse_args): Handle u, M and U descriptor
6368         characters.
6369         * math/test-tgmath-ret.c: Include <stdint.h>.
6370         (rm): New variable.
6371         (width): Likewise.
6372         (CHECK_RET_CONST_TYPE): Take extra arguments and pass them to
6373         called function.
6374         (CHECK_RET_CONST_FLOAT): Take extra arguments and pass them to
6375         CHECK_RET_CONST_TYPE.
6376         (CHECK_RET_CONST_DOUBLE): Likewise.
6377         (CHECK_RET_CONST_LDOUBLE): Likewise.
6378         (CHECK_RET_CONST): Take extra arguments and pass them to calls
6379         macros.
6380         (fromfp): New CHECK_RET_CONST call.
6381         (ufromfp): Likewise.
6382         (fromfpx): Likewise.
6383         (ufromfpx): Likewise.
6384         (do_test): Call check_return_fromfp, check_return_ufromfp,
6385         check_return_fromfpx and check_return_ufromfpx.
6386         * math/test-tgmath.c: Include <stdint.h>
6387         (NCALLS): Increase to 138.
6388         (F(compile_test)): Initialize i.  Call fromfp functions.
6389         (F(fromfp)): New function.
6390         (F(fromfpx)): Likewise.
6391         (F(ufromfp)): Likewise.
6392         (F(ufromfpx)): Likewise.
6393         * manual/arith.texi (Rounding Functions): Document FP_INT_UPWARD,
6394         FP_INT_DOWNWARD, FP_INT_TOWARDZERO, FP_INT_TONEARESTFROMZERO,
6395         FP_INT_TONEAREST, fromfp, fromfpf, fromfpl, ufromfp, ufromfpf,
6396         ufromfpl, fromfpx, fromfpxf, fromfpxl, ufromfpx, ufromfpxf and
6397         ufromfpxl.
6398         * manual/libm-err-tab.pl (@all_functions): Add fromfp, fromfpx,
6399         ufromfp and ufromfpx.
6400         * math/fromfp.h: New file.
6401         * sysdeps/ieee754/dbl-64/s_fromfp.c: Likewise.
6402         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Likewise.
6403         * sysdeps/ieee754/dbl-64/s_fromfpx.c: Likewise.
6404         * sysdeps/ieee754/dbl-64/s_ufromfp.c: Likewise.
6405         * sysdeps/ieee754/dbl-64/s_ufromfpx.c: Likewise.
6406         * sysdeps/ieee754/flt-32/s_fromfpf.c: Likewise.
6407         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Likewise.
6408         * sysdeps/ieee754/flt-32/s_fromfpxf.c: Likewise.
6409         * sysdeps/ieee754/flt-32/s_ufromfpf.c: Likewise.
6410         * sysdeps/ieee754/flt-32/s_ufromfpxf.c: Likewise.
6411         * sysdeps/ieee754/ldbl-128/s_fromfpl.c: Likewise.
6412         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Likewise.
6413         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c: Likewise.
6414         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c: Likewise.
6415         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c: Likewise.
6416         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c: Likewise.
6417         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl_main.c: Likewise.
6418         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c: Likewise.
6419         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c: Likewise.
6420         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c: Likewise.
6421         * sysdeps/ieee754/ldbl-96/s_fromfpl.c: Likewise.
6422         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Likewise.
6423         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c: Likewise.
6424         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c: Likewise.
6425         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c: Likewise.
6426         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fromfp,
6427         ufromfp, fromfpx and ufromfpx.
6428         (CFLAGS-nldbl-fromfp.c): New variable.
6429         (CFLAGS-nldbl-fromfpx.c): Likewise.
6430         (CFLAGS-nldbl-ufromfp.c): Likewise.
6431         (CFLAGS-nldbl-ufromfpx.c): Likewise.
6432         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include <stdint.h>.
6433         * sysdeps/ieee754/ldbl-opt/nldbl-fromfp.c: New file.
6434         * sysdeps/ieee754/ldbl-opt/nldbl-fromfpx.c: Likewise.
6435         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfp.c: Likewise.
6436         * sysdeps/ieee754/ldbl-opt/nldbl-ufromfpx.c: Likewise.
6437         * sysdeps/nacl/libm.abilist: Update.
6438         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6439         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6440         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6441         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6442         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6443         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6444         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6445         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6446         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6447         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6448         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6449         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6451         Likewise.
6452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6453         Likewise.
6454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6455         Likewise.
6456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6457         Likewise.
6458         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6459         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6460         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6461         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6462         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6463         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6464         Likewise.
6465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6466         Likewise.
6467         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6468         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6469         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6470
6471 2016-12-30  Florian Weimer  <fweimer@redhat.com>
6472
6473         * resolv/Makefile (libresolv-routines): Rename gethnamaddr to
6474         compat-gethnamaddr.
6475         (CPPFLAGS): Remove.
6476         * resolv/gethnamaddr.c: Rename ...
6477         * resolv/compat-gethnamaddr.c: ... to this file.
6478         (_endhtent): Make static.
6479         (res_gethostbyname): Renamed from gethostbyname.  Turn into compat
6480         symbol.
6481         (res_gethostbyname2): Renamed from gethostbyname2.  Turn into
6482         compat symbol.
6483         (res_gethostbyaddr): Renamed from gethostbyaddr.  Turn into compat
6484         symbol.
6485         (_sethtent, _gethtent, _gethtbyname, gethtbyname2, _gethtbyaddr):
6486         Turn into compat symbol.
6487         * include/resolv.h (_endhtent): Remove declaration.
6488
6489 2016-12-30  Joseph Myers  <joseph@codesourcery.com>
6490
6491         * bits/types.h (__intmax_t): New typedef.
6492         (__uintmax_t): Likewise.
6493         * sysdeps/generic/stdint.h: Include <bits/types.h>.
6494         (intmax_t): Define using __intmax_t.
6495         (uintmax_t): Define using __uintmax_t.
6496
6497         * support/Makefile (tests-special): Make definition conditional on
6498         [$(run-built-tests) = yes].
6499         ($(objpfx)tst-support_record_failure-2.out): Make rule conditional
6500         on [$(run-built-tests) = yes].
6501
6502 2016-12-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6503
6504         * Rules (tests): Add tests-printers-programs to tests to be
6505         built.
6506
6507 2016-12-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6508
6509         * sysvipc/Makefile (tests): Add test-sysvshm.
6510         * sysvipc/test-sysvshm.c: New file.
6511
6512         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmget): Remove.
6513         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmget): Likewise.
6514         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmget): Likewise.
6515         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmget): Likewise.
6516         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmget): Likewise.
6517         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmget): Likewise.
6518         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmget):
6519         Likewise.
6520         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmget):
6521         Likewise.
6522         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmget): Likewise.
6523         * sysdeps/unix/sysv/linux/shmget.c (shmget): Use shmget syscall if it
6524         is defined.
6525
6526         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmdt): Remove.
6527         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmdt): Likewise.
6528         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmdt): Likewise.
6529         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmdt): Likewise.
6530         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmdt): Likewise.
6531         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmdt): Likewise.
6532         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmdt):
6533         Likewise.
6534         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmdt):
6535         Likewise.
6536         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmdt): Likewise.
6537         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Use shmdt syscall if it is
6538         defined.
6539
6540         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6541         oldshmctl.
6542         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmctl): Remove.
6543         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmctl): Likewise.
6544         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmctl): Likewise.
6545         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmctl): Likewise.
6546         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmctl): Likewise.
6547         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmctl): Likewise.
6548         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmctl):
6549         Likewise.
6550         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmctl):
6551         Likewise.
6552         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmctl): Likewise.
6553         * sysdeps/unix/sysv/linux/alpha/shmctl.c: Remove file.
6554         * sysdeps/unix/sysv/linux/arm/shmctl.c: Likewise.
6555         * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Likewise.
6556         * sysdeps/unix/sysv/linux/mips/mips64/shmctl.c: Use default
6557         implementation.
6558         * sysdeps/unix/sysv/linux/shmctl.c (__new_shmctl): Use shmctl syscall
6559         if it is defined.
6560
6561         * sysdeps/unix/sysv/linux/alpha/syscalls.list (shmat): Remove.
6562         * sysdeps/unix/sysv/linux/arm/syscalls.list (shmat): Likewise.
6563         * sysdeps/unix/sysv/linux/generic/syscalls.list (shmat): Likewise.
6564         * sysdeps/unix/sysv/linux/hppa/syscalls.list (shmat): Likewise.
6565         * sysdeps/unix/sysv/linux/ia64/syscalls.list (shmat): Likewise.
6566         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (shmat): Likewise.
6567         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (shmat):
6568         Likewise.
6569         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (shmat):
6570         Likewise.
6571         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (shmat): Likewise.
6572         * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
6573         Define to __NR_osf_shmat.
6574         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use shmat syscall if it is
6575         defined.
6576
6577         * sysvipc/Makefile (tests): Add test-sysvsem.
6578         * sysvipc/test-sysvsem.c: New file.
6579
6580         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semtimedop): Remove.
6581         * sysdeps/unix/sysv/linux/arm/syscalls.list (semtimedop): Likewise.
6582         * sysdeps/unix/sysv/linux/generic/syscalls.list (semtimedop):
6583         Likewise.
6584         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semtimedop): Likewise.
6585         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semtimedop): Likewise.
6586         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semtimedop):
6587         Likewise.
6588         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semtimedop):
6589         Likewise.
6590         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semtimedop): Likewise.
6591         * sysdeps/unix/sysv/linux/m68k/semtimedop.S: Remove file.
6592         * sysdeps/unix/sysv/linux/s390/semtimedop.c: Reorganize headers and
6593         add a comment about s390 syscall difference from default one.
6594         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use semtimedop
6595         syscall if it is defined.
6596
6597         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semop): Remove.
6598         * sysdeps/unix/sysv/linux/arm/syscalls.list (semop): Likewise.
6599         * sysdeps/unix/sysv/linux/generic/syscalls.list (semop): Likewise.
6600         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semop): Likewise.
6601         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semop): Likewise.
6602         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semop): Likewise.
6603         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semop):
6604         Likewise.
6605         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semop):
6606         Likewise.
6607         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semop): Likewise.
6608         * sysdeps/unix/sysv/linux/semop.c (semop): Use semop syscall if it is
6609         defined.
6610
6611         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semget): Remove.
6612         * sysdeps/unix/sysv/linux/arm/syscalls.list (semget): Likewise.
6613         * sysdeps/unix/sysv/linux/generic/syscalls.list (semget): Likewise.
6614         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semget): Likewise.
6615         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semget): Likewise.
6616         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (semget): Likewise.
6617         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (semget):
6618         Likewise.
6619         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semget):
6620         Likewise.
6621         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semget): Likewise.
6622         * sysdeps/unix/sysv/linux/semget.c (semget): Use semget syscall
6623         if it is defined.
6624
6625         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6626         oldsemctl.
6627         * sysdeps/unix/sysv/linux/alpha/semctl.c: Remove file.
6628         * sysdeps/unix/sysv/linux/arm/semctl.c: Likewise.
6629         * sysdeps/unix/sysv/linux/microblaze/semctl.c: Likewise.
6630         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Likewise.
6631         * sysdeps/unix/sysv/linux/mips/mips64/semctl.c: Use defaulf
6632         implementation.
6633         * sysdeps/unix/sysv/linux/semctl.c (__new_semctl): Use semctl
6634         syscall if it is defined.
6635         * sysdeps/unix/sysv/linux/generic/syscalls.list (semctl): Remove.
6636         * sysdeps/unix/sysv/linux/alpha/syscalls.list (semctl): Likewise.
6637         * sysdeps/unix/sysv/linux/hppa/syscalls.list (semctl): Likewise.
6638         * sysdeps/unix/sysv/linux/ia64/syscalls.list (semctl): Likewise.
6639         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (semctl):
6640         Likewise.
6641         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (semctl): Likewise.
6642
6643         * sysvipc/Makefile (tests): Add test-sysvmsg.
6644         * sysvipc/test-sysvmsg.c: New file.
6645         * support/check.h (FAIL_UNSUPPORTED): New define.
6646
6647         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgget): Remove.
6648         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgget): Likewise.
6649         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgget): Likewise.
6650         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgget): Likewise.
6651         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgget): Likewise.
6652         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgget): Likewise.
6653         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgget):
6654         Likewise.
6655         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgget):
6656         Likewise.
6657         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgget): Likewise.
6658         * sysdeps/unix/sysv/linux/msgget.c (msgget): Use msgget syscall if
6659         define.
6660
6661         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgsnd): Remove.
6662         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgsnd): Likewise.
6663         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgsnd): Likewise.
6664         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgsnd): Likewise.
6665         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgsnd): Likewise.
6666         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgsnd): Likewise.
6667         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgsnd):
6668         Likewise.
6669         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgsnd):
6670         Likewise.
6671         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgsnd): Likewise.
6672         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Use msgsnd syscall
6673         if defined.
6674
6675         * sysdeps/unix/sysv/linux/alpha/syscalls.list (msgctl): Remove.
6676         * sysdeps/unix/sysv/linux/arm/syscalls.list (msgctl): Likewise.
6677         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6678         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6679         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6680         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (msgctl): Likewise.
6681         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6682         Likewise.
6683         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise,
6684         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (msgctl):
6685         Likewise.
6686         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Use msgrcv syscall
6687         if defined.
6688         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Remove file.
6689
6690         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdeps_routines): Remove
6691         oldmsgctl.
6692         * sysdeps/unix/sysv/linux/alpha/msgctl.c: Remove file.
6693         * sysdeps/unix/sysv/linux/arm/msgctl.c: Likewise.
6694         * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Likewise.
6695         * sysdeps/unix/sysv/linux/alpha/syscalls.list (oldmsgctl): Remove.
6696         * sysdeps/unix/sysv/linux/generic/syscalls.list (msgctl): Likewise.
6697         * sysdeps/unix/sysv/linux/hppa/syscalls.list (msgctl): Likewise.
6698         * sysdeps/unix/sysv/linux/ia64/syscalls.list (msgctl): Likewise.
6699         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (msgctl):
6700         Likewise.
6701         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (msgctl): Likewise.
6702         * sysdeps/unix/sysv/linux/mips/mips64/msgctl.c: Use default
6703         implementation.
6704         * sysdeps/unix/sysv/linux/msgctl.c (__new_msgctl): Use msgctl syscall
6705         if defined.
6706
6707         * sysdeps/unix/sysv/linux/aarch64/ipc_priv.h: New file.
6708         * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Avoid included other arch
6709         definition and define its own.
6710         * sysdeps/unix/sysv/linux/ipc_ops.h: New file.
6711         * sysdeps/unix/sysv/linux/x86_64/ipc_priv.h: Likewise.
6712         * sysdeps/unix/sysv/linux/mips/ipc_priv.h: Remove file.
6713         * sysdeps/unix/sysv/linux/mips/mips64/ipc_priv.h: New file.
6714         * sysdeps/unix/sysv/linux/ipc_priv.h: Move ipc syscall operation
6715         definitions to common header.
6716         * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h: Use common syscall
6717         operation from ipc_ops.h.
6718
6719         * sysdeps/unix/sysv/linux/kernel-features.h
6720         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): New define.
6721         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6722         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Undef.
6723         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6724         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6725         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6726         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6727         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
6728         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6729         * sysdeps/unix/sysv/linux/s390/kernel-features.h
6730         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6731         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6732         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6733         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6734         (__ASSUME_DIRECT_SYSVIPC_SYSCALLS): Likewise.
6735
6736 2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6737
6738         * sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
6739         overflow in pointer addition.
6740
6741 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6742
6743         * sysdeps/powerpc/powerpc64/multiarch/Makefile
6744         (sysdep_routines): Add strchr-power8 and strchrnul_power8.
6745         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6746         (strchr): Add __strchr_power8 to list of strchr functions.
6747         (strchrnul): Add __strchrnul_power8 to list of strchr functions.
6748         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: New file.
6749         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: New file.
6750         * sysdeps/powerpc/powerpc64/multiarch/strchr.c
6751         (strchr): Add __strchr_power8 to ifunc list.
6752         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c
6753         (__strchrnul): Add __strchrnul_power8 to ifunc list.
6754         * sysdeps/powerpc/powerpc64/power8/strchr.S: New file.
6755         * sysdeps/powerpc/powerpc64/power8/strchrnul.S: New file.
6756
6757 2016-12-28  Florian Weimer  <fweimer@redhat.com>
6758
6759         * support/Makefile (libsupport-routines): Add
6760         support_test_verify_impl, support_record_failure, xfork, xwaitpid.
6761         (tests): Add tst-support_record_failure.
6762         (tests-special): tst-support_record_failure-2.
6763         (tst-support_record_failure-2.out): Depend on
6764         tst-support_record_failure-2.sh and tst-support_record_failure.
6765         * support/check.h (TEST_VERIFY, TEST_VERIFY_EXIT): Define.
6766         (support_test_verify_impl, support_record_failure)
6767         (support_report_failure, support_report_failure_reset): Declare.
6768         * support/support_test_main.c (adjust_exit_status): New function.
6769         (support_test_main): Call it to incorporate record test failures.
6770         * support/support_test_verify_impl.c: New file.
6771         * support/support_record_failure.c: Likewise.
6772         * support/tst-support_record_failure.c: Likewise.
6773         * support/tst-support_record_failure-2.sh: Likewise.
6774         * support/xunistd.h: Likewise.
6775         * support/xfork.c: Likewise.
6776         * support/xwaitpid.c: Likewise.
6777
6778 2016-12-27  Steve Ellcey  <sellcey@caviumnetworks.com>
6779
6780         * scripts/check-c++-types.sh: Add comments.
6781
6782 2016-12-27  Dmitry V. Levin  <ldv@altlinux.org>
6783
6784         [BZ #19514]
6785         * resolv/res_send.c: Fix typo in comment.
6786         * sysdeps/i386/i386-mcount.S: Likewise.
6787         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
6788         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
6789         * sysdeps/sparc/sparc-mcount.S: Likewise.
6790
6791 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6792
6793         * sysdeps/powerpc/fpu/s_fmaxf.S: Remove file.
6794         * sysdeps/powerpc/fpu/s_fminf.S: Likewise.
6795         * sysdeps/powerpc/fpu/s_fmax.S: Likewise.
6796         * sysdeps/powerpc/fpu/s_fmin.S: Likewise.
6797         * sysdeps/powerpc/powerpc32/fpu/s_fmax.S: Likewise.
6798         * sysdeps/powerpc/powerpc32/fpu/s_fmin.S: Likewise.
6799         * sysdeps/powerpc/powerpc64/fpu/s_fmax.S: Likewise.
6800         * sysdeps/powerpc/powerpc64/fpu/s_fmin.S: Likewise.
6801
6802 2016-12-27  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6803
6804         * manual/arith.texi (FP Comparison Functions): Fix typo in iseqsig.
6805
6806 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6807
6808         [BZ #17252]
6809         * posix/unistd.h (getentropy): Declare.
6810
6811 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6812
6813         * resolv/res_hconf.h (HCONF_FLAG_SPOOF, HCONF_FLAG_SPOOFALERT):
6814         Remove.
6815         * resolv/res_hconf.c (ENV_SPOOF, arg_spoof): Remove.
6816         (cmd): Remove spoof, nospoof, spoofalert.
6817         (parse_line): Ignore spoof-related lines.
6818         (do_init): Do not process RESOLV_SPOOF_CHECK.
6819
6820 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6821
6822         [BZ #20964]
6823         sunrpc: Always obtain AF_INET addresses from NSS.
6824         * include/rpc/rpc.h (__libc_rpc_gethostbyname): Declare.
6825         * sunrpc/rpc_gethostbyname.c: New file.
6826         * sunrpc/Makefile (routines): Add it.
6827         * sunrpc/clnt_gen.c (clnt_create): Use __libc_rpc_gethostbyname.
6828         * sunrpc/clnt_simp.c (callrpc): Likewise.
6829         * sunrpc/getrpcport.c (getrpcport): Likewise.
6830
6831 2016-12-27  Florian Weimer  <fweimer@redhat.com>
6832
6833         * sunrpc/rpcinfo.c: Remove.
6834         * sunrpc/Makefile: Remove comments referring to rpcinfo.
6835
6836 2016-12-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6837
6838         [BZ #19387]
6839         * sysdeps/x86_64/memchr.S (memchr): Avoid overflow in pointer
6840         addition.
6841         * string/test-memchr.c (do_test): Remove alignment limitation.
6842         (test_main): Add test that trigger BZ #19387.
6843
6844 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6845
6846         [BZ #7065]
6847         Enable stack protectore if requested by ./configure.
6848         * Makeconfig (+stack-protector): New variable.
6849         (+cflags): Use it.
6850
6851 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6852
6853         [BZ #7065]
6854         * signal/Makefile (CFLAGS-sigreturn.c): Use $(no-stack-protector).
6855         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c:
6856         (__rt_sigreturn_stub): Use inhibit_stack_protector.
6857         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6858         (__rt_sigreturn_stub, __sigreturn_stub): Likewise.
6859
6860 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6861
6862         [BZ #7065]
6863         * login/Makefile (pt_chown-cflags): Remove.
6864         * nscd/Makefile (CFLAGS-nscd): Likewise.
6865         * resolv/Makefile (CFLAGS-libresolv): Likewise.
6866
6867 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6868
6869         [BZ #7065]
6870         * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
6871         non-libc-linking testcase.
6872
6873 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6874             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6875             Florian Weimer  <fweimer@redhat.com>
6876
6877         [BZ #7065]
6878         PLT avoidance for __stack_chk_fail*.
6879         * debug/Makefile (CFLAGS-stack_chk_fail.c)
6880         (CFLAGS-stack_chk_fail_local.c): Build without stack protector.
6881         * debug/stack_chk_fail.c (__stack_chk_fail): Add
6882         __stack_chk_fail_local alias.
6883         * sysdeps/generic/symbol-hacks.h [IS_IN (libc)]
6884         (__stack_chk_fail): Turn into hidden reference to
6885         __stack_chk_fail_local.
6886
6887 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6888
6889         [BZ #7065]
6890         * configure.ac: Add check for unsupported stack-protection level.
6891         (libc_cv_predef_stack_protector): Remove.
6892         (no_ssp): New variable.
6893         (STACK_PROTECTOR_LEVEL): Set to zero when --disable-stack-protector.
6894         (stack_protector): Set to -fno-stack-protector similarly.
6895         (libc_cv_ld_gnu_indirect_function): Use no_ssp.
6896         (libc_cv_asm_set_directive): Likewise.
6897         (libc_cv_protected_data): Likewise.
6898         (libc_cv_z_combreloc): Likewise.
6899         (libc_cv_hashstyle): Likewise.
6900         (libc_cv_has_glob_dat): Likewise.
6901         (libc_cv_output_format): Likewise.
6902         (libc_cv_output_format): Likewise.
6903         (libc_cv_ehdr_start): Likewise.
6904         * aclocal.m4 (LIBC_TRY_LINK_STATIC): Likewise.
6905         (LIBC_LINKER_FEATURE): Likewise.
6906         (LIBC_COMPILER_BUILTIN_INLINED): Likewise.
6907
6908 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6909
6910         [BZ #7065]
6911         * elf/Makefile (dummy-stack-chk-fail): New.
6912         (librtld.map): Use it.
6913
6914 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6915
6916         [BZ #7065]
6917         Compile the dynamic linker without stack protection.
6918         * elf/Makefile (elide-stack-protector): New.
6919         (CFLAGS-.os): Use it, eliding $(all-rtld-routines).
6920         (CFLAGS-.o, CFLAGS-.op): Likewise, but for $(elide-routines.os).
6921         * elf/rtld-Rules (rtld-CFLAGS): Add $(no-stack-protector).
6922         * sysdeps/i386/Makefile (rtld-CFLAGS): Use +=, not =.
6923
6924 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6925
6926         [BZ #7065]
6927         * config.make.in (have-ssp, no-stack-protector): New.
6928         * csu/Makefile (CFLAGS-.o, CFLAGS-.op, CFLAGS-.os): Use it.
6929         * misc/Makefile (CFLAGS-sbrk.o): Likewise.
6930         (CFLAGS-sbrk.op): Likewise.
6931         (CFLAGS-brk.o): Likewise.
6932         (CFLAGS-brk.op): Likewise.
6933         * string/Makefile (CFLAGS-memcpy.c): Likewise.
6934         (CFLAGS-wordcopy.c): Likewise.
6935
6936 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6937
6938         [BZ #7065]
6939         * configure.ac (HAVE_CC_NO_STACK_PROTECTOR): Define.
6940         * config.h.in (HAVE_CC_NO_STACK_PROTECTOR): New macro.
6941         * include/libc-symbols.h (inhibit_stack_protector): New macro.
6942         (__ifunc_resolver): Use it.
6943         * elf/ifuncdep2.c (foo1_ifunc, foo2_ifunc, foo3_ifunc): Apply
6944         inhibit_stack_protector.
6945         * elf/ifuncmain6pie.c (foo_ifunc): Likewise.
6946         * elf/ifuncmain7.c (foo_ifunc): Likewise.
6947         * elf/ifuncmod1.c (foo_ifunc, foo_hidden_ifunc)
6948         (foo_protected_ifunc): Likewise.
6949         * elf/ifuncmod5.c (foo_ifunc, foo_hidden_ifunc)
6950         (foo_protected_ifunc): Likewise.
6951         * sysdeps/generic/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6952         * sysdeps/nacl/nacl_interface_query.c
6953         (nacl_interface_query_ifunc): Likewise.
6954         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel, ifunc_one): Likewise.
6955         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c (getcpu_ifunc):
6956         Likewise.
6957         * sysdeps/x86_64/ifuncmod8.c (foo_ifunc): Likewise.
6958         * sysdeps/unix/make-syscalls.sh: Apply inhibit_stack_protector to
6959         the generated vDSO syscall resolver.
6960
6961 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6962             Florian Weimer  <fweimer@redhat.com>
6963
6964         [BZ #7065]
6965         Initialize the stack guard earlier when linking statically.
6966         * sysdeps/generic/ldsodefs.h (__libc_setup_tls)
6967         (__pthread_initialize_minimal): Declare.
6968         * csu/libc-start.c (__pthread_initialize_minimal): Remove
6969         declaration.
6970         (LIBC_START_MAIN): Call __libc_setup_tls early and directly.  Move
6971         stack canary and apply_irel initialization up.  Call
6972         __pthread_initialize_minimal only if linked in.
6973         * csu/libc-tls.c (__libc_setup_tls): Replace arguments with their
6974         constant values.
6975         (__pthread_initialize_minimal): Remove.
6976         * nptl/nptl-init.c (__libc_setup_tls): Remove declaration.
6977         (__pthread_initialize_minimal_internal): Do not call
6978         __libc_setup_tls.
6979
6980 2016-12-26  Nick Alcock  <nick.alcock@oracle.com>
6981
6982         [BZ #7065]
6983         * configure.ac (libc_cv_ssp): Move up.
6984         (libc_cv_ssp_strong): Likewise.
6985         (libc_cv_ssp_all): New.
6986         (stack_protector): Augment, adding -fstack-protector-all.
6987         (no_stack_protector): New.
6988         (STACK_PROTECTOR_LEVEL): New.
6989         (AC_ARG_ENABLE(stack-protector)): New configure flag.
6990         * manual/install.texi (--enable-stack-protector): Document it.
6991         * config.h.in (STACK_PROTECTOR_LEVEL): New macro.
6992
6993 2016-12-24  Carlos O'Donell  <carlos@redhat.com>
6994
6995         * README.pretty-printers: Must specify CPPFLAGS-* also.
6996         * nptl/Makefile (CPPFLAGS-test-mutexattr-printers.c): Define.
6997         (CPPFLAGS-test-mutex-printers.c): Define.
6998         (CPPFLAGS-test-condattr-printers.c): Define.
6999         (CPPFLAGS-test-cond-printers.c): Define.
7000         (CPPFLAGS-test-rwlockattr-printers.c): Define.
7001         (CPPFLAGS-test-rwlock-printers.c): Define.
7002
7003         * nss/Makefile [ifeq (yes,$(have-thread-library))]
7004         (tests): Add tst-cancel-getpwuid_r.
7005         * nss/tst-cancel-getpwuid_r.c: New file.
7006
7007         [BZ #11941]
7008         * elf/dl-close.c (_dl_close): Take dl_load_lock to examine map.
7009         Remove assert (map->l_init_called); if DF_1_NODELETE is set.
7010         * elf/Makefile [ifeq (yes,$(build-shared))] (tests): Add
7011         tst-nodelete-dlclose.
7012         (modules-names): Add tst-nodelete-dlclose-dso and
7013         tst-nodelete-dlclose-plugin.
7014         ($(objpfx)tst-nodelete-dlclose-dso.so): Define.
7015         ($(objpfx)tst-nodelete-dlclose-plugin.so): Define.
7016         ($(objpfx)tst-nodelete-dlclose): Define.
7017         ($(objpfx)tst-nodelete-dlclose.out): Define.
7018
7019 2016-12-23  Florian Weimer  <fweimer@redhat.com>
7020
7021         * scripts/test_printers_common.py: Log GDB output in case of
7022         Python detection failure.
7023
7024 2016-12-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7025
7026         * configure.ac: Check for python3 or python.
7027         * configure: Regenerated.
7028         * config.make.in (PYTHON): New variable.
7029         * benchtests/Makefile: Don't define PYTHON.
7030         (bench): Define target only if PYTHON was defined.
7031         * Rules: Don't define PYTHON.
7032         Define pretty printer targets only if PYTHON was defined.
7033         (tests-printers): Add to tests-unsupported if PYTHON is not
7034         found.
7035         (python-flags, python-invoke): Remove.
7036         (tests-printers-out): Use PYTHON instead of python-invoke.
7037
7038 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
7039
7040         [BZ #20978]
7041         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7042         Compare name == NULL, not name != NULL.
7043
7044         * manual/texinfo.tex: Update to version 2016-09-18.18 with
7045         trailing whitespace removed.
7046         * scripts/config.guess: Update to version 2016-10-02.
7047         * scripts/config.sub: Update to version 2016-11-19.
7048         * scripts/install-sh: Update to version 2016-01-11.22.
7049         * scripts/mkinstalldirs: Update to version 2016-01-11.22.
7050         * scripts/move-if-change: Update to version 2016-01-11 22:04.
7051
7052 2015-12-21  Wilco Dijkstra  <wdijkstr@arm.com>
7053
7054         * benchtests/bench-strsep.c (oldstrsep): Add old implementation.
7055         (do_one_test) Restore original string so iteration works.
7056         * string/string-inlines.c (do_test): Create better input strings.
7057         (test_main) Reduce number of testruns.
7058         * string/string-inlines.c (__old_strsep_1c): New function.
7059         (__old_strsep_2c): Likewise.
7060         (__old_strsep_3c): Likewise.
7061         * string/strsep.c (__strsep): Remove case of small delim string.
7062         Call strcspn directly rather than strpbrk.
7063         * string/bits/string2.h (__strsep): Remove define.
7064         (__strsep_1c): Remove.
7065         (__strsep_2c): Remove.
7066         (__strsep_3c): Remove.
7067         (strsep): Remove.
7068         * sysdeps/unix/sysv/linux/internal_statvfs.c
7069         (__statvfs_getflags): Rename to __strsep.
7070
7071 2016-12-21  Florian Weimer  <fweimer@redhat.com>
7072
7073         * csu/libc-tls.c (_dl_tls_setup): Remove.
7074         * elf/dl-tls.c (_dl_tls_setup): Likewise.
7075         * elf/Versions (GLIBC_PRIVATE): Remove _dl_tls_setup.
7076         * sysdeps/generic/ldsodefs.h (_dl_tls_setup): Remove declaration.
7077
7078 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
7079
7080         [BZ #7065]
7081         * sysdeps/x86_64/Makefile [$(subdir) = elf]
7082         (CFLAGS-tst-quad1pie.c, CFLAGS-tst-quad2pie.c): Add $(PIE-ccflag).
7083
7084 2016-12-21  Nick Alcock <nick.alcock@oracle.com>
7085             Florian Weimer  <fweimer@redhat.com>
7086
7087         [BZ #7065]
7088         * csu/Makefile (tests): Empty assignment and document it.
7089         (tests-static): Remove.
7090         * csu/tst-empty.c: Move to...
7091         * misc/tst-empty.c: ... here.  Switch to new test driver.
7092         * csu/tst-atomic.c: Move to...
7093         * misc/tst-atomic.c: ... here.  Switch to new test driver.
7094         * csu/tst-atomic-long.c: Move to...
7095         * misc/tst-atomic-long.c: ... here.
7096         * misc/Makefile (tests): Add tst-empty, tst-atomic,
7097         tst-atomic-long.
7098         (tests-static): Add tst-empty.
7099
7100 2016-12-21  Rical Jasan  <ricaljasan@pacific.net>
7101
7102         * manual/nss.texi: Change incorrect @vtable to @table.
7103         * manual/arith.texi: Convert @tables of variables to @vtables
7104         and remove unnecessary indexing.
7105         * manual/filesys.texi: Likewise.
7106         * manual/llio.texi: Likewise.
7107         * manual/memory.texi: Likewise.
7108         * manual/process.texi: Likewise.
7109         * manual/resource.texi: Likewise.
7110         * manual/search.texi: Likewise.
7111         * manual/signal.texi: Likewise.
7112         * manual/socket.texi: Likewise.
7113         * manual/stdio.texi: Likewise.
7114         * manual/sysinfo.texi: Likewise.
7115         * manual/syslog.texi: Likewise.
7116         * manual/terminal.texi: Likewise.
7117         * manual/time.texi: Likewise.
7118         * manual/users.texi: Likewise.
7119
7120 2016-12-21  Joseph Myers  <joseph@codesourcery.com>
7121
7122         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7123         (roundeven): New declaration.
7124         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (roundeven): New
7125         macro.
7126         * math/Versions (roundeven): New libm symbol at version
7127         GLIBC_2.25.
7128         (roundevenf): Likewise.
7129         (roundevenl): Likewise.
7130         * math/Makefile (libm-calls): Add s_roundevenF.
7131         * math/libm-test.inc (roundeven_test_data): New array.
7132         (roundeven_test): New function.
7133         (main): Call roundeven_test.
7134         * math/test-tgmath.c (NCALLS): Increase to 134.
7135         (F(compile_test)): Call roundeven.
7136         (F(roundeven)): New function.
7137         * manual/arith.texi (Rounding Functions): Document roundeven,
7138         roundevenf and roundevenl.
7139         * manual/libm-err-tab.pl (@all_functions): Add roundeven.
7140         * include/math.h (roundeven): Use libm_hidden_proto.
7141         * sysdeps/ieee754/dbl-64/s_roundeven.c: New file.
7142         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Likewise.
7143         * sysdeps/ieee754/flt-32/s_roundevenf.c: Likewise.
7144         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Likewise.
7145         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c: Likewise.
7146         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Likewise.
7147         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
7148         roundeven.
7149         (CFLAGS-nldbl-roundeven.c): New variable.
7150         * sysdeps/ieee754/ldbl-opt/nldbl-roundeven.c: New file.
7151         * sysdeps/nacl/libm.abilist: Update.
7152         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7153         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7154         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7155         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7156         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7157         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7158         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7159         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7160         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7161         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7162         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7163         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7165         Likewise.
7166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7167         Likewise.
7168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7169         Likewise.
7170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7171         Likewise.
7172         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7173         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7174         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7175         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7176         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7177         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7178         Likewise.
7179         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7180         Likewise.
7181         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7182         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7183         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7184
7185 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
7186
7187         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): Add
7188         preprocessor indentation inside #if.
7189
7190 2016-12-20  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7191
7192         * math/libm-test.inc (fmt_ftostr): New function.
7193         (print_float, check_float_internal): Replace some uses of
7194         FTOSTR with uses of fmt_ftostr.
7195         (print_max_error, print_complex_max_error, print_function_ulps)
7196         (print_complex_function_ulps): Remove uses of the macros
7197         PRINTF_EXPR, PRINTF_NEXPR, and PRINTF_XEXPR.
7198         * math/test-double.h (FTOSTR): Define to strfromd.
7199         (PRINTF_EXPR): Delete.
7200         (PRINTF_XEXPR): Likewise.
7201         (PRINTF_NEXPR): Likewise.
7202         * math/test-float.h (FTOSTR): Define to strfromf.
7203         (PRINTF_EXPR): Delete.
7204         (PRINTF_XEXPR): Likewise.
7205         (PRINTF_NEXPR): Likewise.
7206         * math/test-ldouble.h (FTOSTR): Define to strfroml.
7207         (PRINTF_EXPR): Delete.
7208         (PRINTF_XEXPR): Likewise.
7209         (PRINTF_NEXPR): Likewise.
7210
7211 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7212
7213         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
7214         (__lll_unlock_elision, lll_unlock_elision): Add adapt_count argument.
7215         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
7216         (__lll_lock_elision): Decrement adapt_count while unlocking
7217         instead of before locking.
7218         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
7219         (__lll_trylock_elision): Likewise.
7220         * sysdeps/unix/sysv/linux/s390/elision-unlock.c:
7221         (__lll_unlock_elision): Likewise.
7222
7223 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7224
7225         * sysdeps/unix/sysv/linux/s390/htm.h(__libc_tbegin_retry): New macro.
7226         * sysdeps/unix/sysv/linux/s390/elision-lock.c (__lll_lock_elision):
7227         Use __libc_tbegin_retry macro.
7228
7229 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7230
7231         * sysdeps/unix/sysv/linux/s390/Makefile (elision-CFLAGS):
7232         Add -msoft-float.
7233         * sysdeps/unix/sysv/linux/s390/htm.h: New File.
7234         * sysdeps/unix/sysv/linux/s390/elision-lock.c:
7235         Use __libc_t* transaction macros instead of __builtin_t*.
7236         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7237         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
7238
7239 2016-12-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7240
7241         * sysdeps/unix/sysv/linux/s390/elision-lock.c
7242         (__lll_lock_elision): Use atomics to load / store adapt_count.
7243         * sysdeps/unix/sysv/linux/s390/elision-trylock.c
7244         (__lll_trylock_elision): Likewise.
7245
7246 2016-12-20  Florian Weimer  <fweimer@redhat.com>
7247
7248         Do not require memset elimination in explicit_bzero test.
7249         * string/tst-xbzero-opt.c (prepare_test_buffer): Force inlining.
7250         (enum test_expectation): Add NO_EXPECTATIONS.
7251         (subtests): NO_EXPECTATIONS for ordinary clear.
7252         (check_test_buffer): Handle NO_EXPECTATIONS.
7253         * string/Makefile (CFLAGS-tst-xbzero-opt.c): Compile with -O3.
7254
7255 2016-12-20  Joseph Myers  <joseph@codesourcery.com>
7256
7257         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
7258         (fmaxmag): New declaration.
7259         (fminmag): Likewise.
7260         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (fmaxmag): New
7261         macro.
7262         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fminmag): Likewise.
7263         * math/Versions (fmaxmag): New libm symbol at version GLIBC_2.25.
7264         (fmaxmagf): Likewise.
7265         (fmaxmagl): Likewise.
7266         (fminmag): Likewise.
7267         (fminmagf): Likewise.
7268         (fminmagl): Likewise.
7269         * math/Makefile (gen-libm-calls): Add s_fmaxmagF and s_fminmagF.
7270         * math/s_fmaxmag_template.c: New file.
7271         * math/s_fminmag_template.c: Likewise.
7272         * math/libm-test.inc (fmaxmag_test_data): New array.
7273         (fmaxmag_test): New function.
7274         (fminmag_test_data): New array.
7275         (fminmag_test): New function.
7276         (main): Call fmaxmag_test and fminmag_test.
7277         * math/test-tgmath.c (NCALLS): Increase to 132.
7278         (F(compile_test)): Call fmaxmag and fminmag.
7279         (F(fminmag)): New function.
7280         (F(fmaxmag)): Likewise.
7281         * manual/arith.texi (Misc FP Arithmetic): Document fminmag,
7282         fminmagf, fminmagl, fmaxmag, fmaxmagf and fmaxmagl.
7283         * manual/libm-err-tab.pl (@all_functions): Add fmaxmag and
7284         fminmag.
7285         * sysdeps/ieee754/ldbl-opt/nldbl-fmaxmag.c: New file.
7286         * sysdeps/ieee754/ldbl-opt/nldbl-fminmag.c: Likewise.
7287         * sysdeps/ieee754/ldbl-opt/s_fmaxmagl.c: Likewise.
7288         * sysdeps/ieee754/ldbl-opt/s_fminmagl.c: Likewise.
7289         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmaxmag
7290         and fminmag.
7291         (CFLAGS-nldbl-fmaxmag.c): New variable.
7292         (CFLAGS-nldbl-fminmag.c): Likewise.
7293         * sysdeps/nacl/libm.abilist: Update.
7294         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7295         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7296         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7297         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7298         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7299         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7300         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7301         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7302         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7303         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7304         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7305         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7307         Likewise.
7308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7309         Likewise.
7310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7311         Likewise.
7312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7313         Likewise.
7314         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7315         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7316         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7317         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7318         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7319         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7320         Likewise.
7321         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7322         Likewise.
7323         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7324         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7325         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7326
7327 2016-12-19  Torvald Riegel  <triegel@redhat.com>
7328
7329         [BZ #20973]
7330         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Fix lost
7331         wake-up in robust mutexes.
7332         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
7333
7334 2016-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7335
7336         * benchtests/Makefile (bench-math): Add fminf and fmaxf.
7337         (CFLAGS-bench-fmaxf.c): New rule.
7338         (CFLAGS-bench-fminf.c): Likewise.
7339         * benchtests/fmaxf-inputs: New file.
7340         * benchtests/fminf-inputs: Likewise.
7341
7342         * benchtests/Makefile (bench-math): Add fmin and fmax.
7343         (CFLAGS-bench-fmax.c): New rule.
7344         (CFLAGS-bench-fmin.c): Likewise.
7345         * benchtests/fmax-inputs: New file.
7346         * benchtests/fmin-inputs: Likewise.
7347
7348         * benchtests/bench-string.h (TEST_FUNCTION): Use name without
7349         parenthesis.
7350         (CMDLINE_PROCESS): Define using function instead of macro.
7351         * benchtests/bench-memccpy.c: Include <support/test-driver.c> instead
7352         of test-skeleton.
7353         * benchtests/bench-memchr.c: Likewise.
7354         * benchtests/bench-memcmp.c: Likewise.
7355         * benchtests/bench-memcpy-large.c: Likewise.
7356         * benchtests/bench-memcpy.c: Likewise.
7357         * benchtests/bench-memmem.c: Likewise.
7358         * benchtests/bench-memmove-large.c: Likewise.
7359         * benchtests/bench-memmove.c: Likewise.
7360         * benchtests/bench-memset-large.c: Likewise.
7361         * benchtests/bench-memset.c: Likewise.
7362         * benchtests/bench-rawmemchr.c: Likewise.
7363         * benchtests/bench-strcasecmp.c: Likewise.
7364         * benchtests/bench-strcasestr.c: Likewise.
7365         * benchtests/bench-strcat.c: Likewise.
7366         * benchtests/bench-strchr.c: Likewise.
7367         * benchtests/bench-strcmp.c: Likewise.
7368         * benchtests/bench-strcpy.c: Likewise.
7369         * benchtests/bench-strcpy_chk.c: Likewise.
7370         * benchtests/bench-strlen.c: Likewise.
7371         * benchtests/bench-strncasecmp.c: Likewise.
7372         * benchtests/bench-strncmp.c: Likewise.
7373         * benchtests/bench-strncpy.c: Likewise.
7374         * benchtests/bench-strnlen.c: Likewise.
7375         * benchtests/bench-strpbrk.c: Likewise.
7376         * benchtests/bench-strrchr.c: Likewise.
7377         * benchtests/bench-strsep.c: Likewise.
7378         * benchtests/bench-strspn.c: Likewise.
7379         * benchtests/bench-strstr.c: Likewise.
7380         * benchtests/bench-strtok.c: Likewise.
7381
7382 2016-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
7383
7384         * sysdeps/x86/cpu-features.c (get_common_indeces): Add
7385         stepping identification.
7386         (init_cpu_features): Add handle of Haswell.
7387
7388 2016-11-25  Jim Meyering  <meyering@fb.com>
7389
7390         [BZ #20386]
7391         Let gcc detect assert(a = 1) errors.
7392         * assert/assert.h (assert): Rewrite, retaining the old definintion
7393         when required, but otherwise putting the expression as-is in an "if"
7394         expression (hence, with no added parentheses) within a statement
7395         expression.
7396
7397 2016-12-17  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7398
7399         * benchtests/Makefile (binaries-benchset): Depend on libsupport
7400         DSO.
7401
7402 2016-12-17  Martin Galvan  <martingalvan@sourceware.org>
7403
7404         * Rules (python-flags, python-invoke): New.
7405         ($(test-printers-out)): Use $(python-flags).
7406
7407 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7408
7409         * manual/arith.texi (Math Error Reporting): Document that sNaN
7410         arguments are not considered domain errors.
7411
7412 2016-12-16  Zack Weinberg <zackw@panix.com>
7413             Florian Weimer <fweimer@redhat.com>
7414             Nick Mathewson <nickm@torproject.org>
7415
7416         * string/explicit_bzero.c: New routine.
7417         * string/test-explicit_bzero.c, string/tst-xbzero-opt.c: New tests.
7418         * string/Makefile (routines, strop-tests, tests): Add them.
7419         * string/test-memset.c: Add ifdeffage for testing explicit_bzero.
7420         * string/string.h [__USE_MISC]: Declare explicit_bzero.
7421
7422         * debug/explicit_bzero_chk.c: New routine.
7423         * debug/Makefile (routines): Add it.
7424         * debug/tst-chk1.c: Test fortification of explicit_bzero.
7425         * string/bits/string3.h: Fortify explicit_bzero.
7426
7427         * manual/string.texi: Document explicit_bzero.
7428         * NEWS: Mention addition of explicit_bzero.
7429
7430         * crypt/crypt-entry.c (__crypt_r): Clear key-dependent intermediate
7431         data before returning, using explicit_bzero.
7432         * crypt/md5-crypt.c (__md5_crypt_r): Likewise.
7433         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7434         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7435
7436         * include/string.h: Redirect internal uses of explicit_bzero
7437         to __explicit_bzero_chk[_internal].
7438         * string/Versions [GLIBC_2.25]: Add explicit_bzero.
7439         * debug/Versions [GLIBC_2.25]: Add __explicit_bzero_chk.
7440         * sysdeps/arm/nacl/libc.abilist
7441         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
7442         * sysdeps/unix/sysv/linux/alpha/libc.abilist
7443         * sysdeps/unix/sysv/linux/arm/libc.abilist
7444         * sysdeps/unix/sysv/linux/hppa/libc.abilist
7445         * sysdeps/unix/sysv/linux/i386/libc.abilist
7446         * sysdeps/unix/sysv/linux/ia64/libc.abilist
7447         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
7448         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
7449         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
7450         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7451         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7452         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7453         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7454         * sysdeps/unix/sysv/linux/nios2/libc.abilist
7455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7459         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
7460         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7461         * sysdeps/unix/sysv/linux/sh/libc.abilist
7462         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
7463         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
7464         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
7465         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
7466         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
7467         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
7468         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
7469         Add entries for explicit_bzero and __explicit_bzero_chk.
7470
7471 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7472
7473         * math/fenv.h
7474         [__GLIBC_USE (IEC_60559_BFP_EXT) && FE_INVALID && __SUPPORT_SNAN__]
7475         (FE_SNANS_ALWAYS_SIGNAL): New macro.
7476         * math/test-fe-snans-always-signal.c: New file.
7477         * math/Makefile (tests): Add test-fe-snans-always-signal.
7478         (CFLAGS-test-fe-snans-always-signal.c): New variable.
7479         * manual/arith.texi (Infinity and NaN): Document
7480         FE_SNANS_ALWAYS_SIGNAL.
7481
7482 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7483
7484         * string/test-memchr.c (do_test): Typo on ‘byte’ and missing closing
7485         bracket.
7486
7487 2016-12-16  Joseph Myers  <joseph@codesourcery.com>
7488
7489         * scripts/build-many-glibcs.py (Context.exec_self): Flush stdout
7490         before calling execv.
7491
7492 2016-12-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7493
7494         [BZ #20971]
7495         * sysdeps/powerpc/powerpc64/power7/memchr.S (__memchr): Avoid
7496         overflow in pointer addition.
7497         * string/test-memchr.c (do_test): Add an argument to pass as
7498         the size on memchr.
7499         (test_main): Add check for SIZE_MAX.
7500
7501 2016-12-16  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7502
7503         * math/Makefile (gen-libm-calls): Remove w_scalblnF.
7504         (libm-calls): Add w_scalblnF.
7505         * math/w_scalbln.c: Remove.
7506         * math/w_scalblnf.c: Likewise.
7507         * math/w_scalblnl.c: Likewise.
7508         * math/w_scalbln_template.c: New file with type-generic
7509         implementation based on math/w_scalbln.c.
7510         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: Remove.
7511         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Use new template.
7512
7513 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7514
7515         [BZ #20947]
7516         * sysdeps/i386/fpu/s_fmaxl.S (__fmaxl): Add the arguments when
7517         either is a signaling NaN.
7518         * sysdeps/i386/fpu/s_fminl.S (__fminl): Likewise.  Make code
7519         follow fmaxl more closely.
7520         * sysdeps/i386/i686/fpu/s_fmaxl.S (__fmaxl): Add the arguments
7521         when either is a signaling NaN.
7522         * sysdeps/i386/i686/fpu/s_fminl.S (__fminl): Likewise.
7523         * sysdeps/x86_64/fpu/s_fmax.S (__fmax): Likewise.
7524         * sysdeps/x86_64/fpu/s_fmaxf.S (__fmaxf): Likewise.
7525         * sysdeps/x86_64/fpu/s_fmaxl.S (__fmaxl): Likewise.
7526         * sysdeps/x86_64/fpu/s_fmin.S (__fmin): Likewise.
7527         * sysdeps/x86_64/fpu/s_fminf.S (__fminf): Likewise.
7528         * sysdeps/x86_64/fpu/s_fminl.S (__fminl): Likewise.
7529         * math/libm-test.inc (fmax_test_data): Add tests of sNaN inputs.
7530         (fmin_test_data): Likewise.
7531
7532 2016-12-15  Andreas Schwab  <schwab@suse.de>
7533
7534         * support/support_test_main.c (support_test_main): Don't shadow
7535         file-local variable test_pid.
7536
7537 2016-12-15  Joseph Myers  <joseph@codesourcery.com>
7538
7539         [BZ #20947]
7540         * sysdeps/powerpc/fpu/s_fmax.S (__fmax): Add the arguments when
7541         either is a signaling NaN.
7542         * sysdeps/powerpc/fpu/s_fmin.S (__fmin): Likewise.
7543
7544 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7545
7546         [BZ #20947]
7547         * math/s_fmax_template.c (M_DECL_FUNC (__fmax)): Add the arguments
7548         when either is a signaling NaN.
7549         * math/s_fmin_template.c (M_DECL_FUNC (__fmin)): Likewise.
7550
7551         * bits/long-double.h: New file.
7552         * sysdeps/ieee754/ldbl-128/bits/long-double.h: Likewise.
7553         * sysdeps/ieee754/ldbl-96/bits/long-double.h: Likewise.
7554         * sysdeps/ieee754/ldbl-opt/bits/long-double.h: Likewise.
7555         * sysdeps/mips/bits/long-double.h: Likewise.
7556         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Likewise.
7557         * math/Makefile (headers): Add bits/long-double.h.
7558         * misc/sys/cdefs.h: Include <bits/long-double.h>.
7559         * stdlib/strtold.c: Include <bits/long-double.h> instead of
7560         <bits/wordsize.h>.
7561         * bits/mathdef.h [!_COMPLEX_H]: Do not allow inclusion.
7562         [!__NO_LONG_DOUBLE_MATH]: Remove conditional code.
7563         * math/math.h: Do not include <bits/mathdef.h>.
7564         * sysdeps/aarch64/bits/mathdef.h: Remove file.
7565         * sysdeps/alpha/bits/mathdef.h [!_COMPLEX_H]: Do not allow
7566         inclusion.
7567         * sysdeps/ia64/bits/mathdef.h: Remove file.
7568         * sysdeps/m68k/m680x0/bits/mathdef.h: Likewise.
7569         * sysdeps/mips/bits/mathdef.h: Likewise.
7570         * sysdeps/powerpc/bits/mathdef.h: Likewise.
7571         * sysdeps/s390/bits/mathdef.h: Likewise.
7572         * sysdeps/sparc/bits/mathdef.h: Likewise.
7573         * sysdeps/x86/bits/mathdef.h: Likewise.
7574         * sysdeps/s390/s390-32/bits/wordsize.h
7575         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]: Remove
7576         conditional code.
7577         * sysdeps/s390/s390-64/bits/wordsize.h
7578         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7579         Likewise.
7580         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h
7581         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7582         Likewise.
7583         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
7584         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7585         Likewise.
7586         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
7587         [!__NO_LONG_DOUBLE_MATH && !__LONG_DOUBLE_MATH_OPTIONAL]:
7588         Likewise.
7589
7590         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]: Include
7591         <linux/falloc.h>.
7592         (FALLOC_FL_KEEP_SIZE): Remove.
7593         (FALLOC_FL_PUNCH_HOLE): Likewise.
7594         (FALLOC_FL_COLLAPSE_RANGE): Likewise.
7595         (FALLOC_FL_ZERO_RANGE): Likewise.
7596
7597 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7598
7599         * stdlib/tst-strfrom.h (ENTRY): Replace use of CSUF with LSUF.
7600
7601 2016-12-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7602
7603         * sysdeps/unix/sysv/linux/renameat.c: New file.
7604         * sysdeps/unix/sysv/linux/syscalls.list: Remove renameat.
7605
7606         * sysdeps/unix/sysv/linux/rename.c: New file.
7607         * sysdeps/unix/sysv/linux/generic/rename.c: Remove file.
7608
7609 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7610
7611         * benchtests/bench-strtok.c (oldstrtok): Add old implementation.
7612         * string/strtok.c (strtok): Change to tailcall __strtok_r.
7613         * string/strtok_r.c (__strtok_r): Optimize for performance.
7614         * string/string-inlines.c (__old_strtok_r_1c): New function.
7615         * string/bits/string2.h (__strtok_r): Move to string-inlines.c.
7616
7617 2016-12-14  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7618
7619         * math/Makefile (gen-libm-calls): Add w_log1pF.
7620         (libm-calls): Remove w_log1pF.
7621         * math/w_log1p.c: Remove.
7622         * math/w_log1pf.c: Likewise.
7623         * math/w_log1pl.c: Likewise.
7624         * math/w_log1p_template.c: New file with type-generic
7625         implementation based on math/w_log1p.c.
7626         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Remove.
7627         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: Likewise.
7628
7629 2015-12-14  Wilco Dijkstra  <wdijkstr@arm.com>
7630
7631         * string/rawmemchr.c (RAWMEMCHR): Use faster memchr/strlen.
7632
7633 2016-12-14  Joseph Myers  <joseph@codesourcery.com>
7634
7635         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7636         kernel version to 4.9.
7637
7638 2016-12-12  Andrew Senkevich  <andrew.senkevich@intel.com>
7639
7640         * math/Makefile ($(inst_libdir)/libm-$(version).a): New target.
7641         ($(inst_libdir)/libm.a): Fix rule to create the target only.
7642
7643 2016-12-13  Andreas Schwab  <schwab@suse.de>
7644
7645         * sysdeps/powerpc/dl-procinfo.c: Don't define
7646         _dl_powerpc_platforms.
7647         * sysdeps/powerpc/dl-procinfo.h (_dl_string_platform): Use string
7648         constants instead of referencing _dl_powerpc_platforms.
7649         (_dl_platform_string): Remove.
7650
7651 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7652
7653         * nptl/tst-cancel7.c (cmdline_process): Add missing case label.
7654
7655 2016-12-13  Florian Weimer  <fweimer@redhat.com>
7656
7657         * Rules (binaries-shared-tests, binaries-pie-tests)
7658         (binaries-static-tests): Link with $(link-extra-libs-tests).
7659         * Makeconfig (+link-pie-tests, +link-static-tests, +link-tests):
7660         Remove $(link-extra-libs-tests).
7661
7662 2016-12-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7663
7664         * sysdeps/powerpc/powerpc64/multiarch/Makefile
7665         (sysdep_routines): Add strncmp_power9.
7666         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7667         (strncmp): Add __strncmp_power9 to list of strncmp functions.
7668         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: New file.
7669         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7670         (strncmp): Add __strncmp_power9 to ifunc list.
7671         * sysdeps/powerpc/powerpc64/power9/strncmp.S: New file.
7672
7673 2016-12-12  Florian Weimer  <fweimer@redhat.com>
7674
7675         [BZ #17252]
7676         Add getentropy, getrandom.
7677         * stdlib/sys/random.h: New file.
7678         (headers): Add it.
7679         * stdlib/Makefile (routines): Add getentropy, getrandom.
7680         (tests): Add tst-getrandom.
7681         * stdlib/Versions (GLIBC_2.25): Add getrandom, getentropy.
7682         * stdlib/getentropy.c: New file.
7683         * stdlib/getrandom.c: Likewise.
7684         * stdlib/tst-getrandom.c: Likewise.
7685         * sysdeps/unix/sysv/linux/getentropy.c: Likewise.
7686         * sysdeps/unix/sysv/linux/getrandom.c: Likewise.
7687         * manual/crypt.texi (Unpredictable Bytes): New section.
7688         * manual/math.texi (Pseudo-Random Numbers): Add cross-reference.
7689         * sysdeps/arm/nacl/libc.abilist: Add getrandom, getentropy.
7690         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
7691         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7692         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7693         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7694         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7695         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7696         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7697         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7698         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7699         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7700         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7701         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7702         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7703         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7705         Likewise.
7706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7707         Likewise.
7708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7710         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7711         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7712         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7713         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7714         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7715         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7717         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7718         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7719         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7720
7721 2016-12-10  Florian Weimer  <fweimer@redhat.com>
7722
7723         [BZ #20956]
7724         * debug/tst-backtrace.h (NO_INLINE): Add noclone, weak attributes
7725         as additional compiler barriers.
7726         * debug/tst-backtrace2.c: Switch to <support/test-driver.c>.
7727         (fn2, do_test): Declare with external linkage.
7728         * debug/tst-backtrace3.c: Switch to <support/test-driver.c>.
7729         (do_test): Declare with external linkage.
7730         * debug/tst-backtrace4.c: Switch to <support/test-driver.c>.
7731         (do_test): Declare with external linkage.
7732         * debug/tst-backtrace5.c: Switch to <support/test-driver.c>.
7733         (do_test): Declare with external linkage.
7734
7735 2016-12-10  Andreas Schwab  <schwab@linux-m68k.org>
7736
7737         * support/support_test_main.c (support_test_main): Use correct
7738         timeout.
7739
7740 2016-12-09  Carlos O'Donell  <carlos@redhat.com>
7741             Florian Weimer  <fweimer@redhat.com>
7742
7743         [BZ #16421]
7744         * inet/netinet/in.h (struct in6_addr): Always define __u6_addr16
7745         and __u6_addr32 members.
7746         (IN6_IS_ADDR_UNSPECIFIED, IN6_IS_ADDR_LOOPBACK)
7747         (IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL)
7748         (IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, IN6_ARE_ADDR_EQUAL):
7749         Use __u6_addr32.
7750         * inet/tst-checks.c: Use <support/test-driver.c>
7751         * inet/tst-checks-posix.c: New file.
7752         * inet/Makefile (tests): Add it.
7753         (CFLAGS-tst-checks-posix.c): Compile in C99 mode.
7754
7755 2016-12-09  Florian Weimer  <fweimer@redhat.com>
7756
7757         New subdirectory support for build and test infrastructure.
7758         * extra-libs.mk (extra-libs-noinstall): Add variable.  Use it when
7759         setting install-lib.
7760         * Makeconfig (link-extra-libs-tests): Define.
7761         (+link-pie-tests, +link-static-tests, +link-tests): Use
7762         link-extra-libs-tests.
7763         (rpath-dirs, all-subdirs): Add support.
7764         (built-modules): Add libsupport.
7765         (libsupport): Define.
7766         * support: New directory.
7767         * support/Makefile: New file.
7768         * support/check.c: Likewise.
7769         * support/check.h: Likewise.
7770         * support/delayed_exit.c: Likewise.
7771         * support/ignore_stderr.c: Likewise.
7772         * support/oom_error.c: Likewise.
7773         * support/set_fortify_handler.c: Likewise.
7774         * support/support.h: Likewise.
7775         * support/temp_file-internal.h: Likewise.
7776         * support/temp_file.c: Likewise.
7777         * support/test-driver.c: Likewise.
7778         * support/test-driver.h: Likewise.
7779         * support/test_main.c: Likewise.
7780         * support/write_message.c: Likewise.
7781         * support/xasprintf.c: Likewise.
7782         * support/xcalloc.c: Likewise.
7783         * support/xmalloc.c: Likewise.
7784         * support/xpthread_barrier_destroy.c: Likewise.
7785         * support/xpthread_barrier_init.c: Likewise.
7786         * support/xpthread_barrier_wait.c: Likewise.
7787         * support/xpthread_cancel.c: Likewise.
7788         * support/xpthread_check_return.c: Likewise.
7789         * support/xpthread_cond_wait.c: Likewise.
7790         * support/xpthread_create.c: Likewise.
7791         * support/xpthread_detach.c: Likewise.
7792         * support/xpthread_join.c: Likewise.
7793         * support/xpthread_mutex_lock.c: Likewise.
7794         * support/xpthread_mutex_unlock.c: Likewise.
7795         * support/xpthread_sigmask.c: Likewise.
7796         * support/xpthread_spin_lock.c: Likewise.
7797         * support/xpthread_spin_unlock.c: Likewise.
7798         * support/xrealloc.c: Likewise.
7799         * support/xsignal.h: Likewise.
7800         * support/xthread.h: Likewise.
7801         * support_tempfile.h: Likewise.
7802         * test-skeleton.c: Include <support/support.h>, <support/xsignal.h>.
7803         (TEST_DATA_LIMIT): Remove unused macro.
7804         (_FAIL, FAIL_RET, FAIL_EXIT, FAIL_EXIT1): Remove.  Now in
7805         <support/check.h>.
7806         (oom_error, xmalloc, xcalloc, xrealloc, xasprintf, write_message)
7807         (ignore_stderr, set_fortify_handler): Remove.  Now in
7808         <support/support.h>.
7809         (xpthread_sigmask): Remove.  Now in <support/xsignal.h>.
7810         (xpthread_mutex_lock, xpthread_spin_lock, xpthread_cond_wait)
7811         (xpthread_barrier_wait, xpthread_create, xpthread_detach)
7812         (xpthread_join): Remove.  Now in <support/xthread.h>.
7813         (TEST_FUNCTION, PREPARE, CLEANUP_HANDLER, CMDLINE_PROCESS):
7814         Introduce legacy wrappers.
7815         * dlfcn/Makefile (bug-atexit3-lib.so): Link with $(libsupport).
7816         * dlfcn/bug-atexit3-lib.cc: Include <support/support.h>.
7817         (write_message): Remove.
7818         * dirent/opendir-tst1.c: Use <support/test-driver.h> instead of
7819         test-skeleton.c.
7820         * io/test-open-tmpfile: Likewise.
7821         * io/tst-posix_fallocate-common.c: Likewise.
7822         * libio/tst-fseek.c: Likewise.
7823         * malloc/tst-malloc-backtrace.c: Likewise.
7824         * malloc/tst-malloc-fork-deadlock.c: Likewise.
7825         * malloc/tst-malloc-thread-exit.c: Likewise.
7826         * nptl/tst-cancel7.c: Likewise.
7827         * nptl/tst-cleanup0.c: Likewise.
7828         * posix/tst-posix_fadvise-common.c: Likewise.
7829         * rt/tst-shm.c: Likewise.
7830         * time/bug-getdate1.c: Likewise.
7831         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
7832         * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Likewise.
7833         * elf/Makefile (tst-piemod1.so): Link against libsupport.
7834
7835 2016-12-08  Joseph Myers  <joseph@codesourcery.com>
7836
7837         * Rules [$(run-built-tests) != no] (tests-expected): Add
7838         $(tests-printers).
7839         (tests): Do not pass $(tests-printers) to merge-test-results.sh.
7840
7841 2016-12-08  Andrew Senkevich  <andrew.senkevich@intel.com>
7842
7843         [BZ #20539]
7844         * math/Makefile (install-lib-ldscripts): Add libm.a.
7845         (install_subdir): Remove.
7846         (install-others): Add.
7847         ($(inst_libdir)/libm.a): Add rule for installation as
7848         linker script.
7849         * Makerules (install-lib.a): Filter out install-lib-ldscripts.
7850
7851 2016-12-08  Martin Galvan  <martin.galvan@tallertechnologies.com>
7852
7853         * INSTALL: Regenerated.
7854         * Makeconfig: Add comments and whitespace to make the control flow
7855         clearer.
7856         (+link-printers-tests, +link-pie-printers-tests,
7857         CFLAGS-printers-tests, installed-rtld-LDFLAGS,
7858         built-rtld-LDFLAGS, link-libc-rpath,
7859         link-libc-tests-after-rpath-link,
7860         link-libc-printers-tests): New.
7861         (rtld-LDFLAGS, rtld-tests-LDFLAGS, link-libc-tests-rpath-link,
7862         link-libc-tests): Use the new variables as required.
7863         * Makerules ($(py-const)): New rule.
7864         generated: Add $(py-const).
7865         * README.pretty-printers: New file.
7866         * Rules (tests-printers-programs, tests-printers-out, py-env): New.
7867         (others): Depend on $(py-const).
7868         (tests): Depend on $(tests-printers-programs) or
7869         $(tests-printers-out),
7870         as required.  Pass $(tests-printers) to merge-test-results.sh.
7871         * manual/install.texi: Add requirements for testing the pretty
7872         printers.
7873         * nptl/Makefile (gen-py-const-headers, pretty-printers,
7874         tests-printers, CFLAGS-test-mutexattr-printers.c
7875         CFLAGS-test-mutex-printers.c, CFLAGS-test-condattr-printers.c,
7876         CFLAGS-test-cond-printers.c, CFLAGS-test-rwlockattr-printers.c
7877         CFLAGS-test-rwlock-printers.c, tests-printers-libs): Define.
7878         * nptl/nptl-printers.py: New file.
7879         * nptl/nptl_lock_constants.pysym: Likewise.
7880         * nptl/test-cond-printers.c: Likewise.
7881         * nptl/test-cond-printers.py: Likewise.
7882         * nptl/test-condattr-printers.c: Likewise.
7883         * nptl/test-condattr-printers.py: Likewise.
7884         * nptl/test-mutex-printers.c: Likewise.
7885         * nptl/test-mutex-printers.py: Likewise.
7886         * nptl/test-mutexattr-printers.c: Likewise.
7887         * nptl/test-mutexattr-printers.py: Likewise.
7888         * nptl/test-rwlock-printers.c: Likewise.
7889         * nptl/test-rwlock-printers.py: Likewise.
7890         * nptl/test-rwlockattr-printers.c: Likewise.
7891         * nptl/test-rwlockattr-printers.py: Likewise.
7892         * scripts/gen-py-const.awk: Likewise.
7893         * scripts/test_printers_common.py: Likewise.
7894         * scripts/test_printers_exceptions.py: Likewise.
7895
7896 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * scripts/build-many-glibcs.py (Context.__init__): Take strip
7899         argument.
7900         (Glibc.build_glibc): Strip installed shared libraries if
7901         requested.
7902         (get_parser): Add --strip option.
7903         (main): Update Context call.
7904
7905 2016-12-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7906             Dominik Vogt  <vogt@linux.vnet.ibm.com>
7907
7908         [BZ #20847]
7909         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
7910         array bounds for else branch.
7911         (__execvpe): Style fixes.
7912         * posix/tst-vfork3.c (run_script): New function.
7913         (create_script): Likewise.
7914         (do_test): Use run_script internal function.
7915         (do_prepare): Use create_script internal function.
7916
7917 2016-12-07  Andreas Schwab  <schwab@suse.de>
7918
7919         * sysdeps/unix/sysv/linux/x86/elision-conf.h
7920         (__elision_available): Don't declare.
7921         * sysdeps/unix/sysv/linux/x86/elision-conf.c
7922         (__elision_available): Don't define.
7923         (elision_init): Don't set __elision_available.
7924
7925 2016-12-07  Joseph Myers  <joseph@codesourcery.com>
7926
7927         [BZ #20940]
7928         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Do not
7929         return Inf for arguments Inf and sNaN.
7930         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
7931         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
7932         Likewise.
7933         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
7934         Likewise.
7935         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
7936         * sysdeps/powerpc/fpu/e_hypot.c (TEST_INF_NAN): Do not return Inf
7937         for arguments Inf and sNaN.  When returning a NaN, compute it by
7938         arithmetic on the arguments.
7939         * sysdeps/powerpc/fpu/e_hypotf.c (TEST_INF_NAN): Likewise.
7940         * math/libm-test.inc (hypot_test_data): Add tests of sNaN
7941         arguments.
7942
7943 2016-12-06  Joseph Myers  <joseph@codesourcery.com>
7944
7945         [BZ #20916]
7946         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Do not return 1 for
7947         arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN arguments
7948         to compute result.
7949         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
7950         * math/libm-test.inc (pow_test_data): Add tests of sNaN arguments.
7951
7952 2016-12-05  Torvald Riegel  <triegel@redhat.com>
7953
7954         * include/atomic.h (__atomic_check_size_ls): New.
7955         (atomic_load_relaxed, atomic_load_acquire, atomic_store_relaxed,
7956         atomic_store_release): Use it.
7957         * sysdeps/x86/elide.h (ACCESS_ONCE): Remove.
7958         (elision_adapt, ELIDE_LOCK): Use atomics.
7959         * sysdeps/unix/sysv/linux/x86/elision-lock.c (__lll_lock_elision): Use
7960         atomics and improve code comments.
7961         * sysdeps/unix/sysv/linux/x86/elision-trylock.c
7962         (__lll_trylock_elision): Likewise.
7963
7964 2016-12-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7965
7966         * hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
7967         programs.
7968
7969 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
7970
7971         [BZ #20916]
7972         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return 1
7973         for arguments (sNaN, 0) or (1, sNaN).  Do arithmetic on NaN
7974         arguments to compute result.
7975         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Do not return
7976         1 for arguments (sNaN, 0) or (1, sNaN).
7977         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7978         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7979
7980         [BZ #20919]
7981         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Do not return
7982         NaN first argument when raised to power 0.
7983         * math/w_pow.c (__pow): Do not check for NaN or zero results from
7984         raising to power zero.
7985         * math/w_powf.c (__powf): Likewise.
7986         * math/w_powl.c (__powl): Likewise.
7987         * sysdeps/ieee754/k_standard.c (__kernel_standard): Do not handle
7988         pow (0, 0) or pow (NaN, 0).
7989
7990 2016-12-02  Carlos O'Donell  <carlos@redhat.com>
7991
7992         [BZ #20918]
7993         * configure.ac: Test for static NSS cryptographic libraries and set
7994         libc_cv_static_nss_crypt.
7995         * configure: Regenerate.
7996         * config.make.in (static-nss-crypt): Define.
7997         * elf/Makefile (CFLAGS-tst-linkall-static.c): Define.
7998         [ifeq (yesno,$(nss-crypt)$(static-nss-crypt))]
7999         (CFLAGS-tst-linkall-static.c): Define.
8000         ($(objpfx)tst-linkall-static): Remove libcrypt.a.
8001         [ifeq (yesyes,$(nss-crypt)$(static-nss-crypt))]
8002         ($(objpfx)tst-linkall-static): Define.
8003         [ifeq (no,$(nss-crypt))] ($(objpfx)tst-linkall-static): Define.
8004         * elf/tst-linkall-static.c [USE_CRYPT](references): Reference crypt().
8005
8006 2016-12-02  Florian Weimer  <fweimer@redhat.com>
8007
8008         * elf/Makefile [build-shared] (tests): Add tst-latepthread.
8009         (one-hundred, tst-tls-many-dynamic-modules): Define.
8010         (modules-names): Add $(tst-tls-many-dynamic-modules).
8011         (tst-tls-manydynamic%mod.os): Build with special preprocessor
8012         macros.
8013         (tst-tls-manydynamic): Link against libdl, libpthread.
8014         (tst-tls-manydynamic.out): The test needs the test modules at run
8015         time.
8016         * elf/tst-tls-manydynamic.c: New file.
8017         * elf/tst-tls-manydynamic.h: Likewise.
8018         * elf/tst-tls-manydynamicmod.c: Likewise.
8019
8020 2016-12-02  Florian Weimer  <fweimer@redhat.com>
8021
8022         * sysdeps/aarch64/tlsdesc.sym (TCBHEAD_DTV, DTV_COUNTER)
8023         (TLS_DTV_UNALLOCATED): Add.
8024         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Use explicit
8025         offsets.
8026
8027 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
8028
8029         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
8030
8031 2016-12-02  Stefan Liebler  <stli@linux.vnet.ibm.com>
8032
8033         * elf/Makefile (CFLAGS-tst-latepthreadmod.c):
8034         Add -fno-optimize-sibling-calls.
8035
8036 2016-12-02  Joseph Myers  <joseph@codesourcery.com>
8037
8038         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb):
8039         New declaration.
8040         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (llogb): New
8041         macro.
8042         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (__FP_LONG_MAX):
8043         New macro.
8044         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGB0): Likewise.
8045         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FP_LLOGBNAN): Likewise.
8046         * math/Versions (llogb): New libm symbol at version GLIBC_2.25.
8047         (llogbf): Likewise.
8048         (llogbl): Likewise.
8049         * math/Makefile (gen-libm-calls): Add w_llogbF.
8050         (tests): Add test-fp-llogb-constants.
8051         * math/w_llogb_template.c: New file.  Based on
8052         math/w_ilogb_template.c.
8053         * math/libm-test.inc (llogb_test_data): New array.
8054         (llogb_test): New function.
8055         (main): Call llogb_test.
8056         * math/test-fp-llogb-constants.c: New file.  Based on
8057         math/test-fp-ilogb-constants.c.
8058         * math/test-tgmath-ret.c (llogb): New CHECK_RET_CONST call.
8059         (do_test): Call check_return_llogb.
8060         * math/test-tgmath.c (NCALLS): Increase to 126.
8061         (F(compile_test)): Call llogb.
8062         (F(llogb)): New function.
8063         * manual/math.texi (Exponents and Logarithms): Document llogb,
8064         llogbf, llogbl, FP_LLOGB0 and FP_LLOGBNAN.
8065         * manual/libm-err-tab.pl (@all_functions): Add llogb.
8066         * sysdeps/ieee754/ldbl-opt/nldbl-llogb.c: New file.
8067         * sysdeps/ieee754/ldbl-opt/w_llogbl.c: Likewise.
8068         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add llogb.
8069         (CFLAGS-nldbl-llogb.c): New variable.
8070         * sysdeps/nacl/libm.abilist: Update.
8071         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8072         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8073         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8074         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8075         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8076         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8077         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8078         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8079         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8080         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8081         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8082         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8084         Likewise.
8085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8086         Likewise.
8087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8088         Likewise.
8089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8090         Likewise.
8091         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8092         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8093         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8094         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8095         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8096         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8097         Likewise.
8098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8099         Likewise.
8100         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8101         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8102         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8103
8104 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
8105
8106         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Use
8107         _Float128 instead of long double.
8108         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c (FUNC): Likewise.
8109
8110         * sysdeps/alpha/setjmp.S (__sigsetjmp): Use hidden_def.
8111         * sysdeps/hppa/setjmp.S (__sigsetjmp): Likewise.
8112         * sysdeps/mips/mips64/setjmp.S (__sigsetjmp): Likewise.
8113         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
8114         * sysdeps/sh/sh3/setjmp.S (__sigsetjmp): Likewise.
8115         * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Likewise.
8116         * sysdeps/sparc/sparc32/setjmp.S (__sigsetjmp): Likewise.
8117         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
8118         * sysdeps/unix/sysv/linux/sparc/sparc64/setjmp.S (__sigsetjmp):
8119         Likewise.
8120
8121 2016-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8122
8123         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c (weak_alias):
8124         Remove redirection to __strrchr_ppc.
8125
8126 2016-12-01  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8127
8128         * sysdeps/powerpc/powerpc64/multiarch/Makefile
8129         (sysdep_routines): Add strcmp_power9.
8130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8131         (strcmp): Add __strcmp_power9 to list of strcmp functions.
8132         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: New file.
8133         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8134         (strcmp): Add __strcmp_power9 to ifunc list.
8135         * sysdeps/powerpc/powerpc64/power9/strcmp.S: New file.
8136
8137 2016-12-01  Joseph Myers  <joseph@codesourcery.com>
8138
8139         * bits/fp-logb.h: New file.
8140         * sysdeps/ia64/bits/fp-logb.h: Likewise.
8141         * sysdeps/m68k/m680x0/bits/fp-logb.h: Likewise.
8142         * sysdeps/x86/bits/fp-logb.h: Likewise.
8143         * math/Makefile (headers): Add bits/fp-logb.h.
8144         * math/math.h: Include <bits/fp-logb.h>.
8145         [__USE_ISOC99] (FP_ILOGB0): Define based on __FP_LOGB0_IS_MIN.
8146         [__USE_ISOC99] (FP_ILOGBNAN): Define based on __FP_LOGBNAN_IS_MIN.
8147         * bits/mathdef.h (FP_ILOGB0): Remove.
8148         (FP_ILOGBNAN): Likewise.
8149         * sysdeps/aarch64/bits/mathdef.h (FP_ILOGB0): Likewise.
8150         (FP_ILOGBNAN): Likewise.
8151         * sysdeps/alpha/bits/mathdef.h (FP_ILOGB0): Likewise.
8152         (FP_ILOGBNAN): Likewise.
8153         * sysdeps/ia64/bits/mathdef.h (FP_ILOGB0): Likewise.
8154         (FP_ILOGBNAN): Likewise.
8155         * sysdeps/m68k/m680x0/bits/mathdef.h (FP_ILOGB0): Likewise.
8156         (FP_ILOGBNAN): Likewise.
8157         * sysdeps/mips/bits/mathdef.h (FP_ILOGB0): Likewise.
8158         (FP_ILOGBNAN): Likewise.
8159         * sysdeps/powerpc/bits/mathdef.h (FP_ILOGB0): Likewise.
8160         (FP_ILOGBNAN): Likewise.
8161         * sysdeps/s390/bits/mathdef.h (FP_ILOGB0): Likewise.
8162         (FP_ILOGBNAN): Likewise.
8163         * sysdeps/sparc/bits/mathdef.h (FP_ILOGB0): Likewise.
8164         (FP_ILOGBNAN): Likewise.
8165         * sysdeps/x86/bits/mathdef.h (FP_ILOGB0): Likewise.
8166         (FP_ILOGBNAN): Likewise.
8167
8168         * scripts/build-many-glibcs.py: Add bot to usage message.  Import
8169         time module.
8170         (Context.__init__): Initialize self.logsdir_old.
8171         (Context.run_builds): Handle bot action.
8172         (Context.bot_cycle): Copy logs directory before running builds.
8173         (Context.bot_run_self): Take argument for whether to check
8174         subprocess result.  Flush stdout before running subprocess.
8175         (Context.bot): New function.
8176         (get_parser): Allow bot action.
8177
8178 2016-11-30  Joseph Myers  <joseph@codesourcery.com>
8179
8180         * scripts/build-many-glibcs.py: Add bot-cycle to usage message.
8181         Import email.mime.text, email.utils and smtplib modules.
8182         (Context.__init__): Initialize self.bot_config_json.
8183         (Context.run_builds): Handle bot-cycle action.
8184         (Context.load_bot_config_json): New function.
8185         (Context.part_build_old): Likewise.
8186         (Context.bot_cycle): Likewise.
8187         (Context.bot_build_mail): Likewise.
8188         (Context.bot_run_self): Likewise.
8189         (get_parser): Allow bot-cycle action.
8190
8191 2016-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8192
8193         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c (weak_alias):
8194         Remove redirection to __stpcpy_ppc.
8195
8196 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8197
8198         Remove __libc_memalign from ld.so because it is unused.
8199         * elf/dl-minimal.c: Update comment on the malloc implementation.
8200         (malloc): Renamed from __libc_memalign, replacing the original
8201         malloc implementation.  Replace the align parameter with
8202         MALLOC_ALIGNMENT.
8203         * elf/Versions (ld): Update comment and remove __libc_memalign.
8204         * sysdeps/nacl/ld.abilist: Likewise.
8205         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
8206         * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
8207         * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
8208         * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
8209         * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
8210         * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
8211         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
8212         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
8213         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
8214         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
8215         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
8216         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
8217         * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
8218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
8219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
8220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
8221         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
8222         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
8223         * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
8224         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
8225         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
8226         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: Likewise.
8227         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: Likewise.
8228         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
8229         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
8230         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
8231         * sysdeps/generic/localplt.data (ld.so): Likewise.
8232         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8233         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8234         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8235         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8236         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8237         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8238         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8239         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so): Likewise.
8240         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8242         (ld.so): Likewise.
8243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8244         (ld.so): Likewise.
8245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8246         Likewise.
8247         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8248         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8249         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so): Likewise.
8250         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so): Likewise.
8251         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8252
8253 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8254
8255         [BZ #16628]
8256         Implement _dl_catch_error, _dl_signal_error in libc.so.
8257         * elf/dl-error-skeleton.c: Rename from elf/dl-error.c.
8258         (catch_hook): Define as thread-local or regular variable,
8259         depending on DL_ERROR_BOOTSTRAP.
8260         (CATCH_HOOK): Remove.
8261         (dl_signal_error, _dl_catch_error): Use
8262         catch_hook.  Add hidden definition for libc.
8263         (_dl_receive_error, _dl_signal_cerror): Use catch_hook.  Compile
8264         for DL_ERROR_BOOTSTRAP only.
8265         * elf/dl-error.c: New file.
8266         * elf/dl-error-minimal.c: Likewise.
8267         * elf/tst-latepthread.c: Likewise.
8268         * elf/tst-latepthreadmod.c: Likewise.
8269         * elf/Makefile (routines): Add dl-error.
8270         (dl-routines): Remove dl-error.
8271         (rtld-routines): Add dl-error-minimal.
8272         [build-shared] (tests): Add tst-latepthread.
8273         (module-names): Add tst-latepthreadmod.
8274         (LDFLAGS-tst-latepthreadmod.so): Enable lazy binding to undefined
8275         symbol.
8276         (tst-latepthreadmod.so): Link against libpthread.
8277         (tst-latepthread): Link against libdbl.
8278         * elf/Versions [libc] (GLIBC_PRIVATE): Add _dl_signal_error,
8279         _dl_catch_error.
8280         [ld] (GLIBC_PRIVATE): Likewise.
8281         * elf/dl-close.c (_dl_cose): Call _dl_signal_error directly.
8282         * elf/dl-libc.c (dlerror_run): Call _dl_catch_error directly.
8283         * elf/dl-sym.c (do_sym): Call _dl_signal_error, _dl_catch_error
8284         directly.
8285         * elf/dl-tsd.c: Remove file.
8286         * elf/rtld.c (_rtld_global_ro): Remove initializers for
8287         _dl_catch_error, _dl_signal_error.
8288         (_dl_initial_error_catch_tsd): Remove definition.
8289         (do_preload): Remove initialization of dl_error_catch_tsd.
8290         * dlfcn/dlerror.c (_dlerror_run): Call _dl_catch_error directly.
8291         * dlfcn/dlinfo.c (dlinfo_doit): Call _dl_signal_error directly.
8292         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8293         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8294         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Do not
8295         set dl_error_catch_tsd.
8296         * sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
8297         _dl_error_catch_tsd member.
8298         (struct rtld_global_ro): Remove _dl_catch_error, _dl_signal_error
8299         members.
8300         (_dl_initial_error_catch_tsd): Remove declaration.
8301         (_dl_dprintf): Provide definition for use outside of ld.so.
8302         [!rtld] (_dl_signal_cerror): Redirect to _dl_signal_error.
8303         (_dl_signal_error, _dl_catch_error): Make public.  Add hidden
8304         prototype for libc.
8305         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_error,
8306         _dl_catch_error.
8307         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
8308         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
8309         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
8310         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
8311         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
8312         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
8313         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
8314         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
8315         Likewise.
8316         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
8317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
8318         (ld.so): Likewise.
8319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
8320         (ld.so): Likewise.
8321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
8322         Likewise.
8323         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
8324         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
8325         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
8326         Likewise.
8327         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
8328         Likewise.
8329         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
8330
8331 2016-11-30  Florian Weimer  <fweimer@redhat.com>
8332
8333         [BZ #4099]
8334         * libio/filedoalloc.c (_IO_file_doallocate): Limit buffer size to
8335         _IO_BUFSIZ (8192).
8336
8337 2016-11-30  Carlos O'Donell  <carlos@redhat.com>
8338
8339         * PROJECTS: Remove file.
8340
8341 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8342
8343         * iconvdata/gbk.c (BODY): Add Euro sign support (both directions).
8344
8345 2016-11-29  Yury Norov  <ynorov@caviumnetworks.com>
8346             Steve Ellcey  <sellcey@caviumnetworks.com>
8347
8348         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Do not define
8349         fxstat if XSTAT_IS_XSTAT64 is set to non-zero.
8350         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Ditto for
8351         fxstatat.
8352         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Ditto for
8353         lxstat.
8354         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Ditto for xstat.
8355         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat64.c: New file.
8356         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat64.c: New file.
8357         * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Make __lxstat
8358         an alias of __lxstat64 if XSTAT_IS_XSTAT64 is set to non-zero.
8359         * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Ditto for
8360         __xstat.
8361
8362 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8363
8364         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI___sigsetjmp):
8365         Define.
8366         * sysdeps/powerpc/powerpc32/setjmp.S (__sigsetjmp): Add hidden
8367         definition.
8368
8369 2016-11-29  Florian Weimer  <fweimer@redhat.com>
8370
8371         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S (__longjmp): Remove
8372         version and turn into strong alias.  Remove compat symbol.
8373
8374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8375         (__longjmp): Remove.
8376
8377 2016-11-29  Joseph Myers  <joseph@codesourcery.com>
8378
8379         * bits/fp-fast.h: New file.
8380         * sysdeps/aarch64/bits/fp-fast.h: Likewise.
8381         * sysdeps/powerpc/bits/fp-fast.h: Likewise.
8382         * math/Makefile (headers): Add bits/fp-fast.h.
8383         * math/math.h: Include <bits/fp-fast.h>.
8384         * bits/mathdef.h (FP_FAST_FMA): Remove.
8385         (FP_FAST_FMAF): Likewise.
8386         (FP_FAST_FMAL): Likewise.
8387         * sysdeps/aarch64/bits/mathdef.h (FP_FAST_FMA): Likewise.
8388         (FP_FAST_FMAF): Likewise.
8389         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Likewise.
8390         (FP_FAST_FMAF): Likewise.
8391         * sysdeps/x86/bits/mathdef.h (FP_FAST_FMA): Likewise.
8392         (FP_FAST_FMAF): Likewise.
8393         (FP_FAST_FMAL): Likewise.
8394         * sysdeps/arm/bits/mathdef.h: Remove file.
8395         * sysdeps/hppa/fpu/bits/mathdef.h: Likewise.
8396         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8397         * sysdeps/tile/bits/mathdef.h: Likewise.
8398
8399 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8400
8401         * math/w_ilogb_template.c: New file.  Based on math/w_ilogb.c.
8402         * math/w_ilogb.c: Remove.
8403         * math/w_ilogbf.c: Likewise.
8404         * math/w_ilogbl.c: Likewise.
8405         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: Likewise.
8406         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: Likewise.
8407         * math/Makefile (gen-libm-calls): Add w_ilogbF.
8408         (libm-calls): Remove w_ilogbF.
8409         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h
8410         (LDOUBLE_ilogbl_libm_version): New macro.
8411
8412         * sysdeps/unix/sysv/linux/ia64/tst-setcontext2.c: New file.
8413
8414         * sysdeps/ia64/fpu/libm-symbols.h: Make contents conditional on
8415         [!__STRICT_ANSI__ && !__cplusplus].
8416
8417 2016-11-28  H.J. Lu  <hongjiu.lu@intel.com>
8418
8419         [BZ #20750]
8420         * sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
8421         of PIC.
8422
8423 2016-11-28  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
8424             Yury Norov  <ynorov@caviumnetworks.com>
8425             Steve Ellcey  <sellcey@caviumnetworks.com>
8426
8427         * sysdeps/aarch64/crti.S: Add include of sysdep.h.
8428         (call_weak_fn): Use PTR_REG to get correct reg name in ILP32.
8429         * sysdeps/aarch64/dl-irel.h: Add include of sysdep.h.
8430         (elf_irela): Use AARCH64_R macro to get correct relocation in ILP32.
8431         * sysdeps/aarch64/dl-machine.h: Add include of sysdep.h.
8432         (elf_machine_load_address, RTLD_START, RTLD_START_1, RTLD_START,
8433         elf_machine_type_class, ELF_MACHINE_JMP_SLOT, elf_machine_rela,
8434         elf_machine_lazy_rel): Add ifdef's for ILP32 support.
8435         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return,
8436         _dl_tlsdesc_return_lazy, _dl_tlsdesc_dynamic,
8437         _dl_tlsdesc_resolve_hold): Extend pointers in ILP32, use PTR_REG
8438         to get correct reg name for ILP32.
8439         * sysdeps/aarch64/dl-trampoline.S (ip01): New Macro.
8440         (RELA_SIZE): New Macro.
8441         (_dl_runtime_resolve, _dl_runtime_profile): Use new macros and PTR_REG
8442         to support ILP32.
8443         * sysdeps/aarch64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Add
8444         cast for ILP32 mode.
8445         * sysdeps/aarch64/memcmp.S (memcmp): Extend arg pointers for ILP32 mode.
8446         * sysdeps/aarch64/memcpy.S (memmove, memcpy): Ditto.
8447         * sysdeps/aarch64/memset.S (__memset): Ditto.
8448         * sysdeps/aarch64/strchr.S (strchr): Ditto.
8449         * sysdeps/aarch64/strchrnul.S (__strchrnul): Ditto.
8450         * sysdeps/aarch64/strcmp.S (strcmp): Ditto.
8451         * sysdeps/aarch64/strcpy.S (strcpy): Ditto.
8452         * sysdeps/aarch64/strlen.S (__strlen): Ditto.
8453         * sysdeps/aarch64/strncmp.S (strncmp): Ditto.
8454         * sysdeps/aarch64/strnlen.S (strnlen): Ditto.
8455         * sysdeps/aarch64/strrchr.S (strrchr): Ditto.
8456         * sysdeps/unix/sysv/linux/aarch64/clone.S: Ditto.
8457         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Ditto.
8458         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext): Ditto.
8459         * sysdeps/aarch64/__longjmp.S (__longjmp): Extend pointers in ILP32,
8460         change PTR_MANGLE call to use register numbers instead of names.
8461         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Ditto.
8462         * sysdeps/aarch64/setjmp.S (__sigsetjmp): Extend arg pointers for
8463         ILP32 mode, change PTR_MANGLE calls to use register numbers.
8464         * sysdeps/aarch64/start.S (_start): Ditto.
8465         * sysdeps/aarch64/nptl/bits/pthreadtypes.h
8466         (__PTHREAD_RWLOCK_INT_FLAGS_SHARED): New define.
8467         (__SIZEOF_PTHREAD_ATTR_T, __SIZEOF_PTHREAD_MUTEX_T,
8468         __SIZEOF_PTHREAD_MUTEXATTR_T, __SIZEOF_PTHREAD_COND_T,
8469         __SIZEOF_PTHREAD_COND_COMPAT_T, __SIZEOF_PTHREAD_CONDATTR_T,
8470         __SIZEOF_PTHREAD_RWLOCK_T, __SIZEOF_PTHREAD_RWLOCKATTR_T,
8471         __SIZEOF_PTHREAD_BARRIER_T, __SIZEOF_PTHREAD_BARRIERATTR_T):
8472         Make defined values dependent on __ILP32__.
8473         * sysdeps/aarch64/nptl/bits/semaphore.h (__SIZEOF_SEM_T): Change define.
8474         (sem_t): Change __align type.
8475         * sysdeps/aarch64/sysdep.h (AARCH64_R, PTR_REG, PTR_LOG_SIZE, DELOUSE,
8476         PTR_SIZE): New Macros.
8477         (LDST_PCREL, LDST_GLOBAL) Update to use PTR_REG.
8478         * sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h (O_LARGEFILE):
8479         Set when in ILP32 mode.
8480         (F_GETLK64, F_SETLK64, F_SETLKW64): Only set in LP64 mode.
8481         * sysdeps/unix/sysv/linux/aarch64/dl-cache.h (DL_CACHE_DEFAULT_ID):
8482         Set elf flags for ILP32.
8483         (add_system_dir): Set ILP32 library directories.
8484         * sysdeps/unix/sysv/linux/aarch64/init-first.c
8485         (_libc_vdso_platform_setup): Set minimum kernel version for ILP32.
8486         * sysdeps/unix/sysv/linux/aarch64/ldconfig.h
8487         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add ILP32 names.
8488         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h (GET_PC, SET_PC):
8489         New Macros.
8490         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Handle ILP32 pointers.
8491
8492 2016-11-28  Steve Ellcey  <sellcey@caviumnetworks.com>
8493
8494         * sysdeps/unix/sysv/linux/fstatfs64.c: Reorder include files,
8495         only alias fstatfs and __fstatfs if STATFS_IS_STATFS64 is non-zero.
8496         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for statfs and __statfs.
8497
8498 2016-11-28  Joseph Myers  <joseph@codesourcery.com>
8499
8500         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: Do not include
8501         <asm/cachectl.h>.
8502
8503 2016-11-27  Zack Weinberg  <zackw@panix.com>
8504
8505         * libio/libio.h: Use __USE_GNU, not _GNU_SOURCE, in a conditional.
8506         * test-skeleton.c: Include stdint.h to ensure uintptr_t is available.
8507
8508 2016-11-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8509
8510         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
8511         error_t to fix usage in C++ programs.
8512
8513 2016-11-26  Joseph Myers  <joseph@codesourcery.com>
8514
8515         * scripts/build-many-glibcs.py: Import datetime module.
8516         (Context.__init__): Load JSON build state.  Initialize list of
8517         status logs.
8518         (Context.run_builds): Update saved build state.
8519         (Context.add_makefile_cmdlist): Update list of status logs.
8520         (Context.load_build_state_json): New function.
8521         (Context.store_build_state_json): Likewise.
8522         (Context.clear_last_build_state): Likewise.
8523         (Context.update_build_state): Likewise.
8524         (CommandList.status_logs): Likewise.
8525
8526 2016-11-25  Joseph Myers  <joseph@codesourcery.com>
8527
8528         * scripts/build-many-glibcs.py (Context.__init__): Save text of
8529         script being executed.
8530         (Context.get_script_text): New function.
8531         (Context.exec_self): Likewise.
8532         (Context.checkout): Re-exec script if changed by checkout process.
8533
8534 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8535
8536         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8537         (setpayloadsig): New declaration.
8538         * math/Versions (setpayloadsig): New libm symbol at version
8539         GLIBC_2.25.
8540         (setpayloadsigf): Likewise.
8541         (setpayloadsigl): Likewise.
8542         * math/Makefile (libm-calls): Add s_setpayloadsigF.
8543         * math/libm-test.inc (RUN_TEST_Ff_b1): Call feclearexcept
8544         (FE_ALL_EXCEPT) after initializing EXTRA_VAR.
8545         (setpayloadsig_test_data): New array.
8546         (setpayloadsig_test): New function.
8547         (main): Call setpayloadsig_test.
8548         * manual/arith.texi (FP Bit Twiddling): Document setpayloadsig,
8549         setpayloadsigf and setpayloadsigl.
8550         * manual/libm-err-tab.pl: Update comment on interfaces without
8551         ulps tabulated.
8552         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c: New file.
8553         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c: Likewise.
8554         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c: Likewise.
8555         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c: Likewise.
8556         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Likewise.
8557         * sysdeps/ieee754/ldbl-opt/nldbl-setpayloadsig.c: Likewise.
8558         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8559         setpayloadsig.
8560         (CFLAGS-nldbl-setpayloadsig.c): New variable.
8561         * sysdeps/nacl/libm.abilist: Update.
8562         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8563         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8564         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8565         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8566         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8567         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8568         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8569         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8570         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8571         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8572         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8573         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8575         Likewise.
8576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8577         Likewise.
8578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8579         Likewise.
8580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8581         Likewise.
8582         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8583         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8584         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8585         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8586         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8588         Likewise.
8589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8590         Likewise.
8591         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8592         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8593         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8594
8595         * scripts/build-many-glibcs.py: Import json module.
8596         (Context.__init__): Take replace_sources argument.  Load
8597         versions.json.
8598         (Context.load_versions_json): New function.
8599         (Context.store_json): Likewise.
8600         (Context.store_versions_json): Likewise.
8601         (Context.set_component_version): Likewise.
8602         (Context.checkout): Update versions.json.  Check for and handle
8603         changes of version.  Prefer previously explicitly specified
8604         version to default version.
8605         (Context.checkout_vcs): Return a revision identifier.
8606         (Context.git_checkout): Likewise.
8607         (Context.gcc_checkout): Likewise.
8608         (get_parser): Add --replace-sources option.
8609         (main): Pass replace_sources argument to Context call.
8610
8611 2016-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8612
8613         * sysdeps/nptl/fork.c (__libc_fork): Remove pid cache setting.
8614         * nptl/allocatestack.c (allocate_stack): Likewise.
8615         (__reclaim_stacks): Likewise.
8616         (setxid_signal_thread): Obtain pid through syscall.
8617         * nptl/nptl-init.c (sigcancel_handler): Likewise.
8618         (sighandle_setxid): Likewise.
8619         * nptl/pthread_cancel.c (pthread_cancel): Likewise.
8620         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
8621         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
8622         Likewise.
8623         * sysdeps/unix/sysv/linux/createthread.c (create_thread): Likewise.
8624         * sysdeps/unix/sysv/linux/raise.c (raise): Remove old behaviour
8625         comment.
8626         * sysdeps/unix/sysv/linux/getpid.c: Remove file.
8627         * nptl/descr.h (struct pthread): Change comment about pid value.
8628         * nptl/pthread_getattr_np.c (pthread_getattr_np): Remove thread
8629         pid assert.
8630         * sysdeps/unix/sysv/linux/pthread-pids.h (__pthread_initialize_pids):
8631         Do not set pid value.
8632         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove thread
8633         pid cache check.
8634         * nptl_db/td_thr_validate.c (td_thr_validate): Likewise.
8635         * sysdeps/aarch64/nptl/tcb-offsets.sym: Remove pid offset.
8636         * sysdeps/alpha/nptl/tcb-offsets.sym: Likewise.
8637         * sysdeps/arm/nptl/tcb-offsets.sym: Likewise.
8638         * sysdeps/hppa/nptl/tcb-offsets.sym: Likewise.
8639         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
8640         * sysdeps/ia64/nptl/tcb-offsets.sym: Likewise.
8641         * sysdeps/m68k/nptl/tcb-offsets.sym: Likewise.
8642         * sysdeps/microblaze/nptl/tcb-offsets.sym: Likewise.
8643         * sysdeps/mips/nptl/tcb-offsets.sym: Likewise.
8644         * sysdeps/nios2/nptl/tcb-offsets.sym: Likewise.
8645         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
8646         * sysdeps/s390/nptl/tcb-offsets.sym: Likewise.
8647         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
8648         * sysdeps/sparc/nptl/tcb-offsets.sym: Likewise.
8649         * sysdeps/tile/nptl/tcb-offsets.sym: Likewise.
8650         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
8651         * sysdeps/unix/sysv/linux/aarch64/clone.S: Remove pid and tid caching.
8652         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
8653         * sysdeps/unix/sysv/linux/arm/clone.S: Likewise.
8654         * sysdeps/unix/sysv/linux/hppa/clone.S: Likewise.
8655         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
8656         * sysdeps/unix/sysv/linux/ia64/clone2.S: Likewise.
8657         * sysdeps/unix/sysv/linux/mips/clone.S: Likewise.
8658         * sysdeps/unix/sysv/linux/nios2/clone.S: Likewise.
8659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
8660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
8661         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
8662         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
8663         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
8664         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Likewise.
8665         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
8666         * sysdeps/unix/sysv/linux/tile/clone.S: Likewise.
8667         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
8668         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Remove pid set and reset.
8669         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
8670         * sysdeps/unix/sysv/linux/arm/vfork.S: Likewise.
8671         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
8672         * sysdeps/unix/sysv/linux/ia64/vfork.S: Likewise.
8673         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
8674         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
8675         * sysdeps/unix/sysv/linux/mips/vfork.S: Likewise.
8676         * sysdeps/unix/sysv/linux/nios2/vfork.S: Likewise.
8677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
8678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
8679         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
8680         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
8681         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
8682         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
8683         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
8684         * sysdeps/unix/sysv/linux/tile/vfork.S: Likewise.
8685         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
8686         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
8687         * sysdeps/unix/sysv/linux/tst-clone2.c (f): Remove direct pthread
8688         struct access.
8689         (clone_test): Remove function.
8690         (do_test): Rewrite to take in consideration pid is not cached anymore.
8691
8692 2016-11-24  Joseph Myers  <joseph@codesourcery.com>
8693
8694         * bits/flt-eval-method.h: New file.
8695         * sysdeps/m68k/m680x0/bits/flt-eval-method.h: Likewise.
8696         * sysdeps/s390/bits/flt-eval-method.h: Likewise.
8697         * sysdeps/x86/bits/flt-eval-method.h: Likewise.
8698         * math/Makefile (headers): Add bits/flt-eval-method.h.
8699         * math/math.h: Include <bits/flt-eval-method.h>.
8700         [__USE_ISOC99] (float_t): Define based on __GLIBC_FLT_EVAL_METHOD.
8701         [__USE_ISOC99] (double_t): Likewise.
8702         * bits/mathdef.h (float_t): Remove.
8703         (double_t): Likewise.
8704         * sysdeps/aarch64/bits/mathdef.h (float_t): Likewise.
8705         (double_t): Likewise.
8706         * sysdeps/alpha/bits/mathdef.h (float_t): Likewise.
8707         (double_t): Likewise.
8708         * sysdeps/arm/bits/mathdef.h (float_t): Likewise.
8709         (double_t): Likewise.
8710         * sysdeps/hppa/fpu/bits/mathdef.h (float_t): Likewise.
8711         (double_t): Likewise.
8712         * sysdeps/ia64/bits/mathdef.h (float_t): Likewise.
8713         (double_t): Likewise.
8714         * sysdeps/m68k/m680x0/bits/mathdef.h (float_t): Likewise.
8715         (double_t): Likewise.
8716         * sysdeps/mips/bits/mathdef.h (float_t): Likewise.
8717         (double_t): Likewise.
8718         * sysdeps/powerpc/bits/mathdef.h (float_t): Likewise.
8719         (double_t): Likewise.
8720         * sysdeps/s390/bits/mathdef.h (float_t): Likewise.
8721         (double_t): Likewise.
8722         * sysdeps/sh/sh4/bits/mathdef.h (float_t): Likewise.
8723         (double_t): Likewise.
8724         * sysdeps/sparc/bits/mathdef.h (float_t): Likewise.
8725         (double_t): Likewise.
8726         * sysdeps/tile/bits/mathdef.h (float_t): Likewise.
8727         (double_t): Likewise.
8728         * sysdeps/x86/bits/mathdef.h (float_t): Likewise.
8729         (double_t): Likewise.
8730
8731 2016-11-24  Aurelien Jarno  <aurelien@aurel32.net>
8732
8733         * sysdeps/x86_64/memcpy_chk.S (__memcpy_chk): Check for SHARED
8734         instead of PIC.
8735
8736 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8737
8738         [BZ #20859]
8739         * sysdeps/sh/sh4/bits/mathdef.h (FP_ILOGB0): Define to
8740         (-0x7fffffff) instead of 0x80000001.
8741         * math/test-fp-ilogb-constants.c: New file.
8742         * math/Makefile (tests): Add test-fp-ilogb-constants.
8743
8744 2016-11-23  Maciej W. Rozycki  <macro@imgtec.com>
8745
8746         * sysdeps/mips/mips32/crti.S (JALR_RELOC): New macro.
8747         (_init): Use it in place of hardcoded R_MIPS_JALR.
8748         * sysdeps/mips/mips64/n32/crti.S (JALR_RELOC): New macro.
8749         (_init): Use it in place of hardcoded R_MIPS_JALR.
8750         * sysdeps/mips/mips64/n64/crti.S (JALR_RELOC): New macro.
8751         (_init): Use it in place of hardcoded R_MIPS_JALR.
8752
8753 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8754
8755         [BZ #20787]
8756         * sysdeps/x86/bits/mathdef.h (float_t): Do not define to float if
8757         [__x86_64__] when __FLT_EVAL_METHOD__ is nonzero.
8758         (double_t): Do not define to double if [__x86_64__] when
8759         __FLT_EVAL_METHOD__ is nonzero.
8760         * sysdeps/x86/fpu/test-flt-eval-method-387.c: New file.
8761         * sysdeps/x86/fpu/test-flt-eval-method-sse.c: Likewise.
8762         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
8763         test-flt-eval-method-387 and test-flt-eval-method-sse.
8764         [$(subdir) = math] (CFLAGS-test-flt-eval-method-387.c): New
8765         variable.
8766         [$(subdir) = math] (CFLAGS-test-flt-eval-method-sse.c): Likewise.
8767
8768 2016-11-23  Chris Metcalf  <cmetcalf@mellanox.com>
8769
8770         * scripts/build-many-glibcs.py (Context.add_all_configs): Revert
8771         use of -fno-isolate-erroneous-paths options for tilepro.
8772
8773 2016-11-23  Florian Weimer  <fweimer@redhat.com>
8774
8775         * elf/dl-load.c (_dl_map_object_from_fd): Delayed TLS data
8776         structure initialization is no longer needed.
8777
8778 2016-11-23  Joseph Myers  <joseph@codesourcery.com>
8779
8780         [BZ #20855]
8781         * bits/mathdef.h (float_t): Define to float.
8782         * math/test-flt-eval-method.c: New file.
8783         * math/Makefile (tests): Add test-flt-eval-method.
8784         (CFLAGS-test-flt-eval-method.c): New variable.
8785
8786 2016-11-22  Steve Ellcey  <sellcey@caviumnetworks.com>
8787
8788         * sysdeps/unix/sysv/linux/fstatfs64.c: Hide prototypes for fstatfs
8789         and __fstatfs.  Make them aliases of __fstatfs64 if
8790         STATFS_IS_STATFS64 is set to non-zero.
8791         * sysdeps/unix/sysv/linux/statfs64.c: Ditto for __statfs, statfs,
8792         and __statfs64.
8793         * sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c: Do not
8794         define __fstatfs and fstatfs if STATFS_IS_STATFS64 is non-zero.
8795         * sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c: Ditto
8796         for __statfs and statfs.
8797         * sysdeps/unix/sysv/linux/alpha/kernel_stat.h: Set STATFS_IS_STATFS64
8798         to 0.
8799         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Ditto.
8800         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Ditto.
8801         * sysdeps/unix/sysv/linux/ia64/kernel_stat.h: Ditto.
8802         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8803         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8804         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/kernel_stat.h: Ditto.
8807         * sysdeps/unix/sysv/linux/s390/s390-64/kernel_stat.h: Ditto.
8808         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8809         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Ditto.
8810         * sysdeps/unix/sysv/linux/x86_64/kernel_stat.h: Ditto.
8811
8812 2016-11-22  Andreas Schwab  <schwab@suse.de>
8813
8814         * misc/mkstemp.c: Include <fcntl.h>.
8815         * misc/mkstemps.c: Likewise.
8816         * misc/mkostemp.c: Likewise.
8817         * misc/mkostemps.c: Likewise.
8818
8819 2016-11-22  Adhemerval Zanella  <adhemerva.zanella@linaro.org>
8820
8821         [BZ #20847]
8822         * posix/execvpe.c (maybe_script_execute): Remove write past allocated
8823         array bounds.
8824         (__execvpe): Likewise.
8825
8826 2016-11-22  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * scripts/build-many-glibcs.py (Context.add_all_configs): Also use
8829         -fno-isolate-erroneous-paths options for tilepro.
8830
8831 2016-11-21  Steve Ellcey  <sellcey@caviumnetworks.com>
8832
8833         * sysdeps/unix/sysv/linux/generic/kernel_stat.h: Set XSTAT_IS_XSTAT64
8834         to 0 when in 32 bit mode.
8835         * sysdeps/unix/sysv/linux/hppa/kernel_stat.h: Set XSTAT_IS_XSTAT64 to 0.
8836         * sysdeps/unix/sysv/linux/kernel_stat.h: Ditto.
8837         * sysdeps/unix/sysv/linux/microblaze/kernel_stat.h: Ditto.
8838         * sysdeps/unix/sysv/linux/mips/kernel_stat.h: Ditto.
8839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Ditto.
8840         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Ditto.
8841         * sysdeps/unix/sysv/linux/fxstat.c: Replace #ifdef with #if on
8842         XSTAT_IS_XSTAT64 test.
8843         * sysdeps/unix/sysv/linux/fxstatat.c: Ditto.
8844         * sysdeps/unix/sysv/linux/generic/lxstat.c: Ditto.
8845         * sysdeps/unix/sysv/linux/generic/xstat.c: Ditto.
8846         * sysdeps/unix/sysv/linux/i386/fxstat.c: Ditto.
8847         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Ditto.
8848         * sysdeps/unix/sysv/linux/i386/lxstat.c: Ditto.
8849         * sysdeps/unix/sysv/linux/i386/xstat.c: Ditto.
8850         * sysdeps/unix/sysv/linux/lxstat.c: Ditto.
8851         * sysdeps/unix/sysv/linux/mips/xstatconv.c: Ditto.
8852         * sysdeps/unix/sysv/linux/xstat.c: Ditto.
8853         * sysdeps/unix/sysv/linux/xstatconv.c: Ditto.
8854
8855 2016-11-19  Joseph Myers  <joseph@codesourcery.com>
8856
8857         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
8858         (setpayload): New declaration.
8859         * math/Versions (setpayload): New libm symbol at version
8860         GLIBC_2.25.
8861         (setpayloadf): Likewise.
8862         (setpayloadl): Likewise.
8863         * math/Makefile (libm-calls): Add s_setpayloadF.
8864         * math/libm-test.inc (struct test_Ffp_b1_data): Rename to struct
8865         test_Ff_b1_data.
8866         (RUN_TEST_Ff_b1): New macro.
8867         (RUN_TEST_LOOP_Ff_b1): Likewise.
8868         (canonicalize_test_data): Update type.
8869         (setpayload_test_data): New array.
8870         (setpayload_test): New function.
8871         (main): Call setpayload_test.
8872         * manual/arith.texi (FP Bit Twiddling): Document setpayload,
8873         setpayloadf and setpayloadl.
8874         * manual/libm-err-tab.pl: Update comment on interfaces without
8875         ulps tabulated.
8876         * sysdeps/ieee754/dbl-64/s_setpayload.c: New file.
8877         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Likewise.
8878         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c:
8879         Likewise.
8880         * sysdeps/ieee754/flt-32/s_setpayloadf.c: Likewise.
8881         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Likewise.
8882         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c: Likewise.
8883         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Likewise.
8884         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c: Likewise.
8885         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl_main.c: Likewise.
8886         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c: Likewise.
8887         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Likewise.
8888         * sysdeps/ieee754/ldbl-opt/nldbl-setpayload.c: Likewise.
8889         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
8890         setpayload.
8891         (CFLAGS-nldbl-setpayload.c): New variable.
8892         * sysdeps/nacl/libm.abilist: Update.
8893         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8894         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8895         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8896         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8897         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8898         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8899         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8900         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8901         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8902         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8903         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8904         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
8906         Likewise.
8907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
8908         Likewise.
8909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8910         Likewise.
8911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
8912         Likewise.
8913         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8914         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8915         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8916         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8917         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8918         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
8919         Likewise.
8920         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
8921         Likewise.
8922         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
8923         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8924         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8925
8926 2016-11-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8927
8928         * hurd/hurd.h (__hurd_fail_noerrno): Remove function.
8929         * include/unistd.h: Extend comment about __access_noerrno return
8930         semantics.
8931         * sysdeps/match/hurd/access.c (__hurd_fail_noerrno): Return -1.
8932         (access_common): Correct typo for EACCES.
8933
8934 2016-11-18  Chris Metcalf  <cmetcalf@mellanox.com>
8935
8936         * sysdeps/tile/math-tests.h: New file.
8937
8938         * sysdeps/unix/sysv/linux/tile/set_dataplane.c
8939         (__old_set_dataplane): Rename from set_dataplane and make a
8940         compatibility symbol.
8941         * sysdeps/unix/sysv/linux/tile/sys/dataplane.h: Remove file.
8942         * sysdeps/unix/sysv/linux/tile/Makefile (sysdep_headers): Remove
8943         sys/dataplane.h.
8944
8945 2016-11-18  Joseph Myers  <joseph@codesourcery.com>
8946
8947         * scripts/build-many-glibcs.py (Context.write_files): Make wrapper
8948         script quote words in command output to log suitably for input to
8949         the shell.
8950
8951 2016-11-18  Matthew Fortune  <Matthew.Fortune@imgtec.com>
8952             Maciej W. Rozycki  <macro@imgtec.com>
8953
8954         * sysdeps/mips/mips32/crti.S (_init): Add `.insn' pseudo-op at
8955         `.Lno_weak_fn' label.
8956         * sysdeps/mips/mips64/n32/crti.S (_init): Likewise.
8957         * sysdeps/mips/mips64/n64/crti.S (_init): Likewise.
8958
8959 2016-11-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8960             Yury Norov  <ynorov@caviumnetworks.com>
8961
8962         * bits/typesizes.h (__RLIM_T_MATCHES_RLIM64_T): define.
8963         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h
8964         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8965         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h
8966         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8967         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h [__s390x__]
8968         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8969         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8970         [__arch64__ || __sparcv9] (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8971         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h [__86_64__]
8972         (__RLIM_T_MATCHES_RLIM64_T): Likewise.
8973         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = resource]
8974         (sysdep_routines): Remove oldgetrlimit64.
8975         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = resource]
8976         (sysdep_routines): Likewise.
8977         * sysdeps/unix/sysv/linux/m68k/Makefile [$(subdir) = resource]
8978         (sysdep_routines): Likewise.
8979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
8980         [$(subdir) = resource] (sysdep_routines): Likewise.
8981         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile
8982         [$(subdir) = resource] (sysdep_routines): Likewise.
8983         * sysdeps/unix/sysv/linux/arm/getrlimit64.c: Remove file.
8984         * sysdeps/unix/sysv/linux/arm/oldgetrlimit64.c: Likewise.
8985         * sysdeps/unix/sysv/linux/arm/oldgetrlimit.c: Likewise.
8986         * sysdeps/unix/sysv/linux/arm/oldsetrlimit.c: Likewise.
8987         * sysdeps/unix/sysv/linux/hppa/getrlimit64.c: Likewise.
8988         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
8989         * sysdeps/unix/sysv/linux/i386/oldgetrlimit64.c: Likewise.
8990         * sysdeps/unix/sysv/linux/m68k/getrlimit64.c: Likewise.
8991         * sysdeps/unix/sysv/linux/m68k/oldgetrlimit64.c: Likewise.
8992         * sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: Likewise.
8993         * sysdeps/unix/sysv/linux/powerpc/oldgetrlimit64.c: Likewise.
8994         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit64.c: Likewise.
8995         * sysdeps/unix/sysv/linux/s390/s390-32/oldgetrlimit64.c: Likewise.
8996         * sysdeps/unix/sysv/linux/sh/getrlimit64.c: Likewise.
8997         * sysdeps/unix/sysv/linux/wordsize-64/getrlimit64.c: Likewise.
8998         * sysdeps/unix/sysv/linux/wordsize-64/setrlimit64.c: Likewise.
8999         * sysdeps/sysv/linux/generic/wordsize-32/syscalls.list: Remove
9000         setrlimit and getrlimit.
9001         * sysdeps/unix/sysv/linux/hppa/syscalls.list: Likewise.
9002         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
9003         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list: Likewise.
9004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
9006         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
9007         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
9008         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
9009         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9010         * sysdeps/unix/sysv/linux/getrlimit.c: New file.
9011         * sysdeps/unix/sysv/linux/sparc/getrlimit64.c: Likewise.
9012         * sysdeps/unix/sysv/linux/setrlimit.c: Likewise.
9013         * sysdeps/unix/sysv/linux/getrlimit64.c (__getrlimit64): Handle
9014         __RLIM_T_MATCHES_RLIM64_T and add alias if defined.
9015         (__old_getrlimit64): Add compatibility symbol.
9016         * sysdeps/unix/sysv/linux/setrlimit64.c (__setrlimit): Likewise.
9017
9018 2016-11-17  Joseph Myers  <joseph@codesourcery.com>
9019
9020         * scripts/build-many-glibcs.py (Config.build_gcc): Configure with
9021         newly built gmp, mpfr and mpc.
9022
9023         * sysdeps/unix/sysv/linux/alpha/sys/user.h: Include <stddef.h>.
9024
9025 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
9026
9027         * conform/Makefile (linknamespace-libs): Rename to
9028         linknamespace-libs-thr.
9029         (linknamespace-libs-posix): New variable.
9030         (linknamespace-libs-xsi): Likewise.
9031         (linknamespace-libs-XPG3): Include libcrypt.a.
9032         (linknamespace-libs-XPG4): Use $(linknamespace-libs-XPG3).
9033         (linknamespace-libs-POSIX): Use $(linknamespace-libs-thr).
9034         (linknamespace-libs-UNIX98): Use $(linknamespace-libs-xsi).
9035         (linknamespace-libs-XOPEN2K): Likewise.
9036         (linknamespace-libs-XOPEN2K8): Likewise.
9037         (linknamespace-libs-POSIX2008): Use $(linknamespace-libs-posix).
9038
9039         [BZ #20829]
9040         * stdio-common/Versions (__snprintf): Add to version
9041         GLIBC_PRIVATE.
9042         * include/stdio.h (__snprintf): Use libc_hidden_proto.
9043         * stdio-common/snprintf.c (__snprintf): Use libc_hidden_def.
9044         * crypt/sha256-crypt.c (__sha256_crypt_r): Use __snprintf instead
9045         of snprintf.
9046         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9047
9048 2016-11-16  Zack Weinberg  <zackw@panix.com>
9049
9050         * string/string.h: Remove obsolete comment stating that
9051         strcoll_l and strxfrm_l have not yet been standardized.
9052
9053 2016-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9054
9055         * hurd/hurd.h (__hurd_fail_noerrno): New function.
9056         * include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
9057         __access_noerrno.
9058         * io/access.c (__access_noerrno): New function.
9059         * sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
9060         (hurd_fail_seterrno): Likewise.
9061         (access_common): Likewise.
9062         (__access_noerrno): Likewise.
9063         * sysdeps/nacl/access.c (__access_noerrno): Likewise.
9064         * sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
9065         * sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
9066         macro.
9067
9068 2016-11-16  Joseph Myers  <joseph@codesourcery.com>
9069
9070         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump):
9071         Only declare fpregs if [__SH_FPU_ANY__].
9072
9073 2016-11-15  Joseph Myers  <joseph@codesourcery.com>
9074
9075         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
9076         Make code unconditional.
9077         [!(__SH4__ || __SH4A__)]: Remove conditional code.
9078
9079 2016-11-15  Rical Jasan  <ricaljasan@pacific.net>
9080
9081         * manual/sysinfo.texi (S_APPEND): Delete.
9082         (S_IMMUTABLE): Likewise.
9083
9084 2016-11-15  Denis Kaganovich  <mahatma@eu.by>
9085             Magnus Granberg  <zorry@gentoo.org>
9086             Mike Frysinger  <vapier@gentoo.org>
9087
9088         [BZ #20662]
9089         * configure.ac (libc_cv_predef_stack_protector): Also check for
9090         __stack_chk_fail_local symbols.
9091         * configure: Regenerated.
9092
9093 2016-11-15  Florian Weimer  <fweimer@redhat.com>
9094
9095         * sysdeps/s390/s390-64/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
9096         (libc_hidden_def): Remove redefinition.
9097         (__sigsetjmp): Add hidden definition.
9098         * sysdeps/s390/s390-32/setjmp.S (NEED_COMPAT_SYMBOLS): New macro.
9099         (libc_hidden_def): Remove redefinition.
9100         (__sigsetjmp): Add hidden definition.
9101
9102 2016-11-14  Joseph Myers  <joseph@codesourcery.com>
9103
9104         * scripts/build-many-glibcs.py (os.path): Do not import.
9105         (Context): Inherit explicitly from object.  Remove blank line
9106         between class and docstring.
9107         (Config): Likewise.
9108         (Glibc): Likewise.
9109         (Command): Likewise.
9110         (CommandList): Likewise.
9111         (Context.write_files): Store chmod mode in a variable.
9112
9113         * sysdeps/unix/sysv/linux/tile/tilegx/configure.ac: Use
9114         LIBC_SLIBDIR_RTLDDIR for tilegx32.
9115         * sysdeps/unix/sysv/linux/tile/tilegx/configure: Regenerated.
9116
9117 2016-11-14  Zack Weinberg  <zackw@panix.com>
9118
9119         * sunrpc/Makefile (rpcgen-tests): Delete the .out file before
9120         creating or re-creating it.
9121
9122         * string/bits/string2.h: Fix typo in comment.
9123
9124 2016-11-14  Zack Weinberg  <zackw@panix.com>
9125
9126         * misc/sys/sysmacros.h (__SYSMACROS_DM, __SYSMACROS_DM1): New macros.
9127         (__SYSMACROS_DEPRECATION_MSG, __SYSMACROS_FST_DECL_TEMPL)
9128         (__SYSMACROS_FST_IMPL_TEMPL): Delete.
9129         (major, minor, makedev): Use __SYSMACROS_DM in definition, instead
9130         of redirected function names.
9131
9132         * misc/sys/cdefs.h (__glibc_macro_warning): Activate for clang >= 3.5
9133         as well.  Document that MESSAGE must be a single string literal.
9134
9135 2016-11-11  Joseph Myers  <joseph@codesourcery.com>
9136
9137         * scripts/build-many-glibcs.py: New file.
9138
9139         * stdlib/bug-getcontext.c: Include <libc-internal.h>.
9140         (do_test): Disable -Wmaybe-uninitialized around uses of
9141         except_mask.
9142
9143         * sysdeps/unix/sysv/linux/sh/sys/user.h: Include <stddef.h>.
9144
9145 2016-11-10  Chris Metcalf  <cmetcalf@mellanox.com>
9146
9147         * sysdeps/tile/tilepro/atomic-machine.h (atomic_store_relaxed)
9148         (atomic_store_release): Provide tilepro-specific implementations.
9149
9150 2016-11-10  Joseph Myers  <joseph@codesourcery.com>
9151
9152         * math/math.h (__MATH_TG): New macro.
9153         [__USE_ISOC99] (fpclassify): Define using __MATH_TG.
9154         [__USE_ISOC99] (signbit): Likewise.
9155         [__USE_ISOC99] (isfinite): Likewise.
9156         [__USE_ISOC99] (isnan): Likewise.
9157         [__USE_ISOC99] (isinf): Likewise.
9158         [__GLIBC_USE (IEC_60559_BFP_EXT)] (issignaling): Likewise.
9159         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__MATH_EVAL_FMT2): New macro.
9160         [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define using
9161         __MATH_TG and __MATH_EVAL_FMT2.
9162         * sysdeps/generic/math_private.h (fabs_tg): Define using
9163         __MATH_TG.
9164         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
9165         [!__NO_LONG_DOUBLE_MATH] (__iscanonicalf): New macro.
9166         [!__NO_LONG_DOUBLE_MATH] (__iscanonical): Likewise.
9167         [!__NO_LONG_DOUBLE_MATH] (iscanonical): Define using __MATH_TG.
9168         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (__iscanonicalf): New
9169         macro.
9170         (__iscanonical): Likewise.
9171         (iscanonical): Define using __MATH_TG.
9172
9173 2016-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9174
9175         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Add include
9176         guards.
9177
9178         * sysdeps/unix/sysv/linux/access.c: New file.
9179         * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
9180
9181 2016-11-10  Steve Ellcey  <sellcey@caviumnetworks.com>
9182
9183         * sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
9184         and __WORDSIZE32_PTRDIFF_LONG.
9185
9186 2016-11-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9187
9188         * sysdeps/aarch64/libm-test-ulps: Regenerated.
9189
9190 2016-11-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9191
9192         * sysdeps/unix/sysv/linux/arm/truncate64.c: Remove file.
9193         * sysdeps/unix/sysv/linux/generic/wordsize-32/truncate.c: Likewise.
9194         * sysdeps/sysv/linux/generic/wordsize-32/truncate64.c: Likewise.
9195         * sysdeps/unix/sysv/linux/mips/mips32/truncate64.c: Likewise.
9196         * sysdeps/unix/sysv/linux/mips/mips64/truncate64.c: Likewise.
9197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
9198         * sysdeps/unix/sysv/linux/wordsize-64/truncate64.c: Likewise.
9199         * sysdeps/unix/sysv/linux/truncate.c: New file.
9200         * sysdeps/unix/sysv/linux/truncate64.c (truncate64): Use
9201         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
9202         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (truncate):
9203         Remove.
9204         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (truncate):
9205         Likewise.
9206
9207         * posix/tst-truncate-common.c: New file.
9208         * posix/tst-truncate.c: Use tst-truncate-common.c.
9209         * posix/tst-truncate64.c: Likewise and add LFS tests.
9210         * sysdeps/unix/sysv/linux/arm/ftruncate64.c: Remove file.
9211         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate.c: Likewise.
9212         * sysdeps/unix/sysv/linux/generic/wordsize-32/ftruncate64.c: Likewise.
9213         * sysdeps/unix/sysv/linux/mips/mips32/ftruncate64.c: Likewise.
9214         * sysdeps/unix/sysv/linux/mips/mips64/ftruncate64.c: Likewise.
9215         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
9216         * sysdeps/unix/sysv/linux/wordsize-64/ftruncate64.c: Likewise.
9217         * sysdeps/unix/sysv/linux/ftruncate.c: New file.
9218         * sysdeps/unix/sysv/linux/ftruncate64.c (__ftruncate64): Use
9219         INLINE_SYSCALL_CALL, __ALIGNMENT_ARG and SYSCALL_LL64 macros.
9220         [__OFF_T_MATCHES_OFF64_T] (ftruncate): Add alias.
9221         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (ftruncate):
9222         Remove.
9223         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (ftruncate):
9224         Likewise.
9225
9226 2016-11-08  Joseph Myers  <joseph@codesourcery.com>
9227
9228         [BZ #20790]
9229         * sunrpc/rpc_parse.c (get_prog_declaration): Increase buffer size
9230         to MAXLINESIZE.
9231         * sunrpc/bug20790.x: New file.
9232         * sunrpc/Makefile [$(run-built-tests) = yes] (rpcgen-tests): New
9233         variable.
9234         [$(run-built-tests) = yes] (tests-special): Add $(rpcgen-tests).
9235         [$(run-built-tests) = yes] ($(rpcgen-tests)): New rule.
9236
9237         * sysdeps/unix/sysv/linux/sh/localplt.data: New file.
9238
9239         * sysdeps/unix/sysv/linux/hppa/localplt.data: New file.
9240
9241         * sysdeps/unix/sysv/linux/alpha/localplt.data: Make __tls_get_addr
9242         optional in ld.so.  Allow R_ALPHA_GLOB_DAT relocation for malloc,
9243         calloc, realloc, free, memalign and __libc_memalign rather than
9244         making them optional.
9245
9246         * sysdeps/unix/sysv/linux/nios2/localplt.data: Add __extendsfdf2
9247         for libc.so.
9248
9249 2016-11-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9250
9251         * nptl/Makefile (libpthread-routines): Remove ptw-llseek and add
9252         ptw-lseek64.
9253         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Remove llseek.
9254         * sysdeps/unix/sysv/linux/alpha/Makefile  (sysdeps_routines):
9255         Likewise.
9256         * sysdeps/unix/sysv/linux/generic/wordsize-32/llseek.c: Remove file.
9257         * sysdeps/unix/sysv/linux/generic/wordsize-32/lseek.c: Remove file.
9258         * sysdeps/unix/sysv/linux/mips/mips64/llseek.c: Likewise.
9259         * sysdeps/unix/sysv/linux/llseek.c: Remove file.
9260         * sysdeps/unix/sysv/linux/lseek.c: New file.
9261         * sysdeps/unix/sysv/linux/lseek64.c: Add default Linux implementation.
9262         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list: Remove lseek and
9263         __libc_lseek64 from auto-generation.
9264         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9265         * sysdeps/unix/sysv/linux/x86_64/x32/lseek64.S: New file.
9266
9267 2016-11-07  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9268
9269         * nptl/tst-basic1.c (tf, do_test): Use write_message.
9270         * nptl/tst-cleanup1.c (do_test): Likewise.
9271         * nptl/tst-cleanup3.c (do_test): Likewise.
9272         * nptl/tst-key1.c (do_test): Likewise.
9273         * nptl/tst-key2.c (tf, do_test): Likewise.
9274         * nptl/tst-key3.c (tf, do_test): Likewise.
9275         * nptl/tst-stdio1.c (do_test): Likewise.
9276         * nptl/tst-stdio2.c (do_test): Likewise.
9277
9278         * nptl/tst-kill3.c (handler): Use write_message in place of write.
9279         * nptl/tst-kill6.c (handler): Likewise.
9280         * nptl/tst-tls2.c (CB): Likewise.
9281         * nptl/tst-tls3.c (CB): Likewise.
9282
9283 2016-11-07  Joseph Myers  <joseph@codesourcery.com>
9284
9285         * scripts/check-installed-headers.sh: Ignore sys/sysctl.h for x32.
9286
9287 2016-11-07  Yury Norov  <ynorov@caviumnetworks.com>
9288             Steve Ellcey  <sellcey@caviumnetworks.com>
9289
9290         * sysdeps/unix/sysv/linux/alpha/kernel-features.h: #define
9291           __ASSUME_ST_INO_64_BIT as 0
9292         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Likewise.
9293         * sysdeps/unix/sysv/linux/fxstat64.c: Replace #ifdef with #if
9294           over the code where __ASSUME_ST_INO_64_BIT is used.
9295         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
9296         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
9297         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
9298
9299 2016-11-07  Florian Weimer  <fweimer@redhat.com>
9300
9301         * sysdeps/aarch64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9302         Document ABI exposure of the __kind offset.
9303         * sysdeps/arm/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9304         Mention reason for the __kind offset exposure in the ABI.
9305         * sysdeps/hppa/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9306         Likewise.
9307         * sysdeps/ia64/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9308         Likewise.
9309         * sysdeps/m68k/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9310         Likewise.
9311         * sysdeps/microblaze/nptl/bits/pthreadtypes.h
9312         (struct __pthread_mutex_s): Likewise.
9313         * sysdeps/mips/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9314         Likewise.
9315         * sysdeps/nios2/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9316         Likewise.
9317         * sysdeps/s390/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9318         Likewise.
9319         * sysdeps/sh/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9320         Likewise.
9321         * sysdeps/sparc/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9322         Likewise.
9323         * sysdeps/tile/nptl/bits/pthreadtypes.h (struct __pthread_mutex_s):
9324         Likewise.
9325         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h
9326         (struct __pthread_mutex_s): Likewise.
9327         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
9328         (struct __pthread_mutex_s): Likewise.
9329         * sysdeps/x86/bits/pthreadtypes.h (struct __pthread_mutex_s):
9330         Likewise.
9331
9332 2016-11-07  Steve Ellcey  <sellcey@caviumnetworks.com>
9333
9334         * test-skeleton.c: Document do_test usage.
9335
9336 2016-11-06  Aurelien Jarno  <aurelien@aurel32.net>
9337
9338         * iconv/gconv.h (__gconv_info): Define __data element using a
9339         zero-length array.
9340
9341 2016-11-04  Steve Ellcey  <sellcey@caviumnetworks.com>
9342
9343         * math/test-tgmath2.c: Split up test function.
9344
9345 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9346
9347         * Rules (tests-expected): New variable, depending on
9348         $(run-built-tests).
9349         (tests): Pass $(tests-expected) to merge-test-results.sh, not
9350         $(tests).
9351
9352         * Rules [$(run-built-tests) = no] (tests): Do not depend on
9353         $(tests-unsupported).
9354
9355 2016-11-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9356
9357         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
9358         (__WORDSIZE_TIME64_COMPAT32): Define for both 32 and  64 bits.
9359
9360 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9361
9362         [BZ #20768]
9363         * sysdeps/alpha/fpu/feholdexcpt.c (__feholdexcept): Call
9364         __fegetenv instead of fegetenv.
9365
9366         [BZ #14139]
9367         * manual/libm-err-tab.pl (%pplatforms): Initialize to empty.
9368         (find_files): Obtain platform name from libm-test-ulps-name and
9369         store in %pplatforms.
9370         (canonicalize_platform): Remove.
9371         (print_platforms): Use $pplatforms directly.
9372         (by_platforms): Do not allow for platforms missing from
9373         %pplatforms.
9374         * sysdeps/aarch64/libm-test-ulps-name: New file.
9375         * sysdeps/alpha/fpu/libm-test-ulps-name: Likewise.
9376         * sysdeps/arm/libm-test-ulps-name: Likewise.
9377         * sysdeps/generic/libm-test-ulps-name: Likewise.
9378         * sysdeps/hppa/fpu/libm-test-ulps-name: Likewise.
9379         * sysdeps/i386/fpu/libm-test-ulps-name: Likewise.
9380         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps-name: Likewise.
9381         * sysdeps/ia64/fpu/libm-test-ulps-name: Likewise.
9382         * sysdeps/m68k/coldfire/fpu/libm-test-ulps-name: Likewise.
9383         * sysdeps/m68k/m680x0/fpu/libm-test-ulps-name: Likewise.
9384         * sysdeps/microblaze/libm-test-ulps-name: Likewise.
9385         * sysdeps/mips/mips32/libm-test-ulps-name: Likewise.
9386         * sysdeps/mips/mips64/libm-test-ulps-name: Likewise.
9387         * sysdeps/nios2/libm-test-ulps-name: Likewise.
9388         * sysdeps/powerpc/fpu/libm-test-ulps-name: Likewise.
9389         * sysdeps/powerpc/nofpu/libm-test-ulps-name: Likewise.
9390         * sysdeps/s390/fpu/libm-test-ulps-name: Likewise.
9391         * sysdeps/sh/libm-test-ulps-name: Likewise.
9392         * sysdeps/sparc/fpu/libm-test-ulps-name: Likewise.
9393         * sysdeps/tile/libm-test-ulps-name: Likewise.
9394         * sysdeps/x86_64/fpu/libm-test-ulps-name: Likewise.
9395
9396         * sysdeps/unix/sysv/linux/mips/sys/user.h: Include <stddef.h>.
9397
9398         * sysdeps/unix/sysv/linux/mips/Makefile [$(subdir) = elf]
9399         (test-xfail-check-execstack): New variable.
9400
9401         * sysdeps/mips/localplt.data: New file.
9402
9403 2016-11-04  Yury Norov  <ynorov@caviumnetworks.com>
9404             Steve Ellcey  <sellcey@caviumnetworks.com>
9405
9406         * bits/wordsize.h: Add documentation.
9407         * sysdeps/aarch64/bits/wordsize.h : New file
9408         * sysdeps/generic/stdint.h (PTRDIFF_MIN, PTRDIFF_MAX): Update
9409         definitions.
9410         (SIZE_MAX): Change ifdef to if in __WORDSIZE32_SIZE_ULONG check.
9411         * sysdeps/gnu/bits/utmp.h (__WORDSIZE_TIME64_COMPAT32): Check
9412         with #if instead of #ifdef.
9413         * sysdeps/gnu/bits/utmpx.h (__WORDSIZE_TIME64_COMPAT32): Ditto.
9414         * sysdeps/mips/bits/wordsize.h (__WORDSIZE32_SIZE_ULONG,
9415         __WORDSIZE32_PTRDIFF_LONG, __WORDSIZE_TIME64_COMPAT32):
9416         Add or change defines.
9417         * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise.
9418         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
9419         * sysdeps/s390/s390-32/bits/wordsize.h: Likewise.
9420         * sysdeps/s390/s390-64/bits/wordsize.h: Likewise.
9421         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
9422         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
9423         * sysdeps/tile/tilegx/bits/wordsize.h: Likewise.
9424         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
9425         * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise.
9426         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
9427         * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise.
9428         * sysdeps/wordsize-32/bits/wordsize.h: Likewise.
9429         * sysdeps/wordsize-64/bits/wordsize.h: Likewise.
9430         * sysdeps/x86/bits/wordsize.h: Likewise.
9431
9432 2016-11-04  Wilco Dijkstra  <wdijkstr@arm.com>
9433             Kevin Petit  <kevin.petit@arm.com>
9434
9435         * sysdeps/aarch64/memchr.S (__memchr): New file.
9436
9437 2016-11-04  Joseph Myers  <joseph@codesourcery.com>
9438
9439         * sysdeps/tile/preconfigure: Accept tilegx* instead of tilegx.
9440
9441 2016-11-03  Joseph Myers  <joseph@codesourcery.com>
9442
9443         [BZ #19398]
9444         * conform/Makefile ($(linknamespace-header-tests)): Also depend on
9445         $(linknamespace-symlists-tests).
9446
9447 2016-11-02  Steve Ellcey  <sellcey@caviumnetworks.com>
9448
9449         * time/tst-strptime2.c: Ignore -Wformat-length warning.
9450
9451 2016-11-02  Florian Weimer  <fweimer@redhat.com>
9452             Carlos O'Donell  <carlos@redhat.com>
9453
9454         [Bug #20729]
9455         * resolv/res_send.c (send_vc): Revert DIAG_IGNORE_Os_NEEDS_COMMENT
9456         change to non -Os related diagnostic.  Use DIAG_IGNORE_Os_NEEDS_COMMENT
9457         for -Os related change.
9458
9459 2016-11-01  Steve Ellcey  <sellcey@caviumnetworks.com>
9460
9461         * stdio-common/tst-printf.c: Ignore -Wformat-length warning.
9462
9463 2016-11-01  Joseph Myers  <joseph@codesourcery.com>
9464
9465         [BZ #19673]
9466         * manual/math.texi (Exponents and Logarithms): Correct description
9467         of clog10.
9468
9469 2016-10-31  Carlos O'Donell  <carlos@redhat.com>
9470
9471         [Bz #20729]
9472         * locale/weight.h: Include libc-internal.h.
9473         * locale/weightwc.h: Likewise.
9474         * nptl/nptl_dbP.h: Likewise.
9475
9476 2016-10-31  Brent W. Baccala  <cosine@freesoft.org>
9477
9478         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Do not deallocate memobj_wr
9479         when it is MACH_PORT_NULL.
9480
9481 2016-10-31  Andreas Schwab  <schwab@suse.de>
9482
9483         [BZ #20707]
9484         * posix/glob.c (glob): Initialize pglob before checking for
9485         GLOB_BRACE.  Don't call glob recursively if pattern contains no
9486         valid brace expression despite GLOB_BRACE.
9487         * posix/globtest.sh: Test it.
9488
9489 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9490
9491         [BZ #20729]
9492         * include/libc-internal.h (DIAG_IGNORE_Os_NEEDS_COMMENT):
9493         Define.
9494         * iconvdata/iso-2022-cn-ext.c: Include libc-internal.h and ignore
9495         -Wmaybe-uninitialized for BODY macro only for -Os compiles.
9496         * locale/weight.h (findix): Ignore -Wmaybe-uninitialized error
9497         for seq2.back_us and seq1.back_us only for -Os compiles.
9498         * locale/weightwc.h (findix): Likewise.
9499         * nptl_db/thread_dbP.h: Ignore -Wmaybe-uninitialized error for
9500         DB_GET_FIELD_ADDRESS only for -Os compiles.
9501         * resolv/res_send (reopen): Ignore -Wmaybe-uninitialized error
9502         for slen only for -Os compiles.
9503         * string/strcoll_l.c (get_next_seq): Ignore
9504         -Wmaybe-uninitialized for seq2.save_idx and seq1.save_idx only
9505         for -Os compiles.
9506
9507         * elf/Makefile (CFALGS-tst-linkall-static): Remove.
9508         * include/crypt.h: New file.
9509
9510 2016-10-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9511
9512         * dlfcn/bug-atexit3-lib.cc (write_message): New function, copied
9513         from test-skeleton.c.
9514         (statclass): Replace calls to write with calls to write_message.
9515
9516 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9517
9518         * math/math.h
9519         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANF):
9520         New macro.
9521         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNAN):
9522         Likewise.
9523         [__GLIBC_USE (IEC_60559_BFP_EXT) && __GNUC_PREREQ (3, 3)] (SNANL):
9524         Likewise.
9525         * manual/arith.texi (Infinity and NaN): Document SNANF, SNAN and
9526         SNANL.
9527         * math/test-double.h (snan_value_MACRO): New macro.
9528         * math/test-float.h (snan_value_MACRO): Likewise.
9529         * math/test-ldouble.h (snan_value_MACRO): Likewise.
9530         * math/libm-test.inc (issignaling_test_data): Add tests of
9531         snan_value_MACRO.
9532
9533 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9534
9535         * nptl/pthread_rwlock_unlock.c: Add a comment explaining its
9536         behavior when eliding a lock not held by the current thread.
9537         * sysdeps/powerpc/nptl/elide.h: Likewise.
9538
9539 2016-10-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9540
9541         [BZ #20728]
9542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Replace a
9543         branch to _exit() by a function call.
9544
9545 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9546
9547         * malloc/malloc.c: Update chunk layout comments.
9548         (chunk_main_arena): Update comment.
9549
9550 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9551
9552         * crypt/sha256.c, crypt/sha256-block.c,
9553         sysdeps/sparc/sparc64/multiarch/sha256-block.c: Rename
9554         sha256_process_block to __sha256_process_block.
9555         * crypt/sha512.c, crypt/sha512-block.c,
9556         sysdeps/sparc/sparc64/multiarch/sha512-block.c: Rename
9557         sha512_process_block to __sha512_process_block.
9558
9559 2016-10-28  Carlos O'Donell  <carlos@redhat.com>
9560
9561         * elf/Makefile (CFLAGS-tst-linkall-static): Define.
9562
9563         * math/test-nan-overflow.c: Include stdlib.h for malloc.
9564
9565 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
9566
9567         [BZ #20019]
9568         * sysdeps/i386/dl-machine.h (elf_machine_rel): Check IFUNC
9569         definition in unrelocated shared library.
9570         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
9571
9572 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9573
9574         [BZ #20729]
9575         Support i386 builds with CFLAGS which imply -fno-omit-frame-pointer.
9576         * sysdeps/unix/sysv/linux/i386/Makefile
9577         (uses-6-syscall-arguments): Define.
9578         [subdir == misc] (CFLAGS-epoll_pwait.o, CFLAGS-epoll_pwait.os)
9579         (CFLAGS-mmap.o, CFLAGS-mmap.os, CFLAGS-mmap64.o, CFLAGS-mmap64.os)
9580         (CFLAGS-pselect.o, CFLAGS-pselect.os, CFLAGS-rtld-mmap.os): Use it.
9581         [subdir = sysvipc] (CFLAGS-semtimedop.o, CFLAGS-semtimedop.os):
9582         Likewise.
9583         [subdir = io] (CFLAGS-posix_fadvise64.o, CFLAGS-posix_fadvise64.os)
9584         (CFLAGS-posix_fallocate.o, CFLAGS-posix_fallocate.os)
9585         (CFLAGS-posix_fallocate64.o, CFLAGS-posix_fallocate64.os)
9586         (CFLAGS-sync_file_range.o, CFLAGS-sync_file_range.os)
9587         (CFLAGS-fallocate.o, CFLAGS-fallocate.os, CFLAGS-fallocate64.o)
9588         (CFLAGS-fallocate64.os): Likewise.
9589         [subdir = nptl] (CFLAGS-pthread_rwlock_timedrdlock.o)
9590         (CFLAGS-pthread_rwlock_timedrdlock.os)
9591         (CFLAGS-pthread_rwlock_timedwrlock.o)
9592         (CFLAGS-pthread_rwlock_timedwrlock.os, CFLAGS-sem_wait.o)
9593         (CFLAGS-sem_wait.os, CFLAGS-sem_timedwait.o)
9594         (CFLAGS-sem_timedwait.os): Likewise.
9595
9596 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9597
9598         * elf/tst-linkall-static.c: New file.
9599         * elf/Makefile (tests-static): Add tst-linkall-static.
9600         (tst-linkall-static): Link against static libraries.
9601
9602 2016-10-27  Florian Weimer  <fweimer@redhat.com>
9603
9604         * malloc/malloc.c (sysmalloc): Initialize previous size field of
9605         mmaped chunks.
9606
9607 2016-10-28  Florian Weimer  <fweimer@redhat.com>
9608
9609         * malloc/malloc.c (struct malloc_chunk): Rename prev_size, size
9610         members to mchunk_prev_size, mchunk_size.
9611         (chunk_main_arena): Reverse sense and rename from
9612         chunk_non_main_arena.
9613         (prev_inuse, chunk_is_mmapped, chunk_main_arena): Use
9614         mchunk_size instead of size.
9615         (set_non_main_arena): Define.
9616         (chunksize): Use chunksize_nomask instead of direct member access.
9617         (chunksize_nomask): Define.
9618         (next_chunk): Use chunksize instead of direct member access.
9619         (prev_size, set_prev_size): Define.
9620         (prev_chunk): Use prev_size instead of direct member access.
9621         (inuse, set_inuse, clear_inuse): Use chunksize and mchunk_size member.
9622         (inuse_bit_at_offset, set_inuse_bit_at_offset)
9623         (clear_inuse_bit_at_offset): Use mchunk_size member instead of size.
9624         (mchunk_prev_size, mchunk_size): Poison tokens.
9625         (unlink): Use chunksize_nomask, prev_size accessors.
9626         (do_check_remalloced_chunk): Use chunk_main_arena accessor.
9627         (do_check_free_chunk): Use prev_size accessor.
9628         (sysmalloc): Use set_prev_size, set_head accessors.
9629         (munmap_chunk, mremap_chunk): Use prev_size accessor.
9630         (__libc_free): Use chunksize_nomask accessor.
9631         (_int_malloc): Use set_non_main_arena, chunksize_nomask,
9632         chunk_main_arena accessors.
9633         (_int_free): Use chunksize_nomask, prev_size accessors.
9634         (malloc_consolidate): Use chunksize, prev_size accessors.
9635         (_int_realloc): Use chunksize_nomask accessor.
9636         (_int_memalign): Use set_prev_size accessor.
9637         (__malloc_info): Use chunksize_nomask accessor.
9638         * malloc/hooks.c (mem2chunk_check): Use prev_size, prev_inuse
9639         accessors.
9640         * malloc/arena.c (arena_for_chunk): Use chunk_main_arena accessor.
9641         (heap_trim): Use chunksize_nomask, prev_size accessors.
9642
9643 2016-10-28  Joseph Myers  <joseph@codesourcery.com>
9644
9645         [BZ #19380]
9646         * stdlib/strtod_l.c (round_and_return): Force "inexact" exception
9647         for inexact results.
9648         * stdlib/gen-tst-strtod-round.c (string_to_fp): Return indication
9649         of inexact result where mpfr_subnormalize is the only inexact
9650         step.
9651         * stdlib/tst-strtod-round-data.h: Regenerated.
9652         * stdlib/tst-strtod-round-skeleton.c [!FE_INEXACT] (FE_INEXACT):
9653         Define to 0.
9654         (GEN_ONE_TEST): Test inexact exceptions raised are as expected.
9655
9656 2016-10-27  David S. Miller  <davem@davemloft.net>
9657
9658         * sysdeps/unix/sysv/linux/sparc/sys/user.h: Include stddef.h
9659
9660 2016-10-27  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9661
9662         * malloc/malloc.c (do_set_mallopt_check): New function.
9663         (do_set_mmap_threshold): Likewise.
9664         (do_set_mmaps_max): Likewise.
9665         (do_set_top_pad): Likewise.
9666         (do_set_perturb_byte): Likewise.
9667         (do_set_trim_threshold): Likewise.
9668         (do_set_arena_max): Likewise.
9669         (do_set_arena_test): Likewise.
9670         (__libc_mallopt): Use them.
9671
9672 2016-10-26  Joseph Myers  <joseph@codesourcery.com>
9673
9674         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
9675         (canonicalize): New declaration.
9676         * math/Versions (canonicalize): New libm symbol at version
9677         GLIBC_2.25.
9678         (canonicalizef): Likewise.
9679         (canonicalizel): Likewise.
9680         * math/Makefile (gen-libm-calls): Add s_canonicalizeF.
9681         * math/s_canonicalize_template.c: New file.
9682         * math/libm-test.inc: Update comment on functions tested and
9683         testing of NaN payloads.
9684         (TEST_NAN_PAYLOAD): New macro.
9685         (NO_TEST_INLINE): Update value.
9686         (XFAIL_TEST): Likewise.
9687         (ERRNO_UNCHANGED): Likewise.
9688         (ERRNO_EDOM): Likewise.
9689         (ERRNO_ERANGE): Likewise.
9690         (IGNORE_RESULT): Likewise.
9691         (NON_FINITE): Likewise.
9692         (TEST_SNAN): Likewise.
9693         (NO_TEST_MATHVEC): Likewise.
9694         (TEST_NAN_PAYLOAD_CANONICALIZE): New macro.
9695         (check_float_internal): Check NaN payloads if TEST_NAN_PAYLOAD.
9696         (struct test_Ffp_b1_data): New type.
9697         (RUN_TEST_Ffp_b1): New macro.
9698         (RUN_TEST_LOOP_Ffp_b1): Likewise.
9699         (canonicalize_test_data): New array.
9700         (canonicalize_test): New function.
9701         (main): Call canonicalize_test.
9702         * manual/arith.texi (FP Bit Twiddling): Document canonicalize,
9703         canonicalizef and canonicalizel.
9704         * manual/libm-err-tab.pl: Update comment on interfaces without
9705         ulps tabulated.
9706         * sysdeps/ieee754/ldbl-opt/nldbl-canonicalize.c: New file.
9707         * sysdeps/ieee754/ldbl-opt/s_canonicalizel.c: Likewise.
9708         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9709         canonicalize.
9710         (CFLAGS-nldbl-canonicalize.c): New variable.
9711         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c: Move
9712         to ...
9713         * sysdeps/ieee754/ldbl-128ibm/test-canonical-ldbl-128ibm.c:
9714         ... here.
9715         (do_test): Also test canonicalizel.
9716         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Change
9717         test-iscanonical-ldbl-128ibm to test-canonical-ldbl-128ibm.
9718         * sysdeps/ieee754/ldbl-128ibm/include/bits/iscanonical.h: New
9719         file.
9720         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c (__iscanonicall):
9721         Use libm_hidden_def.
9722         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Move to ...
9723         * sysdeps/ieee754/ldbl-96/test-canonical-ldbl-96.c: ... here.
9724         (do_test): Also test canonicalizel.
9725         * sysdeps/ieee754/ldbl-96/Makefile (tests): Change
9726         test-iscanonical-ldbl-96 to test-canonical-ldbl-96.
9727         * sysdeps/ieee754/ldbl-96/include/bits/iscanonical.h: New file.
9728         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c (__iscanonicall): Use
9729         libm_hidden_def.
9730         * sysdeps/generic/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD): New
9731         macro.
9732         * sysdeps/mips/math-tests.h [__mips_hard_float && !__mips_nan2008]
9733         (SNAN_TESTS_PRESERVE_PAYLOAD): Likewise.
9734         * sysdeps/nacl/libm.abilist: Update.
9735         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9736         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9737         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9738         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9739         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9740         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9741         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9742         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9743         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9744         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9745         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9746         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
9748         Likewise.
9749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9750         Likewise.
9751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
9752         Likewise.
9753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
9754         Likewise.
9755         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9756         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9757         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9758         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9759         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
9761         Likewise.
9762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
9763         Likewise.
9764         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
9765         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9766         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9767
9768         * sysdeps/ieee754/ldbl-opt/nldbl-getpayload.c: New file.
9769         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
9770         getpayload.
9771         (CFLAGS-nldbl-getpayload.c): New variable.
9772
9773 2016-10-26  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9774
9775         * stdio-common/vfscanf.c (_IO_vfwscanf): Use read_int to parse
9776         integer from the format string.
9777
9778 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9779
9780         [BZ #19473]
9781         * malloc/malloc.h (malloc_get_state, malloc_set_state): Remove
9782         declarations.
9783         * malloc/malloc.c (malloc_get_state, malloc_set_state): Remove
9784         weak aliases.
9785         * malloc/hooks.c (__malloc_get_state): Remove definition.
9786         (malloc_get_state): New stub implementation as
9787         compatibility symbol.
9788         (malloc_set_state): Rename from __malloc_set_state.  Turn into
9789         compat symbol.
9790         * malloc/tst-mallocstate.c: Rewrite to approximate how Emacs uses
9791         malloc_set_state.
9792         * malloc/Makefile (LDFLAGS-tst-mallocstate): Link with -rdynamic.
9793
9794 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9795
9796         * iconvdata/iso646.c (enum variant): Drop illegal_var.
9797         (names): Turn into concatenation of strings.
9798         (gconv_init): Adapt iteration over names.
9799
9800 2016-10-26  Florian Weimer  <fweimer@redhat.com>
9801
9802         * iconvdata/ibm930.h (__ucs4_to_ibm930sb): Remove indirection and
9803         make const.
9804         * iconvdata/ibm933.h (__ucs4_to_ibm933sb): Likewise.
9805         * iconvdata/ibm935.h (__ucs4_to_ibm935sb): Likewise.
9806         * iconvdata/ibm939.h (__ucs4_to_ibm939sb): Likewise.
9807         * iconvdata/ibm930.c [TO_LOOP] (BODY): Store converted single-byte
9808         character in sbconv.
9809         * iconvdata/ibm933.c [TO_LOOP] (BODY): Likewise.
9810         * iconvdata/ibm935.c [TO_LOOP] (BODY): Likewise.
9811         * iconvdata/ibm939.c [TO_LOOP] (BODY): Likewise.
9812
9813 2016-10-26  Siddhesh Poyarekar  <siddhesh@sourceware.org>
9814
9815         * malloc/malloc.c (M_ARENA_TEST, M_ARENA_MAX): Remove.
9816
9817         * manual/memory.texi (M_TOP_PAD): Remove reference to sbrk.
9818         (M_TRIM_THRESHOLD): Likewise.
9819
9820         * manual/memory.texi (M_ARENA_TEST): Add documentation.
9821         (M_ARENA_MAX): Likewise.
9822         * malloc/malloc.c: Remove obsolete comment.
9823
9824         * manual/memory.texi: Add environment variable alternatives to
9825         setting mallopt parameters.
9826
9827 2016-10-26  Carlos O'Donell  <carlos@redhat.com>
9828
9829         * include/atomic.h
9830         [USE_COMPILER_ATOMIC_BUILTINS && !atomic_fetch_xor_release]
9831         (atomic_fetch_xor_release): Use atomic_compare_exchange_weak_release.
9832
9833 2016-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9834
9835         * stdlib/Makefile (tests): Add tst-strfrom and tst-strfrom-locale.
9836         * stdlib/tst-strfrom.h: New file.
9837         * stdlib/tst-strfrom.c: New file.
9838         * stdlib/tst-strfrom-locale.c: New file.
9839
9840         * stdlib/bug-strtod.c: Refactor based on GEN_TEST_STRTOD_FOREACH.
9841         * stdlib/bug-strtod2.c: Likewise.
9842         * stdlib/tst-strtod-round-skeleton.c: Likewise.
9843         * stdlib/tst-strtod6.c: Likewise.
9844         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH): Use strfrom.
9845
9846 2016-10-25  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
9847
9848         * NEWS: Mention the addition of strfromd, strfromf, and strfroml.
9849         * manual/arith.texi: Document strfromd, strfromf, strfroml.
9850         * stdlib/Makefile: Add strfromd, strfromf, and strfroml.
9851         * stdlib/Versions (GLIBC_2.25): Add strfromd, strfromf, and strfroml.
9852         * stdlib/stdlib.h (strfromd): New declaration.
9853         (strfromf): Likewise.
9854         (strfroml): Likewise.
9855         * stdlib/strfrom-skeleton.c: New file.  Generic implementation for
9856         strfrom.
9857         * stdlib/strfromd.c: New file.
9858         * stdlib/strfromf.c: Likewise.
9859         * stdlib/strfroml.c: Likewise.
9860         * stdlib/bits/stdlib-ldbl.h: Add redirection from strfroml to strfromd.
9861         * sysdeps/ieee754/ldbl-opt/Makefile: Add rule for nldbl-strfroml.c.
9862         * sysdeps/ieee754/ldbl-opt/nldbl-strfroml.c: New file;
9863         * sysdeps/arm/nacl/libc.abilist: Update.
9864         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
9865         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9866         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9867         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9868         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9869         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9870         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9871         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9872         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9873         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9874         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9875         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9876         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9877         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
9879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
9880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9882         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9883         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9884         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9885         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9886         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9887         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
9888         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
9889         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
9890         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9891         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9892
9893 2016-10-25  Joseph Myers  <joseph@codesourcery.com>
9894
9895         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Use cmplwi
9896         instead of cmpli.
9897         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Use cmpldi
9898         instead of cmpli.
9899
9900 2016-10-24  Yury Norov  <ynorov@caviumnetworks.com>
9901
9902         * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast.
9903         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
9904         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
9905         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
9906         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
9907         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
9908
9909 2016-10-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9910
9911         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Use SYSCALL_LL_PRW.
9912         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
9913         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Use
9914         SYSCALL_LL64_PRW.
9915         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
9916         * sysdeps/unix/sysv/linux/sh/kernel-features.h: Define
9917         __ASSUME_PRW_DUMMY_ARG.
9918         * sysdeps/unix/sysv/linux/sh/pread.c: Remove file.
9919         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
9920         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
9921         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
9922         * sysdeps/unix/sysv/linux/sysdep.h: Define SYSCALL_LL_PRW and
9923         SYSCALL_LL_PRW64 based on __ASSUME_PRW_DUMMY_ARG.
9924
9925 2016-10-24  Steve Ellcey  <sellcey@caviumnetworks.com>
9926
9927         * sysdeps/unix/sysv/linux/tst-setgetname.c: Increase buffer size.
9928
9929 2016-10-22  Florian Weimer  <fweimer@redhat.com>
9930
9931         * math/math.h [__cplusplus] (iszero): Wrap C++ bits in extern
9932         "C++", to override a potential extern "C" directive around the
9933         header file inclusion.
9934
9935 2016-10-21  Joseph Myers  <joseph@codesourcery.com>
9936
9937         * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable.
9938
9939 2016-10-21  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
9940
9941         * sysdeps/powerpc/fpu/fenv_private.h:
9942         (_FPU_MASK_ALL): Rename to...
9943         (_FPU_ALL_TRAPS): New macro representing ISA VE OE UE ZE and
9944         XE FPSCR bits.
9945
9946         (_FPU_MASK_RN): New macro to mask out ISA RN bits in FPSCR.
9947
9948         (_FPU_MASK_ROUNDING): Rename to...
9949         (_FPU_MASK_NOT_RN_NI): New macro to mask out all but ISA RN and
9950         NI bits.
9951
9952         (_FPU_MASK_EXCEPT_ROUND): Rename to...
9953         (_FPU_MASK_TRAPS_RN): New macro to mask out exception enable
9954         bits and rounding bits.
9955
9956         (__libc_feholdbits_ppc): New inline function to mask, set,
9957         and pontentially clear FSPCR bits, and change MSR[FE] bits.
9958         (libc_feholdexcept_ppc): Redefine using __libc_feholdbits_ppc.
9959         (libc_feholdexcept_setround_ppc): Likewise.
9960
9961         (__libc_femergeenv_ppc): New function to dynamically mask both
9962         old and new FP environments and merge.
9963         (libc_fesetenv_ppc): Redefine in terms of __libc_femergeenv_ppc.
9964         (libc_feresetround_ppc): Likewise.
9965         (libc_feupdateenv_test_ppc): Likewise.
9966         (libc_feupdateenv_ppc): Likewise.
9967
9968         (libc_feholdsetround_ppc_ctx): Fix usage to include masking
9969         of ISA RN bits, and update macro names.
9970         (libc_feholdexcept_setround_ppc_ctx): Remove as it is
9971         effectively the same as the previously mentioned function.
9972
9973         (libc_feupdateenv_ppc_ctx): Replace libc_feupdatedenv_test_ppc
9974         usage with fe_resetround_ppc.
9975
9976         (libc_feholdexcept_setround_ctx): Remove, this doesn't appear
9977         to be used.
9978         (libc_feholdexcept_setround_ctxf): Likewise.
9979         (libc_feholdexcept_setround_ctxl): Likewise.
9980
9981 2016-10-21  Florian Weimer  <fweimer@redhat.com>
9982
9983         [BZ #20715]
9984         * math/math.h [__cplusplus] (iszero): Define as function template.
9985         * math/Makefile [CXX] (tests): Add test-math-iszero.
9986         (CFLAGS-test-math-iszero.cc): Set.
9987         * math/test-math-iszero.cc: New file.
9988
9989 2016-10-20  Joseph Myers  <joseph@codesourcery.com>
9990
9991         [BZ #20660]
9992         * sysdeps/arm/e_sqrt.c: New file.
9993         * sysdeps/arm/e_sqrtf.c: Likewise.
9994
9995 2016-10-19  Joseph Myers  <joseph@codesourcery.com>
9996
9997         [BZ #20718]
9998         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S (__copysignl): Do
9999         not use floating-point comparisons to test sign.
10000         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S (__copysignl):
10001         Likewise.
10002
10003         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10004         (getpayload): New declaration.
10005         * math/Versions (getpayload): New libm symbol at version
10006         GLIBC_2.25.
10007         (getpayloadf): Likewise.
10008         (getpayloadl): Likewise.
10009         * math/Makefile (libm-calls): Add s_getpayloadF.
10010         * math/libm-test.inc: Include <nan-high-order-bit.h>.
10011         (struct test_f_f_data): Add comment.
10012         (RUN_TEST_fp_f): New macro.
10013         (RUN_TEST_LOOP_fp_f): Likewise.
10014         (getpayload_test_data): New array.
10015         (getpayload_test): New function.
10016         (main): Call getpayload_test.
10017         * math/gen-libm-test.pl (parse_args): Handle 'p' in argument
10018         descriptor.
10019         * manual/arith.texi (FP Bit Twiddling): Document getpayload,
10020         getpayloadf and getpayloadl.
10021         * manual/libm-err-tab.pl: Update comment on interfaces without
10022         ulps tabulated.
10023         * sysdeps/ieee754/dbl-64/s_getpayload.c: New file.
10024         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Likewise.
10025         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Likewise.
10026         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Likewise.
10027         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c: Likewise.
10028         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Likewise.
10029         * sysdeps/nacl/libm.abilist: Update.
10030         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10031         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10032         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10033         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10034         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10035         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10036         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10037         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10038         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10039         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10040         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10041         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10043         Likewise.
10044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10045         Likewise.
10046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10047         Likewise.
10048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10049         Likewise.
10050         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10051         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10052         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10053         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10054         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10055         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10056         Likewise.
10057         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10058         Likewise.
10059         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10060         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10061         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10062
10063 2016-10-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10064
10065         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = math] (tests): Move
10066         tst-fallocate{64}.
10067         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Check for EOPNOTSUPP
10068         on syscall return.
10069
10070 2016-10-17  Carlos O'Donell  <carlos@redhat.com>
10071
10072         [BZ #20689]
10073         * sysdeps/x86/cpu-features.c: Only enable FMA and AVX2 if AVX is
10074         usable.
10075
10076 2016-10-17  Joseph Myers  <joseph@codesourcery.com>
10077
10078         * sysdeps/generic/nan-high-order-bit.h: New file.
10079         * sysdeps/hppa/nan-high-order-bit.h: Likewise.
10080         * sysdeps/mips/nan-high-order-bit.h: Likewise.
10081         * sysdeps/hppa/math_private.h: Remove file.
10082         * sysdeps/mips/math_private.h (HIGH_ORDER_BIT_IS_SET_FOR_SNAN): Do
10083         not define here.
10084         * sysdeps/ieee754/dbl-64/s_issignaling.c: Include
10085         <nan-high-order-bit.h>.
10086         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10087         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
10088         <nan-high-order-bit.h>.
10089         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10090         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
10091         <nan-high-order-bit.h>.
10092         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10093         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Include
10094         <nan-high-order-bit.h>.
10095         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10096         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
10097         <nan-high-order-bit.h>.
10098         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10099         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
10100         <nan-high-order-bit.h>.
10101         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10102         * sysdeps/ieee754/flt-32/s_issignalingf.c: Include
10103         <nan-high-order-bit.h>.
10104         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10105         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
10106         <nan-high-order-bit.h>.
10107         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10108         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
10109         <nan-high-order-bit.h>.
10110         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10111         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Include
10112         <nan-high-order-bit.h>.
10113         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10114         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
10115         <nan-high-order-bit.h>.
10116         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10117         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
10118         <nan-high-order-bit.h>.
10119         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10120         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Include
10121         <nan-high-order-bit.h>.
10122         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10123         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
10124         <nan-high-order-bit.h>.
10125         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10126         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
10127         <nan-high-order-bit.h>.
10128         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10129         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Include
10130         <nan-high-order-bit.h>.
10131         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10132         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
10133         <nan-high-order-bit.h>.
10134         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10135         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
10136         <nan-high-order-bit.h>.
10137         [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Test with #if not #ifdef.
10138
10139 2016-10-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
10140
10141         * sysdeps/s390/fpu/fix-fp-int-compare-invalid.h: New file.
10142
10143 2016-09-22  John David Anglin  <dave.anglin@bell.net>
10144
10145         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: Don't include
10146         abort-instr.h.
10147         (EFAULT): Remove conditional define.
10148         (ENOSYS): Likewise.
10149         (atomic_compare_and_exchange_val_acq): Use instruction nullification
10150         instead of conditional branch instructions.
10151
10152 2016-10-15  Joseph Myers  <joseph@codesourcery.com>
10153
10154         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10155         (totalordermag): New declaration.
10156         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag):
10157         New macro.
10158         * math/Versions (totalordermag): New libm symbol at version
10159         GLIBC_2.25.
10160         (totalordermagf): Likewise.
10161         (totalordermagl): Likewise.
10162         * math/Makefile (libm-calls): Add s_totalordermagF.
10163         * math/libm-test.inc (totalordermag_test_data): New array.
10164         (totalordermag_test): New function.
10165         (main): Call totalordermag_test.
10166         * math/test-tgmath.c (NCALLS): Increase to 125.
10167         (F(compile_test)): Call totalordermag.
10168         (F(totalordermag)): New function.
10169         * manual/arith.texi (FP Comparison Functions): Document
10170         totalordermag, totalordermagf and totalordermagl.
10171         * manual/libm-err-tab.pl: Update comment on interfaces without
10172         ulps tabulated.
10173         * sysdeps/ieee754/dbl-64/s_totalordermag.c: New file.
10174         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Likewise.
10175         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Likewise.
10176         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Likewise.
10177         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Likewise.
10178         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Likewise.
10179         * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c: Likewise.
10180         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10181         totalordermag.
10182         (CFLAGS-nldbl-totalordermag.c): New variable.
10183         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
10184         (do_test): Also test totalordermagl.
10185         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
10186         Likewise.
10187         * sysdeps/nacl/libm.abilist: Update.
10188         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10189         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10190         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10191         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10192         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10193         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10194         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10195         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10196         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10197         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10198         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10199         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10201         Likewise.
10202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10203         Likewise.
10204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10205         Likewise.
10206         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10207         Likewise.
10208         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10209         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10210         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10211         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10212         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10213         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10214         Likewise.
10215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10216         Likewise.
10217         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10218         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10219         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10220
10221 2016-10-14  Steve Ellcey  <sellcey@caviumnetworks.com>
10222
10223         * sysdeps/ieee754/dbl-64/e_pow.c (checkint) Make conditions explicitly
10224         boolean.
10225
10226 2016-10-13  Joseph Myers  <joseph@codesourcery.com>
10227
10228         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Instead of
10229         raising FE_INVALID with feraisexcept in case where part of
10230         argument is infinite, subtract that part of argument from itself.
10231         * math/s_cexp_template.c (M_DECL_FUNC (__cexp)): Likewise.
10232         * math/s_csin_template.c (M_DECL_FUNC (__csin)): Likewise.
10233         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10234
10235 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
10236
10237         * math/libm-test.inc (totalorder_test_data): Add more tests.
10238
10239 2016-10-12  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
10240
10241         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
10242         Undefine weak_alias and add a comment why mips64 require
10243         versioning.
10244
10245 2016-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10246
10247         [BZ #20647]
10248         * sysdeps/x86/cacheinfo.c (handle_intel): Return -1 if the
10249         maximum CPUID level is less than 2.
10250
10251 2016-10-12  Joseph Myers  <joseph@codesourcery.com>
10252
10253         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10254         (totalorder): New declaration.
10255         * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder):
10256         New macro.
10257         * math/Versions (totalorder): New libm symbol at version
10258         GLIBC_2.25.
10259         (totalorderf): Likewise.
10260         (totalorderl): Likewise.
10261         * math/Makefile (libm-calls): Add s_totalorderF.
10262         * math/gen-libm-test.pl (parse_args): Escape quotes in test name
10263         string.
10264         * math/libm-test.inc (PAYLOAD_DIG): New macro.
10265         (qnan_value_pl): Likewise.
10266         (snan_value_pl): Likewise.
10267         (qnan_value): Define using qnan_value_pl.
10268         (snan_value): Define using snan_value_pl.
10269         (struct test_ff_i_data): Add comment about which tests use this
10270         structure.
10271         (RUN_TEST_ff_b): New macro.
10272         (RUN_TEST_LOOP_ff_b): Likewise.
10273         (totalorder_test_data): New array.
10274         (totalorder_test): New function.
10275         (main): Call totalorder_test.
10276         * math/test-tgmath.c (NCALLS): Increase to 122.
10277         (F(compile_test)): Call totalorder.
10278         (F(totalorder)): New function.
10279         * manual/arith.texi (FP Comparison Functions): Document
10280         totalorder, totalorderf and totalorderl.
10281         * manual/libm-err-tab.pl: Update comment on interfaces without
10282         ulps tabulated.
10283         * sysdeps/ieee754/dbl-64/s_totalorder.c: New file.
10284         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Likewise.
10285         * sysdeps/ieee754/flt-32/s_totalorderf.c: Likewise.
10286         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Likewise.
10287         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Likewise.
10288         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Likewise.
10289         * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c: Likewise.
10290         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add
10291         totalorder.
10292         (CFLAGS-nldbl-totalorder.c): New variable.
10293         * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c: New
10294         file.
10295         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
10296         Add test-totalorderl-ldbl-128ibm.
10297         * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c: New file.
10298         * sysdeps/ieee754/ldbl-96/Makefile [$(subdir) = math] (tests): Add
10299         test-totalorderl-ldbl-96.
10300         * sysdeps/nacl/libm.abilist: Update.
10301         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10302         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10303         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10304         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10305         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10306         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10307         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10308         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10309         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10310         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10311         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10312         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10314         Likewise.
10315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10316         Likewise.
10317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10318         Likewise.
10319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10320         Likewise.
10321         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10322         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10323         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10324         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10325         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10326         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10327         Likewise.
10328         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10329         Likewise.
10330         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10331         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10332         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10333
10334 2016-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10335
10336         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sync_file_range.
10337         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c: Remove file.
10338         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c: Likewise.
10339         * sysdeps/unix/sysv/linux/sync_file_range.c: Use SYSCALL_LL64 and
10340         remove ENOSYS implementation.
10341         * sysdeps/unix/sysv/linux/tst-sync_file_range.c (sync_file_range):
10342         Consolidate all Linux implementations.
10343
10344 2016-10-11  Florian Weimer  <fweimer@redhat.com>
10345
10346         * resolv/Makefile (+cflags): Do not set -Wno-write-strings.
10347         * resolv/herror.c (herror): Cast away const-ness.
10348         * resolv/res_debug.c (__p_class_syms, __p_default_section_syms)
10349         (__p_update_section_syms, __p_type_syms, __p_rcode_syms): Likewise.
10350
10351 2016-10-11  Joseph Myers  <joseph@codesourcery.com>
10352
10353         * math/s_ccosh_template.c (M_DECL_FUNC (__ccosh)): Use M_NAN
10354         instead of M_NAN + M_NAN.
10355         * math/s_csinh_template.c (M_DECL_FUNC (__csinh)): Likewise.
10356
10357 2016-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10358
10359         * misc/getauxval.c [!HAVE_AUX_VECTOR] (__getauxval): Do not define
10360         unused variable 'p'.
10361
10362 2016-10-09  Alan Modra  <amodra@gmail.com>
10363             Andreas Schwab  <schwab@linux-m68k.org>
10364
10365         [BZ #20554]
10366         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount)
10367         [PIC && !SHARED]: Set up PIC register for PLT call.
10368
10369 2016-10-07  Joseph Myers  <joseph@codesourcery.com>
10370
10371         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): Define
10372         conditional on value of [__FLT_EVAL_METHOD__].
10373         * math/test-iseqsig-excess-precision.c: New file.
10374         * math/Makefile (tests): Add test-iseqsig-excess-precision.
10375
10376 2016-10-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10377
10378         * math/s_iseqsig_template.c: Include math-private.h.
10379
10380         * posix/Makefile (tests): Add tst-posix_fadvise and tst-posix_fadvise64.
10381         * posix/tst-posix_fadvise.c: New file.
10382         * posix/tst-posix_fadvise64.c: Likewise.
10383         * posix/tst-posix_fadvise-common.c: Likewise.
10384         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10385         (__ASSUME_FADVISE64_64_6ARG): Define.
10386         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
10387         [!__powerpc64__] (__ASSUME_FADVISE64_64_6ARG): Define.
10388         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10389         [!LP64] (__ASSUME_FADVISE64_64_NO_ALIGN): Define.
10390         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c: Remove file.
10391         * sysdeps/unix/sysv/linux/generic/wordsize-32/posix_fadvise.c: Likewise.
10392         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Likewise.
10393         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise.c: Likewise.
10394         * sysdeps/unix/sysv/linux/mips/mips32/posix_fadvise64.c: Likewise.
10395         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise.c: Likewise.
10396         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fadvise64.c: Likewise.
10397         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c: Likewise.
10398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise.c: Likewise.
10399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c:
10400         Likewise.
10401         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c: Likewise.
10402         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise64.c: Likewise.
10403         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
10404         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10405         Alias to __posix_fadvise64_l32.
10406         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l32]:
10407         Add compat definition to posix_fadvise64.
10408         (SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3) [__posix_fadvise64_l64]:
10409         Add versioned definition to posix_fadvise64.
10410         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Build iff
10411         __OFF_T_MATCHES_OFF64_T is defined, use INTERNAL_SYSCALL_CALL, add
10412         __ASSUME_FADVISE64_64_6ARG/__ASSUME_FADVISE64_64_NO_ALIGN support.
10413         * sysdeps/unix/sysv/linux/posix_fadvise64.c (posix_fadvise64): Add
10414         __ASSUME_FADVISE64_64_NO_ALIGN support and use INTERNAL_SYSCALL_CALL.
10415
10416         * io/Makefile (tests): Add tst-posix_fallocate and
10417         tst-posix_fallocate64.
10418         * io/tst-posix_fallocate-common.c: New file.
10419         * io/tst-posix_fallocate.c: Likewise.
10420         * io/tst-posix_fallocate64.c: Likewise.
10421         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove
10422         file.
10423         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c:
10424         Likewise.
10425         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise.
10426         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c:
10427         Likewise.
10428         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise.
10429         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise.
10430         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use
10431         SYSCALL_LL to pass both offset and len arguments.
10432         * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64):
10433         Likewise.
10434         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add
10435         __libc_pwrite64 alias used by posix_fallocate64.
10436
10437         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10438         tst-fallocate64.
10439         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10440         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10441         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10442         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10443         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10444         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10445         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10446         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10447         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10448         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10449         macro on offset argument.
10450         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10451         SYSCALL_LL64 on offset argument.
10452
10453         * sysdeps/unix/sysv/linux/Makefile (test): Add tst-fallocate and
10454         tst-fallocate64.
10455         * sysdeps/unix/sysv/linux/tst-fallocate.c: New file.
10456         * sysdeps/unix/sysv/linux/tst-fallocate64.c: Likewise.
10457         * sysdeps/unix/sysv/linux/tst-fallocate-common.c: Likewise.
10458         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c: Remove file.
10459         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c: Likewise.
10460         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate.c: Likewise.
10461         * sysdeps/unix/sysv/linux/mips/mips64/n64/fallocate64.c: Likewise.
10462         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10463         * sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: Likewise.
10464         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Use SYSCALL_LL
10465         macro on offset argument.
10466         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Use
10467         SYSCALL_LL64 on offset argument.
10468         * test-skeleton.c (FAIL_RET): Add macro.
10469         (FAIL_EXIT): Likewise.
10470         (FAIL_EXIT1): Likewise.
10471         (_FAIL): Likewise.
10472
10473 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10474
10475         [BZ #20629]
10476         resolv: Remove RES_USEBSTRING and its implementation.
10477         * resolv/resolv.h (RES_USEBSTRING): Remove.
10478         * resolv/ns_name.c (NS_TYPE_ELT, DNS_LABELTYPE_BITSTRING)
10479         (digitvalue, encode_bitstring, decode_bitstring): Remove.
10480         (ns_name_ntop, ns_name_pton, ns_name_unpack, ns_name_skip)
10481         (labellen): Remove extended label types support.
10482         * resolv/res_debug.c (p_option): Remove RES_USEBSTRING handling.
10483         * resolv/res_init.c (res_setoptions): Likewise.
10484         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10485
10486 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10487
10488         resolv: Remove RES_NOIP6DOTINT and its implementation.
10489         * resolv/resolv.h (RES_DEFAULT): Remove RES_NOIP6DOTINT.
10490         (RES_NOIP6DOTINT): Remove.
10491         * resolv/gethnamaddr.c (gethostbyaddr): Remove RES_NOIP6DOTINT
10492         handling.
10493         * resolv/res_debug.c (p_option): Likewise.
10494         * resolv/res_init.c (res_setoptions): Likewise.
10495         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Likewise.
10496
10497 2016-10-07  Florian Weimer  <fweimer@redhat.com>
10498
10499         resolv: Deprecate unimplemented flags.
10500         * misc/sys/cdefs.h (__glibc_macro_warning1)
10501         (__glibc_macro_warning): Define.
10502         * resolv/resolv.h (RES_AAONLY, RES_PRIMARY, RES_NOCHECKNAME)
10503         (RES_KEEPTSIG): Mark as deprecated.
10504         * resolv/res_debug.c (p_option): Remove RES_AAONLY, RES_PRIMARY,
10505         RES_NOCHECKNAME, RES_KEEPTSIG.
10506         * resolv/res_init.c (res_setoptions): Remove RES_NOCHECKNAME handling.
10507
10508 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10509
10510         * nptl/pt-longjmp.c (DEFINE_LONGJMP): Use libc_ifunc macro.
10511         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c (longjmp, siglongjmp):
10512         Use strong_alias to create symbols for glibc verison 2.19.
10513
10514 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10515
10516         * nptl/pt-vfork.c (DEFINE_VFORK): Use libc_ifunc macro.
10517
10518 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10519
10520         * nptl/pt-system.c (system_ifunc): Use libc_ifunc macro.
10521
10522 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10523
10524         * rt/clock-compat.c (COMPAT_REDIRECT): Use libc_ifunc macro.
10525
10526 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10527
10528         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10529         Use libc_ifunc_hidden and libc_hidden_def macro. Redirect ifunced function
10530         in header for using it as type for ifunc function because __GI_* symbols
10531         for ppc32 do not target the ifunc symbols.
10532         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10533
10534 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10535
10536         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
10537         Use libc_ifunc_hidden macro. Use libc_hidden_def instead of
10538         libc_ifunc_hidden_def.
10539         * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
10540         * sysdeps/unix/sysv/linux/i386/gettimeofday.c (__gettimeofday):
10541         Redirect ifunced function in header for using it as type of ifunc'ed
10542         function. Redefine libc_hidden_def to use fallback non ifunc'ed
10543         function for __GI_* symbol.
10544         * sysdeps/unix/sysv/linux/i386/time.c (time): Likewise.
10545         * include/libc-symbols.h
10546         (libc_ifunc_hidden_def, libc_ifunc_hidden_def1): Delete macro.
10547
10548 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10549
10550         [BZ #20478]
10551         * sysdeps/s390/multiarch/ifunc-resolve.h
10552         (s390_vx_libc_ifunc2, s390_libc_ifunc): Use __ifunc from libc-symbols.h
10553         to create ifunc symbols.
10554         (s390_vx_libc_ifunc_init, s390_vx_libc_ifunc_redirected
10555         , s390_vx_libc_ifunc2_redirected, s390_libc_ifunc_init): New define.
10556         * sysdeps/s390/multiarch/memchr.c: Redirect ifunced function in header
10557         for using it as type for ifunc function.
10558         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
10559         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
10560         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
10561         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
10562         * sysdeps/s390/multiarch/strcat.c: Likewise.
10563         * sysdeps/s390/multiarch/strchr.c: Likewise.
10564         * sysdeps/s390/multiarch/strcmp.c: Likewise.
10565         * sysdeps/s390/multiarch/strcpy.c: Likewise.
10566         * sysdeps/s390/multiarch/strcspn.c: Likewise.
10567         * sysdeps/s390/multiarch/strlen.c: Likewise.
10568         * sysdeps/s390/multiarch/strncmp.c: Likewise.
10569         * sysdeps/s390/multiarch/strncpy.c: Likewise.
10570         * sysdeps/s390/multiarch/strnlen.c: Likewise.
10571         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
10572         * sysdeps/s390/multiarch/strrchr.c: Likewise.
10573         * sysdeps/s390/multiarch/strspn.c: Likewise.
10574         * sysdeps/s390/multiarch/wcschr.c: Likewise.
10575         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
10576         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
10577         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
10578         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
10579         * sysdeps/s390/multiarch/wmemset.c: Likewise.
10580         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
10581         * sysdeps/s390/s390-32/multiarch/memcpy.c: Likewise.
10582         * sysdeps/s390/s390-32/multiarch/memset.c: Likewise.
10583         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
10584         * sysdeps/s390/s390-64/multiarch/memcpy.c: Likewise.
10585         * sysdeps/s390/s390-64/multiarch/memset.c: Likewise.
10586
10587 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10588
10589         * include/libc-symbols.h (__ifunc_resolver):
10590         New macro is used by __ifunc* macros.
10591         (__ifunc): New macro uses gcc attribute ifunc or inline assembly
10592         depending on HAVE_GCC_IFUNC.
10593         (libc_ifunc, libm_ifunc): Use __ifunc as base macro.
10594         (libc_ifunc_redirected, libc_ifunc_hidden, libm_ifunc_init): New macro.
10595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
10596         Redirect ifunced function in header for using as type for ifunc function.
10597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
10598         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
10599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
10600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
10601         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
10602         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
10603         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
10604         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
10605         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
10606         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
10607         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
10608         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
10609         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
10610         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
10611         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
10612         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
10613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
10614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
10615         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
10616         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
10617         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
10618         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
10619         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
10620         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
10621         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
10622         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
10623         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
10624         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
10625         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
10626         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
10627         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
10628         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: Likewise.
10629         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
10630         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c:
10631         Add libc_hidden_def() and use libc_ifunc_hidden() macro
10632         instead of libc_ifunc() macro.
10633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
10634         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
10635
10636 2016-10-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
10637
10638         * config.h.in (HAVE_GCC_IFUNC): New undef.
10639         * configure.ac: Add check if gcc supports attribute ifunc feature.
10640         * configure: Regenerated.
10641         * manual/install.texi: Add recommendation for gcc with
10642         indirect-function support.
10643         * INSTALL: Regenerated.
10644
10645 2016-10-06  Joseph Myers  <joseph@codesourcery.com>
10646
10647         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iseqsig): New
10648         macro.
10649         * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
10650         (__iseqsig): New declaration.
10651         * math/s_iseqsig_template.c: New file.
10652         * math/Versions (__iseqsigf): New libm symbol at version
10653         GLIBC_2.25.
10654         (__iseqsig): Likewise.
10655         (__iseqsigl): Likewise.
10656         * math/libm-test.inc (iseqsig_test_data): New array.
10657         (iseqsig_test): New function.
10658         (main): Call iseqsig_test.
10659         * math/Makefile (gen-libm-calls): Add s_iseqsigF.
10660         * manual/arith.texi (FP Comparison Functions): Document iseqsig.
10661         * manual/libm-err-tab.pl: Update comment on interfaces without
10662         ulps tabulated.
10663         * sysdeps/generic/fix-fp-int-compare-invalid.h: New file.
10664         * sysdeps/powerpc/fpu/fix-fp-int-compare-invalid.h: Likewise.
10665         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h: Likewise.
10666         * sysdeps/nacl/libm.abilist: Update.
10667         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
10668         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
10669         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
10670         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
10671         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
10672         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10673         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
10674         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10675         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
10676         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
10677         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
10678         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
10679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10680         Likewise.
10681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10682         Likewise.
10683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10684         Likewise.
10685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10686         Likewise.
10687         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
10688         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
10689         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
10690         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
10691         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
10692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
10693         Likewise.
10694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
10695         Likewise.
10696         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
10697         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10698         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10699
10700 2016-10-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10701
10702         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute, do_sincos_1,
10703         do_sincos_2, sloww, sloww1): Update comments.
10704
10705         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Adjust calls to
10706         do_sincos_1 and do_sincos_2 to pass a boolean shift_quadrant.
10707
10708         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Make
10709         K boolean and rename it.
10710         (__sin): Adjust.
10711         (__cos): Adjust.
10712
10713 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10714             Siddhesh Poyarekar  <siddhesh@sourceware.org>
10715
10716         * manual/nss.texi: Fix typos in the manual.
10717
10718 2016-10-06  Rical Jasan  <ricaljasan@pacific.net>
10719
10720         * manual/contrib.texi: Fix typos in the manual.
10721
10722         * manual/maint.texi: Fix typos in the manual.
10723
10724         * manual/install.texi: Fix typos in the manual.
10725         * INSTALL: Regenerated.
10726
10727         * manual/lang.texi: Fix typos in the manual.
10728
10729         * manual/probes.texi: Fix typos in the manual.
10730
10731         * manual/threads.texi: Fix typos in the manual.
10732
10733         * manual/debug.texi: Fix typos in the manual.
10734
10735         * manual/crypt.texi: Fix typos in the manual.
10736
10737         * manual/conf.texi: Fix typos in the manual.
10738
10739         * manual/sysinfo.texi: Fix typos in the manual.
10740
10741         * manual/users.texi: Fix typos in the manual.
10742
10743         * manual/job.texi: Fix typos in the manual.
10744
10745         * manual/process.texi: Fix typos in the manual.
10746
10747         * manual/argp.texi: Fix typos in the manual.
10748         * manual/getopt.texi: Likewise.
10749         * manual/startup.texi: Likewise.
10750
10751         * manual/signal.texi: Fix typos in the manual.
10752
10753         * manual/setjmp.texi: Fix typos in the manual.
10754
10755         * manual/resource.texi: Fix typos in the manual.
10756
10757         * manual/time.texi: Fix typos in the manual.
10758
10759         * manual/arith.texi: Fix typos in the manual.
10760
10761         * manual/math.texi: Fix typos in the manual.
10762
10763         * manual/syslog.texi: Fix typos in the manual.
10764
10765         * manual/terminal.texi: Fix typos in the manual.
10766
10767         * manual/socket.texi: Fix typos in the manual.
10768
10769         * manual/filesys.texi: Fix typos in the manual.
10770
10771         * manual/llio.texi: Fix typos in the manual.
10772
10773         * manual/stdio.text: Fix typos in the manual.
10774
10775 2016-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10776
10777         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Check N
10778         instead of K1.
10779
10780         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Rename K to
10781         SHIFT_QUADRANT and make it bool.
10782         (do_sincos_2): Likewise.
10783         (sloww): Likewise.
10784         (sloww1): Likewise.
10785         (__sin): Adjust calls to do_sincos_1 and do_sincos_2.
10786         (__cos): Likewise.
10787
10788 2016-10-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10789
10790         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
10791
10792 2016-10-04  Joseph Myers  <joseph@codesourcery.com>
10793
10794         * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
10795         Define to __WORDSIZE, not conditional on [LONG_MAX ==
10796         0x7fffffffL].
10797         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
10798
10799 2016-10-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10800
10801         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
10802         inline by __inline__.
10803         (__ppc_yield, __ppc_mdoio, __ppc_mdoom, __ppc_set_ppr_med): Likewise.
10804         (__ppc_set_ppr_med_low, __ppc_set_ppr_low): Likewise.
10805         (__ppc_set_ppr_very_low, __ppc_set_ppr_med_high): Likewise.
10806         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Require
10807         sigset_t from signal.h.
10808         * sysdeps/unix/sysv/linux/powerpc/sys/user.h: Include stddef.h,
10809         which is already required.
10810
10811 2016-10-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
10812
10813         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10814
10815 2016-10-03  Joseph Myers  <joseph@codesourcery.com>
10816
10817         * sysdeps/gnu/netinet/tcp.h (TCP_REPAIR_WINDOW): New macro.
10818         (struct tcp_repair_window): New type.
10819
10820 2016-10-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10821
10822         * libio/tst-memstream3.c: Include string.h.
10823
10824 2016-09-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10825
10826         [BZ #18241]
10827         [BZ #20181]
10828         * libio/Makefile (test): Add tst-memstream3 and tst-wmemstream3.
10829         * libio/memstream.c (_IO_mem_sync): Only append a null byte if
10830         write position is at the end the buffer.
10831         * libio/wmemstream.c (_IO_wmem_sync): Likewise.
10832         * libio/strops.c (_IO_str_switch_to_get_mode): New function.
10833         (_IO_str_seekoff): Set correct offset from negative displacement and
10834         set EINVAL for invalid ones.
10835         * libio/wstrops.c (enlarge_userbuf): Use correct function to calculate
10836         buffer length.
10837         (_IO_wstr_switch_to_get_mode): New function.
10838         (_IO_wstr_seekoff): Set correct offset from negative displacement and
10839         set EINVAL for invalid ones.
10840         * libio/tst-memstream3.c: New file.
10841         * libio/tst-wmemstream3.c: Likewise.
10842         * manual/examples/memstrm.c: Remove warning when priting size_t.
10843
10844 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10845
10846         * sysdeps/ieee754/dbl-64/dla.h [__FP_FAST_FMA] (DLA_FMS): Define
10847         macro to use __builtin_fma.
10848         * sysdeps/x86_64/fpu/dla.h: Remove file.
10849
10850         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
10851         [__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
10852         [__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.
10853
10854 2016-09-30  Carlos O'Donell  <carlos@redhat.com>
10855
10856         [BZ #20292]
10857         * elf/Makefile (routines): Add dl-addr-obj.
10858         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests): Add
10859         tst-_dl_addr_inside_object.
10860         [ifeq (yesyes,$(have-fpie)$(build-shared))] (tests-pie): Likewise.
10861         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10862         ($(objpfx)tst-_dl_addr_inside_object): Add $(objpfx)dl-addr-obj.os.
10863         [ifeq (yesyes,$(have-fpie)$(build-shared))]
10864         (CFLAGS-tst-_dl_addr_inside_object.c): Add $(PIE-ccflag).
10865         * elf/dl-addr.c: Remove _dl_addr_inside_object function.
10866         * elf/dl-open.c: Likewise.
10867         * elf/dl-addr-obj.c: New file.
10868         * elf/tst-_dl_addr_inside_object.c: New file.
10869
10870 2016-09-30  Joseph Myers  <joseph@codesourcery.com>
10871
10872         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Include
10873         <bits/iscanonical.h>.
10874         * bits/iscanonical.h: New file.
10875         * math/s_iscanonicall.c: Likewise.
10876         * math/Versions (__iscanonicall): New libm symbol at version
10877         GLIBC_2.25.
10878         * math/libm-test.inc (iscanonical_test_data): New array.
10879         (iscanonical_test): New function.
10880         (main): Call iscanonical_test.
10881         * math/Makefile (headers): Add bits/iscanonical.h.
10882         (type-ldouble-routines): Add s_iscanonicall.
10883         * manual/arith.texi (Floating Point Classes): Document
10884         iscanonical.
10885         * manual/libm-err-tab.pl: Update comment on interfaces without
10886         ulps tabulated.
10887         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h: New file.
10888         * sysdeps/ieee754/ldbl-128ibm/s_iscanonicall.c: Likewise.
10889         * sysdeps/ieee754/ldbl-128ibm/test-iscanonical-ldbl-128ibm.c:
10890         Likewise.
10891         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
10892         test-iscanonical-ldbl-128ibm.
10893         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h: New file.
10894         * sysdeps/ieee754/ldbl-96/s_iscanonicall.c: Likewise.
10895         * sysdeps/ieee754/ldbl-96/test-iscanonical-ldbl-96.c: Likewise.
10896         * sysdeps/ieee754/ldbl-96/Makefile: Likewise.
10897         * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10898         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
10899         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
10900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
10901         Likewise.
10902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
10903         Likewise.
10904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
10905         Likewise.
10906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
10907         Likewise.
10908         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
10909         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
10910
10911 2016-09-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10912
10913         * string/bits/string3.h: Remove C++ style comments.
10914
10915 2016-09-29  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10916
10917         * sysdeps/ieee754/dbl-64/s_sin.c (do_sincos_1): Use copysign
10918         instead of ternary condition.
10919         (do_sincos_2): Likewise.
10920         (__sin): Likewise.
10921         (__cos): Likewise.
10922         (slow): Likewise.
10923         (sloww): Likewise.
10924         (sloww1): Likewise.
10925         (bsloww): Likewise.
10926         (bsloww1): Likewise.
10927
10928         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): use copysign
10929         instead of ternary condition.
10930         (do_sin_slow): Likewise.
10931         (do_sincos_1): Likewise.
10932         (do_sincos_2): Likewise.
10933         (__cos): Likewise.
10934         (sloww): Likewise.
10935         (sloww1): Likewise.
10936         (sloww2): Likewise.
10937         (bsloww): Likewise.
10938         (bsloww1): Likewise.
10939         (bsloww2): Likewise.
10940
10941         * sysdeps/ieee754/dbl-64/s_sin.c (slow1): Consolidate sign
10942         check from here...
10943         (slow2): ... and here...
10944         (__sin): ... to here.
10945
10946 2016-09-28  Joseph Myers  <joseph@codesourcery.com>
10947
10948         * math/math.h
10949         [__GLIBC_USE (IEC_60559_BFP_EXT) && !__SUPPORT_SNAN__] (iszero):
10950         Cast argument to its own type.
10951         * math/test-iszero-excess-precision.c: New file.
10952         * math/Makefile (tests): Add test-iszero-excess-precision.
10953         (CFLAGS-test-iszero-excess-precision.c): New variable.
10954
10955 2016-09-28  Rasmus Villemoes <rv@rasmusvillemoes.dk>
10956
10957         * sysdeps/unix/sysv/linux/spawni.c (posix_spawn_args): Remove pipe
10958         field, add err field.
10959         (__spawni_child): Report error through err member instead of pipe.
10960         (__spawnix): Likewise.
10961
10962 2016-09-28  Zack Weinberg  <zackw@panix.com>
10963
10964         * scripts/check-installed-headers.sh: Generalize treatment of
10965         sys/elf.h to all target architectures.
10966
10967         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Restore accidentally-
10968         deleted typedef ucontext_t.
10969
10970 2016-09-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10971
10972         * sysdeps/unix/sysdep.h (__INTERNAL_SYSCALL0): New macro.
10973         (__INTERNAL_SYSCALL1): Likewise.
10974         (__INTERNAL_SYSCALL2): Likewise.
10975         (__INTERNAL_SYSCALL3): Likewise.
10976         (__INTERNAL_SYSCALL4): Likewise.
10977         (__INTERNAL_SYSCALL5): Likewise.
10978         (__INTERNAL_SYSCALL6): Likewise.
10979         (__INTERNAL_SYSCALL7): Likewise.
10980         (__INTERNAL_SYSCALL_NARGS_X): Likewise.
10981         (__INTERNAL_SYSCALL_NARGS): Likewise.
10982         (__INTERNAL_SYSCALL_DISP): Likewise.
10983         (INTERNAL_SYSCALL_CALL): Likewise.
10984         (__SYSCALL0): Rename to __INLINE_SYSCALL0.
10985         (__SYSCALL1): Rename to __INLINE_SYSCALL1.
10986         (__SYSCALL2): Rename to __INLINE_SYSCALL2.
10987         (__SYSCALL3): Rename to __INLINE_SYSCALL3.
10988         (__SYSCALL4): Rename to __INLINE_SYSCALL4.
10989         (__SYSCALL5): Rename to __INLINE_SYSCALL5.
10990         (__SYSCALL6): Rename to __INLINE_SYSCALL6.
10991         (__SYSCALL7): Rename to __INLINE_SYSCALL7.
10992         (__SYSCALL_NARGS_X): Rename to __INLINE_SYSCALL_NARGS_X.
10993         (__SYSCALL_NARGS): Rename to __INLINE_SYSCALL_NARGS.
10994         (__SYSCALL_DISP): Rename to __INLINE_SYSCALL_DISP.
10995         (__SYSCALL_CALL): Rename to INLINE_SYSCALL_CALL.
10996         (SYSCALL_CANCEL): Replace __SYSCALL_CALL with INLINE_SYSCALL_CALL.
10997
10998 2016-09-23  Joseph Myers  <joseph@codesourcery.com>
10999
11000         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (iszero): New
11001         macro.
11002         * math/libm-test.inc (iszero_test_data): New array.
11003         (iszero_test): New function.
11004         (main): Call iszero_test.
11005         * manual/arith.texi (Floating Point Classes): Document iszero.
11006         * manual/libm-err-tab.pl: Update comment on interfaces without
11007         ulps tabulated.
11008
11009 2016-09-23  Zack Weinberg  <zackw@panix.com>
11010
11011         * scripts/check-installed-headers.sh: New script.
11012         * Rules: In each directory that defines header files to be installed,
11013         run check-installed-headers.sh on them as a special test.
11014         * Makefile: Likewise for the headers installed at top level.
11015
11016         * include/aliases.h, include/alloca.h, include/argz.h
11017         * include/arpa/nameser.h, include/arpa/nameser_compat.h
11018         * include/elf.h, include/envz.h, include/err.h
11019         * include/execinfo.h, include/fpu_control.h, include/getopt.h
11020         * include/gshadow.h, include/ifaddrs.h, include/libintl.h
11021         * include/link.h, include/malloc.h, include/mcheck.h
11022         * include/mntent.h, include/netinet/ether.h
11023         * include/nss.h, include/obstack.h, include/printf.h
11024         * include/pty.h, include/resolv.h, include/rpc/auth.h
11025         * include/rpc/auth_des.h, include/rpc/auth_unix.h
11026         * include/rpc/clnt.h, include/rpc/des_crypt.h
11027         * include/rpc/key_prot.h, include/rpc/netdb.h
11028         * include/rpc/pmap_clnt.h, include/rpc/pmap_prot.h
11029         * include/rpc/pmap_rmt.h, include/rpc/rpc.h
11030         * include/rpc/rpc_msg.h, include/rpc/svc.h
11031         * include/rpc/svc_auth.h, include/rpc/xdr.h
11032         * include/rpcsvc/nis_callback.h, include/rpcsvc/nislib.h
11033         * include/rpcsvc/yp.h, include/rpcsvc/ypclnt.h
11034         * include/rpcsvc/ypupd.h, include/shadow.h
11035         * include/stdio_ext.h, include/sys/epoll.h
11036         * include/sys/file.h, include/sys/gmon.h, include/sys/ioctl.h
11037         * include/sys/prctl.h, include/sys/profil.h
11038         * include/sys/statfs.h, include/sys/sysctl.h
11039         * include/sys/sysinfo.h, include/ttyent.h, include/utmp.h
11040         * sysdeps/arm/nacl/include/bits/setjmp.h
11041         * sysdeps/mips/include/sys/asm.h
11042         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h
11043         * sysdeps/unix/sysv/linux/include/sys/timex.h
11044         * sysdeps/x86/fpu/include/bits/fenv.h:
11045         Add #ifndef _ISOMAC guard around internal declarations.
11046         Add multiple-inclusion guard if not already present.
11047
11048 2016-09-23  Zack Weinberg  <zackw@panix.com>
11049
11050         * sysdeps/generic/sys/ucontext.h
11051         * sysdeps/arm/sys/ucontext.h
11052         * sysdeps/i386/sys/ucontext.h
11053         * sysdeps/m68k/sys/ucontext.h
11054         * sysdeps/mips/sys/ucontext.h
11055         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
11056         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
11057         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h
11058         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
11059         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
11060         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
11061         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h
11062         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
11063         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
11064         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h
11065         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h
11066         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
11067         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h
11068         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h:
11069         Include both bits/sigcontext.h and bits/sigstack.h.
11070         Fix grammar error in comment, if present.
11071
11072         * bits/sigstack.h
11073         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h
11074         * sysdeps/unix/sysv/linux/alpha/bits/sigstack.h
11075         * sysdeps/unix/sysv/linux/bits/sigstack.h
11076         * sysdeps/unix/sysv/linux/ia64/bits/sigstack.h
11077         * sysdeps/unix/sysv/linux/mips/bits/sigstack.h
11078         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h
11079         * sysdeps/unix/sysv/linux/sparc/bits/sigstack.h
11080         * bits/sigcontext.h
11081         * sysdeps/mach/hurd/i386/bits/sigcontext.h
11082         * sysdeps/unix/sysv/linux/bits/sigcontext.h
11083         * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h
11084         * sysdeps/unix/sysv/linux/sparc/bits/sigcontext.h:
11085         Add multiple inclusion guard.  Permit inclusion by sys/ucontext.h
11086         as well as signal.h, if this was not already allowed.  Request
11087         definition of size_t if necessary.  Minimize semantically-null
11088         differences across files.
11089
11090 2016-09-23  Zack Weinberg  <zackw@panix.com>
11091
11092         * time/time.h, bits/time.h, sysdeps/unix/sysv/linux/bits/time.h:
11093         Remove all logic conditional on __need macros.  Move all the
11094         conditionally defined types to their own headers...
11095         * time/bits/types/clock_t.h: Define clock_t here.
11096         * time/bits/types/clockid_t.h: Define clockid_t here.
11097         * time/bits/types/struct_itimerspec.h: Define struct itimerspec here.
11098         * time/bits/types/struct_timespec.h: Define struct timespec here.
11099         * time/bits/types/struct_timeval.h: Define struct timeval here.
11100         * time/bits/types/struct_tm.h: Define struct tm here.
11101         * time/bits/types/time_t.h: Define time_t here.
11102         * time/bits/types/timer_t.h: Define timer_t here.
11103         * time/Makefile: Install the new headers.
11104
11105         * bits/resource.h, io/fcntl.h, io/sys/poll.h, io/sys/stat.h
11106         * io/utime.h, misc/sys/select.h, posix/sched.h, posix/sys/times.h
11107         * posix/sys/types.h, resolv/netdb.h, rt/aio.h, rt/mqueue.h
11108         * signal/signal.h, pthread/semaphore.h, sysdeps/nptl/pthread.h
11109         * sysdeps/unix/sysv/linux/alpha/bits/resource.h
11110         * sysdeps/unix/sysv/linux/alpha/sys/acct.h
11111         * sysdeps/unix/sysv/linux/bits/resource.h
11112         * sysdeps/unix/sysv/linux/bits/timex.h
11113         * sysdeps/unix/sysv/linux/mips/bits/resource.h
11114         * sysdeps/unix/sysv/linux/net/ppp_defs.h
11115         * sysdeps/unix/sysv/linux/sparc/bits/resource.h
11116         * sysdeps/unix/sysv/linux/sys/acct.h
11117         * sysdeps/unix/sysv/linux/sys/timerfd.h
11118         * sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h
11119         * time/sys/time.h, time/sys/timeb.h
11120         Use the new bits/types headers.
11121
11122         * include/time.h: Remove __need logic.
11123         * include/bits/time.h
11124         * include/bits/types/clock_t.h, include/bits/types/clockid_t.h
11125         * include/bits/types/time_t.h, include/bits/types/timer_t.h
11126         * include/bits/types/struct_itimerspec.h
11127         * include/bits/types/struct_timespec.h
11128         * include/bits/types/struct_timeval.h
11129         * include/bits/types/struct_tm.h:
11130         New wrapper headers.
11131
11132 2016-09-23  Zack Weinberg  <zackw@panix.com>
11133
11134         * sysdeps/mach/hurd/net/if_ppp.h
11135         * sysdeps/unix/sysv/linux/net/if_ppp.h:
11136         Only define struct ifpppstatsreq and struct ifpppcstatsreq
11137         if __USE_MISC is defined, to ensure struct ifreq is declared.
11138
11139         * inet/netinet/ether.h: Condition all function prototypes
11140         on __USE_MISC, to ensure struct ether_addr is declared.
11141
11142         * socket/bits/types/struct_osockaddr.h: New header.
11143         * include/bits/types/struct_osockaddr.h: New wrapper.
11144         * socket/Makefile: Install the new header.
11145         * socket/sys/socket.h, inet/protocols/talkd.h:
11146         Refer to bits/types/struct_osockaddr.h for the definition of
11147         struct osockaddr.
11148
11149 2016-09-23  Zack Weinberg  <zackw@panix.com>
11150
11151         * bits/in.h, gmon/sys/gmon.h, inet/netinet/igmp.h
11152         * inet/protocols/routed.h, inet/protocols/talkd.h
11153         * inet/protocols/timed.h, io/fts.h, nptl_db/thread_db.h
11154         * resolv/arpa/nameser.h, resolv/resolv.h, sunrpc/rpc/rpc_des.h
11155         * sysdeps/generic/netinet/if_ether.h
11156         * sysdeps/generic/netinet/in_systm.h
11157         * sysdeps/generic/netinet/ip.h, sysdeps/generic/netinet/tcp.h
11158         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
11159         * sysdeps/gnu/netinet/udp.h, sysdeps/mach/hurd/net/ethernet.h
11160         * sysdeps/mach/hurd/net/if_arp.h
11161         * sysdeps/mach/hurd/net/if_ppp.h
11162         * sysdeps/mach/hurd/net/route.h, sysdeps/mach/sys/reboot.h
11163         * sysdeps/unix/sysv/linux/bits/in.h
11164         * sysdeps/unix/sysv/linux/net/ethernet.h
11165         * sysdeps/unix/sysv/linux/net/if_arp.h
11166         * sysdeps/unix/sysv/linux/net/if_ppp.h
11167         * sysdeps/unix/sysv/linux/net/if_shaper.h
11168         * sysdeps/unix/sysv/linux/net/route.h
11169         * sysdeps/unix/sysv/linux/netinet/if_ether.h
11170         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
11171         * sysdeps/unix/sysv/linux/netinet/if_tr.h
11172         * sysdeps/unix/sysv/linux/netipx/ipx.h
11173         * sysdeps/unix/sysv/linux/sys/acct.h
11174         * include/arpa/nameser.h, include/resolv.h:
11175         Change all uses of u_char to unsigned char,
11176         u_short and ushort to unsigned short, u_int and uint to unsigned int,
11177         u_long and ulong to unsigned long, u_int8_t to uint8_t,
11178         u_int16_t to uint16_t, u_int32_t to uint32_t, quad_t to int64_t,
11179         and u_int64_t and u_quad_t to uint64_t.
11180
11181         * mach/sys/reboot.h: Remove two casts of integer literals
11182         to the types they already have.
11183
11184         * bits/in.h: Correct error in description of IP_MULTICAST_LOOP.
11185         * sysdeps/unix/sysv/linux/bits/in.h: Likewise.
11186         * sysdeps/unix/sysv/linux/netinet/if_ether.h: Change a comment
11187         from referring to 'unsigned char' to 'uint8_t' for consistency with
11188         the macro definition below.
11189
11190         * gmon/sys/gmon.h, inet/netinet/igmp.h, inet/protocols/talkd.h
11191         * io/fts.h, resolv/arpa/nameser.h, resolv/resolv.h
11192         * sunrpc/rpc/rpc_des.h, sysdeps/generic/netinet/ip.h
11193         * sysdeps/gnu/netinet/tcp.h, sysdeps/gnu/netinet/udp.h
11194         * sysdeps/mach/hurd/net/if_ppp.h, sysdeps/unix/sysv/linux/net/if_ppp.h
11195         * sysdeps/unix/sysv/linux/sys/acct.h
11196         * include/arpa/nameser.h, include/resolv.h:
11197         Fix indentation disrupted by mechanical edits.
11198
11199         * inet/protocols/talkd.h, resolv/arpa/nameser.h
11200         * sysdeps/generic/netinet/in_systm.h
11201         * sysdeps/gnu/netinet/ip_icmp.h, sysdeps/gnu/netinet/tcp.h
11202         * sysdeps/gnu/netinet/udp.h
11203         * sysdeps/unix/sysv/linux/net/ethernet.h
11204         * sysdeps/unix/sysv/linux/net/if_arp.h
11205         * sysdeps/unix/sysv/linux/net/if_ppp.h
11206         * sysdeps/unix/sysv/linux/net/if_shaper.h
11207         * sysdeps/unix/sysv/linux/netinet/if_fddi.h
11208         * sysdeps/unix/sysv/linux/netinet/if_tr.h
11209         * sysdeps/unix/sysv/linux/netipx/ipx.h
11210         * sysdeps/unix/sysv/linux/sys/acct.h
11211         Include stdint.h for uintNN_t definitions.
11212         Don't include sys/cdefs.h, features.h, or asm/types.h directly.
11213
11214 2016-09-23  Zack Weinberg  <zackw@panix.com>
11215
11216         * rpcsvc/nislib.h: Include rpcsvc/nis.h.
11217         * sysdeps/unix/sysv/linux/netrose/rose.h:
11218         Include sys/socket.h and netax25/ax25.h.
11219
11220         * inet/netinet/icmp6.h, inet/netinet/ip6.h
11221         * resolv/arpa/nameser_compat.h:
11222         Use __BYTE_ORDER etc. instead of BYTE_ORDER etc.
11223
11224         * sysdeps/unix/sysv/linux/sys/quota.h:
11225         Use __caddr_t instead of caddr_t.
11226         * sysdeps/unix/sysv/linux/sys/timerfd.h:
11227         Use __clockid_t instead of clockid_t.
11228
11229         * sysvipc/sys/ipc.h: Remove unnecessary #warning.
11230
11231         * argp/argp.h: Check whether _LIBC is defined before expanding it.
11232         * posix/glob.h: Check whether __USE_XOPEN2K8 is defined instead of
11233         expanding it.
11234
11235         * misc/sys/cdefs.h: Tidy up conditional nest defining __flexarr.
11236         Define __glibc_c99_flexarr_available to 1 when the compiler
11237         supports C99-compatible flexible array members, 0 otherwise.
11238         * sysdeps/unix/sysv/linux/bits/socket.h
11239         * sysdeps/mach/hurd/bits/socket.h
11240         * bits/socket.h: Use __glibc_c99_flexarr_available in
11241         definitions of struct cmsghdr and CMSG_DATA.
11242
11243 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11244
11245         * manual/nss.texi (NSS Modules Interface): Adjust function return
11246         type to enum nss_status.  Document errnop argument.  Clarify
11247         h_errnop semantics.  Fix cross-reference formatting.
11248         (NSS Module Function Internals): Mention that *errnop needs to be
11249         set on failure, but not to zero.
11250
11251 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11252
11253         * io/tst-open-tmpfile.c (wrap_open64, wrap_openat64)
11254         (get_random_name): New functions.
11255         (check_wrapper_flags_mode): Use linkat to give the new file a name
11256         determined by get_random_name.
11257         (do_test): Add calls to test open64 and openat64.
11258
11259 2016-09-23  Florian Weimer  <fweimer@redhat.com>
11260
11261         * test-skeleton.c: Remove #include <stdarg.h>.
11262
11263 2016-09-21  Alexandre Oliva <aoliva@redhat.com>
11264
11265         [BZ #19826]
11266         * elf/dl-tls.c (_dl_allocate_tls_init): Restore DTV early
11267         initialization of static TLS entries.
11268         * elf/dl-reloc.c (_dl_nothread_init_static_tls): Likewise.
11269         * nptl/allocatestack.c (init_one_static_tls): Likewise.
11270
11271 2016-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11272
11273         * hurd/hurdmalloc.c (malloc_fork_prepare): Rename to
11274         _hurd_malloc_fork_prepare.
11275         (malloc_fork_parent): Rename to _hurd_malloc_fork_parent.
11276         (malloc_fork_child): Rename to _hurd_malloc_fork_child.
11277         (_hurd_fork_prepare_hook): Drop malloc_fork_prepare.
11278         (_hurd_fork_parent_hook): Drop malloc_fork_parent.
11279         (_hurd_fork_child_hook): Drop malloc_fork_child.
11280         * hurd/hurdmalloc.h (_hurd_malloc_fork_prepare,
11281         _hurd_malloc_fork_parent, _hurd_malloc_fork_child): Add declarations.
11282         * sysdeps/mach/hurd/fork.c (__fork): Call __malloc_fork_lock_parent
11283         after locking locks (notably hurd_dtable_lock). Call
11284         _hurd_malloc_fork_prepare after that. Call _hurd_malloc_fork_parent
11285         before __malloc_fork_unlock_parent and _hurd_malloc_fork_child before
11286         __malloc_fork_unlock_child.
11287         * sysdeps/mach/i386/syscall.S (syscall): Push back syscall number.
11288
11289 2016-09-21  James Greenhalgh  <james.greenhalgh@arm.com>
11290
11291         * soft-fp/extendhftf2.c: New.
11292         * soft-fp/fixhfti.c: Likewise.
11293         * soft-fp/fixunshfti.c: Likewise.
11294         * soft-fp/floattihf.c: Likewise.
11295         * soft-fp/floatuntihf.c: Likewise.
11296         * soft-fp/half.h: Likewise.
11297         * soft-fp/trunctfhf2.c: Likewise.
11298
11299 2016-09-21  Joseph Myers  <joseph@codesourcery.com>
11300
11301         * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (issubnormal): New
11302         macro.
11303         * math/libm-test.inc (issubnormal_test_data): New array.
11304         (issubnormal_test): New function.
11305         * manual/arith.texi (Floating Point Classes): Document
11306         issubnormal.
11307         * manual/libm-err-tab.pl: Update comment on interfaces without
11308         ulps tabulated.
11309
11310         * sysdeps/generic/stdint.h: Define
11311         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11312         <bits/libc-header-start.h> instead of including <features.h>.
11313         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT8_WIDTH): New macro.
11314         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT8_WIDTH): Likewise.
11315         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT16_WIDTH): Likewise.
11316         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT16_WIDTH): Likewise.
11317         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT32_WIDTH): Likewise.
11318         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT32_WIDTH): Likewise.
11319         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT64_WIDTH): Likewise.
11320         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT64_WIDTH): Likewise.
11321         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST8_WIDTH): Likewise.
11322         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST8_WIDTH): Likewise.
11323         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST16_WIDTH): Likewise.
11324         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST16_WIDTH): Likewise.
11325         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST32_WIDTH): Likewise.
11326         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST32_WIDTH): Likewise.
11327         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_LEAST64_WIDTH): Likewise.
11328         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_LEAST64_WIDTH): Likewise.
11329         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST8_WIDTH): Likewise.
11330         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST8_WIDTH): Likewise.
11331         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST16_WIDTH): Likewise.
11332         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST16_WIDTH): Likewise.
11333         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST32_WIDTH): Likewise.
11334         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST32_WIDTH): Likewise.
11335         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_FAST64_WIDTH): Likewise.
11336         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_FAST64_WIDTH): Likewise.
11337         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTPTR_WIDTH): Likewise.
11338         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTPTR_WIDTH): Likewise.
11339         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INTMAX_WIDTH): Likewise.
11340         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINTMAX_WIDTH): Likewise.
11341         [__GLIBC_USE (IEC_60559_BFP_EXT)] (PTRDIFF_WIDTH): Likewise.
11342         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIG_ATOMIC_WIDTH): Likewise.
11343         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SIZE_WIDTH): Likewise.
11344         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WCHAR_WIDTH): Likewise.
11345         [__GLIBC_USE (IEC_60559_BFP_EXT)] (WINT_WIDTH): Likewise.
11346         * manual/arith.texi (Integers): Document these macros for types
11347         specified by width properties.
11348         * manual/lang.texi (Width of Type): Document these macros for
11349         other standard typedefs.
11350         * stdlib/tst-width-stdint.c: New file.
11351         * stdlib/Makefile (tests): Add tst-width-stdint.
11352
11353 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11354
11355         [BZ #20016]
11356         * resolv/res_send.c (__libc_res_nsend): Remove USE_HOOK code.
11357         * resolv/res_data.c (res_send_setqhook, res_send_setrhook):
11358         Move ...
11359         * resolv/compat-hooks.c (res_send_setqhook, res_send_setrhook):
11360         ... here, as compatibility symbols in a new file.
11361         * resolv/Makefile (libresolv-routines): Add compat-hooks.
11362         * resolv/res_init.c (__res_vinit): Adjust member names.
11363         * include/resolv.h (res_send_setqhook, res_send_setrhook): Remove.
11364         * resolv/resolv.h (res_sendhookact, res_send_qhook)
11365         (res_send_rhook): Remove.
11366         (struct __res_state): Rename qhook, rhook members.
11367
11368 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11369
11370         malloc: Use __libc_lock wrappers.
11371         * malloc/arena.c (list_lock, free_list_lock): Define using
11372         __libc_lock_define_initialized.
11373         (arena_lock): Adjust formatting.
11374         * malloc/malloc.c (struct malloc_state): Define mutex using
11375         __libc_lock_define.
11376         * sysdeps/generic/malloc-machine.h (mutex_t, mutex_init)
11377         (mutex_lock, mutex_trylock, mutex_unlock): Remove.
11378         * sysdeps/mach/hurd/malloc-machine.h (mutex_t, mutex_lock)
11379         (mutex_unlock, mutex_trylock): Remove.
11380         (__pthread_initialize): Remove unused macro.
11381         * sysdeps/nptl/malloc-machine.h (mutex_t, mutex_lock)
11382         (mutex_unlock, mutex_trylock): Remove.
11383
11384 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11385
11386         [BZ #20592]
11387         Remove RR type classification macros.
11388         * resolv/arpa/nameser.h (ns_t_qt_p, ns_t_mrr_p, ns_t_rr_p)
11389         (ns_t_udp_p, ns_t_xfr_p): Remove.
11390
11391 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11392
11393         Remove misleading version information.
11394         * resolv/arpa/nameser.h (__NAMESER): Remove.
11395         * resolv/arpa/nameser_compat.h (__BIND): Remove.
11396
11397 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11398
11399         Remove the always-defined BIND_4_COMPAT macro.
11400         * resolv/arpa/nameser.h: Unconditionally include
11401         <arpa/nameser_compat.h>.
11402         (BIND_4_COMPAT): Remove.
11403         * resolv/res_comp.c: Do not check BIND_4_COMPAT.
11404
11405 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11406
11407         [BZ #20591]
11408         Remove obsolete DNSSEC support.
11409         * resolv/arpa/nameser.h (ns_key_types, NS_KEY_*, NS_ALG_*)
11410         (NS_MD5_RSA_*, NS_DSA_*, NS_NXT_*, ns_sign, ns_sign2, ns_sign_tcp)
11411         (ns_sign_tcp2, ns_sign_tcp_init, ns_find_tsig, ns_verify)
11412         (ns_verify_tcp, ns_verify_tcp_init): Remove.
11413         (ns_cert_types): Add comment.
11414         * resolv/ns_print.c (ns_sprintrrf): Do not handle DNSSEC records
11415         separately.
11416         (KEY_RSA, KEY_HMAC_MD5, dst_s_id_calc, dst_s_get_int16)
11417         (dst_s_dns_key_id): Remove.
11418         * resolv/res_debug.c (__p_key_syms, __p_cert_syms): Remove unused
11419         variables.
11420
11421 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11422
11423         [BZ #20524]
11424         * manual/string.texi (String/Array Comparison): Clarify the
11425         strverscmp behavior.
11426
11427 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11428
11429         * test-skeleton.c (xasprintf): Add function.
11430         * io/tst-open-tmpfile.c: New test.
11431         * io/Makefile (tests): Add it.
11432
11433 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11434
11435         Avoid running $(CXX) during build to obtain header file paths.
11436         * configure.ac (CXX_SYSINCLUDES, CXX_CMATH_HEADER): Set.
11437         * config.make.in (c++-cstdlib-header, c++-cmath-header): Define.
11438         * Makerules (cstdlib, cmath): Remove variables.  Use
11439         $(c++-cstdlib-header), $(c++-cmath-header) instead.
11440         * configure: Regenerate.
11441
11442 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11443
11444         * Makeconfig (all-object-suffixes): Include .op only if
11445         $(build-profile).
11446
11447 2016-09-21  Florian Weimer  <fweimer@redhat.com>
11448
11449         * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
11450         conditionals.  Do not define PATH_MAX.
11451
11452 2016-09-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11453
11454         * posix/Makefile (tests): Add tst-spawn3.
11455         * posix/tst-spawn3.c: New file.
11456         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Close file descriptor
11457         if it is already opened for open action.
11458
11459         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
11460         all signals when executing the clone vfork child.
11461         (SIGALL_SET): Remove macro.
11462
11463         * nptl/Makefile (tests): Add tst-exec5.
11464         * nptl/tst-exec5.c: New file.
11465         * sysdeps/unix/sysv/linux/spawni.c (__spawni): Correctly enable and disable
11466         asynchronous cancellation.
11467
11468 2016-09-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11469
11470         * hurd/exc2signal.c: #include <hurd/signal.h>
11471         (_hurd_exception2signal): Replace 'exception', 'code', 'subcode',
11472         'sigcode', 'error' parameters with 'detail' parameter.  Fix code
11473         accordingly.
11474         * mach/mach_error.c (mach_error): Fix old-style function definition.
11475         * mach/errstring.c (mach_error_type, mach_error_string): Likewise.
11476
11477 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11478
11479         * math/Makefile (libm-calls): Remove s_nanF.
11480         (gen-libm-calls): Add s_nanF.
11481
11482         * math/s_nan.c: Refactor into ...
11483         * math/s_nan_template.c: New file.
11484
11485         * math/s_nanf.c: Removed.
11486         * math/s_nanl.c: Removed.
11487         * sysdeps/ieee754/ldbl-opt/s_nan.c: Removed.
11488         * sysdeps/ieee754/ldbl-opt/s_nanl.c: Removed.
11489
11490         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
11491         (LDOUBLE_nanl_libm_version): New macro.
11492
11493         * sysdeps/generic/math-type-macros-double.h:
11494         (M_STRTO_NAN): New macro.
11495         * sysdeps/generic/math-type-macros-float.h: Likewise.
11496         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
11497
11498         * sysdeps/generic/math-type-macros.h: Document
11499         M_STRTO_NAN.
11500
11501 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11502
11503         * math/s_nanf.c: Remove __nanf undef.
11504         * math/s_nan.c: Remove __nan undef.
11505         * math/s_nanl.c: Remove __nanl undef.
11506
11507         * sysdeps/generic/math_private.h (__nan): Remove macro
11508         override.
11509         (__nanf): Likewise.
11510         (__nanl): Likewise.
11511
11512 2016-09-20  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11513
11514         * math/Makefile (gen-all-calls): New variable.
11515         (generated): Replace gen-libm-calls with gen-all-calls.
11516         (gen-libm-templates.stmp): Likewise.  Also, ensure
11517         the output directory exists or is created and add
11518         dependency on the Makefile.
11519         (calls): Move s_ldexpF into gen-calls.
11520         (gen-calls): New variable.
11521
11522         * math/s_ldexpf.c: Removed.
11523         * math/s_ldexpl.c: Removed.
11524         * math/s_ldexp.c: Refactored into ...
11525         * math/s_ldexp_template.c: New file.
11526
11527         * sysdeps/generic/math-type-macros-double.h: Remove
11528         redundant fall-through definition of declare_mgen_alias.
11529         (declare_mgen_alias_2): New macro.
11530
11531         * sysdeps/generc/math-type-macros.h (declare_mgen_alias_2):
11532         New macro for function aliased to two exported symbols.
11533
11534         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Update to use
11535         new template file.
11536         sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
11537
11538 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11539
11540         * Makeconfig (all-object-suffixes): Remove .og.
11541         * Makerules (elide-routines.og): Remove.
11542         * sysdeps/i386/i686/Makefile (CFLAGS-.og, ASFLAGS-.og): Remove.
11543         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.og): Remove.
11544         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.op): Remove.
11545
11546 2016-09-20  Florian Weimer  <fweimer@redhat.com>
11547
11548         * scripts/sysd-rules.awk (BEGIN): Only generate rtld patterns for
11549         .os objects.
11550
11551 2016-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11552
11553         [BZ #20615]
11554         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Replace
11555         fpu directory by non-fpu.
11556         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Remove dependency
11557         on non-fpu directory from a fpu directory.
11558
11559 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
11560
11561         * include/limits.h: Define
11562         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
11563         <bits/libc-header-start.h> instead of including <features.h>.
11564         [__GLIBC_USE (IEC_60559_BFP_EXT)] (CHAR_WIDTH): New macro.
11565         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SCHAR_WIDTH): Likewise.
11566         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UCHAR_WIDTH): Likewise.
11567         [__GLIBC_USE (IEC_60559_BFP_EXT)] (SHRT_WIDTH): Likewise.
11568         [__GLIBC_USE (IEC_60559_BFP_EXT)] (USHRT_WIDTH): Likewise.
11569         [__GLIBC_USE (IEC_60559_BFP_EXT)] (INT_WIDTH): Likewise.
11570         [__GLIBC_USE (IEC_60559_BFP_EXT)] (UINT_WIDTH): Likewise.
11571         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH): Likewise.
11572         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
11573         [__GLIBC_USE (IEC_60559_BFP_EXT)] (LLONG_WIDTH): Likewise.
11574         [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULLONG_WIDTH): Likewise.
11575         * manual/lang.texi (Width of Type): Document these macros.
11576         * stdlib/tst-width.c: New file.
11577         * stdlib/Makefile (tests): Add tst-width.
11578
11579 2016-09-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11580
11581         * intl/dcigettext.c (PATH_MAX): Call __pathconf instead of pathconf.
11582         * sysdeps/posix/dup.c (__dup): Call __fcntl instead of fcntl.
11583
11584 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11585
11586         * nptl/sem_init.c (__new_sem_init): Init pad value to 0.
11587         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11588         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11589
11590 2016-09-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11591
11592         [BZ #18243]
11593         * rt/Makefile (test): Add tst-shm-cancel.
11594         * rt/tst-shm-cancel.c: New file.
11595         * sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
11596
11597         [BZ #18243]
11598         * nptl/pthreadP.h (__pthread_testcancel): Add prototype and hidden_proto.
11599         * nptl/pthread_testcancel.c (pthread_cancel): Add internal aliais
11600         definition.
11601         * nptl/sem_timedwait.c (sem_timedwait): Add cancellation check for
11602         uncontended case.
11603         * nptl/sem_wait.c (__new_sem_wait): Likewise.
11604         * nptl/tst-cancel12.c (cleanup): Remove wrong cancellation point.
11605         (tf): Fix check for uncontended case.
11606         (do_test): Likewise.
11607         * nptl/tst-cancel13.c (cleanup): Remove wrong cancellation point.
11608         (tf): Fix check for uncontended case.
11609         (do_test): Likewise.
11610         * nptl/tst-cancel14.c (cleanup): Remove wrong cancellation point.
11611         (tf): Fix check for uncontended case.
11612         (do_test): Likewise.
11613         * nptl/tst-cancel15.c (cleanup): Remove wrong cancellation point.
11614         (tf): Fix check for uncontended case.
11615         (do_test): Likewise.
11616
11617         * sysdeps/sparc/sparc32/sem_wait.c: Remove file.
11618         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Likewise.
11619
11620         [BZ #15765]
11621         * nptl/Makefile (tests): Add tst-sem16.
11622         * nptl/tst-sem16.c: New file.
11623         * nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
11624
11625         * nptl/sem_open.c (sem_open): Init pad value to 0.
11626         * sysdeps/sparc/sparc32/sem_open.c: Remove file.
11627         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: Likewise.
11628
11629 2016-09-15  Florian Weimer  <fweimer@redhat.com>
11630
11631         [BZ #20611]
11632         * inet/Makefile (routines): Add inet6_scopeid_pton.
11633         (tests): Add tst-inet6_scopeid_pton.
11634         * inet/inet6_scopeid_pton.c: New file.
11635         * inet/net-internal.h: Likewise.
11636         * inet/tst-inet6_scopeid_pton.c: New test.
11637         * inet/Versions (GLIBC_PRIVATE): Add __inet6_scopeid_pton.
11638         * resolv/res_init.c (__res_vinit): Use __inet6_scopeid_pton.
11639         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11640
11641 2016-09-14  Florian Weimer  <fweimer@redhat.com>
11642
11643         Remove support for compiling wrappers with PTW.
11644         * sysdeps/nptl/Makeconfig: Drop ptw- support.
11645         * nptl/Makefile (pthread-compat-wrappers): Define.
11646         (libpthread-routines): Use pthread-compat-wrappers.
11647         * sysdeps/unix/sysv/linux/alpha/Makefile
11648         (libpthread-routines, libpthread-shared-only-routines): Remove
11649         ptw- prefix.
11650         * sysdeps/s390/nptl/Makefile
11651         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11652         * sysdeps/ia64/nptl/Makefile
11653         (libpthread-routines, libpthread-shared-only-routines): Likewise.
11654         * sysdeps/nacl/Makefile (libpthread-routines): Use
11655         pthread-compat-wrappers to filter the routines list instead of the
11656         ptw- prefix.
11657
11658 2016-09-13  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11659
11660         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Wrap long double literals
11661         with L() and remove explicit suffix, convert real literals
11662         which can be equivalentally substituted with integers, and
11663         transform -L(x) to L(-x).
11664
11665         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11666         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11668         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
11671         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11673         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11674         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11675         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11676         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11678         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11679         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11680         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11681         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11683         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11685         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11686         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11687         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11688         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11689         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
11690         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11691         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11692         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11693         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11694         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11695         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11696         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11697         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11698         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11699         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11700         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11701         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11702         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11703         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11704         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11705         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11706         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11707         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11708         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11709         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11710         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11711         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11712         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
11713         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
11714         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
11715
11716 2016-09-13  Florian Weimer  <fweimer@redhat.com>
11717
11718         * resolv/res_init.c: Remove _LIBC_REENTRANT; it is always defined.
11719
11720 2016-09-10  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11721
11722         * malloc/Makefile (tests): Remove individual static test names
11723         and just add all of tests-static.
11724
11725         * csu/libc-start.c (__libc_csu_irel): Remove declaration.
11726
11727 2016-09-07  Joseph Myers  <joseph@codesourcery.com>
11728
11729         * sysdeps/powerpc/powerpc32/e500/nofpu/fetestexceptflag.c: New
11730         file.
11731
11732         * sysdeps/sparc/fpu/fegetmode.c: New file.
11733         * sysdeps/sparc/fpu/fesetmode.c: Likewise.
11734
11735         * sysdeps/sh/sh4/fpu/fegetmode.c: New file.
11736         * sysdeps/sh/sh4/fpu/fesetmode.c: Likewise.
11737
11738         * sysdeps/s390/fpu/fegetmode.c: New file.
11739         * sysdeps/s390/fpu/fesetmode.c: Likewise.
11740
11741         * sysdeps/powerpc/fpu/fegetmode.c: New file.
11742         * sysdeps/powerpc/fpu/fesetmode.c: Likewise.
11743         * sysdeps/powerpc/nofpu/fegetmode.c: Likewise.
11744         * sysdeps/powerpc/nofpu/fesetmode.c: Likewise.
11745         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetmode.c: Likewise.
11746         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetmode.c: Likewise.
11747
11748         * sysdeps/mips/fpu/fegetmode.c: New file.
11749         * sysdeps/mips/fpu/fesetmode.c: Likewise.
11750
11751         * sysdeps/m68k/fpu/fegetmode.c: New file.
11752         * sysdeps/m69k/fpu/fesetmode.c: Likewise.
11753
11754         * sysdeps/ia64/fpu/fegetmode.c: New file.
11755         * sysdeps/ia64/fpu/fesetmode.c: Likewise.
11756
11757         * sysdeps/hppa/fpu/fegetmode.c: New file.
11758         * sysdeps/hppa/fpu/fesetmode.c: Likewise.
11759
11760         * sysdeps/arm/fegetmode.c: New file.
11761         * sysdeps/arm/fesetmode.c: Likewise.
11762
11763         * sysdeps/alpha/fpu/fegetmode.c: New file.
11764         * sysdeps/alpha/fpu/fesetmode.c: Likewise.
11765
11766         * sysdeps/aarch64/fpu/fegetmode.c: New file.
11767         * sysdeps/aarch64/fpu/fesetmode.c: Likewise.
11768
11769         * math/fegetmode.c: New file.
11770         * math/fesetmode.c: Likewise.
11771         * sysdeps/i386/fpu/fegetmode.c: Likewise.
11772         * sysdeps/i386/fpu/fesetmode.c: Likewise.
11773         * sysdeps/x86_64/fpu/fegetmode.c: Likewise.
11774         * sysdeps/x86_64/fpu/fesetmode.c: Likewise.
11775         * math/fenv.h: Update comment on inclusion of <bits/fenv.h>.
11776         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fegetmode): New function
11777         declaration.
11778         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetmode): Likewise.
11779         * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (femode_t): New
11780         typedef.
11781         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11782         * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11783         (femode_t): New typedef.
11784         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11785         * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11786         (femode_t): New typedef.
11787         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11788         * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11789         (femode_t): New typedef.
11790         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11791         * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11792         (femode_t): New typedef.
11793         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11794         * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11795         (femode_t): New typedef.
11796         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11797         * sysdeps/m68k/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11798         (femode_t): New typedef.
11799         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11800         * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11801         (femode_t): New typedef.
11802         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11803         * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11804         (femode_t): New typedef.
11805         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11806         * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11807         (femode_t): New typedef.
11808         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11809         * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11810         (femode_t): New typedef.
11811         [__GLIBC_USE (IEC_60559_BFP_EXT)] (__fe_dfl_mode): New variable
11812         declaration.
11813         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11814         * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11815         (femode_t): New typedef.
11816         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11817         * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11818         (femode_t): New typedef.
11819         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11820         * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11821         (femode_t): New typedef.
11822         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11823         * sysdeps/tile/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11824         (femode_t): New typedef.
11825         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11826         * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
11827         (femode_t): New typedef.
11828         [__GLIBC_USE (IEC_60559_BFP_EXT)] (FE_DFL_MODE): New macro.
11829         * manual/arith.texi (FE_DFL_MODE): Document macro.
11830         (fegetmode): Document function.
11831         (fesetmode): Likewise.
11832         * math/Versions (fegetmode): New libm symbol at version
11833         GLIBC_2.25.
11834         (fesetmode): Likewise.
11835         * math/Makefile (libm-support): Add fegetmode and fesetmode.
11836         (tests): Add test-femode and test-femode-traps.
11837         * math/test-femode-traps.c: New file.
11838         * math/test-femode.c: Likewise.
11839         * sysdeps/powerpc/fpu/fenv_const.c (__fe_dfl_mode): Declare as
11840         alias for __fe_dfl_env.
11841         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_dfl_mode): Likewise.
11842         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c
11843         (__fe_dfl_mode): Likewise.
11844         * sysdeps/powerpc/Versions (__fe_dfl_mode): New libm symbol at
11845         version GLIBC_2.25.
11846         * sysdeps/nacl/libm.abilist: Update.
11847         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11848         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11849         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11850         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11851         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11852         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11853         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11854         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11855         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11856         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11857         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11858         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
11860         Likewise.
11861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11862         Likewise.
11863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
11864         Likewise.
11865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
11866         Likewise.
11867         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11868         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11869         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11870         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11871         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11872         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
11873         Likewise.
11874         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
11875         Likewise.
11876         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
11877         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11878         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11879
11880 2016-09-06  H.J. Lu  <hongjiu.lu@intel.com>
11881
11882         [BZ #20495]
11883         [BZ #20508]
11884         * sysdeps/x86/cpu-features.c (init_cpu_features): For Intel
11885         processors, set Use_dl_runtime_resolve_slow and set
11886         Use_dl_runtime_resolve_opt if XGETBV suports ECX == 1.
11887         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11888         New.
11889         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11890         (index_arch_Use_dl_runtime_resolve_opt): Likewise.
11891         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11892         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup): Use
11893         _dl_runtime_resolve_avx512_opt and _dl_runtime_resolve_avx_opt
11894         if Use_dl_runtime_resolve_opt is set.  Use
11895         _dl_runtime_resolve_slow if Use_dl_runtime_resolve_slow is set.
11896         * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features.h>.
11897         (_dl_runtime_resolve_opt): New.  Defined for AVX and AVX512.
11898         (_dl_runtime_resolve): Add one for _dl_runtime_resolve_sse_vex.
11899         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx_slow):
11900         New.
11901         (_dl_runtime_resolve_opt): Likewise.
11902         (_dl_runtime_profile): Define only if _dl_runtime_profile is
11903         defined.
11904
11905 2016-09-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
11906
11907         * sysdeps/unix/sysv/linux/s390/localplt.data: Mark ld.so:
11908         __libc_memalign with "+ RELA R_390_GLOB_DAT".
11909
11910 2016-09-06  Florian Weimer  <fweimer@redhat.com>
11911
11912         Convert malloc to __libc_lock.  Automated part, using this Perl
11913         s/// command:
11914           s/(?:\(void\)\s*)?mutex_((?:|un|try)lock|init)
11915             \s*\(\&([^\)]+)\)/__libc_lock_$1\ ($2)/gx;
11916         * malloc/malloc.c, malloc/arena.c, malloc/hooks.c: Perform
11917         conversion.
11918
11919 2016-09-05  Aurelien Jarno  <aurelien@aurel32.net>
11920
11921         * conform/Makefile (conformtest-header-tests): Pass -I. to $(PERL).
11922         (linknamespace-symlists-tests): Likewise.
11923         (linknamespace-header-tests): Likewise.
11924
11925 2016-09-03  Aurelien Jarno  <aurelien@aurel32.net>
11926
11927         [BZ #19810]
11928         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag later.
11929         * elf/tst-noload.c: New test case.
11930         * elf/Makefile (tests): Add tst-noload.
11931
11932 2016-09-02  Roland McGrath  <roland@hack.frob.com>
11933
11934         * sysdeps/nacl/dup.c: Add libc_hidden_def.
11935
11936         * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's
11937         not any more.
11938
11939         * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t
11940
11941 2016-09-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
11942
11943         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Mark as inline.
11944         (do_cos_slow): Likewise.
11945         (do_sin): Likewise.
11946         (do_sin_slow): Likewise.
11947         (slow): Likewise.
11948         (slow1): Likewise.
11949         (slow2): Likewise.
11950         (sloww): Likewise.
11951         (sloww1): Likewise.
11952         (sloww2): Likewise.
11953         (bsloww): Likewise.
11954         (bsloww1): Likewise.
11955         (bsloww2): Likewise.
11956         (cslow2): Likewise.
11957
11958         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use do_sin.
11959
11960         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Accept X and DX as input
11961         arguments.  Consolidate input partitioning from callers here.
11962         (do_cos_slow): Likewise.
11963         (do_sin): Likewise.
11964         (do_sin_slow): Likewise.
11965         (do_sincos_1): Remove the no longer necessary input partitioning.
11966         (do_sincos_2): Likewise.
11967         (__sin): Likewise.
11968         (__cos): Likewise.
11969         (slow1): Likewise.
11970         (slow2): Likewise.
11971         (sloww1): Likewise.
11972         (sloww2): Likewise.
11973         (bsloww1): Likewise.
11974         (bsloww2): Likewise.
11975         (cslow2): Likewise.
11976
11977 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11978
11979         * stdio-common/vfscanf.c (_IO_vfwscanf): Use MB_LEN_MAX instead of
11980         MB_CUR_MAX to avoid race condition.  Avoid pointer arithmetic
11981         outside of allocated array.
11982
11983 2016-09-02  Florian Weimer  <fweimer@redhat.com>
11984
11985         * stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
11986         instead of MB_CUR_MAX to avoid variable-length array.
11987
11988 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
11989
11990         * math/Makefile (libm-calls): Remove k_rem_pio2F.
11991         (type-double-routines): Add k_rem_pio2.
11992         (type-float-routines): Add k_rem_pio2f.
11993
11994         * sysdeps/generic/math_private.h:
11995         (__kernel_rem_pio2l): Removed.
11996
11997         * math/k_rem_pio2l.c: Removed.
11998         * sysdeps/i386/fpu/k_rem_pio2l.c: Removed.
11999         * sysdeps/ia64/fpu/k_rem_pio2l.c: Removed.
12000         * sysdeps/m68k/m680x0/fpu/k_rem_pio2l.c: Removed.
12001         * sysdeps/x86_64/fpu/k_rem_pio2l.c: Removed.
12002
12003 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12004
12005         * math/Makefile (gen-libm-calls): Add s_fmin
12006         (libm-calls): Remove above.
12007
12008         * math/s_fmin.c: Refactor into ...
12009         * math/s_fmin_template.c: New file.
12010
12011         * math/s_fminf.c: Removed.
12012         * math/s_fminl.c: Removed.
12013         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
12014         (LDOUBLE_fmin_libm_version): New macro.
12015
12016         * sysdeps/ieee754/ldbl-opt/s_fmin.c: Removed.
12017         * sysdeps/ieee754/ldbl-opt/s_fminl.c: Removed.
12018
12019 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12020
12021         * math/Makefile: (gen-libm-calls): Add s_fmax.
12022         (libm-calls): Remove above.
12023
12024         * math/s_fmax.c: Refactor into ...
12025         * math/s_fmax_template.c: New file.
12026         * math/s_fmaxf.c: Removed.
12027         * math/s_fmaxl.c: Removed.
12028
12029         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
12030         (LDOUBLE_fmaxl_libm_version): New macro.
12031
12032         * sysdeps/ieee754/ldbl-opt/s_fmax.c: Removed.
12033         * sysdeps/ieee754/ldbl-opt/s_fmaxl.c: Removed.
12034
12035         * sysdeps/aarch64/fpu/s_fmax.c: Append fpu/ to include of
12036         s_fmin.c to pick the aarch64 version of the file.
12037         * sysdeps/aarch64/fpu/s_fmaxf.c: Likewise.
12038         * sysdeps/aarch64/fpu/s_fminf.c: Likewise.
12039
12040 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12041
12042         * math/Makefile: (gen-libm-calls): Add s_nextdown.
12043         (libm-calls): Remove above.
12044
12045         * math/s_nextdown.c: Refactor into ...
12046         * math/s_nextdown_template.c: New file.
12047         * math/s_nextdownf.c: Removed.
12048         * math/s_nextdownl.c: Removed.
12049
12050         * sysdeps/ieee754/ldbl-opt/s_nextdownl.c: New file.
12051
12052 2016-09-01  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12053
12054         * math/Makefile (gen-libm-calls): Add s_fdim.
12055         (libm-calls): Move to above.
12056
12057         * math/s_fdim.c: Renamed and refactored into to ...
12058         * math/s_fdim_template.c: New file.
12059         * math/s_fdiml.c: Removed.
12060         * sysdeps/ieee754/ldbl-opt/s_fdim.c: Removed.
12061         * sysdeps/ieee754/ldbl-opt/s_fdiml.c: Removed.
12062
12063         * sysdeps/generic/math-type-macros-double.h:
12064         (declare_mgen_alias): Don't declare if already declared.
12065         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h:
12066         Likewise.
12067
12068         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h:
12069         (declare_mgen_alias): Don't declare if already declared.
12070         (M_LIBM_NEED_COMPAT): Likewise.
12071         (declare_mgen_libm_compat): Likewise.
12072         (LDOUBLE_fdiml_libm_version): New macro.
12073
12074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
12075         Include math/s_fdim.c now that ldbl-opt version is not needed.
12076         (declare_mgen_alias): New macro to disable aliasing.
12077
12078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.c:
12079         (declare_mgen_alias): Likewise.
12080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c:
12081         (declare_mgen_alias): Likewise.
12082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c:
12083         (declare_mgen_alias): Likewise.
12084         (M_LIBM_NEED_COMPAT): Likewise.
12085
12086 2016-09-01  Florian Weimer  <fweimer@redhat.com>
12087
12088         [BZ #20525]
12089         * sysdeps/unix/sysv/linux/sys/quota.h: Update copyright.
12090         Include <linux/quota.h>.
12091         (fs_to_dq_blocks): Hard-code BLOCK_SIZE as 1024, to match dbtob
12092         and btodb.
12093         (_LINUX_QUOTA_VERSION, MAXQUOTAS, USRQUOTA, GRPQUOTA, INITQFNAMES)
12094         (SUBCMDMASK, SUBCMDSHIFT, QCMD, Q_QUOTAON, Q_QUOTAOFF, Q_GETQUOTA)
12095         (Q_SETQUOTA, Q_SETUSE, Q_SYNC, Q_SETQLIM, Q_GETSTATS, Q_RSQUASH)
12096         (Q_GETFMT, Q_GETINFO, Q_SETINFO, Q_GETNEXTQUOTA, QIF_BLIMITS)
12097         (QIF_SPACE, QIF_ILIMITS, QIF_INODES, QIF_BTIME, QIF_ITIME)
12098         (QIF_LIMITS, QIF_USAGE, QIF_TIMES, QIF_ALL, IIF_BGRACE)
12099         (IIF_IGRACE, IIF_FLAGS, IIF_ALL): Remove.
12100         (struct dqblock, struct dqinfo): Use __uint64_t and __uint32_t
12101         types.
12102         * sysdeps/unix/sysv/linux/tst-quota.c: New test.
12103         * sysdeps/unix/sysv/linux/Makefile (tests): Add it.
12104
12105 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12106
12107         * sysdeps/ieee754/ldbl-128/e_gammal_r.c:
12108         (gammal_positive): Fix spacing.
12109         (__ieee754_gammal_r): Likewise.
12110
12111 2016-08-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12112
12113         * sysdeps/ieee754/ldbl-128/math_ldbl.h:
12114         (_Float128): Define as long double, always.
12115         (L): Apply long double type suffix, always.
12116
12117         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Rename long double
12118         _Float128, excepting comments.
12119
12120         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12121         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12122         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12123         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12124         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
12125         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12126         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12127         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12128         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12129         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: Likewise.
12130         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12131         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12132         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12133         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12134         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12135         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12136         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12137         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12138         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12139         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12140         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12141         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
12142         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12143         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12144         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12145         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12146         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12147         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12148         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12149         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12150         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12151         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12152         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12153         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12154         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12155         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12156         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12157         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12158         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12159         * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12160         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12161         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12162         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12163         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12164         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
12165         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12169         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12170         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12171         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12172         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12173         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12174         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12175         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12176         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12177         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12178         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12179         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12180         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12181         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12182         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12183         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12184         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12185         * sysdeps/ieee754/ldbl-128/t_expl.h: Likewise.
12186         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12187         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12188
12189         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Rename long double
12190         _Float128, and include math_private.h.
12191         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
12192
12193         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (L): Define using
12194         long double semantics.
12195         (_Float128): Likewise.
12196         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Likewise.
12197         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12198         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
12199         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
12200
12201 2016-08-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
12202
12203         * config.h.in (HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT): New undefine.
12204         * sysdeps/s390/configure.ac: Add test for z196 zarch support.
12205         * sysdeps/s390/configure: Regenerated.
12206         * sysdeps/s390/fpu/fraiseexcpt.c (__feraiseexcept): Use ledbra
12207         instruction for raising over-/underflow if z196 zarch is supported
12208         by default.
12209         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Correct comment.
12210
12211 2016-08-30  Svante Signell  <svante.signell@gmail.com>
12212
12213         * sysdeps/mach/hurd/adjtime.c (__adjtime): When OLDDELTA is NULL, make
12214         it point to a dumb buffer for RPC to fill it.
12215
12216 2016-08-30  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12217
12218         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos_slow): Use ternary
12219         instead of if/else.
12220         (do_sin_slow): Likewise.
12221         (do_sincos_1): Use fabs instead of if/else.
12222         (do_sincos_2): Likewise.
12223         (__sin): Likewise.
12224         (__cos): Likewise.
12225         (slow2): Likewise.
12226         (sloww): Likewise.
12227         (sloww1): Likewise.  Drop argument M.
12228         (sloww2): Use fabs instead of if/else.
12229         (bsloww): Likewise.
12230         (bsloww1): Likewise.
12231         (bsloww2): Likewise.
12232
12233         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Add
12234         fall through comment.
12235         (do_sincos_1): Likewise.
12236
12237         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute):
12238         Consolidate switch cases 0 and 2.
12239
12240 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12241
12242         * math/Makefile (libm-gen-calls): Add cpow, clog, clog10, cexp, cproj.
12243         (libm-calls): Remove the above.
12244
12245         * math/s_cexp_template.c: Update using type-generic macros.
12246         * math/s_clog10_template.c: Likewise.
12247         * math/s_cpow_template.c: Likewise.
12248         * math/s_clog_template.c: Likewise.
12249         * math/s_cproj_template.c: Likewise.
12250         * math/s_csqrt_template.c: Likewise.
12251
12252         * math/s_cexp.c: Removed.
12253         * math/s_cexpf.c: Removed.
12254         * math/s_cexpl.c: Removed.
12255         * math/s_clog10.c: Removed.
12256         * math/s_clog10f.c: Removed.
12257         * math/s_clog10l.c: Removed.
12258         * math/s_cpow.c: Removed.
12259         * math/s_cpowf.c: Removed.
12260         * math/s_cpowl.c: Removed.
12261         * math/s_clog.c: Removed.
12262         * math/s_clogf.c: Removed.
12263         * math/s_clogl.c: Removed.
12264         * math/s_cproj.c: Removed.
12265         * math/s_cprojf.c: Removed.
12266         * math/s_cprojl.c: Removed.
12267         * math/s_csqrt.c: Removed.
12268         * math/s_csqrtf.c: Removed.
12269         * math/s_csqrtl.c: Removed.
12270
12271         * sysdeps/alpha/fpu/s_cexpf.c: Update using templated version.
12272         * sysdeps/alpha/fpu/s_clog10f.c: Update using templated version.
12273         * sysdeps/alpha/fpu/s_clogf.c: Update using templated version.
12274         * sysdeps/alpha/fpu/s_cpowf.c: Update using templated version.
12275         * sysdeps/alpha/fpu/s_cprojf.c: Update using templated version.
12276         * sysdeps/alpha/fpu/s_csqrtf.c: Update using templated version.
12277
12278         * sysdeps/ieee754/ldbl-opt/s_cexp.c: Removed.
12279         * sysdeps/ieee754/ldbl-opt/s_cexpl.c: Removed.
12280         * sysdeps/ieee754/ldbl-opt/s_clog.c: Removed.
12281         * sysdeps/ieee754/ldbl-opt/s_clog10.c: Removed.
12282         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Removed.
12283         * sysdeps/ieee754/ldbl-opt/s_cpow.c: Removed.
12284         * sysdeps/ieee754/ldbl-opt/s_cpowl.c: Removed.
12285         * sysdeps/ieee754/ldbl-opt/s_cproj.c: Removed.
12286         * sysdeps/ieee754/ldbl-opt/s_cprojl.c: Removed.
12287         * sysdeps/ieee754/ldbl-opt/s_csqrt.c: Removed.
12288         * sysdeps/ieee754/ldbl-opt/s_csqrtl.c: Removed.
12289
12290         * sysdeps/ieee754/ldbl-opt/s_clogl.c: Update using templated
12291         version.
12292
12293         * sysdeps/m68k/m680x0/fpu/s_cexp.c: Refactor into.
12294         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c: New file.
12295         * sysdeps/m68k/m680x0/fpu/s_cexpf.c: Removed.
12296         * sysdeps/m68k/m680x0/fpu/s_cexpl.c: Removed.
12297
12298 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12299
12300         * s_cexp_template.c: Copy of s_cexp.c.
12301         * s_clog_template.c: Copy of s_clog.c.
12302         * s_clog10_template.c: Copy of s_clog10.c.
12303         * s_cpow_template.c: Copy of s_cpow.c.
12304         * s_cproj_template.c: Copy of s_cproj.c.
12305         * s_csqrt_template.c: Copy of s_csqrt.c.
12306
12307 2016-08-29  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12308
12309         [BZ #20517]
12310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
12311         Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
12312         exported.
12313
12314 2016-08-29  Joseph Myers  <joseph@codesourcery.com>
12315
12316         * math/fetestexceptflag.c: New file.
12317         * sysdeps/s390/fpu/fetestexceptflag.c: Likewise.  Comment by
12318         Stefan Liebler.
12319         * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]
12320         (fetestexceptflag): New function declaration.
12321         * manual/arith.texi (fetestexceptflag): Document function.
12322         * math/Versions (fetestexceptflag): New libm symbol at version
12323         GLIBC_2.25.
12324         * math/Makefile (libm-support): Add fetestexceptflag.
12325         (tests): Add test-fetestexceptflag.
12326         * math/test-fetestexceptflag.c: New file.
12327         * sysdeps/nacl/libm.abilist: Update.
12328         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12329         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12330         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12331         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12332         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12333         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12334         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12335         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12336         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12337         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12338         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12339         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12341         Likewise.
12342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12343         Likewise.
12344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12345         Likewise.
12346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12347         Likewise.
12348         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12349         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12350         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12351         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12352         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12353         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12354         Likewise.
12355         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12356         Likewise.
12357         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12358         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12359         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12360
12361 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12362
12363         [BZ #20432]
12364         Avoid strong references to malloc-internal symbols when linking
12365         statically, to support statically interposed mallocs.
12366         * include/libc-symbols.h (call_function_static_weak): New macro.
12367         * malloc/Makefile (tests): Add tst-interpose-nothread,
12368         tst-interpose-thread, tst-interpose-static-nothread,
12369         tst-interpose-static-thread.
12370         (tests-static): Add tst-interpose-static-nothread,
12371         tst-interpose-static-thread.
12372         (extra-tests-objs): Add tst-interpose-aux-nothread.o,
12373         tst-interpose-aux-thread.o.
12374         (test-extras): Add tst-interpose-aux-nothread,
12375         tst-interpose-aux-thread.
12376         (tst-interpose-nothread, tst-interpose-static-nothread): Link with
12377         tst-interpose-aux-nothread.o.
12378         (tst-interpose-thread, tst-interpose-static-thread): Link with
12379         tst-interpose-aux-thread.o and libthread.
12380         * malloc/tst-interpose-aux-nothread.c: New file.
12381         * malloc/tst-interpose-aux-thread.c: Likewise.
12382         * malloc/tst-interpose-aux.c: Likewise.
12383         * malloc/tst-interpose-aux.h: Likewise.
12384         * malloc/tst-interpose-nothread.c: Likewise.
12385         * malloc/tst-interpose-skeleton.c: Likewise.
12386         * malloc/tst-interpose-static-nothread.c: Likewise.
12387         * malloc/tst-interpose-static-thread.c: Likewise.
12388         * malloc/tst-interpose-thread.c: Likewise.
12389         * nptl/tst-tls3-malloc.c: Use new interposed malloc.
12390         * sysdeps/mach/hurd/fork.c (__fork): Only call
12391         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
12392         __malloc_fork_unlock_child if defined.
12393         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12394
12395 2016-08-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12396
12397         * test-skeleton.c (delayed_exit_thread): Add initializer on struct
12398         timespec C99 designated initialization.
12399
12400 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12401
12402         [BZ #19946]
12403         Avoid expected SIGALRM signals.
12404         * test-skeleton.c (xpthread_sigmask, xpthread_mutex_lock)
12405         (xpthread_spin_lock, xpthread_cond_wait, xpthread_barrier_wait)
12406         (xpthread_create, xpthread_detach, xpthread_join)
12407         (delayed_exit_thread, delayed_exit): New functions.
12408         * nptl/tst-cond3 (EXPECTED_SIGNAL): Remove.
12409         (tf): Use xpthread_cond_wait.
12410         (do_test): Likewise.  Replace alarm with delayed_exit.
12411         * nptl/tst-eintr1.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12412         (do_test): Call delayed_exit.  Report failure.
12413         * nptl/tst-eintr2.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12414         (do_test): Call delayed_exit.
12415         * nptl/tst-eintr3.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12416         (do_test): Call delayed_exit.  Use xpthread_join.  Report error.
12417         * nptl/tst-eintr4.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12418         (do_test): Call delayed_exit.  Use xpthread_barrier_wait.  Report
12419         error.
12420         * nptl/tst-eintr5.c (EXPECTED_SIGNAL, TIMEOUT): Remove.
12421         (do_test): Call delayed_exit.  Use xpthread_cond_wait.  Report
12422         error.
12423         * nptl/tst-exit2.c (EXPECTED_SIGNAL): Remove.
12424         (do_test): Call delayed_exit.
12425         * nptl/tst-exit3.c (EXPECTED_SIGNAL): Remove.
12426         (do_test): Call delayed_exit.
12427         * nptl/tst-mutex6.c (EXPECTED_SIGNAL): Remove.
12428         (do_test): Call delayed_exit instead of alarm.  Use
12429         xpthread_mutex_lock.
12430         * nptl/tst-rwlock5.c (EXPECTED_SIGNAL): Remove.
12431         (do_test): Call delayed_exit instead of alarm.  Use
12432         xpthread_mutex_lock.
12433         * nptl/tst-sem2.c (EXPECTED_SIGNAL): Remove.
12434         (do_test): Call delayed_exit instead of alarm.
12435         * nptl/tst-spin3.c (EXPECTED_SIGNAL): Remove.
12436         (do_test): Call delayed_exit instead of alarm.  Use
12437         xpthread_spin_lock.
12438         * nptl/tst-stdio1.c (EXPECTED_SIGNAL): Remove.
12439         (do_test): Call delayed_exit instead of alarm.  Use
12440         xpthread_join.
12441
12442 2016-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12443
12444         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Don't
12445         adjust CFA when allocating register save area on re-aligned
12446         stack.
12447
12448 2016-08-26  Florian Weimer  <fweimer@redhat.com>
12449
12450         * string/tst-cmp.c: New test.
12451         * string/Makefile (tests): Add it.
12452
12453 2016-08-25  Mark Wielaard  <mark@klomp.org>
12454
12455         * misc/tsearch.c (struct node_t): Reduce to 3 pointers if
12456         USE_MALLOC_LOW_BIT.  Define pointer/value accessors.
12457         (check_tree_recurse): Use newly defined accessors.
12458         (check_tree): Likewise.
12459         (maybe_split_for_insert): Likewise.
12460         (__tfind): Likewise.
12461         (__tdelete): Likewise.
12462         (trecurse): Likewise.
12463         (tdestroy_recurse): Likewise.
12464         (__tsearch): Likewise. And add asserts for malloc alignment.
12465         (__twalk): Cast root to node in case CHECK_TREE is defined.
12466
12467 2016-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12468
12469         * scripts/check-local-headers.sh (exclude): Add mach_debug/.
12470
12471 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12472
12473         * math/Makefile (libm-gen-calls): Add
12474         catan, catanh, ctan, ctanh.
12475         (libm-calls): Remove the above.
12476
12477         * math/s_catan_template.c: Update using type-generic macros.
12478         * math/s_catanh_template.c: Likewise.
12479         * math/s_ctan_template.c: Likewise.
12480         * math/s_ctanh_template.c: Likewise.
12481
12482         * math/s_catanf.c: Removed.
12483         * math/s_catan.c: Removed.
12484         * math/s_catanl.c: Removed.
12485         * math/s_catanhf.c: Removed.
12486         * math/s_catanh.c: Removed.
12487         * math/s_catanhl.c: Removed.
12488         * math/s_ctanf.c: Removed.
12489         * math/s_ctan.c: Removed.
12490         * math/s_ctanl.c: Removed.
12491         * math/s_ctanhf.c: Removed.
12492         * math/s_ctanh.c: Removed.
12493         * math/s_ctanhl.c: Removed.
12494
12495         * sysdeps/ieee754/ldbl-opt/s_catanhl.c: Removed.
12496         * sysdeps/ieee754/ldbl-opt/s_catanl.c: Removed.
12497         * sysdeps/ieee754/ldbl-opt/s_ctan.c: Removed.
12498         * sysdeps/ieee754/ldbl-opt/s_ctanh.c: Removed.
12499         * sysdeps/ieee754/ldbl-opt/s_ctanhl.c: Removed.
12500         * sysdeps/ieee754/ldbl-opt/s_ctanl.c: Removed.
12501
12502         * sysdeps/alpha/fpu/s_catanf.c: Update to use template file.
12503         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
12504         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
12505         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
12506
12507 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12508
12509         * s_catan_template.c: Copy of s_catan.c.
12510         * s_catanh_template.c: Copy of s_catanh.c.
12511         * s_ctan_template.c: Copy of s_ctan.c.
12512         * s_ctanh_template.c: Copy of s_ctanh.c.
12513
12514 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12515
12516         * math/Makefile (gen-libm-calls): Move
12517         casin, casinh, csin, csinh here.
12518         (libm-calls): Remove the above.
12519
12520         * math/s_casin_template.c: Update using type-generic macros.
12521         * math/s_casinh_template.c: Likewise.
12522         * math/s_csin_template.c: Likewise.
12523         * math/s_csinh_template.c: Likewise.
12524         * math/k_casinh_template.c: Likewise.
12525
12526         * math/s_casinf.c: Removed.
12527         * math/s_casin.c: Removed.
12528         * math/s_casinl.c: Removed.
12529         * math/s_casinh.c: Removed.
12530         * math/s_casinhf.c: Removed.
12531         * math/s_casinhl.c: Removed.
12532         * math/s_csin.c: Removed.
12533         * math/s_csinf.c: Removed.
12534         * math/s_csinl.c: Removed.
12535         * math/s_csinh.c: Removed.
12536         * math/s_csinhf.c: Removed.
12537         * math/s_csinhl.c: Removed.
12538         * math/k_casinh.c: Removed.
12539         * math/k_casinhf.c: Removed.
12540         * math/k_casinhl.c: Removed.
12541
12542         * sysdeps/alpha/fpu/s_casinf.c: Refactor using templated version.
12543         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
12544         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
12545         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
12546
12547         * sysdeps/ieee754/ldbl-opt/s_casin.c: Removed.
12548         * sysdeps/ieee754/ldbl-opt/s_casinh.c: Removed.
12549         * sysdeps/ieee754/ldbl-opt/s_casinhl.c: Removed.
12550         * sysdeps/ieee754/ldbl-opt/s_casinl.c: Removed.
12551         * sysdeps/ieee754/ldbl-opt/s_csin.c: Removed.
12552         * sysdeps/ieee754/ldbl-opt/s_csinh.c: Removed.
12553         * sysdeps/ieee754/ldbl-opt/s_csinhl.c: Removed.
12554         * sysdeps/ieee754/ldbl-opt/s_csinl.c: Removed.
12555
12556         * sysdeps/m68k/m680x0/fpu/s_csin.c: Refactor into ...
12557         * sysdeps/m68k/m680x0/fpu/s_csin_template.c: New file.
12558         * sysdeps/m68k/m680x0/fpu/s_csinf.c: Removed.
12559         * sysdeps/m68k/m680x0/fpu/s_csinl.c: Removed.
12560
12561         * sysdeps/m68k/m680x0/fpu/s_csinh.c: Refactor into.
12562         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c: New file.
12563         * sysdeps/m68k/m680x0/fpu/s_csinhf.c: Removed.
12564         * sysdeps/m68k/m680x0/fpu/s_csinhl.c: Removed.
12565
12566 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12567
12568         * s_casin_template.c: Copy of s_casin.c.
12569         * s_casinh_template.c: Copy of s_casinh.c.
12570         * s_csin_template.c: Copy of s_csin.c.
12571         * s_csinh_template.c: Copy of s_csinh.c.
12572         * k_casinh_template.c: Copy of k_casinh.c.
12573
12574 2016-08-19  H.J. Lu  <hongjiu.lu@intel.com>
12575
12576         * sysdeps/x86/cpu-features.h (bit_YMM_state): Set to (1 << 2).
12577
12578 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12579
12580         * sysdeps/ieee754/ldbl-128/gamma_productl.c:
12581         (mul_split) Remove, rename as mul_splitl, remove
12582         redundant float.h include, and include via mul_splitl.h
12583
12584         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12585         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12586         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12587         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12588         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12589
12590         * math/mul_splitl.h: New file.
12591
12592         * sysdeps/ieee754/dbl-64/gamma_product.c (mul_split):
12593         Move into mul_split.h, and remove redundant float.h include.
12594
12595         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12596         * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
12597         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12598         * sysdeps/ieee754/ldbl-128ibm/x2y2m1.c: Likewise.
12599
12600         * math/mul_split.h: New file.
12601
12602 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12603
12604         * math/Makefile (libm-gen-calls): Move
12605         s_cacos, s_cacosh, s_ccos, s_ccosh from ...
12606         (libm-calls): Remove above.
12607
12608         * math/s_cacos_template.c: Update using type-generic macros.
12609         * math/s_cacosh_template.c: Likewise.
12610         * math/s_ccos_template.c: Likewise.
12611         * math/s_ccosh_template.c: Likewise.
12612
12613         * math/s_cacosf.c: Removed.
12614         * math/s_cacos.c: Removed.
12615         * math/s_cacosl.c: Removed.
12616         * math/s_cacoshf.c: Removed.
12617         * math/s_cacosh.c: Removed.
12618         * math/s_cacoshl.c: Removed.
12619         * math/s_ccosf.c: Removed.
12620         * math/s_ccos.c: Removed.
12621         * math/s_ccosl.c: Removed.
12622         * math/s_ccoshf.c: Removed.
12623         * math/s_ccosh.c: Removed.
12624         * math/s_ccoshl.c: Removed.
12625
12626         * sysdeps/ieee754/ldbl-opt/s_cacoshl.c: Removed.
12627         * sysdeps/ieee754/ldbl-opt/s_cacosl.c: Removed.
12628         * sysdeps/ieee754/ldbl-opt/s_ccos.c: Removed.
12629         * sysdeps/ieee754/ldbl-opt/s_ccosh.c: Removed.
12630         * sysdeps/ieee754/ldbl-opt/s_ccoshl.c: Removed.
12631         * sysdeps/ieee754/ldbl-opt/s_ccosl.c: Removed.
12632
12633         * sysdeps/m68k/m680x0/fpu/s_ccosh.c: Refactor into.
12634         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c: New file.
12635         * sysdeps/m68k/m680x0/fpu/s_ccoshf.c: Removed.
12636         * sysdeps/m68k/m680x0/fpu/s_ccoshl.c: Removed.
12637
12638         * sysdeps/alpha/fpu/s_cacosf.c: Update to use template file.
12639         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
12640         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
12641         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
12642
12643 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12644
12645         * s_cacos_template.c: Copy of s_cacos.c.
12646         * s_cacosh_template.c: Copy of s_cacosh.c.
12647         * s_ccos_template.c: Copy of s_ccos.c.
12648         * s_ccosh_template.c: Copy of s_ccosh.c.
12649
12650 2016-08-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12651
12652         * stdlib/tst-strtod-round-skeleton.c:
12653         Refactored from tst-strtod-round.c.
12654
12655         (L_): New macro to apply literal modifier.
12656         (FNPFX): New macro to select str or wcs prefix.
12657         (CHAR): New macro to choose wchar_t or char.
12658         (STRM): New macro to choose printf for tested character type.
12659
12660         (STRTO): New macro to choose appropriate string -> real function.
12661         (FNPFXS): Stringitized version of FNPFX.
12662         (STR): Support for above macro.
12663         (STRX): Likewise.
12664
12665         (TEST): Update with above macros.
12666         (test): Likewise.
12667         (GEN_ONE_TEST): Likewise.
12668         (test_in_one_mode): Likewise.
12669
12670         * stdlib/tst-strtod-round.c: New file.
12671         * wcsmbs/tst-wcstod-round.c: New file.
12672
12673         * wcsmbs/Makefile: (tests): Add tst-wcstod-round
12674         (tst-wcstod-round): Add libm depencency for fesetround.
12675
12676 2016-08-19  Zack Weinberg  <zackw@panix.com>
12677
12678         * debug/tst-chk1.c: Add tests for fortification of bcopy and bzero.
12679
12680 2016-08-18  Torvald Riegel  <triegel@redhat.com>
12681
12682         [BZ #20477]
12683         * resolv/res_hconf.c (do_init): Use atomic access.
12684         * resolv/res_hconf.h: Add comments.
12685         * nscd/aicache.c (addhstaiX): Call _res_hconf_init unconditionally.
12686         * nss/getXXbyYY_r.c (REENTRANT_NAME): Likewise.
12687         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
12688
12689 2016-08-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
12690
12691         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
12692         Use DIAG_*_NEEDS_COMMENT macro to get rid of array-bounds warning.
12693         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
12694         Likewise.
12695
12696 2016-08-18  Florian Weimer  <fweimer@redhat.com>
12697
12698         [BZ #16907]
12699         * argp/argp.h: Switch to __BEGIN_DECLS and __END_DECLS.
12700         (__THROW, __NTH, __attribute__, __restrict): Remove definitions.
12701         * argp/argp-fmtstream.h: Add __BEGIN_DECLS and __END_DECLS.
12702         (__attribute__): Remove definition.
12703
12704 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12705
12706         * sysdeps/ieee754/ldbl-128/e_asinl.c:
12707         Remove unused sqrtl declaration.
12708
12709 2016-08-17  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12710
12711         * math/Makefile: (gen-libm-templates.stmp): New rule.
12712         (libm-calls): Move carg conj cimag and cabs into ...
12713         (gen-libm-calls): New variable.
12714         (generated): Inform Make objects from gen-libm-calls
12715         may be generated.
12716
12717         * sysdeps/generic/math-type-macros.h: New file.
12718         * sysdeps/generic/math-type-macros-float.h: Likewise.
12719         * sysdeps/generic/math-type-macros-double.h: Likewise.
12720         * sysdeps/generic/math-type-macros-ldouble.h: Likewise.
12721         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Likewise.
12722         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Likewise.
12723
12724         * math/cabs.c: Refactor into
12725         * math/cabs_template.c: new file.
12726         * math/cabsf.c: Removed.
12727         * math/cabsl.c: Removed.
12728         * sysdeps/ieee754/ldbl-opt/cabsf.c: Removed.
12729         * sysdeps/ieee754/ldbl-opt/cabsl.c: Removed.
12730
12731         * math/carg.c: Refactor into
12732         * math/carg_template.c: new file.
12733         * math/cargf.c: Removed.
12734         * math/cargl.c: Removed.
12735         * sysdeps/ieee754/ldbl-opt/cargf.c: Removed.
12736         * sysdeps/ieee754/ldbl-opt/cargl.c: Removed.
12737
12738         * math/conj.c: Refactor into
12739         * math/conj_template.c: new file.
12740         * math/conjf.c: Removed.
12741         * math/conjl.c: Removed.
12742         * sysdeps/ieee754/ldbl-opt/conjf.c: Removed.
12743         * sysdeps/ieee754/ldbl-opt/conjl.c: Removed.
12744
12745         * math/cimag.c: Refactor into
12746         * math/cimag_template.c: new file.
12747         * math/cimagf.c: Removed.
12748         * math/cimagl.c: Removed.
12749         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12750         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12751
12752         * math/cimag.c: Refactor into
12753         * math/cimag_template.c: new file.
12754         * math/cimagf.c: Removed.
12755         * math/cimagl.c: Removed.
12756         * sysdeps/ieee754/ldbl-opt/cimagf.c: Removed.
12757         * sysdeps/ieee754/ldbl-opt/cimagl.c: Removed.
12758
12759 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12760
12761         Reduce time to expected nptl/tst-once5 failure.
12762         * nptl/tst-once5.cc (TIMEOUT): Define.
12763
12764 2016-08-17  Florian Weimer  <fweimer@redhat.com>
12765
12766         [BZ #20452]
12767         Avoid additional copies of objects in libc.a in static libraries.
12768         * sysdeps/ia64/nptl/Makefile (libpthread-shared-only-routines):
12769         Add ptw-sysdep, ptw-sigblock, ptw-sigprocmask.
12770         * sysdeps/mips/Makefile (librt-shared-only-routines): Add
12771         rt-sysdep.
12772         * sysdeps/mips/nptl/Makefile (libpthread-shared-only-routines):
12773         Add nptl-sysdep.
12774         * sysdeps/s390/nptl/Makefile (libpthread-shared-only-routines):
12775         Add ptw-sysdep.
12776         * sysdeps/unix/alpha/Makefile (librt-shared-only-routines): Add
12777         rt-sysdep.
12778         * sysdeps/unix/sysv/linux/alpha/Makefile
12779         (libpthread-shared-only-routines): Add ptw-sysdep,
12780         ptw-sigprocmask, ptw-rt_sigaction.
12781         * sysdeps/unix/sysv/linux/ia64/Makefile
12782         (librt-shared-only-routines): Add rt-sysdep.
12783         * sysdeps/unix/sysv/linux/i386/Makefile
12784         (libpthread-shared-only-routines): Add libc-do-syscall.
12785         * sysdeps/unix/sysv/linux/microblaze/Makefile
12786         (libpthread-shared-only-routines): Add sysdep.
12787         * sysdeps/unix/sysv/linux/powerpc/Makefile
12788         (librt-shared-only-routines): Add rt-sysdep.
12789         (libpthread-shared-only-routines): Add sysdep.
12790         * sysdeps/unix/sysv/linux/s390/Makefile
12791         (librt-shared-only-routines): Add rt-sysdep.
12792         * sysdeps/unix/sysv/linux/sparc/Makefile
12793         (librt-shared-only-routines): Add rt-sysdep.
12794         (libpthread-shared-only-routines): Add sysdep.
12795         * sysdeps/unix/sysv/linux/tile/Makefile
12796         (libpthread-shared-only-routines): Likewise.
12797
12798 2016-08-16  Joseph Myers  <joseph@codesourcery.com>
12799
12800         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_E):
12801         Mask implicit bit out of unpacked value.
12802         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_EP): Likewise.
12803         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_E): Likewise.
12804         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_EP): Likewise.
12805
12806         * sysdeps/sparc/fpu/fesetexcept.c: New file.
12807
12808         * sysdeps/sh/sh4/fpu/fesetexcept.c: New file.
12809
12810         * sysdeps/s390/fpu/fesetexcept.c: New file.
12811
12812         * sysdeps/powerpc/fpu/fesetexcept.c: New file.
12813         * sysdeps/powerpc/nofpu/fesetexcept.c: Likewise.
12814         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetexcept.c: Likewise.
12815
12816         * sysdeps/mips/fpu/fesetexcept.c: New file.
12817
12818         * sysdeps/m68k/fpu/fesetexcept.c: New file.
12819
12820         * sysdeps/ia64/fpu/fesetexcept.c: New file.
12821
12822         * sysdeps/hppa/fpu/fesetexcept.c: New file.
12823
12824         * sysdeps/arm/fesetexcept.c: New file.
12825
12826         * sysdeps/alpha/fpu/fesetexcept.c: New file.
12827
12828         * sysdeps/aarch64/fpu/fesetexcept.c: New file.
12829
12830         * math/fesetexcept.c: New file.
12831         * sysdeps/i386/fpu/fesetexcept.c: Likewise.
12832         * sysdeps/x86_64/fpu/fesetexcept.c: Likewise.
12833         * math/fenv.h: Define
12834         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
12835         <bits/libc-header-start.h> instead of including <features.h>.
12836         [__GLIBC_USE (IEC_60559_BFP_EXT)] (fesetexcept): New function
12837         declaration.
12838         * manual/arith.texi (fesetexcept): Document function.
12839         * math/Versions (fesetexcept): New libm symbol at version
12840         GLIBC_2.25.
12841         * math/Makefile (libm-support): Add fesetexcept.
12842         (tests): Add test-fesetexcept and test-fesetexcept-traps.
12843         * math/test-fesetexcept.c: New file.
12844         * math/test-fesetexcept-traps.c: Likewise.
12845         * sysdeps/nacl/libm.abilist: Update.
12846         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12847         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12848         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12849         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12850         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12851         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12852         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12853         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12854         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12855         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12856         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12857         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12859         Likewise.
12860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12861         Likewise.
12862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12863         Likewise.
12864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12865         Likewise.
12866         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12867         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12868         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12869         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12870         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12872         Likewise.
12873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12874         Likewise.
12875         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12876         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12877         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12878
12879 2016-08-16  Florian Weimer  <fweimer@redhat.com>
12880
12881         * nptl/tst-tls3.c (default_stack_size_in_mb, stack_size_in_mb):
12882         New.
12883         (do_test): Apply default_stack_size_in_mb if not set.
12884         * nptl/tst-tls3-malloc.c (stack_size_in_mb): Override default.
12885
12886 2016-08-15  Andreas Schwab  <schwab@suse.de>
12887
12888         [BZ #20435]
12889         CVE-2016-6323
12890         * sysdeps/unix/sysv/linux/arm/setcontext.S (__startcontext): Mark
12891         as .cantunwind.
12892
12893 2016-08-12  Joseph Myers  <joseph@codesourcery.com>
12894
12895         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Add
12896         comment from fraiseexcpt.c.
12897
12898         * math/test-fexcept.c (feraiseexcept_exact): New function.
12899         (test_set): Call feraiseexcept_exact instead of feraiseexcept.
12900         (test_except): Likewise.
12901
12902 2016-08-10  Joseph Myers  <joseph@codesourcery.com>
12903
12904         [BZ #20455]
12905         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Mask out
12906         all FE_INVALID sub-exceptions from FPSCR when FE_INVALID specified
12907         to be restored.
12908
12909         * math/test-fexcept-traps.c: New file.
12910         * math/test-fexcept.c: Likewise.
12911         * math/Makefile (tests): Add test-fexcept and test-fexcept-traps.
12912         * sysdeps/generic/math-tests.h (EXCEPTION_SET_FORCES_TRAP): New
12913         macro.
12914         * sysdeps/powerpc/math-tests.h [!__NO_FPRS__]
12915         (EXCEPTION_SET_FORCES_TRAP): Likewise.
12916
12917 2016-08-09  Torvald Riegel  <triegel@redhat.com>
12918
12919         * include/atomic.h (atomic_fetch_and_relaxed,
12920         atomic_fetch_and_release, atomic_fetch_or_release,
12921         atomic_fetch_xor_release): New.
12922
12923 2016-08-06  Christian Seiler  <christian@iwakd.de>
12924
12925         [BZ #20444]
12926         * sysdeps/mach/hurd/recvmsg.c (__libc_recvmsg): Cope with aport being
12927         MACH_PORT_NULL.
12928
12929 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12930
12931         * math/s_fdim.c: Avoid alias renamed.
12932         * math/s_fdimf.c: Likewise.
12933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12934         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12935         Add s_fdimf-vis3, s_fdim-vis3.
12936         (CFLAGS-s_fdimf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
12937         (CFLAGS-s_fdim-vis3.c): Likewise.
12938         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c: New file.
12939         sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
12940
12941 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12942
12943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
12944         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
12945         Remove s_fdimf-vis3, s_fdim-vis3.
12946         * sysdeps/sparc/sparc32/fpu/s_fdim.S: Delete file.
12947         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: Likewise.
12948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: Likewise.
12949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: Likewise.
12950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: Likewise.
12951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: Likewise.
12952         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: Likewise.
12953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: Likewise.
12954         * sysdeps/sparc/sparc64/fpu/s_fdim.S: Likewise.
12955         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: Likewise.
12956
12957 2016-08-05  Aurelien Jarno  <aurelien@aurel32.net>
12958
12959         * sysdeps/sparc/sparc32/sparcv9/Makefile (sysdep-CFLAGS): Add -mvis.
12960         * sysdeps/sparc/sparc64/Makefile (sysdep-CFLAGS): New. Define to
12961         -Wa,-Av9a -mvis.
12962
12963 2016-08-05  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12964
12965         * math/gen-libm-test.pl (apply_lit): Rewrite to apply
12966         LIT() to individual constants in simple expressions
12967         after splitting on spaces.
12968         (_apply_lit): Rename replaced version, and use it to
12969         apply to what appears to be a token.
12970
12971         * math/libm-test.inc: Fix many, many issues with
12972         spacing.
12973
12974 2016-08-05  Joseph Myers  <joseph@codesourcery.com>
12975
12976         * math/math.h: Move comment about <bits/mathdef.h> definitions
12977         above inclusion of <bits/mathdef.h>.  Do not mention
12978         FLT_EVAL_METHOD, INFINITY or DECIMAL_DIG in that comment.
12979
12980 2016-08-05  Torvald Riegel  <triegel@redhat.com>
12981
12982         * include/atomic.h (atomic_exchange_relaxed): New.
12983
12984 2016-08-04  Joseph Myers  <joseph@codesourcery.com>
12985
12986         * math/e_scalb.c: Do not include <fenv.h>.
12987         (invalid_fn): Do calculation resulting in NaN instead of raising
12988         FE_INVALID and returning a NaN explicitly.
12989         * math/e_scalbf.c: Do not include <fenv.h>.
12990         (invalid_fn): Do calculation resulting in NaN instead of raising
12991         FE_INVALID and returning a NaN explicitly.
12992         * math/e_scalbl.c: Do not include <fenv.h>.
12993         (invalid_fn): Do calculation resulting in NaN instead of raising
12994         FE_INVALID and returning a NaN explicitly.
12995
12996 2016-08-04  Carlos O'Donell  <carlos@redhat.com>
12997
12998         * po/de.po: Updated from Translation Project.
12999         * po/fi.po: Likewise.
13000         * po/sv.po: Likewise.
13001
13002 2016-08-04  Florian Weimer  <fweimer@redhat.com>
13003
13004         [BZ #20452]
13005         Use sysdep.o from libc.a in static libraries.
13006         * sysdeps/unix/sysv/linux/i386/Makefile
13007         (libpthread-shared-only-routines): Add sysdep.
13008         (librt-shared-only-routines): Likewise.
13009
13010 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13011
13012         * math/tgmath.h (nextdown): Define if
13013         [__GLIBC_USE (IEC_60559_BFP_EXT)], not if [__USE_GNU].
13014         (nextup): Likewise.
13015
13016         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT): New
13017         macro.
13018         * include/features.h (__STDC_WANT_IEC_60559_FUNCS_EXT__):
13019         Document.
13020         * manual/creature.texi (__STDC_WANT_IEC_60559_FUNCS_EXT__):
13021         Document macro.
13022         * manual/math.texi (exp10): Document as ISO from TS 18661-4:2015.
13023         (exp10f): Likewise.
13024         (exp10l): Likewise.
13025         * math/bits/mathcalls.h (exp10): Declare if
13026         [__GLIBC_USE (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
13027
13028         * manual/arith.texi (nextup): Fix typo in last change.
13029
13030 2016-08-03  Zack Weinberg  <zackw@panix.com>
13031
13032         [BZ #19239]
13033         * NEWS: Inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
13034         * misc/sys/sysmacros.h: If __SYSMACROS_DEPRECATED_INCLUSION is defined,
13035         define major, minor, and makedev to issue deprecation warnings on use.
13036         If __SYSMACROS_DEPRECATED_INCLUSION is *not* defined, suppress
13037         previously-activated deprecation warnings for these macros and prevent
13038         subsequent inclusions of this header from having any effect.
13039         * posix/sys/types.h: Define __SYSMACROS_DEPRECATED_INCLUSION before
13040         including <sys/sysmacros.h>, and undefine it again afterward.
13041
13042 2016-08-03  Zack Weinberg  <zackw@panix.com>
13043
13044         * sysdeps/generic/sys/sysmacros.h: Delete file.
13045         * sysdeps/unix/sysv/linux/makedev.c: Delete file.
13046         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Move file ...
13047         * bits/sysmacros.h: ... here; this encoding is now the generic
13048         encoding.  Now defines only the following macros:
13049         __SYSMACROS_DECLARE_MAJOR, __SYSMACROS_DEFINE_MAJOR,
13050         __SYSMACROS_DECLARE_MINOR, __SYSMACROS_DEFINE_MINOR,
13051         __SYSMACROS_DECLARE_MAKEDEV, __SYSMACROS_DEFINE_MAKEDEV.
13052
13053         * misc/sys/sysmacros.h, misc/makedev.c: New files that use
13054         bits/sysmacros.h and the above new macros to generate the
13055         public implementations of major, minor, and makedev.
13056         * misc/tst-makedev.c: New test.
13057         * include/sys/sysmacros.h: New wrapper.
13058
13059         * misc/Makefile (headers): Add sys/sysmacros.h, bits/sysmacros.h.
13060         (routines): Add makedev.
13061         (tests): Add tst-makedev.
13062         * misc/Versions [GLIBC_2.25]: Add gnu_dev_major, gnu_dev_minor,
13063         gnu_dev_makedev.
13064         * posix/Makefile (headers): Remove sys/sysmacros.h.
13065         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove makedev.
13066
13067         * sysdeps/arm/nacl/libc.abilist: Add GLIBC_2.25,
13068         gnu_dev_major, gnu_dev_makedev, gnu_dev_minor.
13069         * sysdeps/unix/sysv/linux/aarch64/libc.abilist
13070         * sysdeps/unix/sysv/linux/alpha/libc.abilist
13071         * sysdeps/unix/sysv/linux/arm/libc.abilist
13072         * sysdeps/unix/sysv/linux/hppa/libc.abilist
13073         * sysdeps/unix/sysv/linux/i386/libc.abilist
13074         * sysdeps/unix/sysv/linux/ia64/libc.abilist
13075         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
13076         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
13077         * sysdeps/unix/sysv/linux/microblaze/libc.abilist
13078         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
13079         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
13080         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
13081         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
13082         * sysdeps/unix/sysv/linux/nios2/libc.abilist
13083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
13084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
13085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
13086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
13087         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
13088         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
13089         * sysdeps/unix/sysv/linux/sh/libc.abilist
13090         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
13091         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
13092         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
13093         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
13094         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist
13095         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
13096         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
13097         Add GLIBC_2.25.
13098
13099         * include/features.h (__glibc_clang_prereq): New macro.
13100         * misc/sys/cdefs.h (__glibc_clang_has_extension)
13101         (__attribute_deprecated_msg__): New macros.
13102
13103 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13104
13105         * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): New
13106         macro.
13107         * include/features.h (__STDC_WANT_IEC_60559_BFP_EXT__): Document.
13108         * manual/arith.texi (issignaling): Document as ISO from TS
13109         18661-1:2014.
13110         (nextup): Likewise.
13111         (nextupf): Likewise.
13112         (nextupl): Likewise.
13113         (nextdown): Likewise.
13114         (nextdownf): Likewise.
13115         (nextdownl): Likewise.
13116         * manual/creature.texi (__STDC_WANT_IEC_60559_BFP_EXT__): Document
13117         macro.
13118         * math/math.h: Define
13119         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13120         <bits/libc-header-start.h> instead of including <features.h>.
13121         (issignaling): Define if [__GLIBC_USE (IEC_60559_BFP_EXT)], not
13122         [__USE_GNU].
13123         * math/bits/mathcalls.h (nextdown): Declare if
13124         [__GLIBC_USE (IEC_60559_BFP_EXT)], not [__USE_GNU].
13125         (nextup): Likewise.
13126         (__issignaling): Likewise.
13127
13128 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13129
13130         * s_ccoshf.c (__ccoshf): Remove FE_INVALID
13131         check, and remove __glibc_likely hint
13132         from FP_INFINITE check.
13133         * s_csinhf.c (__csinhf): Likewise.
13134
13135         * s_ccoshl.c (__ccoshl): Remove __glibc_likely
13136         hint from FP_INFINITE check.
13137         * s_csinhl.c (__csinhl): Likewise.
13138
13139 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13140
13141         * math/Makefile (libm-calls): Insert F placeholder into
13142         object names.  Move w_lgamma_compat* routines into
13143         (libm-compat-calls): New variable.
13144         (libm-compat-calls-ldouble-yes): New variable.
13145         (calls): Insert F placeholder.
13146         (generated): Redefine using new type-foreach macro call.
13147         (routines): Likewise.
13148
13149         (types): New variable to hold a list of symbolic names
13150         for each type supported by the target machine.
13151         (libm-routines): Redefine using new types variable.
13152         (type-foreach): macro to replace fooF with the
13153         appropriately suffixed foo for each types.
13154
13155         (type-ldouble-suffix): New variable.
13156         (type-ldouble-routines): Likewise.
13157         (type-ldouble-yes): Likewise.
13158         (type-double-suffix): Likewise.
13159         (type-double-routines): Likewise.
13160         (type-float-suffix): Likewise.
13161         (type-float-routines): Likewise.
13162
13163         (dbl-only-routines): Remove.
13164         (long-c-yes): Likewise.
13165         (long-m-routines): Likewise.
13166         (long-m-support): Likewise.
13167         (long-m-yes): Likewise.
13168         (test-longdouble-yes): Likewise.
13169
13170         (test-float.o): Simplify by increasing the scope of the
13171         recipe which adds libm-test.stmp to the vector types.
13172         (test-ifloat.o): Likewise.
13173         (test-float-finite.o): Likewise.
13174         (test-double.o): Likewise
13175         (test-idouble.o): Likewise.
13176         (test-double-finite.o): Likewise.
13177         (test-ldouble.o): Likewise
13178         (test-ildoubl.o): Likewise.
13179         (test-ldouble-finite.o): Likewise.
13180
13181         (libm-tests): Redefine type tests using foreach and the
13182         list of types in types.
13183
13184         (CPPFLAGS-test-ildoubl.c): Rename to
13185         (CPPFLAGS-test-ildouble.c): New variable
13186
13187         * math/test-ildoubl.c: Rename to
13188         * math/test-ildouble.c: New file.
13189
13190 2016-08-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13191
13192         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernal_tanl):
13193         Use fabsl instead of fabs.
13194         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl):
13195         Likewise.
13196         * sysdeps/ieee754/ldbl-128/s_atanl.c (__kernel_tanl):
13197         Add long double suffix to constant to ensure proper
13198         promotion to long double.
13199
13200 2016-08-03  Tom Tromey  <tom@tromey.com>
13201
13202         [BZ #20311]
13203         * nptl_db/Makefile (headers): Add proc_service.h.
13204         * nptl_db/proc_service.h: Add include guard.  Use
13205         __BEGIN/__END_DECLS.
13206         (ps_get_thread_area, ps_pstop, ps_pcontinue, ps_lstop)
13207         (ps_lcontinue): Remove "const" from "struct ps_prochandle *"
13208         arguments.
13209
13210
13211 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13212
13213         [BZ #17730]
13214         Avoid using memalign for TCB allocations.
13215         * elf/dl-tls.c (tcb_to_pointer_to_free_location): New.
13216         (_dl_allocate_tls_storage): Use malloc and manual alignment.
13217         Avoid alignment gap in the TLS_DTV_AT_TP case.
13218         (_dl_deallocate_tls): Use tcb_to_pointer_to_free_location to
13219         determine the pointer to free.
13220         * nptl/tst-tls3-malloc.c: New test.
13221         * nptl/Makefile (tests): Add it.
13222         (tst-tls3-malloc): Link with libdl, libpthread.
13223         (LDFLAGS-tst-tls3-malloc): Set.
13224         (tst-tls3-malloc.out): Depend on DSO used in test.
13225
13226 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13227
13228         [BZ #17730]
13229         Avoid using memalign for TLS allocations.
13230         * sysdeps/generic/dl-dtv.h (struct dtv_pointer): New.  Replaces
13231         is_static member with to_free member.
13232         (union dtv): Use struct dtv_pointer.
13233         * csu/libc-tls.c (__libc_setup_tls): Set to_free member of struct
13234         dtv_pointer instead of is_static.
13235         * elf/dl-tls.c (_dl_allocate_tls_init): Likewise.
13236         (_dl_deallocate_tls): Free to_free member of struct dtv_pointer
13237         instead of val.
13238         (allocate_dtv_entry): New function.
13239         (allocate_and_init): Return struct dtv_pointer.  Call
13240         allocate_dtv_entry instead of __libc_memalign.
13241         (_dl_update_slotinfo): Free to_free member of struct dtv_pointer
13242         instead of val.
13243         (tls_get_addr_tail): Set to_free member of struct dtv_pointer
13244         instead of is_static.  Adjust call to allocate_and_init.
13245         * nptl/allocatestack.c (get_cached_stack): Free to_free member of
13246         struct dtv_pointer instead of val.
13247
13248 2016-08-03  Florian Weimer  <fweimer@redhat.com>
13249
13250         * malloc/malloc.c (INTERNAL_SIZE_T, SIZE_SZ, MALLOC_ALIGNMENT)
13251         (MALLOC_ALIGN_MASK): Move ...
13252         * malloc/malloc-internal.h: ... to here.
13253         * elf/dl-minimal.c (malloc): Allocate with MALLOC_ALIGNMENT.
13254
13255 2016-08-03  Joseph Myers  <joseph@codesourcery.com>
13256
13257         * sysdeps/gnu/netinet/udp.h (UDP_ENCAP_GTP0): New macro.
13258         (UDP_ENCAP_GTP1U): Likewise.
13259
13260         * sysdeps/unix/sysv/linux/bits/socket.h (PF_QIPCRTR): New macro.
13261         (PF_MAX): Update value.
13262         (AF_QIPCRTR): New macro.
13263
13264 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13265
13266         * sysdeps/ieee754/dbl-64/s_trunc.c: Avoid alias renamed.
13267         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
13268         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
13269         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
13270         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13271         Add s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13272         s_truncf-vis3, s_trunc-vis3.
13273         (CFLAGS-s_ceilf-vis3.c): New. Set to -Wa,-Av9d -mvis3.
13274         (CFLAGS-s_ceil-vis3.c): Likewise.
13275         (CFLAGS-s_floorf-vis3.c): Likewise.
13276         (CFLAGS-s_floor-vis3.c): Likewise.
13277         (CFLAGS-s_truncf-vis3.c): Likewise.
13278         (CFLAGS-s_trunc-vis3.c): Likewise.
13279         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.c: New file.
13280         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
13281         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.c: Likewise.
13282         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
13283         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.c: Likewise.
13284         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13285         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.c: Likewise.
13286         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13287         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.c: Likewise.
13288         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
13289         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.c: Likewise.
13290         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
13291
13292 2016-08-02  David S. Miller  <davem@davemloft.net>
13293
13294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13295         (__nearbyint_vis3): Don't check for sNaN before float register is
13296         loaded with the incoming argument.
13297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13298         (__nearbyintf_vis3): Likewise.
13299         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint):
13300         Likewise.
13301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf):
13302         Likewise.
13303
13304         * string/test-strncmp.c (do_test_limit): Make sure the test data
13305         stream is aligned as required for the type "CHAR".
13306         (do_test): Likewise.
13307
13308 2016-08-03  Aurelien Jarno  <aurelien@aurel32.net>
13309
13310         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Replace beqlr instructions
13311         by beq instructions jumping to the end of the function.
13312         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Add "11", "12", "cr0" to the
13313         clobber list. Use "i" constraint instead of "X".
13314         (ifunc_one): Add "12" to the clobber list. Use "i" constraint instead
13315         of "X".
13316
13317 2016-08-02  Joseph Myers  <joseph@codesourcery.com>
13318
13319         * bits/libc-header-start.h: New file.
13320         * Makefile (headers): Add bits/libc-header-start.h.
13321         * include/features.h (__STDC_WANT_LIB_EXT2__): Document.
13322         (__GLIBC_USE): New macro.
13323         * libio/stdio.h: Define
13324         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13325         <bits/libc-header-start.h> instead of including <features.h>.
13326         (fmemopen): Declare also if [__GLIBC_USE (LIB_EXT2)].
13327         (open_memstream): Likewise.
13328         (vasprintf): Declare if [__GLIBC_USE (LIB_EXT2)], not [__USE_GNU].
13329         (__asprintf): Likewise.
13330         (asprintf): Likewise.
13331         (__getdelim): Declare also if [__GLIBC_USE (LIB_EXT2)].
13332         (getdelim): Likewise.
13333         (getline): Likewise.
13334         * string/string.h: Define
13335         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13336         <bits/libc-header-start.h> instead of including <features.h>.
13337         (strdup): Declare also if [__GLIBC_USE (LIB_EXT2)]
13338         (strndup): Likewise.
13339         * wcsmbs/wchar.h: Define
13340         __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION and include
13341         <bits/libc-header-start.h> instead of including <features.h>.
13342         (open_wmemstream): Declare also if [__GLIBC_USE (LIB_EXT2)].
13343         * manual/creature.texi (__STDC_WANT_LIB_EXT2__): Document macro.
13344
13345 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13346
13347         Support linking against compatibility symbols, for use in tests.
13348         * include/libc-symbols.h (symbol_version_reference): New macro.
13349         (symbol_version): Use it.
13350         * include/shlib-compat.h: Unconditionally include <abi-versions.h>.
13351         (compat_symbol): Use compat_symbol_reference.
13352         (compat_symbol_1, compat_symbol_2): Remove.
13353         (compat_symbol_reference, compat_symbol_reference_1)
13354         (compat_symbol_reference_2): New macro.  Use
13355         symbol_version_reference.
13356
13357 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13358
13359         [BZ #19469]
13360         * malloc/Makefile (CPPFLAGS): Compile tests with
13361         -DTEST_NO_MALLOPT.
13362         * test-skeleton.c (main): Only call mallopt if !TEST_NO_MALLOPT.
13363
13364 2016-08-02  Andrew Senkevich  <andrew.senkevich@intel.com>
13365
13366         [BZ #20033]
13367         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: Call
13368         finite version.
13369         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: Likewise.
13370         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: Likewise.
13371         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: Likewise.
13372         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: Likewise.
13373         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: Likewise.
13374         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: Likewise.
13375         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: Likewise.
13376         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: Likewise.
13377         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Likewise.
13378         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: Likewise.
13379         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: Likewise.
13380         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: Likewise.
13381         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: Likewise.
13382         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: Likewise.
13383         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: Likewise.
13384         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: Likewise.
13385         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: Likewise.
13386         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: Likewise.
13387         * sysdeps/x86_64/fpu/svml_d_log2_core.S: Likewise.
13388         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: Likewise.
13389         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: Likewise.
13390         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: Likewise.
13391         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: Likewise.
13392         * math/libm-test.inc (pow_test_data): Exclude tests for qNaN
13393         in zero power.
13394
13395 2016-08-02  Florian Weimer  <fweimer@redhat.com>
13396
13397         [BZ #20370]
13398         * malloc/arena.c (get_free_list): Update comment.  Assert that
13399         arenas on the free list have no attached threads.
13400         (remove_from_free_list): New function.
13401         (reused_arena): Call it.
13402
13403 2016-08-02  Aurelien Jarno  <aurelien@aurel32.net>
13404
13405         * sysdeps/alpha/fpu/s_ceil.c (__ceil): Add argument with itself
13406         when it is a NaN.
13407         [_IEEE_FP_INEXACT] Remove.
13408         * sysdeps/alpha/fpu/s_ceilf.c (__ceilf): Likewise.
13409         * sysdeps/alpha/fpu/s_floor.c (__floor): Add argument with itself
13410         when it is a NaN.
13411         [_IEEE_FP_INEXACT] Remove.
13412         * sysdeps/alpha/fpu/s_floorf.c (__floorf): Likewise.
13413         * sysdeps/alpha/fpu/s_rint.c (__rint): Add argument with itself
13414         when it is a NaN.
13415         * sysdeps/alpha/fpu/s_rintf.c (__rintf): Likewise.
13416         * sysdeps/alpha/fpu/s_trunc.c (__trunc): Return the input value
13417         when its absolute value is greater than 0x1.0p52.
13418         [_IEEE_FP_INEXACT] Remove.
13419         * sysdeps/alpha/fpu/s_truncf.c (__truncf): Return the input value
13420         when its absolute value is greater than 0x1.0p23.
13421         [_IEEE_FP_INEXACT] Remove.
13422
13423 2016-08-01  Carlos O'Donell  <carlos@redhat.com>
13424
13425         * version.h (RELEASE): Set to "development"
13426         (VERSION): Set to 2.24.90.
13427         * NEWS: Add 2.25 section.
13428
13429         * version.h (RELEASE): Set to "stable"
13430         (VERSION): Set to 2.24.
13431         * include/features.h (__GLIBC_MINOR__): Set to 24.
13432
13433         * NEWS: Add 2.24 fixed bugs.
13434         * po/libc.pot: Regenerate.
13435
13436 2016-08-01  Aurelien Jarno  <aurelien@aurel32.net>
13437
13438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
13439         [$(subdir) = math] (libm-sysdep_routines): Remove.
13440         [$(subdir) = math && $(have-as-vis3) = yes] (libm-sysdep_routines):
13441         Remove s_ceilf-vis3, s_ceil-vis3, s_floorf-vis3, s_floor-vis3,
13442         s_truncf-vis3, s_trunc-vis3.
13443         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
13444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: Delete
13445         file.
13446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Likewise.
13447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Likewise.
13448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
13451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: Likewise.
13452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Likewise.
13453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
13454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: Likewise.
13455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: Likewise.
13456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
13457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: Likewise.
13458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: Likewise.
13459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: Likewise.
13460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: Likewise.
13461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
13462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
13464         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: Likewise.
13465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: Likewise.
13466         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: Likewise.
13467         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: Likewise.
13468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
13469         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
13470         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: Likewise.
13471         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
13472         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
13473         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: Likewise.
13474         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
13475         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
13476         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: Likewise.
13477         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
13478         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
13479         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: Likewise.
13480         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: Likewise.
13481         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: Likewise.
13482         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: Likewise.
13483         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13484         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13485         * sysdeps/sparc/sparc64/fpu/s_floor.S: Likewise.
13486         * sysdeps/sparc/sparc64/fpu/s_floorf.S: Likewise.
13487         * sysdeps/sparc/sparc64/fpu/s_trunc.S: Likewise.
13488         * sysdeps/sparc/sparc64/fpu/s_truncf.S: Likewise.
13489
13490 2016-07-27  H.J. Lu  <hongjiu.lu@intel.com>
13491
13492         [BZ #20384]
13493         * sysdeps/x86_64/fpu/Makefile (extra-test-objs): Add
13494         test-double-libmvec-sincos-avx-main.o,
13495         test-double-libmvec-sincos-avx2-main.o,
13496         test-double-libmvec-sincos-main.o,
13497         test-float-libmvec-sincosf-avx-main.o,
13498         test-float-libmvec-sincosf-avx2-main.o and
13499         test-float-libmvec-sincosf-main.o.
13500         test-float-libmvec-sincosf-avx512-main.o.
13501         ($(objpfx)test-double-libmvec-sincos): Also link with
13502         $(objpfx)test-double-libmvec-sincos-main.o.
13503         ($(objpfx)test-double-libmvec-sincos-avx): Also link with
13504         $(objpfx)test-double-libmvec-sincos-avx-main.o.
13505         ($(objpfx)test-double-libmvec-sincos-avx2): Also link with
13506         $(objpfx)test-double-libmvec-sincos-avx2-main.o.
13507         ($(objpfx)test-float-libmvec-sincosf): Also link with
13508         $(objpfx)test-float-libmvec-sincosf-main.o.
13509         ($(objpfx)test-float-libmvec-sincosf-avx): Also link with
13510         $(objpfx)test-float-libmvec-sincosf-avx2-main.o.
13511         [$(config-cflags-avx512) == yes] (extra-test-objs): Add
13512         test-double-libmvec-sincos-avx512-main.o and
13513         ($(objpfx)test-double-libmvec-sincos-avx512): Also link with
13514         $(objpfx)test-double-libmvec-sincos-avx512-main.o.
13515         ($(objpfx)test-float-libmvec-sincosf-avx512): Also link with
13516         $(objpfx)test-float-libmvec-sincosf-avx512-main.o.
13517         (CFLAGS-test-double-libmvec-sincos.c): Removed.
13518         (CFLAGS-test-float-libmvec-sincosf.c): Likewise.
13519         (CFLAGS-test-double-libmvec-sincos-main.c): New.
13520         (CFLAGS-test-double-libmvec-sincos-avx-main.c): Likewise.
13521         (CFLAGS-test-double-libmvec-sincos-avx2-main.c): Likewise.
13522         (CFLAGS-test-float-libmvec-sincosf-main.c): Likewise.
13523         (CFLAGS-test-float-libmvec-sincosf-avx-main.c): Likewise.
13524         (CFLAGS-test-float-libmvec-sincosf-avx2-main.c): Likewise.
13525         (CFLAGS-test-float-libmvec-sincosf-avx512-main.c): Likewise.
13526         (CFLAGS-test-double-libmvec-sincos-avx.c): Set to -DREQUIRE_AVX.
13527         (CFLAGS-test-float-libmvec-sincosf-avx.c ): Likewise.
13528         (CFLAGS-test-double-libmvec-sincos-avx2.c): Set to
13529         -DREQUIRE_AVX2.
13530         (CFLAGS-test-float-libmvec-sincosf-avx2.c ): Likewise.
13531         (CFLAGS-test-double-libmvec-sincos-avx512.c): Set to
13532         -DREQUIRE_AVX512F.
13533         (CFLAGS-test-float-libmvec-sincosf-avx512.c): Likewise.
13534         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Rewritten.
13535         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13536         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx-main.c: New
13537         file.
13538         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2-main.c:
13539         Likewise.
13540         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512-main.c:
13541         Likewise.
13542         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-main.c:
13543         Likewise.
13544         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx-main.c:
13545         Likewise.
13546         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2-main.c:
13547         Likewise.
13548         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512-main.c:
13549         Likewise.
13550         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-main.c:
13551         Likewise.
13552
13553 2016-07-27  Chung-Lin Tang  <cltang@codesourcery.com>
13554
13555         * sysdeps/unix/sysv/linux/nios2/localplt.data (__eqsf2): Remove.
13556
13557 2016-07-21  Gustavo Romero  <gromero@linux.vnet.ibm.com>
13558
13559         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix missing verb
13560         and typo in a comment about AT_HWCAP entry.
13561
13562 2016-07-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13563
13564         * sysdeps/aarch64/libm-test-ulps: Updated.
13565
13566 2016-07-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13567
13568         * sysdeps/s390/s390-32/memcpy.S (memcpy): Eliminate the usage
13569         of r13 as it is not restored in mvcle case.
13570
13571 2016-07-19  Mike Frysinger  <vapier@gentoo.org>
13572
13573         * sysdeps/unix/sysv/linux/microblaze/sysdep.h (inline_syscall0):
13574         Rename "ret" to "__ret".
13575         (inline_syscall1, inline_syscall2, inline_syscall3, inline_syscall4,
13576         inline_syscall5, inline_syscall6): Likewise.
13577
13578 2016-07-19   Will Newton  <will.newton@gmail.com>
13579
13580         * elf/elf.h (R_METAG_REL8, R_METAG_REL16, R_METAG_TLS_GD
13581         R_METAG_TLS_LDM, R_METAG_TLS_LDO_HI16, R_METAG_TLS_LDO_LO16,
13582         R_METAG_TLS_LDO, R_METAG_TLS_IE, R_METAG_TLS_IENONPIC,
13583         R_METAG_TLS_IENONPIC_HI16, R_METAG_TLS_IENONPIC_LO16,
13584         R_METAG_TLS_LE, R_METAG_TLS_LE_HI16, R_METAG_TLS_LE_LO16): New.
13585
13586 2016-07-18  H.J. Lu  <hongjiu.lu@intel.com>
13587
13588         * sysdeps/i386/Makefile (rtld-CFLAGS): New.
13589         [subdir == elf] (CFLAGS-.os): Replace -mno-sse -mno-mmx
13590         -mfpmath=387 with $(rtld-CFLAGS).
13591         [subdir != elf] (CFLAGS-.os): Compile rtld-*.os with
13592         $(rtld-CFLAGS).
13593
13594 2016-07-18   Ross Burton  <ross.burton@intel.com>
13595              Khem Raj  <raj.khem@gmail.com>
13596
13597         * elf/elf.h (R_METAG_HIADDR16, R_METAG_LOADDR16,
13598         R_METAG_ADDR32, R_METAG_NONE, R_METAG_RELBRANCH,
13599         R_METAG_GETSETOFF, R_METAG_REG32OP1, R_METAG_REG32OP2,
13600         R_METAG_REG32OP3, R_METAG_REG16OP1, R_METAG_REG16OP2,
13601         R_METAG_REG16OP3, R_METAG_REG32OP4, R_METAG_HIOG,
13602         R_METAG_LOOG, R_METAG_GNU_VTINHERIT, R_METAG_GNU_VTENTRY,
13603         R_METAG_HI16_GOTOFF, R_METAG_LO16_GOTOFF,
13604         R_METAG_GETSET_GOTOFF, R_METAG_GETSET_GOT, R_METAG_HI16_GOTPC,
13605         R_METAG_LO16_GOTPC, R_METAG_HI16_PLT, R_METAG_LO16_PLT,
13606         R_METAG_RELBRANCH_PLT, R_METAG_GOTOFF, R_METAG_PLT,
13607         R_METAG_COPY, R_METAG_JMP_SLOT, R_METAG_RELATIVE,
13608         R_METAG_GLOB_DAT, R_METAG_TLS_TPOFF, R_METAG_TLS_DTPMOD,
13609         R_METAG_TLS_DTPOFF): New.
13610
13611 2016-07-18  Siddhesh Poyarekar  <siddhesh@sourceware.org>
13612             Matt Clay  <mclay@lycos.com>
13613
13614         [BZ #20357]
13615         * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
13616         to call __mpsin/__mpcos and to negate values.
13617         * math/auto-libm-test-in: Add test.
13618         * math/auto-libm-test-out: Regenerate.
13619
13620 2016-07-18  Zack Weinberg  <zackw@panix.com>
13621
13622         * grp/Makefile: Don't install the internal header grp-merge.h.
13623
13624 2016-07-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13625
13626         * sysdeps/aarch64/libm-test-ulps: Regenerated.
13627
13628 2016-07-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13629
13630         * bits/termios.h (TABDLY): Change macro to include TAB3 bit too.
13631
13632 2016-07-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13633
13634         [BZ #15368]
13635         * sysdeps/unix/sysv/linux/nptl-signals.h
13636         (__nptl_clear_internal_signals): New function.
13637         (__libc_signal_block_all): Likewise.
13638         (__libc_signal_block_app): Likewise.
13639         (__libc_signal_restore_set): Likewise.
13640         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Use Linux raise.c
13641         implementation.
13642         * sysdeps/unix/sysv/linux/raise.c (raise): Reimplement to not use
13643         the cached pid/tid value in pthread structure.
13644
13645 2016-07-13  H.J. Lu  <hongjiu.lu@intel.com>
13646
13647         [BZ #20347]
13648         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
13649
13650 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13651
13652         [BZ #20348]
13653         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add pread64,
13654         preadv64, pwrite64 and pwritev64.
13655
13656 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13657
13658         [BZ #20350]
13659         * posix/tst-preadwrite.c: Renamed to ...
13660         * posix/tst-preadwrite-common.c: This.
13661         (PREAD): Removed.
13662         (PWRITE): Likewise.
13663         (STRINGIFY): Likewise.
13664         (STRINGIFY2): Likewise.
13665         (do_prepare): Make it static and remove function arguments.
13666         (do_test): Likewise.
13667         (PREPARE): Updated.
13668         (TEST_FUNCTION): New.
13669         (name): Make it static.
13670         (fd): Likewise.
13671         (do_prepare): Use create_temp_file.
13672         (do_test): Renamed to ...
13673         (do_test_with_offset): This.  Make it static and accept offset.
13674         Properly check return value of PWRITE and PREAD.  Return bytes
13675         read.  Don't close fd nor unlink name.
13676         * posix/tst-preadwrite.c: Rewrite.
13677         * posix/tst-preadwrite64.c: Likewise.
13678
13679 2016-07-12  H.J. Lu  <hongjiu.lu@intel.com>
13680
13681         [BZ #20309]
13682         * configure.ac (have-mtls-dialect-gnu2): Set to yes if
13683         -mtls-dialect=gnu2 works.
13684         * configure: Regenerated.
13685         * elf/Makefile [have-mtls-dialect-gnu2 = yes]
13686         (tests): Add tst-gnu2-tls1.
13687         (modules-names): Add tst-gnu2-tls1mod.
13688         ($(objpfx)tst-gnu2-tls1): New.
13689         (tst-gnu2-tls1mod.so-no-z-defs): Likewise.
13690         (CFLAGS-tst-gnu2-tls1mod.c): Likewise.
13691         * elf/tst-gnu2-tls1.c: New file.
13692         * elf/tst-gnu2-tls1mod.c: Likewise.
13693         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Add 8
13694         bytes for push in the PLT entry to align the stack.
13695
13696 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
13697
13698         [BZ #20349]
13699         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
13700
13701 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13702
13703         [BZ #18707]
13704         * sysdeps/aarch64/Makefile (CFLAGS-mcount.c): Add -mgeneral-regs-only.
13705         * sysdeps/aarch64/sysdep.h (CALL_MCOUNT): Save argument registers.
13706
13707 2016-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13708
13709         * sysdeps/unix/sysv/linux/sysdep.h
13710         [__WORDSIZE == 64 || __ASSUME_WORDSIZE64_ILP32] (LO_HI_LONG): Remove
13711         guards.
13712         * misc/tst-preadvwritev-common.c: New file.
13713         * misc/tst-preadvwritev.c: Use tst-preadvwritev-common.c.
13714         * misc/tst-preadvwritev64.c: Use tst-preadwritev-common.c and add
13715         a check for files larger than 2GB.
13716
13717         * sysdeps/unix/sysv/linux/mips/kernel-features.h
13718         (__ASSUME_OFF_DIFF_OFF64): Remove define.
13719         * sysdeps/unix/sysv/linux/pread.c
13720         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread): Replace by
13721         __OFF_T_MATCHES_OFF64_T.
13722         * sysdeps/unix/sysv/linux/pread64.c
13723         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pread64): Likewise.
13724         * sysdeps/unix/sysv/linux/preadv.c
13725         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Likewise.
13726         * sysdeps/unix/sysv/linux/preadv64.c
13727         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv64): Likewise.
13728         * sysdeps/unix/sysv/linux/pwrite.c
13729         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite): Likewise.
13730         * sysdeps/unix/sysv/linux/pwrite64.c
13731         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwrite64): Likewise.
13732         * sysdeps/unix/sysv/linux/pwritev.c
13733         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Likewise.
13734         * sysdeps/unix/sysv/linux/pwritev64.c
13735         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev64): Likewise.
13736
13737 2016-07-08  Chris Metcalf  <cmetcalf@mellanox.com>
13738
13739         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13740         (__ASSUME_ALIGNED_REGISTER_PAIRS): Only define if !_LP64.
13741
13742 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13743
13744         * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0.
13745
13746 2016-07-08  Aurelien Jarno  <aurelien@aurel32.net>
13747
13748         [BZ #20240]
13749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
13750         (CFLAGS-s_modf-ppc32.c): New variable.
13751         (CFLAGS-s_modff-ppc32.c): Likewise.
13752         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13753         (CFLAGS-s_modf-ppc64.c): Likewise.
13754         (CFLAGS-s_modff-ppc64.c): Likewise.
13755
13756 2016-07-07  Andreas Schwab  <schwab@suse.de>
13757
13758         [BZ #20263]
13759         * nptl/tst-robust10.c: New test.
13760         * nptl/Makefile (tests): Add tst-robust10.
13761
13762 2016-07-07  Jiyoung Yun  <t2wish@gmail.com>
13763
13764         [BZ #20263]
13765         * nptl/lowlevelrobustlock.c: Implement ETIMEDOUT logic.
13766
13767 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
13768
13769         * sysdeps/s390/linkmap.h (struct link_map_machine):
13770         Remove member gotplt and add member jmprel.
13771         * sysdeps/s390/s390-32/dl-machine.h
13772         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
13773         instead of gotplt with &got[3].
13774         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
13775         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
13776
13777 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
13778
13779         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
13780
13781 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13782
13783         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
13784         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
13785         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13786         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
13787         * libio/vtables.c (_IO_vtable_check)
13788         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
13789         * libio/libioP.h (IO_set_accept_foreign_vtables)
13790         [!PTR_MANGLE]: Do not call PTR_MANGLE.
13791
13792 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13793
13794         [BZ #20314]
13795         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
13796         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
13797         $(common-objpfx)cmath.
13798         ($(common-objpfx)cstdlib): New target.
13799         ($(common-objpfx)cmath): Likewise.
13800
13801 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
13802
13803         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
13804
13805 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13806
13807         [BZ #20327]
13808         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
13809         are not part of the string.
13810
13811 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13812
13813         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
13814         * nptl/tst-cancel4-common.h (fifoname): New variable.
13815         (fifofd): Likewise.
13816         (cl_fifo): New function.
13817         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
13818         SIGINT.
13819         (tf_open): Add early cancel test.
13820
13821 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
13822
13823         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
13824
13825 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
13826
13827         * sysdeps/generic/ldsodefs.h
13828         (dl_symbol_visibility_binds_local_p): New inline function.
13829         * elf/dl-addr.c (determine_info): Treat hidden and internal
13830         symbols as local.
13831         * elf/dl-lookup.c (do_lookup_x): Likewise.
13832         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
13833
13834 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
13835
13836         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
13837         invalid exception for a sNaN input.
13838         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13839         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
13840         (__nearbyint_vis3): Likewise
13841         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
13842         (__nearbyintf_vis3): Likewise
13843         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
13844         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
13845         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
13846         Likewise.
13847         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
13848         Likewise.
13849
13850 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
13851
13852         [BZ #20139]
13853         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
13854         (HAVE_AVX512DQ_ASM_SUPPORT): This.
13855         * sysdeps/x86_64/configure.ac: Require assembler from binutils
13856         2.24 or above.
13857         (HAVE_AVX512_ASM_SUPPORT): Removed.
13858         (HAVE_AVX512DQ_ASM_SUPPORT): New.
13859         * sysdeps/x86_64/configure: Regenerated.
13860         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
13861         check unconditional.
13862         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13863         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13864         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13865         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
13866         Likewise.
13867         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
13868         Likewise.
13869         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
13870         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
13871         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13872         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13873         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
13874         Likewise.
13875         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
13876         Likewise.
13877         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13878         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13879         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
13880         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
13881         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
13882         Likewise.
13883         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
13884         Likewise.
13885         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
13886         Likewise.
13887         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
13888         Likewise.
13889         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
13890         Likewise.
13891         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
13892         Likewise.
13893         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
13894         Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
13896         Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
13898         Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
13900         Likewise.
13901         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
13902         Likewise.
13903
13904 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
13905
13906         [BZ #20024]
13907         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
13908         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
13909         of this implementation of vector function.
13910         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
13911         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
13912         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
13913         Likewise.
13914         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
13915         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
13916         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
13917         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
13918         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
13919         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
13920         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
13921         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
13922         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
13923         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
13924         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
13925         for testing vector sincos with fixed ABI.
13926         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
13927         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
13928         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
13929         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
13930         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
13931         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
13932         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
13933         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
13934         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
13935         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
13936         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
13937         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
13938         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
13939         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
13940         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
13941         * sysdeps/x86_64/fpu/Makefile: Added new tests.
13942
13943 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13944
13945         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
13946
13947 2016-06-30  Anton Blanchard  <anton@samba.org>
13948
13949         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13950         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
13951         s_sinf-ppc64.
13952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
13953         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13955         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13956
13957 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13958
13959         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13960         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13961         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
13962         e_expf-ppc64.
13963         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
13964         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
13965         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
13966         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
13967
13968 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
13969
13970         [BZ #20277]
13971         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
13972         when SHARED is defined.
13973
13974 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
13975
13976         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
13977         (index_arch_Prefer_ERMS): Likewise.
13978         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
13979         __memcpy_erms for Prefer_ERMS.
13980         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13981         (__memmove_erms): Enabled for libc.a.
13982         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
13983         __memmove_erms or Prefer_ERMS.
13984         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
13985         __mempcpy_erms for Prefer_ERMS.
13986         * sysdeps/x86_64/multiarch/memset.S (memset): Return
13987         __memset_erms for Prefer_ERMS.
13988
13989 2016-06-30  Andreas Schwab  <schwab@suse.de>
13990
13991         [BZ #20262]
13992         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
13993         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
13994         of memory.
13995
13996 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
13997
13998         [BZ #18645]
13999         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
14000         (test-extras): Add tst-cleanupx4aux.
14001         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
14002         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
14003         tst-cleanupx4aux.o.
14004         * nptl/tst-cleanupx4aux.c: New file.
14005
14006 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
14007
14008         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
14009
14010 2016-06-29  Andreas Schwab  <schwab@suse.de>
14011
14012         [BZ #20260]
14013         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
14014         address before the beginning of the string as an integer to avoid
14015         array-bounds warning.
14016
14017 2016-06-28  Richard Henderson  <rth@redhat.com>
14018
14019         * elf/elf.h (EM_BPF): New.
14020         (EM_NUM): Update.
14021         (R_BPF_NONE, R_BPF_MAP_FD): New.
14022
14023         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
14024         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
14025         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
14026         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
14027         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
14028         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
14029         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
14030         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
14031         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
14032         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
14033         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
14034         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
14035         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
14036         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
14037         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
14038         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
14039         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
14040         (EM_NUM): Update.
14041
14042 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
14043
14044         [BZ #18960]
14045         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
14046         Set _nl_current_LC_CATEGORY_used to two instead of one.
14047
14048 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
14049
14050         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
14051         (do_test): ... this.
14052         (TEST_FUNCTION): New macro.
14053          Include test-skeleton.c.
14054         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
14055         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
14056
14057 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
14058
14059         [BZ #15479]
14060         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
14061         floating-point environment rather than just control word.
14062         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
14063         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
14064         floating-point environment, with "invalid" exceptions merged in,
14065         rather than just control word.
14066         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
14067         * math/libm-test.inc (trunc_test_data): Do not allow spurious
14068         "inexact" exceptions.
14069
14070         [BZ #15479]
14071         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
14072         floating-point environment rather than just control word.
14073         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
14074         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
14075         floating-point environment, with "invalid" exceptions merged in,
14076         rather than just control word.
14077         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
14078         * math/libm-test.inc (floor_test_data): Do not allow spurious
14079         "inexact" exceptions.
14080
14081         [BZ #15479]
14082         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
14083         floating-point environment rather than just control word.
14084         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
14085         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
14086         floating-point environment, with "invalid" exceptions merged in,
14087         rather than just control word.
14088         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
14089         * math/libm-test.inc (ceil_test_data): Do not allow spurious
14090         "inexact" exceptions.
14091
14092 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
14093
14094         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
14095         __libc_vfork.
14096         (__vfork) [IS_IN (libc)]: Remove alias.
14097         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
14098         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14099         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14100
14101 2016-06-24  Torvald Riegel  <triegel@redhat.com>
14102
14103         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
14104         of atomic_compare_and_exchange_bool_rel.
14105         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
14106         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
14107         catomic_compare_and_exchange_bool_rel): Remove.
14108         * sysdeps/aarch64/atomic-machine.h
14109         (atomic_compare_and_exchange_bool_rel): Likewise.
14110         * sysdeps/alpha/atomic-machine.h
14111         (atomic_compare_and_exchange_bool_rel): Likewise.
14112         * sysdeps/arm/atomic-machine.h
14113         (atomic_compare_and_exchange_bool_rel): Likewise.
14114         * sysdeps/mips/atomic-machine.h
14115         (atomic_compare_and_exchange_bool_rel): Likewise.
14116         * sysdeps/microblaze/atomic-machine.h
14117         ( __arch_compare_and_exchange_bool_8_rel,
14118         __arch_compare_and_exchange_bool_16_rel): Likewise.
14119         * sysdeps/powerpc/atomic-machine.h
14120         ( __arch_compare_and_exchange_bool_8_rel,
14121         __arch_compare_and_exchange_bool_16_rel): Likewise.
14122         * sysdeps/powerpc/powerpc32/atomic-machine.h
14123         ( __arch_compare_and_exchange_bool_32_rel,
14124         __arch_compare_and_exchange_bool_64_rel): Likewise.
14125         * sysdeps/powerpc/powerpc64/atomic-machine.h
14126         ( __arch_compare_and_exchange_bool_32_rel,
14127         __arch_compare_and_exchange_bool_64_rel): Likewise.
14128         * sysdeps/tile/atomic-machine.h
14129         (atomic_compare_and_exchange_bool_rel): Likewise.
14130
14131 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
14132
14133         [BZ #20296]
14134         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
14135         when either argument is a NaN.
14136         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
14137         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
14138
14139         * math/libm-test.inc (snan_value_ld): New macro.
14140         (isgreater_test_data): Add sNaN tests.
14141         (isgreaterequal_test_data): Likewise.
14142         (isless_test_data): Likewise.
14143         (islessequal_test_data): Likewise.
14144         (islessgreater_test_data): Likewise.
14145         (isunordered_test_data): Likewise.
14146         (nextafter_test_data): Likewise.
14147         (nexttoward_test_data): Likewise.
14148         (remainder_test_data): Likewise.
14149         (remquo_test_data): Likewise.
14150         (significand_test_data): Likewise.
14151         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
14152
14153 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14154
14155         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
14156         environment macros are defined.
14157         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
14158
14159 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14160
14161         [BZ #20191]
14162         Implement vtable verification in libio.
14163         * Makerules (shlib.lds): Place __libc_IO_vtables section.
14164         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
14165         * debug/vdprintf_chk.c (__vdprintf_chk): Call
14166         _IO_new_file_init_internal instead of _IO_file_init.
14167         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
14168         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
14169         * libio/Makefile (routines): Add vtables.
14170         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
14171         (_IO_init): Remove, not for internal use.
14172         (_IO_init_internal): Declare, internal replacement for _IO_init.
14173         (_IO_file_init): Remove, not for internal use.
14174         (_IO_new_file_init): Remove, not for internal use.
14175         (_IO_new_file_init_internal): Declare, internal replacement for
14176         _IO_new_file_init.
14177         (_IO_old_file_init): Remove, not for internal use.
14178         (_IO_old_file_init_internal): Declare, internal replacement for
14179         _IO_old_file_init.
14180         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
14181         internal use.
14182         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
14183         Declare.
14184         (libio_vtable): New macro.
14185         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
14186         functions.
14187         * libio/fileops.c (_IO_new_file_init_internal): Rename from
14188         _IO_new_file_init.
14189         (_IO_new_file_init): New externally visible wrapper which disables
14190         vtable verification.
14191         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
14192         Define as vtables.
14193         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
14194         (_IO_init): New externally visible wrapper which disables
14195         vtable verification.
14196         * libio/iofdopen.c (_IO_new_fdopen): Call
14197         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
14198         comment.
14199         * libio/iofopen.c (__fopen_internal): Call
14200         _IO_new_file_init_internal instead of _IO_file_init.
14201         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
14202         Define as vtables.
14203         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
14204         _IO_new_file_init_internal instead of _IO_file_init.
14205         * libio/iopopen.c (_IO_new_popen): Likewise.
14206         (_IO_proc_jumps): Define as vtable.
14207         * libio/iovdprintf.c (_IO_vdprintf): Call
14208         _IO_new_file_init_internal instead of _IO_file_init.
14209         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
14210         (__open_memstream): Call _IO_init_internal instead of _IO_init.
14211         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
14212         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
14213         _IO_old_file_init.
14214         (_IO_old_file_init): New externally visible wrapper which disables
14215         vtable verification.
14216         (_IO_old_file_jumps): Define as vtable.
14217         * libio/oldiofdopen.c (_IO_old_fdopen): Call
14218         _IO_old_file_init_internal instead of _IO_old_file_init.
14219         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
14220         * libio/oldiopopen.c (_IO_old_popen): Likewise.
14221         (_IO_old_proc_jumps): Define as vtable.
14222         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
14223         Define as vtables.
14224         * libio/vtables.c: New file.
14225         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
14226         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
14227         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
14228         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
14229         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
14230         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
14231         instead of _IO_init.
14232
14233 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14234
14235         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
14236
14237 2016-06-23  Florian Weimer  <fweimer@redhat.com>
14238
14239         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
14240         potentially unused.
14241
14242 2016-06-22  Florian Weimer  <fweimer@redhat.com>
14243
14244         * test-skeleton.c (write_message): New function.
14245         * malloc/tst-mallocfork2.c (write_message): Remove.
14246         * debug/tst-longjmp_chk2.c (write_indented): New function.
14247         (write_message): Remove.
14248         (stackoverflow_handler): Call write_indented.
14249
14250 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
14251
14252         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
14253         "inexact" exceptions after fnstenv.
14254         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
14255         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14256         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
14257
14258 2015-06-22  Zack Weinberg  <zackw@panix.com>
14259
14260         * sysdeps/generic/bits/hwcap.h: Moved to ...
14261         * bits/hwcap.h: Here.
14262
14263 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
14264
14265         * sysdeps/aarch64/memcpy.S (memcpy):
14266         Further tuning for performance.
14267
14268 2016-06-21  Florian Weimer  <fweimer@redhat.com>
14269
14270         [BZ #20284]
14271         * malloc/arena.c (reused_arena): Do not return NULL if we start
14272         out with a non-corrupted arena.
14273
14274 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14275
14276         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
14277         * misc/tst-preadvwritev.c: New file.
14278         * misc/tst-preadvwritev64.c: Likewise.
14279         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
14280         usage.
14281         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
14282         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
14283         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
14284         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
14285
14286 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
14287
14288         [BZ #19654]
14289         * sysdeps/x86_64/fpu/Makefile: Added new tests.
14290         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
14291         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
14292         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
14293         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
14294         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
14295         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
14296         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
14297         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
14298         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
14299         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
14300         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
14301         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
14302         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
14303         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
14304         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
14305         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
14306         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
14307         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
14308         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
14309         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
14310         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
14311         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
14312         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
14313         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
14314         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
14315
14316 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14317
14318         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
14319         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
14320
14321 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
14322
14323         * sysdeps/aarch64/memcpy.S (memcpy):
14324         Rewrite of optimized memcpy and memmove.
14325         * sysdeps/aarch64/memmove.S (memmove): Remove
14326         memmove code (merged into memcpy.S).
14327
14328 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14329
14330         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
14331         * sysdeps/generic/dl-dtv.h: New file.
14332         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14333         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
14334         (dtv_t): Remove.
14335         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14336         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
14337         (dtv_t): Remove.
14338         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14339         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
14340         (dtv_t): Remove.
14341         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14342         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
14343         (dtv_t): Remove.
14344         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14345         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
14346         (dtv_t): Remove.
14347         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14348         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
14349         (dtv_t): Remove.
14350         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14351         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
14352         (dtv_t): Remove.
14353         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
14354         (dtv_t): Remove.
14355         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14356         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
14357         (dtv_t): Remove.
14358         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14359         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
14360         (dtv_t): Remove.
14361         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14362         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
14363         (dtv_t): Remove.
14364         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14365         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
14366         (dtv_t): Remove.
14367         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14368         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
14369         (dtv_t): Remove.
14370         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14371         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
14372         (dtv_t): Remove.
14373         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14374         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
14375         (dtv_t): Remove.
14376         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
14377         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
14378         (dtv_t): Remove.
14379
14380 2016-06-20  Florian Weimer  <fweimer@redhat.com>
14381
14382         Revert symbol poisoning of  __malloc_initialize_hook.
14383         * include/stdc-predef.h (__malloc_initialize_hook): Remove
14384         poisoning.
14385         * malloc/Makefile: Remove un-poisoning.
14386         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
14387         instead of old__malloc_initialize_hook.
14388         * malloc/malloc-hooks.h: Likewise.
14389         * malloc/malloc.c: Likewise.
14390         * malloc/mcheck-init.c: Likewise.
14391
14392 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
14393
14394         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
14395
14396 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
14397
14398         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
14399         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
14400         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
14401         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
14402
14403 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14404
14405         * NEWS: Mention addition of nextup and nextdown.
14406         * manual/arith.texi: Document nextup and nextdown.
14407         * manual/libm-err-tab.pl: Add nextup and nextdown.
14408         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
14409         * math/Versions (libm): Add GLIBC_2.24.
14410         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
14411         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
14412         Add new test.
14413         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
14414         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
14415         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
14416         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
14417         (nextup_test_data): Likewise.
14418         (nextdown_test_data): Likewise.
14419         * math/s_nextdown.c: New file.
14420         * math/s_nextdownf.c: Likewise.
14421         * math/s_nextdownl.c: Likewise.
14422         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
14423         F(nextup): New function.
14424         F(nextdown): Likewise.
14425         * math/tgmath.h: Add nextup and nextdown.
14426         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
14427         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
14428         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14429         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14430         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14431         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
14432         Add nextup and nextdown.
14433         (CFLAGS-nldbl-nextup.c): New variable.
14434         (CFLAGS-nldbl-nextdown.c): Likewise.
14435         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
14436         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
14437         * sysdeps/nacl/libm.abilist: Update.
14438         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14439         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14440         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14441         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14442         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14443         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14444         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14445         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14446         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14447         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14448         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14449         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14452         Likewise.
14453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14455         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14456         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14457         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14458         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14459         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14460         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
14461         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
14462         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
14463         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14464         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14465         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14466
14467 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14468
14469         * manual/pattern.texi: Fix typos & grammar errors.
14470
14471 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14472
14473         * manual/search.texi: Fix typos & grammar errors.
14474
14475 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14476
14477         * manual/message.texi: Fix typos & grammar errors.
14478
14479 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
14480
14481         * manual/contrib.texi: Fix spelling typos.
14482         * manual/crypt.texi: Likewise.
14483         * manual/filesys.texi: Likewise.
14484         * manual/locale.texi: Likewise.
14485         * manual/message.texi: Likewise.
14486         * manual/nss.texi: Likewise.
14487         * manual/string.texi: Likewise.
14488
14489 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14490
14491         * manual/locale.texi: Fix typos & grammar errors.
14492
14493 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14494
14495         * manual/charset.texi: Fix typos & grammar errors.
14496
14497 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14498
14499         * manual/string.texi: Fix typos.
14500
14501 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14502
14503         * manual/ctype.texi: Fix typos.
14504
14505 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
14506
14507         * manual/memory.texi: Fix various typos & grammar errors.
14508
14509 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
14510
14511         [BZ #20255]
14512         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
14513         * math/libm-test.inc (fdim_test_data): Add another test.
14514
14515         [BZ #6796]
14516         [BZ #20255]
14517         [BZ #20256]
14518         * math/s_fdim.c: Include <math_private.h>.
14519         (__fdim): Use math_narrow_eval on result.
14520         * math/s_fdimf.c: Include <math_private.h>.
14521         (__fdimf): Use math_narrow_eval on result.
14522         * sysdeps/i386/fpu/s_fdim.S: Remove file.
14523         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
14524         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
14525         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
14526         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
14527         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
14528         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
14529         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
14530         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
14531         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
14532         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
14533         * math/libm-test.inc (fdim_test_data): Expect errno setting on
14534         overflow.  Add sNaN tests.
14535
14536         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
14537         fpclassify.
14538         * math/s_fdimf.c (__fdimf): Likewise.
14539         * math/s_fdiml.c (__fdiml): Likewise.
14540
14541 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14542
14543         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
14544         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
14545         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
14546         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
14547         ifunc'ed strcasecmp/strncasecmp.
14548         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
14549         [EALIGN]: Removed.
14550         [END]: Likewise.
14551         [__strcasecmp]: Define instead of the above to control symbol name.
14552         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
14553         for __strcasecmp_power8.
14554         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
14555         for __strncasecmp_power8.
14556         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
14557         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
14558         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
14559         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
14560         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
14561         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
14562
14563 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
14564
14565         [BZ #20252]
14566         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
14567         arguments when second argument is a NaN.
14568         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
14569         qNaN tests.
14570
14571         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
14572         (conj_test_data): Likewise.
14573         (copysign_test_data): Likewise.
14574         (creal_test_data): Likewise.
14575         (fma_test_data): Likewise.
14576         (fmod_test_data): Likewise.
14577
14578         [BZ #20250]
14579         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
14580         itself.
14581         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
14582         zero input to itself.
14583         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
14584         Likewise.
14585         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
14586         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
14587         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14588         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
14589         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
14590
14591 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14592
14593         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
14594         * nptl/tst-cancel4-common.c: New file.
14595         * nptl/tst-cancel4-common.h: Likewise.
14596         * nptl/tst-cancel4.c: Move common definitions to
14597         tst-cancel4-common.{c,h} file.
14598         * nptl/tst-cancel4_1.c: New test.
14599         * nptl/tst-cancel4_2.c: New test.
14600
14601 2016-06-13  Florian Weimer  <fweimer@redhat.com>
14602
14603         [BZ #20248]
14604         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
14605         (write_message): New function.
14606         (stackoverflow_handler): Call it instead of printf, to avoid
14607         excessive stack usage by printf.
14608         (do_test): Restore SIGSEGV, SIGBUS default handlers.
14609
14610 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14611
14612         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
14613         (prio_inherit_missing): Remove define.
14614         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14615         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14616         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
14617         Likewise.
14618         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14619         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14620         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14621         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14622         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14623         (__ASSUME_FUTEX_LOCK_PI): Likewise.
14624
14625 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14626
14627         [BZ #19670]
14628         [BZ #19672]
14629
14630         * io/test-lfs.c (do_prepare): Use xmalloc.
14631         * io/tst-fcntl.c (do_prepare): Likewise.
14632         * libio/tst-fopenloc.c (do_bz17916): Likewise.
14633         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
14634         * login/tst-utmp.c (do_prepare): Likewise.
14635         * posix/tst-exec.c (do_prepare): Likewise.
14636         * posix/tst-pathconf.c (prepare): Likewise.
14637         * posix/tst-spawn.c (do_prepare): Likewise.
14638         * posix/tst-truncate.c (do_prepare): Likewise.
14639         * rt/tst-aio.c (do_prepare): Likewise.
14640         * rt/tst-aio64.c (do_prepare): Likewise.
14641
14642 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14643
14644         [BZ #20237]
14645         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
14646         (get*ent): Set entidx to NULL during initialization.  If entidx is
14647         NULL, start iteration from the beginning.
14648
14649 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14650
14651         * malloc/malloc.c (musable): Return correct size for dumped fake
14652         mmapped chunk.
14653
14654 2016-06-11  Florian Weimer  <fweimer@redhat.com>
14655
14656         [BZ #20222]
14657         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
14658         (_IO_cookie_write): Likewise.
14659         (_IO_cookie_seek): Likewise.
14660         (_IO_cookie_close): Likewise.
14661         (_IO_old_cookie_seek): Likewise.
14662         (set_callbacks): New function.
14663         (_IO_cookie_init): Call set_callbacks to copy callbacks.
14664
14665 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
14666
14667         * locale/programs/localedef.c (oldstyle_tables): Remove.
14668         * locale/programs/localedef.h (oldstyle_tables): Likewise.
14669
14670 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
14671
14672         [BZ #20240]
14673         * math/Makefile (CFLAGS-s_modf.c): New variable.
14674         (CFLAGS-s_modff.c): Likewise.
14675         (CFLAGS-s_modfl.c): Likewise.
14676         * math/libm-test.inc (modf_test_data): Add sNaN tests.
14677
14678 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
14679
14680         [BZ #20215]
14681         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
14682         [!__GNUC_PREREQ (3,2)]: Likewise.
14683
14684 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
14685
14686         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
14687         (msghdr.msg_controllen): Likewise.
14688         (cmsghdr.cmsg_len): Likewise.
14689         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
14690         ptw-oldsendmsg.
14691         (CFLAGS-oldrecvmsg.c): Remove rule.
14692         (CFLAGS-oldsendmsg.c): Likewise.
14693         (CFLAGS-recvmsg.c): Add rule.
14694         (CFLAGS-sendmsg.c): Likewise.
14695         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
14696         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
14697         (CFLAGS-recvmsg.c): Remove rule.
14698         (CFLAGS-sendmsg.c): Likewise.
14699         (CFLAGS-oldrecvmsg.c): Likewise.
14700         (CFLAGS-oldsendmsg.c): Likewise.
14701         (CFLAGS-recvmmsg.c): Likewise.
14702         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
14703         to kernel defined interfaces.
14704         (msghdr.msg_controllen): Likewise.
14705         (cmsghdr.cmsg_len): Likewise.
14706         (msghdr.__glibc_reserved1): Remove member.
14707         (msghdr.__glibc_reserved2): Likewise.
14708         (cmsghdr.__glibc_reserved1): Likewise.
14709         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
14710         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
14711         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
14712         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
14713         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
14714         version.
14715         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
14716         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
14717         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
14718         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
14719         Remove recvmsg and sendmsg.
14720         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
14721         Likewise.
14722         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
14723         Likewise.
14724         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
14725         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
14726         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
14727         Likewise.
14728         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
14729         Likewise.
14730         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
14731         [libc] (GLIBC_2.24): Likewise.
14732         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
14733         Likewise.
14734         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
14735         Likewise.
14736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
14737         [libc] (GLIBC_2.24): Likewise.
14738         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
14739         Likewise.
14740         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
14741         Likewise.
14742         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
14743         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
14744         Likewise.
14745         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
14746         Likewise.
14747         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
14748         Likewise.
14749         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
14750         Likewise.
14751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
14752         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
14753         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
14754         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
14755         version for {recv,send,recm,sendm}msg.
14756         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14757         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14758         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14759         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14760         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14761         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14762         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14763         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14764         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14765         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14766         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14767         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14769         Likewise.
14770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14771         Likewise.
14772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14774         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14775         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14776         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14777         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14778         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14779         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
14781         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
14782         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
14783         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14784         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14785
14786 2016-06-10  Florian Weimer  <fweimer@redhat.com>
14787
14788         [BZ #19564]
14789         Remove __malloc_initialize_hook from the API.
14790         * malloc/malloc.h (__malloc_initialize_hook): Remove.
14791         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
14792         #pragma GCC poison.
14793         * malloc/malloc-hooks.h: New file.
14794         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
14795         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
14796         (old__malloc_initialize_hook): Rename from
14797         __malloc_initialize_hook to evade poisoning.  Turn into compat
14798         symbol.
14799         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
14800         __malloc_initialize_hook.
14801         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
14802         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
14803         * manual/memory.texi (Hooks for Malloc): Remove
14804         __malloc_initialize_hook.  Adjust hook example.
14805
14806 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
14807
14808         [BZ #20235]
14809         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
14810         itself.
14811         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
14812         * math/libm-test.inc (log2_test_data): Add sNaN tests.
14813
14814         [BZ #20234]
14815         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
14816         infinity or NaN input to itself.
14817
14818         [BZ #20233]
14819         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
14820         to itself.
14821
14822         [BZ #20232]
14823         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
14824         itself.
14825
14826 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14827
14828         * sysdeps/x86_64/start.S (_start): Always indirect branch to
14829         __libc_start_main via GOT.
14830
14831 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
14832
14833         * sysdeps/x86_64/memcopy.h: New file.
14834         * sysdeps/x86_64/wordcopy.c: Likewise.
14835
14836 2016-06-09  Florian Weimer  <fweimer@redhat.com>
14837
14838         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
14839         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
14840         <cstdlib>.
14841         (optimization_barrier): New.
14842         (do_test): Use it.  Call quick_exit in the global namespace.
14843         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
14844         instead of <cstdlib>, <thread>.
14845         (optimization_barrier): New.
14846         (non_main_thread): Adjust declaration.  Call optimization_barrier.
14847         Call quick_exit in the global namespace.
14848         (do_test): Call optimization_barrier.  Use pthread_create,
14849         pthread_join instead of std::thread.
14850
14851 2016-06-09  Andreas Schwab  <schwab@suse.de>
14852
14853         [BZ #19755]
14854         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
14855         new entries in auto-propagate mode.
14856         * nscd/grpcache.c (cache_addgr): Likewise.
14857
14858 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
14859
14860         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
14861         New functions.
14862         (add_temp_file): Use them.
14863
14864 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
14865
14866         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
14867
14868 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
14869
14870         [BZ #20229]
14871         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
14872         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
14873         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
14874
14875         [BZ #20228]
14876         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
14877         itself.
14878         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
14879         * math/libm-test.inc (log10_test_data): Add sNaN tests.
14880
14881         [BZ #20227]
14882         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
14883         itself.
14884         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
14885         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
14886         * math/libm-test.inc (log_test_data): Add sNaN tests.
14887
14888         [BZ #20226]
14889         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
14890         itself.
14891         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
14892         * math/libm-test.inc (exp_test_data): Add sNaN tests.
14893         (exp10_test_data): Likewise.
14894         (expm1_test_data): Likewise.
14895
14896         [BZ #20225]
14897         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
14898         itself.
14899         * math/s_ldexpf.c (__ldexpf): Likewise.
14900         * math/s_ldexpl.c (__ldexpl): Likewise.
14901         * math/w_scalbln.c (__w_scalbln): Likewise.
14902         * math/w_scalblnf.c (__w_scalblnf): Likewise.
14903         * math/w_scalblnl.c (__w_scalblnl): Likewise.
14904         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
14905         (scalbln_test_data): Likewise.
14906
14907         [BZ #20224]
14908         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
14909         argument to itself.
14910         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
14911
14912 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14913
14914         [BZ #19776]
14915         * sysdeps/x86_64/memcpy.S: Make it dummy.
14916         * sysdeps/x86_64/mempcpy.S: Likewise.
14917         * sysdeps/x86_64/memmove.S: New file.
14918         * sysdeps/x86_64/memmove_chk.S: Likewise.
14919         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
14920         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
14921         * sysdeps/x86_64/memmove.c: Removed.
14922         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
14923         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
14924         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
14925         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
14926         Likewise.
14927         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14928         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14929         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
14930         memcpy-sse2-unaligned, memmove-avx-unaligned,
14931         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
14932         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14933         (__libc_ifunc_impl_list): Replace
14934         __memmove_chk_avx512_unaligned_2 with
14935         __memmove_chk_avx512_unaligned.  Remove
14936         __memmove_chk_avx_unaligned_2.  Replace
14937         __memmove_chk_sse2_unaligned_2 with
14938         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
14939         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
14940         with __memmove_avx512_unaligned.  Replace
14941         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
14942         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
14943         with __memcpy_chk_avx512_unaligned.  Remove
14944         __memcpy_chk_avx_unaligned_2.  Replace
14945         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
14946         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
14947         Replace __memcpy_avx512_unaligned_2 with
14948         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
14949         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
14950         with __mempcpy_chk_avx512_unaligned.  Remove
14951         __mempcpy_chk_avx_unaligned_2.  Replace
14952         __mempcpy_chk_sse2_unaligned_2 with
14953         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
14954         Replace __mempcpy_avx512_unaligned_2 with
14955         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
14956         Replace __mempcpy_sse2_unaligned_2 with
14957         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
14958         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
14959         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
14960         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
14961         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
14962         (ENTRY): Removed.
14963         (END): Likewise.
14964         (ENTRY_CHK): Likewise.
14965         (libc_hidden_builtin_def): Likewise.
14966         Don't include ../memcpy.S.
14967         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
14968         __memcpy_chk_avx512_unaligned_erms and
14969         __memcpy_chk_avx512_unaligned.  Use
14970         __memcpy_chk_avx_unaligned_erms and
14971         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14972         Default to __memcpy_chk_sse2_unaligned.
14973         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14974         Change function suffix from unaligned_2 to unaligned.
14975         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
14976         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
14977         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
14978         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
14979         (ENTRY): Removed.
14980         (END): Likewise.
14981         (ENTRY_CHK): Likewise.
14982         (libc_hidden_builtin_def): Likewise.
14983         Don't include ../mempcpy.S.
14984         (mempcpy): New.  Add a weak alias.
14985         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
14986         __mempcpy_chk_avx512_unaligned_erms and
14987         __mempcpy_chk_avx512_unaligned.  Use
14988         __mempcpy_chk_avx_unaligned_erms and
14989         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
14990         Default to __mempcpy_chk_sse2_unaligned.
14991
14992 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
14993
14994         [BZ #19881]
14995         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
14996         into ...
14997         * sysdeps/x86_64/memset.S: This.
14998         (__bzero): Removed.
14999         (__memset_tail): Likewise.
15000         (__memset_chk): Likewise.
15001         (memset): Likewise.
15002         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
15003         defined.
15004         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
15005         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
15006         (__memset_zero_constant_len_parameter): Check SHARED instead of
15007         PIC.
15008         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
15009         memset-avx2 and memset-sse2-unaligned-erms.
15010         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15011         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
15012         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
15013         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
15014         (__bzero): Enabled.
15015         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
15016         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
15017         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
15018         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
15019         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
15020         (memset): Removed.
15021         (__memset_chk): Likewise.
15022         (MEMSET_SYMBOL): New.
15023         (libc_hidden_builtin_def): Replace __memset_sse2 with
15024         __memset_sse2_unaligned.
15025         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
15026         __memset_chk_sse2 and __memset_chk_avx2 with
15027         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
15028         Use __memset_chk_sse2_unaligned_erms or
15029         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
15030         __memset_chk_avx512_unaligned_erms and
15031         __memset_chk_avx512_unaligned.
15032
15033 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15034
15035         * math/gen-auto-libm-test.c (fp_format_desc): remove
15036         suffix member.
15037         (output_generic_value): Remove usage of suffix member,
15038         and the resulting unuse of the fp_format argument.
15039         (output_for_one_input_case): Remove unused fp_format
15040         parameter.
15041
15042         * math/auto-libm-test-out: Regenerate.
15043
15044         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
15045         usage with TEST_COND_ibm128.
15046         (TEST_COND_flt_32): Remove.
15047         (TEST_COND_dbl_64): Remove.
15048         (TEST_COND_ldbl_96_intel): Remove.
15049         (TEST_COND_ldbl_96_m68k): Remove.
15050         (TEST_COND_ldbl_128): Remove.
15051
15052 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15053
15054         * auto-libm-test-in:
15055         Replace flt-32 usage with binary32.
15056         Replace dbl-64 usage with binary64.
15057         Replace ldbl-intel-96 usage with intel96.
15058         Replace ldbl-m68k-96 usage with m68k96.
15059         Replace ldbl-128ibm usage with ibm128.
15060         Replace ldbl-128 usage with binary128.
15061
15062         * auto-libm-test-out: Regenerate.
15063
15064 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15065
15066         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
15067         (parse_ulps): Dynamically generate type name matching
15068         string from all_floats.
15069         (get_ulps): Generate the ulps as an array instead.
15070         (output_ulps): Dynamically compose the type based
15071         on the number of supported formats, and print
15072         the indices as type specific helper macros.
15073
15074         * math/libm-test.inc: Remove comment about CHOOSE.
15075         (ulp_data): Generate the type in libm-test-ulps.h.
15076         (ULP_IDX): New macro.
15077         (find_ulps): Update usage of max_ulp.
15078
15079         * math/test-double-vlen2.h (CHOOSE): Remove.
15080         * math/test-double-vlen4.h (CHOOSE): Likewise.
15081         * math/test-double-vlen8.h (CHOOSE): Likewise.
15082         * math/test-float.c (CHOOSE): Likewise.
15083         * math/test-float-finite.c (CHOOSE): Likewise.
15084         * math/test-double.c (CHOOSE): Likewise.
15085         * math/test-double-finite.c (CHOOSE): Likewise.
15086         * math/test-idouble.c (CHOOSE): Likewise.
15087         * math/test-ifloat.c (CHOOSE): Likewise.
15088         * math/test-ildoubl.c (CHOOSE): Likewise.
15089         * math/test-ldouble-finite.c (CHOOSE): Likewise.
15090         * math/test-ldouble.c (CHOOSE): Likewise.
15091
15092         * math/test-float.h (TEST_FLOAT): Remove.
15093         * math/test-double.h (TEST_DOUBLE): Likewise.
15094         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
15095
15096 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15097
15098         * math/gen-libm-test.pl: (apply_lit): New subroutine.
15099         (parse_args): Strip C suffix from floating point literals
15100         typed with 'f' and wrap them with LIT().
15101
15102         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
15103         (test_ff_f_data_nexttoward): Rename to
15104         (test_fj_f_data): New struct.
15105         (nexttoward_test_data): Relabel tests as
15106         TEST_fj_f instead of TEST_ff_f.
15107
15108 2016-06-08  Florian Weimer  <fweimer@redhat.com>
15109
15110         Emacs bug 23726.
15111         * malloc/malloc.c (dumped_main_arena_start): Update comment.
15112         (__libc_realloc): Correct size computation for dumped fake mmapped
15113         chunks.
15114
15115 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
15116
15117         [BZ #20219]
15118         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
15119         to itself.
15120         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
15121
15122         [BZ #20218]
15123         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
15124         to itself.
15125         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
15126
15127 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
15128
15129         [BZ #20195]
15130         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
15131         check to ...
15132         (init_cpu_features): Here.
15133
15134 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
15135
15136         [BZ #20214]
15137         * sysdeps/unix/sysv/linux/bits/in.h
15138         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
15139          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
15140         Define to 1.
15141         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
15142          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
15143         Define to 0.
15144         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
15145         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
15146
15147 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
15148
15149         [BZ #20198]
15150         * stdlib/Makefile (tests): Add tst-quick_exit, and
15151         tst-thread-quick_exit.
15152         [ifeq ($(have-cxx-thread_local),yes)]
15153         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
15154         (CFLAGS-tst-thread-quick_exit.o): Likewise.
15155         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
15156         (LDLIBS-tst-thread-quick_exit): Likewise.
15157         [ifneq ($(have-cxx-thread_local),yes)]
15158         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
15159         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
15160         If run_dtors is true call __call_tls_dtors.
15161         (exit): Call __run_exit_handlers with run_dtors set to true.
15162         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
15163         definition.
15164         * stdlib/quick_exit.c (quick_exit): Remove function.
15165         (__new_quick_exit): New function.
15166         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
15167         function.
15168         * stdlib/tst-quick_exit.cc: New file.
15169         * stdlib/tst-thread-quick_exit.cc: New file.
15170         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
15171         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
15172         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
15173         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
15174         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
15175         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
15176         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
15177         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
15178         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
15179         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
15180         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
15181         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
15182         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
15183         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
15184         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
15185         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
15187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
15188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
15189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
15190         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
15191         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
15192         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
15193         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
15194         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
15195         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
15196         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
15197         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
15198         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
15199         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
15200
15201 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
15202
15203         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
15204         a typo in comments.
15205
15206 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
15207
15208         [BZ #20213]
15209         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
15210         argument to itself.
15211         * math/libm-test.inc (asin_test_data): Add sNaN tests.
15212
15213 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15214
15215         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
15216         required flags.
15217         (CFLAGS-pwritev64.c): Likewise.
15218         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
15219         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
15220         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
15221         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
15222         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likewise.
15223         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
15224         syscall from auto-generation.
15225         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
15226         [WORDSIZE == 64] (pwritev64): Remove macro.
15227         [!PWRITEV] (PWRITEV): Likewise.
15228         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
15229         [!PWRITEV] (PWRITE): Likewise.
15230         [!PWRITEV] (OFF_T): Likewise.
15231         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
15232         (LO_HI_LONG): Remove macro.
15233         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
15234         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
15235         (PWRITEV): Remove macro.
15236         (PWRITEV_REPLACEMENTE): Likewise.
15237         (PWRITE): Likewise.
15238         (OFF_T): Likewise.
15239         (pwritev64): New function.
15240         * nptl/tst-cancel4.c (tf_writev): Add test.
15241
15242         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
15243         required flags.
15244         (CFLAGS-preadv64.c): Likewise.
15245         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
15246         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
15247         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
15248         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
15249         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likewise.
15250         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
15251         syscall from auto-generation.
15252         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
15253         [WORDSIZE == 64] (preadv64): Remove macro.
15254         [!PREADV] (PREADV): Likewise.
15255         [!PREADV] (PREADV_REPLACEMENT): Likewise.
15256         [!PREADV] (PREAD): Likewise.
15257         [!PREADV] (OFF_T): Likewise.
15258         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
15259         (LO_HI_LONG): Remove macro.
15260         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
15261         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
15262         (PREADV): Remove macro.
15263         (PREADV_REPLACEMENTE): Likewise.
15264         (PREAD): Likewise.
15265         (OFF_T): Likewise.
15266         (preadv64): New function.
15267         * nptl/tst-cancel4.c (tf_preadv): Add test.
15268
15269 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
15270
15271         [BZ #20212]
15272         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
15273         argument to itself.
15274         * math/libm-test.inc (acos_test_data): Add sNaN tests.
15275
15276 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15277
15278         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
15279         New symbol defined as libc_hidden_def.
15280         (strcasestr): Became a weak alias to __strcasestr.
15281         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
15282         according to multi-arch support.  Move __stpncpy hidden
15283         definition from here to...
15284         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
15285         symbol stpncpy.
15286         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
15287         libc_hidden_builtin_def.
15288         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
15289         memset symbol to use when multi-arch support is available.
15290
15291 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
15292
15293         * dlfcn/tst-rec-dlopen.c: Include string.h.
15294
15295 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15296
15297         * manual/install.texi: Remove mention of --without-tls
15298         * INSTALL: Regenerate.
15299
15300 2016-06-05  Florian Weimer  <fweimer@redhat.com>
15301
15302         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
15303         Remove.
15304         (call_function, interposed_malloc_called): New variables.
15305         (malloc): New function.
15306         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
15307         and clear call_function as needed.
15308
15309 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
15310
15311         * include/wchar.h (__wmemset): Use __typeof.
15312
15313 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
15314
15315         * include/wchar.h (__wmemset): Declare function without typeof.
15316
15317 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
15318
15319         [BZ #20205]
15320         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
15321         exponent when incrementing negative subnormal with low mantissa
15322         word zero.
15323         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
15324         Add another test.
15325
15326 2016-06-03  Florian Weimer  <fweimer@redhat.com>
15327
15328         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
15329         __wmemset instead of wmemset.
15330
15331 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
15332
15333         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
15334         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
15335         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
15336         __USE_KERNEL_IPV6_DEFS to 0.
15337         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
15338         Update comment.
15339
15340 2016-06-01  Florian Weimer  <fweimer@redhat.com>
15341
15342         [BZ #19861]
15343         Do not use IFUNC resolver with potentially unrelocated symbol.
15344         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
15345         (DEFINE_FORK): Remove macro and inline definition.
15346         (fork_alias): Renamed from fork_ifunc.
15347         (__fork_alias): Renamed from __fork_ifunc.
15348
15349 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
15350
15351         [BZ 19653]
15352         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
15353         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
15354
15355 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15356
15357         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
15358         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
15359         i386-linux-gnu).
15360         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
15361         Set to no.
15362         * sysdeps/mach/hurd/configure: Refresh.
15363
15364 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15365
15366         [BZ #20178]
15367         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
15368         on failure instead of exit.
15369
15370 2016-05-30  Roland McGrath  <roland@hack.frob.com>
15371
15372         [BZ #3629]
15373         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
15374         of POSIX.1-2008.
15375
15376 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15377
15378         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
15379           Use PLT entry for calling _hurd_self_sigstate.
15380
15381 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15382
15383         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
15384         available logical processors with SMT level type sharing L2
15385         cache for Intel processors.
15386
15387 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15388
15389         [BZ #20160]
15390         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
15391         argument to itself before returning the result.
15392         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15393         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15394         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15395         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
15396         Likewise.
15397         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
15398         Likewise.
15399         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
15400         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
15401         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
15402         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
15403         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15404         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15405
15406         [BZ #20160]
15407         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
15408         argument to itself before returning the result.
15409         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15410         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15411         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15412         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
15413         Likewise.
15414         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
15415         Likewise.
15416         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
15417         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
15418         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
15419         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
15420         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15421         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15422
15423 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15424
15425         * libm-test.inc: Replace usage of M_El with
15426         (lit_e): New macro.
15427
15428 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15429
15430         * libm-test.inc: Replace usage of M_PI_4l with
15431         (lit_pi_4_d): New macro.
15432
15433 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15434
15435         * libm-test.inc: Replace usage of M_PIl with
15436         (lit_pi): New macro.
15437
15438 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15439
15440         * libm-test.inc: Replace usage of M_PI2l with
15441         (lit_pi_2_d): New macro.
15442
15443         * math/test-double.h (LITM): New macro.
15444         * math/test-float.h (LITM): Likewise.
15445         * math/test-ldouble.h (LITM): Likewise.
15446
15447 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15448
15449         * libm-test.inc (M_PI_34l): Rename to
15450         (lit_pi_3_m_4_d): New Macro.
15451         (M_PI_34_LOG10El): Rename to
15452         (lit_pi_3_m_4_ln10_m_d): New Macro.
15453         (M_PI2_LOG10El): Rename to
15454         (lit_pi_2_ln10_m_d):  New Macro.
15455         (M_PI4_LOG10El): Rename to
15456         (lit_pi_4_ln10_m_d):  New Macro.
15457         (M_PI_LOG10El): Rename to
15458         (lit_pi_ln10_d):  New Macro.
15459
15460 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15461
15462         [BZ #20157]
15463         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
15464         determine whether to negate low half if [_ARCH_PPCGR], and integer
15465         comparison otherwise.
15466         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
15467         determine whether to negate low half.
15468
15469         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
15470         (NO_TEST_INLINE_DOUBLE): Likewise.
15471         (TEST_COND_x86_64): Likewise.
15472         (TEST_COND_x86): Likewise.
15473         (M_PI_6l): Likewise.
15474
15475 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15476
15477         * math/libm-test.inc:
15478         (TEST_FLOAT): Change usage to TEST_COND_binary32.
15479         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
15480         (TEST_LDOUBLE): Update usage to evaluate as true if
15481         the guarded tests match the property being tested.
15482         (LDBL_MAX_EXP): Change to MAX_EXP.
15483         (LDBL_MIN_EXP): Change to MIN_EXP.
15484         (LDBL_MANT_DIG): Change to MANT_DIG, except for
15485         nexttoward tests.
15486
15487 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15488
15489         * math/libm-test.inc:
15490         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
15491         (TYPE_MIN): Likewise.
15492         (TYPE_TRUE_MIN): Likewise.
15493         (TYPE_MAX): Likewise.
15494         (MIN_EXP): Likewise.
15495         (MAX_EXP): Likewise.
15496         (MANT_DIG): Likewise.
15497
15498         (FSTR_MAX): New macro.
15499         (__CONCATX): Likewise.
15500         (QTYPE_STR): Likewise.
15501         (TEST_COND_binary32): Likewise.
15502         (TEST_COND_binary64): Likewise.
15503         (TEST_COND_binary128): Likewise.
15504         (TEST_COND_ibm128): Likewise.
15505         (TEST_COND_intel96): Likewise.
15506         (TEST_COND_m68k96): Likewise.
15507
15508         (TEST_COND_flt_32): Redefine as equivalent format test macro.
15509         (TEST_COND_dbl_64): Likewise.
15510         (TEST_COND_ldbl_96_intel): Likewise.
15511         (TEST_COND_ldbl_96_m68k): Likewise.
15512         (TEST_COND_ldbl_128): Likewise.
15513         (TEST_COND_ldbl_128ibm): Likewise.
15514
15515         (plus_zero): Redefine using LIT macro.
15516         (minus_zero): Likewise.
15517         (plus_infty): Redefine as (INF).
15518         (minux_infty): Redefine as (-INF).
15519         (max_value): Redefine as TYPE_MAX.
15520         (min_value): Redefine as TYPE_MIN.
15521         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
15522
15523         (print_float): Refactor to use snprintf to convert FLOAT values
15524         to string. This brings it closer to dropin replacement of strtof
15525         for the TS 18661 defined types.
15526         (update_stats): Likewise.
15527         (print_complex_function_ulps): Likewise.
15528         (print_max_error): Likewise.
15529         (print_complex_max_error): Likewise.
15530         (check_float_internal): Likewise.
15531
15532         * math/test-float.h (PREFIX): New macro.
15533         (LIT): Likewise.
15534         (TYPE_STR): Likewise.
15535         (FTOSTR): Likewise.
15536
15537         * math/test-double.h (PREFIX): New macro.
15538         (LIT): Likewise.
15539         (TYPE_STR): Likewise.
15540         (FTOSTR): Likewise.
15541
15542         * math/test-ldouble.h (PREFIX): New macro.
15543         (LIT): Likewise.
15544         (TYPE_STR): Likewise.
15545         (FTOSTR): Likewise.
15546
15547 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
15548
15549         [BZ #20156]
15550         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
15551         to itself when zero or not finite.
15552         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
15553         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
15554         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
15555         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
15556
15557 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
15558
15559         [BZ #20153]
15560         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
15561         x * x + x for infinities and NaNs.
15562
15563         [BZ #20151]
15564         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
15565         argument to itself before returning result.
15566         (__ieee754_y0l): Likewise.
15567         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
15568         (__ieee754_y1l).
15569
15570         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
15571         (atan_test_data): Likewise.
15572         (ceil_test_data): Likewise.
15573         (cos_test_data): Likewise.
15574         (cosh_test_data): Likewise.
15575         (erf_test_data): Likewise.
15576         (exp2_test_data): Likewise.
15577         (fabs_test_data): Likewise.
15578         (floor_test_data): Likewise.
15579         (ilogb_test_data): Likewise.
15580         (j0_test_data): Likewise.
15581         (j1_test_data): Likewise.
15582         (jn_test_data): Likewise.
15583         (lgamma_test_data): Likewise.
15584         (lrint_test_data): Likewise.
15585         (llrint_test_data): Likewise.
15586         (logb_test_data): Likewise.
15587         (lround_test_data): Likewise.
15588         (llround_test_data): Likewise.
15589         (nearbyint_test_data): Likewise.
15590         (rint_test_data): Likewise.
15591         (round_test_data): Likewise.
15592         (sin_test_data): Likewise.
15593         (sincos_test_data): Likewise.
15594         (sinh_test_data): Likewise.
15595         (sqrt_test_data): Likewise.
15596         (tan_test_data): Likewise.
15597         (tanh_test_data): Likewise.
15598         (tgamma_test_data): Likewise.
15599         (trunc_test_data): Likewise.
15600         (y0_test_data): Likewise.
15601         (y1_test_data): Likewise.
15602         (yn_test_data): Likewise.
15603
15604         * math/libm-test.inc: Update comment about NaN testing.
15605         (TEST_SNAN): New macro.
15606         (snan_value): Likewise.
15607         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
15608         (fpclassify_test_data): Add sNaN tests.
15609         (isfinite_test_data): Likewise.
15610         (isinf_test_data): Likewise.
15611         (isnan_test_data): Likewise.
15612         (isnormal_test_data): Likewise.
15613         (issignaling_test_data): Likewise.
15614         (signbit_test_data): Likewise.
15615         * math/gen-libm-test.pl (%beautify): Add snan_value.
15616         (show_exceptions): Add argument $test_snan.
15617         (parse_args): Handle snan_value as non-finite.  Update call to
15618         show_exceptions.
15619         * math/Makefile (libm-test-no-inline-cflags): Add
15620         -fsignaling-nans.
15621
15622 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15623
15624         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
15625         (CFLAGS-oldsendmsg.c): Add rule.
15626         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
15627         Correct recvmsg symbol name.
15628         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
15629         Likewise.
15630
15631 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15632
15633         * sysdeps/unix/sysv/linux/Makefile
15634         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
15635         oldsendmmsg.
15636         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
15637         sendmmsg.
15638         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15639         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15640         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15641         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15643         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15644         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
15646         Likewise.
15647         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15648         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
15649         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
15650         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
15651         iovlen and controllen fields to adjust to POSIX specification.
15652         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15653
15654         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
15655         and change to correct expected type.
15656         (msghdr.msg_controllen): Likewise.
15657         (cmsghdr.cmsg_len): Likewise.
15658         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
15659         expected POSIX assumption about the size.
15660         (msghdr.msg_controllen): Likewise.
15661         (msghdr.__glibc_reserved1): Likewise.
15662         (msghdr.__glibc_reserved2): Likewise.
15663         (cmsghdr.cmsg_len): Likewise.
15664         (cmsghdr.__glibc_reserved1): Likewise.
15665         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
15666         Add ptw-oldrecvmsg and ptw-oldsendmsg.
15667         (CFLAGS-sendmsg.c): Remove rule.
15668         (CFLAGS-recvmsg.c): Likewise.
15669         (CFLAGS-oldsendmsg.c): Add rule.
15670         (CFLAGS-oldrecvmsg.c): Likewise.
15671         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
15672         recvmsg and sendmsg.
15673         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
15674         Likewise.
15675         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
15676         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
15677         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
15678         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
15679         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
15680         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
15681         Likewise.
15682         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
15683         Likewise.
15684         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
15685         Likewise.
15686         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
15687         Likewise.
15688         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
15689         Likewise.
15690         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
15691         Likewise.
15692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
15693         (GLIBC_2.24): Likewise.
15694         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
15695         Likewise.
15696         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
15697         Likewise.
15698         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
15699         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
15700         Likewise.
15701         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
15702         Likewise.
15703         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
15704         Likewise.
15705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
15706         (GLIBC_2.24): Likewise.
15707         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
15708         Likewise.
15709         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
15710         Likewise.
15711         * sysdeps/unix/sysv/linux/Makefile
15712         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
15713         (CFLAGS-sendmsg.c): Add rule.
15714         (CFLAGS-recvmsg.c): Likewise.
15715         (CFLAGS-oldsendmsg.c): Likewise.
15716         (CFLAGS-oldrecvmsg.c): Likewise.
15717         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
15718         initialization.
15719         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
15720         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
15721         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
15722         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
15723         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
15724         iovlen and controllen fields to adjust to POSIX specification.
15725         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
15726         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
15727         added recvmsg and sendmsg.
15728         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
15729         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
15730         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
15731         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
15732         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
15733         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
15734         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
15735         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
15736         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
15737         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
15738         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
15739         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
15740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
15741         Likewise.
15742         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
15743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
15744         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
15745         Likewise.
15746         Likewise.
15747         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15748         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15749         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15750         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15751         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15752         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
15754         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
15756         Likewise.
15757         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15758         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15759
15760         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
15761         from auto-generation.
15762         (sendmsg): Likewise.
15763         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
15764         (sendmsg): Likewise.
15765         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
15766         (sendmsg): Likewise.
15767         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
15768         (sendmsg): Likewise.
15769         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
15770         (sendmsg): Likewise.
15771         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
15772         (sendmsg): Likewise.
15773         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
15774         Likewise.
15775         (sendmsg): Likewise.
15776         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
15777         (sendmsg): Likewise.
15778         * sysdeps/unix/sysv/linux/i386/kernel-features.h
15779         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15780         Remove.
15781         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15782         Likewise.
15783         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15784         Undefine.
15785         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15786         Likewise.
15787         * sysdeps/unix/sysv/linux/kernel-features.h
15788         (__ASSUME_SENDMSG_SYSCALL): Define.
15789         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15790         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
15791         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15792         Remove.
15793         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15794         Likewise.
15795         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15796         Undefine.
15797         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15798         Likewise.
15799         * sysdeps/unix/sysv/linux/s390/kernel-features.h
15800         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15801         Remove.
15802         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15803         Likewise.
15804         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
15805         Undefine.
15806         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
15807         Likewise.
15808         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15809         (__ASSUME_SENDMSG_SYSCALL): Undefine.
15810         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15811         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
15812         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15813         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15814         * sysdeps/unix/sysv/linux/sh/kernel-features.h
15815         (__ASSUME_SENDMSG_SYSCALL): Likewise.
15816         (__ASSUME_RECVMSG_SYSCALL): Likewise.
15817
15818 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15819
15820         * stdlib/gen-tst-strtod-round.c: Add backslash to
15821         compile command in comment.
15822         (printfp): Remove the literal suffix, and define an infinite
15823         value as INF to avoid expansion clash with INFINITY.
15824         (round_str): Remove the literal suffix.
15825         (round_for_all): Likewise, remove the now duplicate ldbl-64
15826         entry, and remove some magic constants.
15827
15828         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
15829         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
15830         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
15831         (_CONCAT): New macro.
15832         (CONCAT): Likewise.
15833         (CHOOSE_ld): Likewise.
15834         (CHOOSE_f): Likewise.
15835         (CHOOSE_d): Likewise.
15836         (FTYPE_MEMBER): Likewise.
15837         (BOOL_MEMBER): Likewise.
15838         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
15839         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
15840         (_XNTRY): Likewise.
15841         (XNTRY): Likewise.
15842         (_ENTRY): Likewise.
15843         (ENTRY): Likewise.
15844         (test_exactness): Generate members via macro.
15845         (test_results): Likewise.
15846         (test): Update members.
15847         (TEST): Redefine using new macros.
15848         (INF): New macro.
15849         (fetestmodes): New structure.
15850         (do_test): Refactor to be type generic.
15851         (test_in_one_mode): Refactor duplicate code into
15852         (GEN_ONE_TEST): New macro.
15853
15854         * stdlib/tst-strtod-round-data.h: Regenerate.
15855
15856         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
15857         Extend to pass additional arbitrary parameters to
15858         generators.
15859
15860 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
15861
15862         [BZ #15479]
15863         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
15864         floating-point state after first floating-point operation on
15865         input.  Restore full floating-point state instead of just rounding
15866         mode.
15867         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
15868         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
15869         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
15870         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
15871         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
15872
15873         [BZ #15479]
15874         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
15875         floating-point state after first floating-point operation on
15876         input.  Restore full floating-point state instead of just rounding
15877         mode.
15878         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
15879         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
15880         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
15881         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
15882         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
15883
15884 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15885
15886         [BZ #19727]
15887         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
15888         valid high surrogate.
15889         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
15890         of an utf16 surrogate.
15891         * iconv/gconv_simple.c (BODY): Likewise.
15892         * iconvdata/bug-iconv12.c: New file.
15893         * iconvdata/Makefile (tests): Add bug-iconv12.
15894
15895 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15896
15897         [BZ #19726]
15898         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
15899         outptrp in case of an illegal input.
15900         * iconv/tst-iconv6.c: New file.
15901         * iconv/Makefile (tests): Add tst-iconv6.
15902
15903 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15904
15905         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
15906         an error in case of a value in range of an utf16 low surrogate.
15907
15908 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15909
15910         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
15911         an error in case of a value in range of an utf16 low surrogate.
15912
15913 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15914
15915         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
15916         Move to ...
15917         * sysdeps/s390/Makefile: ... here.
15918         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
15919         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
15920         (BRANCH_ON_COUNT): New define.
15921         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
15922         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
15923         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
15924         run on s390-32, too.
15925         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
15926         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
15927         run on s390-32, too.
15928         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
15929         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
15930         run on s390-32, too.
15931
15932 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15933
15934         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
15935         etf3eh or new vector loop-variant.
15936
15937 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15938
15939         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
15940         etf3eh or new vector loop-variant.
15941
15942 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15943
15944         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
15945         or new vector loop-variant.
15946
15947 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15948
15949         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
15950         Rename to TR_LOOP and usage of tr instead of troo instruction.
15951
15952 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15953
15954         * sysdeps/s390/multiarch/gconv_simple.c: New File.
15955         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
15956
15957 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15958
15959         * sysdeps/s390/multiarch/8bit-generic.c: New File.
15960         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
15961         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
15962         New override define.
15963         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
15964
15965 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15966
15967         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
15968         * sysdeps/s390/configure.ac: Add test for S390 vector register
15969         support in gcc.
15970         * sysdeps/s390/configure: Regenerated.
15971
15972 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
15973
15974         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
15975         Install file from $(objpfx)gconv-modules.
15976         ($(objpfx)gconv-modules): Concatenate architecture specific file
15977         in variable sysdeps-gconv-modules and gconv-modules in src dir.
15978         * sysdeps/s390/gconv-modules: New file.
15979         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
15980         Deleted.
15981         ($(objpfx)gconv-modules-s390): Deleted.
15982         (sysdeps-gconv-modules): New variable.
15983
15984 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
15985
15986         [BZ #15479]
15987         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
15988         of immediate operand to rounding instruction.
15989         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
15990         Likewise.
15991         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
15992         Likewise.
15993         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
15994         Likewise.
15995
15996 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
15997
15998         * math/libm-test.inc (MIN_EXP): Directly define as
15999         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
16000
16001 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16002
16003         * math/libm-test.inc (MANT_DIG): Directly define as
16004         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
16005
16006 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16007
16008         * stdlib/gen-tst-strtod-round.c (main):
16009           Change usage to more closely match the generated
16010           output.  Add usage and compilation instructions.
16011           (string_to_fp): Add and use FILE* parameter as
16012           output target.
16013           (print_fp): Likewise.
16014           (round_str): Likewise.
16015           (round_for_all): Likewise.
16016         * stdlib/tst-strtod-round.c (tests): Move into
16017         * stdlib/tst-strtod-round-data.h: New file.
16018
16019 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
16020
16021         [BZ #15479]
16022         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
16023         (__round): Do not force "inexact" exception.
16024         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
16025         variable.
16026         (__round): Do not force "inexact" exception.
16027         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
16028         (__roundf): Do not force "inexact" exception.
16029         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
16030         (__roundl): Do not force "inexact" exception.
16031         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
16032         (__roundl): Do not force "inexact" exception.
16033         * math/libm-test.inc (round_test_data): Do not allow spurious
16034         "inexact" exceptions.
16035
16036         [BZ #15479]
16037         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
16038         exception in comment.
16039         (huge): Remove variable.
16040         (__floor): Do not force "inexact" exception.
16041         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
16042         "inexact" exception in comment.
16043         (huge): Remove variable.
16044         (__floor): Do not force "inexact" exception.
16045         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
16046         exception in comment.
16047         (huge): Remove variable.
16048         (__floorf): Do not force "inexact" exception.
16049         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
16050         exception in comment.
16051         (huge): Remove variable.
16052         (__floorl): Do not force "inexact" exception.
16053
16054         [BZ #15479]
16055         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
16056         exception in comment.
16057         (huge): Remove variable.
16058         (__ceil): Do not force "inexact" exception.
16059         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
16060         "inexact" exception in comment.
16061         (huge): Remove variable.
16062         (__ceil): Do not force "inexact" exception.
16063         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
16064         (__ceilf): Do not force "inexact" exception.
16065         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
16066         exception in comment.
16067         (huge): Remove variable.
16068         (__ceill): Do not force "inexact" exception.
16069
16070 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16071
16072         * config.h.in (BIND_NOW): New.
16073         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
16074         * configure: Regenerated.
16075         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
16076         indirect branch via the GOT slot.
16077
16078 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16079
16080         [BZ #19765]
16081         * sysdeps/s390/mempcpy.S: New File.
16082         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
16083         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
16084         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16085         Add mempcpy variants.
16086         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
16087         (memcpy): Adjust to be usable from mempcpy entry point.
16088         (__memcpy_mvcle): Likewise.
16089         * sysdeps/s390/s390-64/memcpy.S: Likewise.
16090         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
16091         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
16092         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
16093         (__memcpy_z10): Likewise.
16094         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
16095
16096 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16097
16098         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
16099         Remove __GI_ symbol.
16100         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
16101         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
16102         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
16103         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
16104         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
16105         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
16106
16107 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16108
16109         * sysdeps/s390/s390-64/memcpy.S (memcpy):
16110         Use cghi instead of chi to compare 64bit value.
16111
16112 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
16113
16114         * sysdeps/s390/s390-32/memcpy.S (memcpy):
16115         Jump to 1MB check before executing mvc-loop.
16116
16117 2016-05-24  Florian Weimer  <fweimer@redhat.com>
16118
16119         [BZ #6527]
16120         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
16121         unconditionally.
16122         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
16123
16124 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16125
16126         * stdlib/tst-strtod6.c (do_test): Use new type generic
16127         invocation of the test function.
16128         (test): Refactor into ...
16129         (TEST_STRTOD): New macro base function.
16130
16131 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16132
16133         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
16134         (TEST_STRTOD): New macro.
16135         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
16136
16137 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16138
16139         * stdlib/tst-strtod6.c (do_test): Use new type generic
16140         invocation of the test function.
16141         (test): Refactor into ...
16142         (TEST_STRTOD): New macro base function.
16143
16144 2016-05-23  Florian Weimer  <fweimer@redhat.com>
16145
16146         CVE-2016-4429
16147         [BZ #20112]
16148         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
16149         payload.
16150
16151 2016-05-23  Florian Weimer  <fweimer@redhat.com>
16152
16153         [BZ #20111]
16154         * bits/sockaddr.h (_SS_SIZE): Define.
16155         * bits/socket.h (_SS_SIZE): Remove.
16156         (_SS_PADSIZE): Adjust to account for all padding.
16157         (struct sockaddr_storage): Update comment.  Avoid implicit
16158         padding.
16159         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
16160         (_SS_PADSIZE): Adjust to account for all padding.
16161         (struct sockaddr_storage): Update comment.  Avoid implicit
16162         padding.
16163         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
16164         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
16165         (_SS_PADSIZE): Adjust to account for all padding.
16166         (struct sockaddr_storage): Update comment.  Avoid implicit
16167         padding.
16168         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
16169         __SS_SIZE is 126 in this version.
16170         * inet/tst-sockaddr.c: New file.
16171         * inet/Makefile (tests): Add tst-sockaddr.c
16172         (tst-sockaddr.c): Compile with non-strict aliasing.
16173
16174 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
16175
16176         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
16177         [XPG3 || XPG4].
16178         (NL_ARGMAX): Also expect for [XPG3].
16179         (NL_LANGMAX): Likewise.
16180         (NL_MSGMAX): Likewise.
16181         (NL_NMAX): Likewise.
16182         (NL_SETMAX): Likewise.
16183         (NL_TEXTMAX): Likewise.
16184         (NZERO): Likewise.
16185         (TMP_MAX): Likewise.
16186         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
16187         variable.
16188
16189         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
16190         (PF_MAX): Update value.
16191         (AF_KCM): New macro.
16192         (SOL_NETBEUI): Likewise.
16193         (SOL_LLC): Likewise.
16194         (SOL_DCCP): Likewise.
16195         (SOL_NETLINK): Likewise.
16196         (SOL_TIPC): Likewise.
16197         (SOL_RXRPC): Likewise.
16198         (SOL_PPPOL2TP): Likewise.
16199         (SOL_BLUETOOTH): Likewise.
16200         (SOL_PNPIPE): Likewise.
16201         (SOL_RDS): Likewise.
16202         (SOL_IUCV): Likewise.
16203         (SOL_CAIF): Likewise.
16204         (SOL_ALG): Likewise.
16205         (SOL_NFC): Likewise.
16206         (SOL_KCM): Likewise.
16207         (MSG_BATCH): New enum value and macro.
16208
16209 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16210
16211         [BZ #18185]
16212         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
16213         sharing L2 cache to 2 for Knights Landing.
16214
16215 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
16216
16217         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
16218         (FTW_DP): Do not expect for [XPG3 || XPG4].
16219         (FTW_SL): Do not expect for [XPG3].
16220         (FTW_SLN): Likewise.
16221         (FTW_PHYS): Likewise.
16222         (FTW_MOUNT): Likewise.
16223         (FTW_DEPTH): Likewise.
16224         (FTW_CHDIR): Likewise.
16225         (nftw): Likewise.
16226         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
16227         variable.
16228
16229 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
16230
16231         * manual/errno.texi: Fix various typos & grammar errors.
16232
16233 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
16234
16235         * manual/intro.texi: Fix duplicated typo.
16236
16237 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
16238
16239         [BZ #13304]
16240         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
16241         <float.h>, <math_private.h> and <stdlib.h>.
16242         (add_split): New function.
16243         (mul_split): Likewise.
16244         (ext_val): New typedef.
16245         (store_ext_val): New function.
16246         (mul_ext_val): New function.
16247         (compare): New function.
16248         (add_split_ext): New function.
16249         (__fmal): After checking for Inf, NaN and zero, compute result as
16250         an exact sum of scaled double values in round-to-nearest before
16251         adding those up and adjusting for other rounding modes.
16252         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
16253         tests of fma.
16254         * math/auto-libm-test-out: Regenerated.
16255
16256 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16257
16258         [BZ #20119]
16259         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
16260         processor level type mask for CPUID with EAX == 11.
16261
16262 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16263
16264         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
16265         logical threads if the HTT bit is 0.
16266         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
16267         (index_cpu_HTT): Likewise.
16268         (reg_HTT): Likewise.
16269
16270 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16271
16272         [BZ #20115]
16273         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
16274         Remove alignments on jump targets.
16275
16276 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
16277
16278         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
16279         (getpwent): Likewise.
16280         (setpwent): Likewise.
16281         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
16282         variable.
16283
16284         * conform/data/search.h-data (insque): Do not expect for [XPG3].
16285         (remque): Likewise.
16286         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
16287         variable.
16288
16289 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16290
16291         * math/libm-test.inc: Update comment not to refer to signs of NaNs
16292         not being tested.
16293
16294 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16295
16296         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
16297         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
16298         call.
16299         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
16300         (__condvar_cleanup1): Likewise.
16301
16302 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16303
16304         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
16305         New
16306         (__pthread_unwind): Renamed to ...
16307         (PTHREAD_UNWIND): This.
16308         (__pthread_enable_asynccancel): Replace
16309         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
16310
16311 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
16312
16313         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
16314         (CLONE_NEWCGROUP): New macro.
16315
16316         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
16317         (Q_GETNEXTQUOTA): New macro.
16318
16319 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16320
16321         [BZ #19907]
16322         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
16323         buffer updated by the previous run.
16324         * string/test-memcpy.c (do_one_test): Likewise.
16325         * benchtests/bench-memmove.c (do_one_test): Add a comment.
16326         * string/test-memmove.c (do_one_test): Likewise.
16327
16328 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
16329
16330         [BZ #20094]
16331         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
16332         not [__USE_XOPEN].
16333         (unlockpt): Likewise.
16334         (ptsname): Likewise.
16335         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
16336         variable.
16337
16338         [BZ #20076]
16339         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
16340         instead of [__USE_UNIX98].
16341         (S_ISSOCK): Likewise.
16342         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
16343         variable.
16344
16345         [BZ #20074]
16346         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
16347         [__USE_POSIX].
16348         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
16349         variable.
16350
16351         [BZ #20051]
16352         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
16353         (ttyslot): Do not declare.
16354         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
16355         (ttyslot): New prototype.
16356         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
16357         variable.
16358         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
16359
16360 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
16361
16362         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
16363
16364 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16365
16366         Fix race condition in tst-mallocfork2, use fewer resources.
16367         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
16368         to current process group.
16369         (signal_sender): Yield in the non-sleeping case.
16370
16371 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
16372
16373         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
16374         (ecvt): Likewise.
16375         (fcvt): Likewise.
16376         (gcvt): Likewise.
16377         (getsubopt): Likewise.
16378         (grantpt): Likewise.
16379         (initstate): Likewise.
16380         (l64a): Likewise.
16381         (mktemp): Likewise.
16382         (mkstemp): Likewise.
16383         (ptsname): Likewise.
16384         (random): Likewise.
16385         (realpath): Likewise.
16386         (setstate): Likewise.
16387         (srandom): Likewise.
16388         (ttyslot): Likewise.
16389         (unlockpt): Likewise.
16390         (valloc): Likewise.
16391
16392         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
16393         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
16394         variable.
16395
16396 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16397
16398         [BZ #20072]
16399         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
16400         init_cpu_features only if SHARED is defined.
16401         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
16402
16403 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16404
16405         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
16406         non-inclusive caches on Intel processors.
16407
16408 2016-05-13  Florian Weimer  <fweimer@redhat.com>
16409
16410         * malloc/malloc.c (dumped_main_arena_start)
16411         (dumped_main_arena_end): New variables.
16412         (DUMPED_MAIN_ARENA_CHUNK): New macro.
16413         (do_check_chunk): Skip dumped fake mmapped chunks.
16414         (munmap_chunk): Likewise.
16415         (__libc_free): Do not adjust statistics for fake mmapped chunks.
16416         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
16417         mmapped chunks.
16418         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
16419         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
16420         and dumped_main_arena_end to cover the dumped heap.
16421
16422 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
16423
16424         * conform/data/time.h-data (getdate_err): Do not expect for
16425         [XPG3].
16426         (getdate): Likewise.
16427         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
16428         variable.
16429
16430         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
16431         (F_ULOCK): Likewise.
16432         (F_TEST): Likewise.
16433         (F_TLOCK): Likewise.
16434         (useconds_t): Likewise.
16435         (intptr_t): Do not expect for [XPG3] or [XPG4].
16436         (brk): Do not expect for [XPG3]
16437         (fchown): Likewise.
16438         (fchdir): Likewise.
16439         (ftruncate): Likewise.
16440         (getdtablesize): Likewise.
16441         (gethostid): Likewise.
16442         (getpagesize): Likewise.
16443         (getpgid): Likewise.
16444         (getsid): Likewise.
16445         (getwd): Likewise.
16446         (lchown): Likewise.
16447         (lockf): Likewise.
16448         (readlink): Likewise.
16449         (sbrk): Likewise.
16450         (setpgrp): Likewise.
16451         (setregid): Likewise.
16452         (setreuid): Likewise.
16453         (symlink): Likewise.
16454         (sync): Likewise.
16455         (truncate): Likewise.
16456         (ualarm): Likewise.
16457         (usleep): Likewise.
16458         (vfork): Likewise.
16459         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
16460         variable.
16461
16462         [BZ #20054]
16463         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
16464         not [__USE_UNIX98].
16465         * conform/data/unistd.h-data (gethostname): Do not expect for
16466         [XPG3].
16467
16468         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
16469         [!POSIX] (S_IFBLK): Likewise.
16470         [!POSIX] (S_IFCHR): Likewise.
16471         [!POSIX] (S_IFIFO): Likewise.
16472         [!POSIX] (S_IFREG): Likewise.
16473         [!POSIX] (S_IFDIR): Likewise.
16474         [!POSIX] (S_IFLNK): Likewise.
16475         [!POSIX] (S_IFSOCK): Likewise.
16476         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
16477         variable.
16478         (test-xfail-XPG4/fcntl.h/conform): Likewise.
16479
16480 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
16481
16482         * sysdeps/aarch64/memset.S (__memset):
16483         Rewrite of optimized memset.
16484
16485 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16486
16487         [BZ #19703]
16488         Partially async-signal-safe fork for single-threaded processes.
16489         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
16490         variable.  Do not acquire and reset/release malloc and libio locks
16491         in single-threaded processes.
16492         * malloc/tst-mallocfork2.c: New file.
16493         * malloc/Makefile (tests): Add it.
16494
16495 2016-05-12  Florian Weimer  <fweimer@redhat.com>
16496
16497         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
16498         argument.  Use scratch buffer instead of extend_alloca.
16499         (gethosts): Use scratch buffer instead of extend_alloca.
16500         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
16501         extend_alloca.
16502         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
16503
16504 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
16505
16506         [BZ #20055]
16507         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
16508         instead of [__USE_UNIX98].
16509         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
16510         [__USE_UNIX98].
16511         * conform/data/termios.h-data (tcgetsid): Do not expect for
16512         [XPG3].
16513         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
16514         variable.
16515         (test-xfail-XPG4/termios.h/conform): Likewise.
16516
16517 2016-05-11  Florian Weimer  <fweimer@redhat.com>
16518
16519         Do not use mcheck in localedef.
16520         * locale/programs/localedef.c (turn_on_mcheck)
16521         (__malloc_initialize_hook): Remove.
16522
16523 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
16524
16525         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
16526         * sysdeps/s390/s390-64/Makefile: Likewise.
16527
16528 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
16529
16530         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
16531         Remove ifunc-defines.sym.
16532         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
16533         Likewise.
16534         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
16535         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
16536         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
16537         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
16538         rtld-global-offsets.sym.
16539         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
16540         * sysdeps/x86/cpu-features-offsets.sym: This.
16541         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
16542         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
16543
16544 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
16545
16546         [BZ #20073]
16547         * io/sys/stat.h (fchmod): Declare for
16548         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
16549         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
16550         variable.
16551
16552         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
16553         [XPG3] (S_IFSOCK): Likewise.
16554         [XPG3] (S_ISVTX): Likewise.
16555         [XPG3] (S_ISLNK): Likewise.
16556         [XPG3] (S_ISSOCK): Likewise.
16557         [XPG3] (fchmod): Likewise.
16558         [XPG3] (lstat): Likewise.
16559         [XPG3] (mknod): Likewise.
16560
16561         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
16562         [XPG3].  Expect type long and XFAIL for [XPG4].
16563         (st_blocks): Likewise.
16564
16565         [BZ #20044]
16566         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
16567         (pthread_atfork): New prototype.
16568         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
16569         variable.
16570
16571         [BZ #20043]
16572         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
16573         prototype.
16574
16575 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16576
16577         [BZ #20017]
16578         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
16579         gmtime.
16580
16581 2016-05-10  Florian Weimer  <fweimer@redhat.com>
16582
16583         [BZ #19994]
16584         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
16585         flag in _res.options.
16586
16587 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
16588
16589         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
16590         [XPG3 || XPG4].
16591         (blksize_t): Likewise.
16592         (clockid_t): Likewise.
16593         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
16594         variable.
16595         (test-xfail-XPG4/sys/types.h/conform): Likewise.
16596
16597 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
16598
16599         * sysdeps/unix/sysv/linux/s390/init-first.c:
16600         Add VDSO_SYMBOL(getcpu).
16601         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
16602         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
16603         Add VDSO_SYMBOL(getcpu).
16604         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
16605         New define HAVE_GETCPU_VSYSCALL.
16606         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16607
16608 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
16609
16610         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
16611         instead of <sysdeps/x86_64/cacheinfo.c>.
16612         * sysdeps/x86_64/cacheinfo.c: Moved to ...
16613         * sysdeps/x86/cacheinfo.c: Here.
16614
16615 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16616
16617         * malloc/malloc-internal.h: Adjust header file guard.
16618
16619 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16620
16621         [BZ #19787]
16622         * inet/getnameinfo.c (check_sprintf_result): New function.
16623         (CHECKED_SNPRINTF): New macro.
16624         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
16625         to the host buffer.
16626         (gni_host_local): Use checked_copy to copy the host name.
16627         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
16628         (gni_serv_local): Use checked_copy to copy the service name.
16629         (getnameinfo): Remove unnecessary truncation of result buffers.
16630
16631 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16632
16633         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
16634         in case of inet_ntop failure.
16635
16636 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16637
16638         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
16639         avoid long lines.
16640         (gni_host_inet_numeric): Likewise.  Reduce scope of local
16641         variables.
16642         (gni_host_inet, gni_host_local): Add comment.
16643         (gni_host): Add comment.  Use temporary to avoid long lines.
16644
16645 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16646
16647         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
16648         registers specifiers where general purpose registers specifiers should
16649         have been used.
16650
16651 2016-05-04  Florian Weimer  <fweimer@redhat.com>
16652
16653         [BZ #19779]
16654         CVE-2016-1234
16655         Avoid copying names of directory entries.
16656         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
16657         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
16658         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
16659         (struct readdir_result): New type.
16660         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
16661         (GL_READDIR): New macros.
16662         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
16663         (convert_dirent, convert_dirent64): New functions.
16664         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
16665         convert_dirent64.  Adjust references to the readdir result.
16666         * sysdeps/unix/sysv/linux/i386/glob64.c:
16667         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
16668         * posix/bug-glob2.c (LONG_NAME): Define.
16669         (filesystem): Add LONG_NAME.
16670         (my_DIR): Increase the size of room_for_dirent.
16671
16672 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
16673
16674         [BZ #20041]
16675         * misc/sys/select.h (__need_timespec): Only define if
16676         [__USE_XOPEN2K].
16677         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
16678         variable.
16679         (test-xfail-XPG4/utmpx.h/conform): Likewise.
16680         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
16681         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
16682
16683 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
16684             Segher Boessenkool  <segher@gcc.gnu.org>
16685
16686         [BZ #20004]
16687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
16688         (__novec_swapcontext): Add missing load.
16689
16690 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
16691
16692         [BZ #20023]
16693         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
16694         <time.h>.
16695         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
16696         variable.
16697         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
16698
16699 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16700
16701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
16702         flags CLONE_VM compare.
16703
16704 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16705
16706         [BZ #20031]
16707         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
16708         completely empty.
16709
16710 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16711
16712         [BZ #19573]
16713         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
16714         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
16715         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
16716         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
16717         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
16718         (hesiod_free_list): Mark as hidden.
16719         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
16720         res_set, res_get.
16721         * hesiod/hesiod.c: Remove unnecessary forward declarations.
16722         (init, __hesiod_res_get, __hesiod_res_set): Remove.
16723         (hesiod_init): Remove obsolete res_ninit call.
16724         (hesiod_end): Do not free resolver state.  Do not invoke callback.
16725         (hesiod_bind): Do not call init.
16726         (get_txt_records): Use res_mkquery, res_send instead of
16727         res_nmkquery, res_nsend.
16728         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
16729         instead of _nss_hesiod_init.
16730         (_nss_hesiod_initgroups_dyn): Likewise.
16731         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
16732         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
16733         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
16734
16735 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16736
16737         * hesiod/hesiod_p.h (DEF_RHS): Remove.
16738         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
16739
16740 2016-05-02  Florian Weimer  <fweimer@redhat.com>
16741
16742         * hesiod/hesiod.h: Remove RCS keyword.
16743         * hesiod/hesiod_p.h: Likewise.
16744
16745         * hesiod/hesiod.c: Likewise.
16746
16747 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
16748
16749         [BZ #12450]
16750         * locale/iso-639.def: Add Samogitian/sgs.
16751
16752 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
16753
16754         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
16755
16756         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
16757
16758 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
16759             Carlos O'Donell  <carlos@redhat.com>
16760
16761         [BZ #19072]
16762         * grp/Makefile (headers): Add grp-merge.h
16763         (routines): Add grp-merge.
16764         * grp/getgrgid_r.c: Include grp-merge.h.
16765         (DEEPCOPY_FN): Define.
16766         (MERGE_FN): Define.
16767         * grp/getgrname_r.c: Include grp-merge.h.
16768         (DEEPCOPY_FN): Define.
16769         (MERGE_FN): Define.
16770         * grp/grp-merge.c: New file.
16771         * grp/grp-merge.h: New file.
16772         * include/grp-merge.h: New file.
16773         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
16774         __copy_grp@GLIBC_PRIVATE.
16775         * manual/nss.texi (Actions in the NSS configuration): Describe
16776         return, continue, and merge.
16777         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
16778         (DEEPCOPY_FN): Define.
16779         (MERGE_FN): Define.
16780         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
16781         (DEEPCOPY_FN): Define.
16782         (MERGE_FN): Define.
16783         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
16784         [!MERGE_FN]: Define __merge_einval.
16785         (CHECK_MERGE): Define.
16786         (REENTRANT_NAME): Process merge if do_merge is true.
16787         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
16788         (__nss_getent_r): Likewise.
16789         * nss/nsswitch.c (nss_parse_service_list): Likewise.
16790         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
16791
16792 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16793
16794         [BZ #20012]
16795         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
16796         length to calculate the buffer to read.
16797         (fmemopen_write): Set the buffer position based on bytes written.
16798         (fmemopen_seek): Return EINVAL for invalid whence modes.
16799
16800         [BZ #19957]
16801         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
16802         tst-getpid2.
16803         (test): Add tst-clone2.
16804         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
16805         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
16806         pid/tid fields for CLONE_VM.
16807         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
16808         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
16809         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
16810         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
16811         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
16812         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
16813         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
16814         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
16815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
16816         Likewise.
16817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16818         Likewise.
16819         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
16820         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
16821         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
16822         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
16823         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
16824         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
16825         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
16826         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
16827
16828 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16829
16830         [BZ #19642]
16831         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
16832         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
16833         (gni_serv_local, gni_serv): New functions extracted from
16834         getnameinfo.
16835         (getnameinfo): Call gni_host and gni_serv to perform the
16836         processing.  Always free scratch buffer.
16837
16838 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16839
16840         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
16841         remaining bytes in the dest string, with zeros.
16842
16843 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16844
16845         [BZ #20010]
16846         CVE-2016-3706
16847         * sysdeps/posix/getaddrinfo.c
16848         (convert_hostent_to_gaih_addrtuple): New function.
16849         (gethosts): Call convert_hostent_to_gaih_addrtuple.
16850         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
16851         AF_INET data.
16852
16853 2016-04-29  Florian Weimer  <fweimer@redhat.com>
16854
16855         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
16856         callback function gl_readdir.
16857         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
16858         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
16859         (glob_in_dir): Remove len.  Use strdup instead of malloc and
16860         memcpy to copy the name.
16861         * manual/pattern.texi (Calling Glob): Document requirements for
16862         implementations of the gl_readdir callback function.
16863         * manual/examples/mkdirent.c: New example.
16864         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
16865         per the manual guidance.
16866         * posix/tst-gnuglob.c (my_readdir): Likewise.
16867
16868 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
16869
16870         [BZ #20014]
16871         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
16872         not [__USE_POSIX].
16873         (getchar_unlocked): Likewise.
16874         (putc_unlocked): Likewise.
16875         (putchar_unlocked): Likewise.
16876         (flockfile): Likewise.
16877         (ftrylockfile): Likewise.
16878         (funlockfile): Likewise.
16879         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
16880         variable.
16881         (test-xfail-XPG4/stdio.h/conform): Likewise.
16882
16883         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
16884         Expect constant.
16885         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
16886         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
16887         variable.
16888         (test-xfail-XPG4/langinfo.h/conform): Likewise.
16889         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
16890
16891         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
16892         [__USE_LARGEFILE64] (off64_t): Likewise.
16893         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
16894         variable.
16895
16896 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16897
16898         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
16899
16900 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16901
16902         * resolv/inet_addr.c: Reindent preprocessor conditionals.
16903         * resolv/res_init.c: Likewise.
16904         * resolv/res_mkquery.c: Likewise.
16905
16906 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16907
16908         * resolv/res_init.c (isascii): Do not define.  Use definition in
16909         <ctype.h>.
16910         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
16911         (LOG_AUTH): Remove.
16912         (SPRINTF): Remove, adjust caller.
16913         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
16914
16915 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16916
16917         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
16918         SUNSECURITY conditional.
16919         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
16920
16921 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16922
16923         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
16924         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
16925         Remove BSD-related preprocessor conditionals.
16926         * conf/portability.h: Remove.
16927
16928 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16929
16930         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
16931         * resolv/res_data.c: Likewise.
16932
16933 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16934
16935         * resolv/res_comp.c: Remove code conditional on __ultrix__.
16936         * resolv/res_data.c: Remove code conditional on ultrix.
16937
16938 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16939
16940         * resolv/res_init.c (RFC1535): Do not define.  Remove
16941         RFC1535 preprocessor conditionals.
16942         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
16943         because there configuration options which make the resolver
16944         behavior different.
16945
16946 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16947
16948         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
16949         RESOLVSORT preprocessor conditionals.
16950         * resolv/nss_dns/dns-host.c: Likewise.
16951         * resolv/res_init.c: Likewise.
16952
16953 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16954
16955         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
16956         is never defined.
16957
16958 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16959
16960         * inet/inet_lnaof.c: Remove SCSS keyword.
16961         * inet/inet_mkadr.c: Likewise.
16962         * inet/inet_net.c: Likewise.
16963         * inet/inet_netof.c: Likewise.
16964         * inet/rcmd.c: Likewise.
16965         * inet/rexec.c: Likewise.
16966         * inet/ruserpass.c: Likewise.
16967
16968 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16969
16970         * resolv/inet_addr.c: Remove _LIBC conditionals.
16971         * resolv/res_data.c: Likewise.
16972         * resolv/res_init.c: Likewise.
16973         * resolv/res_mkquery.c: Likewise.
16974         * resolv/res_libc.c: Update comment.
16975         * resolv/README: Update.
16976
16977 2016-04-28  Florian Weimer  <fweimer@redhat.com>
16978
16979         * resolv/gethnamaddr.c: Remove SCSS keyword.
16980         * resolv/herror.c: Likewise.
16981         * resolv/inet_addr.c: Likewise.
16982         * resolv/inet_net_ntop.c: Likewise.
16983         * resolv/inet_net_pton.c: Likewise.
16984         * resolv/inet_neta.c: Likewise.
16985         * resolv/inet_ntop.c: Likewise.
16986         * resolv/inet_pton.c: Likewise.
16987         * resolv/ns_date.c: Remove RCS keyword.
16988         * resolv/ns_name.c: Likewise.
16989         * resolv/ns_netint.c: Likewise.
16990         * resolv/ns_parse.c: Likewise.
16991         * resolv/ns_print.c: Likewise.
16992         * resolv/ns_samedomain.c: Likewise.
16993         * resolv/ns_ttl.c: Likewise.
16994         * resolv/nsap_addr.c: Likewise.
16995         * resolv/res_comp.c: Remove SCSS and RCS keyword.
16996         * resolv/res_data.c: Remove RCS keyword.
16997         * resolv/res_debug.c: Remove SCSS and RCS keyword.
16998         * resolv/res_init.c: Likewise.
16999         * resolv/res_mkquery.c: Likewise.
17000         * resolv/res_query.c: Likewise.
17001         * resolv/res_send.c: Likewise.
17002
17003 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
17004
17005         * conform/data/stdio.h-data (fdopen): Expect also for
17006         [XPG3 || XPG4].
17007
17008         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
17009         (fseeko): Likewise.
17010         (ftello): Likewise.
17011         (ftrylockfile): Likewise.
17012         (funlockfile): Likewise.
17013         (getc_unlocked): Likewise.
17014         (getchar_unlocked): Likewise.
17015         (putc_unlocked): Likewise.
17016         (putchar_unlocked): Likewise.
17017
17018 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17019
17020         [BZ #19868]
17021         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
17022         DNS packet syntax checks (which were not needed before).  Skip
17023         over non-PTR records.
17024
17025 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17026
17027         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
17028         definition.  Include <stddef.h> instead.
17029
17030 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17031
17032         [BZ #19831]
17033         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
17034         function.
17035         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
17036         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
17037
17038 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17039
17040         [BZ #19862]
17041         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
17042         (getanswer_r): Do not call syslog.
17043         (gaih_getanswer_slice): Likewise.
17044         * resolv/gethnamaddr.c (AskedForGot): Remove.
17045         (getanswer): Do not call syslog.
17046         (gethostbyaddr): Likewise.
17047
17048 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
17049
17050         * conform/data/signal.h-data (union sigval): Expect also if
17051         [XOPEN2K].
17052         (struct sigevent): Likewise.
17053         (SIGEV_NONE): Likewise.
17054         (SIGEV_SIGNAL): Likewise.
17055         (SIGEV_THREAD): Likewise.
17056         (SIGRTMIN): Likewise.
17057         (SIGRTMAX): Likewise.
17058         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
17059         variable.
17060         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
17061
17062 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17063
17064         [BZ #19830]
17065         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
17066         (gaih_getanswer_slice): Likewise.
17067         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
17068         Also check for availability of RR metadata.
17069
17070 2016-04-27  Florian Weimer  <fweimer@redhat.com>
17071
17072         [BZ #19825]
17073         * resolv/res_send.c (send_vc): Remove early *resplen2
17074         initialization.  Set *resplen2 on socket error.  Call
17075         close_and_return_error for other errors.
17076
17077 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
17078
17079         * sysdeps/unix/sysv/linux/netiucv/iucv.h
17080         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
17081         (SCM_IUCV_TRGCLS): New define.
17082
17083 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17084
17085         [BZ #20005]
17086         * libio/fmemopen.c (fmemopen_write): Update internal position after
17087         write.
17088         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
17089         * stdio-common/tst-fmemopen4.c: New file..
17090
17091 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
17092
17093         [BZ #19996]
17094         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
17095         not [__USE_XOPEN2K].
17096         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
17097         variable.
17098
17099         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
17100         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
17101         variable.
17102
17103         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
17104         [__USE_XOPEN2K8].
17105         [__USE_LARGEFILE64] (off64_t): Likewise.
17106         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
17107         variable.
17108
17109 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
17110
17111         [BZ #19989]
17112         * libio/stdio.h (cuserid): Do not declare if
17113         [__USE_XOPEN2K && !__USE_GNU].
17114         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
17115         variable.
17116
17117 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17118
17119         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17120         (sysdep_routines): Add P8 and PPC64 strcspn targets.
17121         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17122         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
17123         ifunc'ed strcspn.
17124         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17125         [EALIGN]: Removed.
17126         [END]: Likewise
17127         [STRSPN]: Define instead of the above to control symbol name.
17128         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
17129         New file.
17130         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
17131         Likewise.
17132         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
17133         Likewise.
17134         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
17135         Likewise.
17136         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17137         [INITIAL_MASK]: New macro.
17138         [STRCSPN]: Likewise.
17139         [UPDATE_MASK]: Likewise.
17140         [USE_AS_STRCSPN]: Likewise.
17141
17142 2016-04-25  Florian Weimer  <fweimer@redhat.com>
17143
17144         [BZ #19931]
17145         * stdio-common/tst-vfprintf-width-prec.c: New file.
17146         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
17147         (tests-special): Add tst-vfprintf-width-prec-mem.out.
17148         (generated): Add mtrace-related files.
17149         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
17150         (tst-%-mem.out): New pattern rule, replaces
17151         tst-printf-bz18872-mem.out.
17152         * stdio-common/vfprintf.c (vfprintf): When handling a precision
17153         specifier, deallocate any previously allocated work buffer.
17154
17155 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
17156
17157         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
17158         Add nop before __startcontext, add explaining comments.
17159
17160 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
17161
17162         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
17163         any more. Notably since IPV6_PKTINFO has been reintroduced with a
17164         completely different API.
17165
17166         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
17167         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
17168         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
17169         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
17170         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
17171         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
17172         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
17173         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
17174         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
17175         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
17176
17177 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
17178
17179         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
17180
17181 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
17182
17183         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
17184         when it is the default of 0.
17185
17186 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
17187
17188         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
17189         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17190         (sysdep_routines): Add new strcasestr targets.
17191         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17192         (__libc_ifunc_impl_list): Likewise.
17193         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
17194         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
17195         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
17196         * sysdeps/powerpc/powerpc64/power8/Makefile:
17197         New file to add strcasestr-ppc64 to sysdep_routines.
17198         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
17199         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
17200
17201 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
17202
17203         * benchtests/Makefile (wcsmbs-benchset): Include only for
17204         native builds and runs.
17205         (LOCALES): Likewise.
17206         (bench-build): Build timing-type here instead of the bench
17207         target.  Generate locale only for native builds.
17208         * benchtests/README: Add note for cross-building.
17209
17210         * benchtests/Makefile (bench-clean): Clean up extra-objs.
17211
17212         * benchtests/README: Update README to include instructions on
17213         using bench-build.
17214
17215         * Makefile.in (bench-build): New target.
17216         * Rules (PHONY): Add bench-build target.
17217         * benchtests/Makefile (bench): Depend on bench-build.
17218         (bench-build): New target.
17219
17220 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17221
17222         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
17223         profil_reply_port.
17224         (profile_waiter): Do not initialize profil_reply_port.
17225         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
17226         frequency instead of tick length in us.
17227
17228 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
17229
17230         [BZ #18712]
17231         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
17232         (__old_mempcpy_small): Likewise.
17233         (__old_strcpy_small): Likewise.
17234         (__old_stpcpy_small): Likewise.
17235         (__old_strpbrk_c2): Fix compat symbol name.
17236         (__old_strpbrk_c3): Likewise.
17237         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
17238         (__mempcpy_small): Remove.
17239         (__strcpy_small): Remove.
17240         (__stpcpy_small): Remove.
17241
17242 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
17243
17244         [BZ #19400]
17245         * locale/iso-639.def: Add the Talossan/tzl language.
17246
17247 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
17248
17249         [BZ #16983]
17250         * locale/programs/ld-address.c (address_finish): Update postal_fmt
17251         comment.  Add "ln" to strchr check on postal_fmt.
17252
17253 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
17254
17255         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
17256         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
17257         tel_dom_fmt.
17258
17259 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
17260
17261         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17262         (sysdep_routines): Added __strlen_power8.
17263         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
17264         __strlen_power8 entry.
17265         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
17266         Implementation for POWER8.
17267         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
17268         for __strlen_power8.
17269         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
17270         Implementation for POWER8.
17271
17272 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
17273
17274         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
17275
17276 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
17277
17278         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
17279         Goldmont and Airmont processors.
17280
17281 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
17282
17283         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
17284         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
17285         (__STRING2_SMALL_GET32): Remove.
17286         (memset): Remove.
17287         (__memset_1): Remove.
17288         (__memset_gc): Remove.
17289         (__mempcpy): Remove.
17290         (mempcpy): Remove.
17291         (__mempcpy_args): Remove.
17292         (strchr): Remove.
17293         (strcpy): Remove.
17294         (strcpy_args): Remove.
17295         (__stpcpy_args): Remove.
17296         (__strcmp_cc): Remove.
17297         (__strcmp_gc): Remove.
17298         (strstr): Remove.
17299
17300 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
17301
17302         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
17303         * nis/nis_call.c (nis_server_cache_add): Likewise.
17304
17305 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17306
17307         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
17308
17309 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17310
17311         * malloc/arena.c (__malloc_fork_lock_parent)
17312         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
17313         internal_function attribute.
17314
17315 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
17316
17317         * stdio-common/printf_fp.c (__printf_fp_l):
17318         Rename ___printf_fp_l to __printf_fp_l and
17319         remove strong alias. Use libc_hidden_def instead
17320         of ldbl_hidden_def macro.
17321
17322 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17323
17324         Remove malloc hooks from fork handler.  They are no longer needed
17325         because malloc runs right before fork, and no malloc calls from
17326         other fork handlers are not possible anymore.
17327         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
17328         declarations.
17329         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
17330         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
17331         (atfork_recursive_cntr): Remove.
17332         (__malloc_fork_lock_parent): Do not override malloc hooks and
17333         thread_arena.
17334         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
17335         thread_arena.
17336         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
17337         thread_arena instead of save_arena.
17338
17339 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17340
17341         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
17342         (thread_atfork, thread_atfork_static): Remove.
17343         * sysdeps/mach/hurd/malloc-machine.h:
17344         (thread_atfork, thread_atfork_static): Remove.
17345
17346 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17347
17348         [BZ #19431]
17349         Run the malloc fork handler as late as possible to avoid deadlocks.
17350         * malloc/malloc-internal.h: New file.
17351         * malloc/malloc.c: Include it.
17352         * malloc/arena.c (ATFORK_MEM): Remove.
17353         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
17354         Update comment.
17355         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
17356         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
17357         Remove outdated comment.
17358         (ptmalloc_init): Do not call thread_atfork.  Remove
17359         thread_atfork_static.
17360         * malloc/tst-malloc-fork-deadlock.c: New file.
17361         * Makefile (tests): Add tst-malloc-fork-deadlock.
17362         (tst-malloc-fork-deadlock): Link against libpthread.
17363         * manual/memory.texi (Aligned Memory Blocks): Update safety
17364         annotation comments.
17365         * sysdeps/nptl/fork.c (__libc_fork): Call
17366         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
17367         __malloc_fork_unlock_child.
17368         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
17369
17370 2016-04-14  Florian Weimer  <fweimer@redhat.com>
17371
17372         [BZ #19613]
17373         Remove union wait.
17374         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
17375         (w_stopsig, w_stopval): Remove.
17376         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
17377         stat_loc argument.
17378         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
17379         (__WAIT_STATUS_DEFN): Remove.
17380         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17381         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
17382         (wait, wait3, wait4): Use int * for the stat_loc argument.
17383         * posix/wait.c (__wait): Likewise.
17384         * posix/wait3.c (__wait3): Likewise.
17385         * posix/wait4.c (__wait4): Likewise.
17386         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
17387         (__WAIT_STATUS_DEFN): Remove.
17388         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
17389         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
17390         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
17391         argument.
17392         * sysdeps/posix/wait.c (__libc_wait): Likewise.
17393         * sysdeps/posix/wait3.c (__wait3): Likewise.
17394         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
17395         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
17396         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
17397         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
17398         stat_loc argument.
17399         * manual/process.texi (BSD Wait Functions): Remove union wait.
17400
17401 2016-04-13  Andreas Schwab  <schwab@suse.de>
17402
17403         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
17404         (test-extras): Add tst-tlsalign-vars.
17405         * math/Makefile: Wrap long lines.
17406         (libm-vec-test-wrappers): Define.
17407         (test-extras): Add $(libm-vec-test-wrappers).
17408         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
17409         * nss/Makefile (extra-test-objs): Add nss_test1.os.
17410         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
17411         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
17412         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
17413         (extra-test-objs): Add corresponding objects.
17414
17415 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
17416
17417         [BZ #19928]
17418         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
17419         New.
17420         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
17421         times of shared cache size.
17422         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
17423         (VMOVNT): New.
17424         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
17425         (VMOVNT): Likewise.
17426         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
17427         (VMOVNT): Likewise.
17428         (VMOVU): Changed to movups for smaller code sizes.
17429         (VMOVA): Changed to movaps for smaller code sizes.
17430         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
17431         comments.
17432         (PREFETCH): New.
17433         (PREFETCH_SIZE): Likewise.
17434         (PREFETCHED_LOAD_SIZE): Likewise.
17435         (PREFETCH_ONE_SET): Likewise.
17436         Rewrite to use forward and backward loops, which move 4 vector
17437         registers at a time, to support overlapping addresses and use
17438         non temporal store if size is above the threshold and there is
17439         no overlap between destination and source.
17440
17441 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
17442
17443         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
17444         Include dl-vdso.
17445         * sysdeps/unix/sysv/linux/mips/Versions: Add
17446         __vdso_clock_gettime.
17447         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
17448         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
17449         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
17450         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
17451         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
17452         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
17453         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17454         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
17455         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
17456
17457 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17458
17459         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
17460         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
17461         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
17462         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
17463         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
17464         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
17465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
17466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
17467         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
17468         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
17469         syscalls generation.
17470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17471         [__NR_pwrite64] (__NR_write): Remove define.
17472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17473         [__NR_pwrite64] (__NR_write): Remove define.
17474         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
17475         Remove define.
17476         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
17477         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
17478         Remove define.
17479         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
17480         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
17481         Linux implementation as base.
17482         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
17483
17484         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
17485         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
17486         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
17487         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
17488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
17489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
17490         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
17491         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
17492         syscall generation.
17493         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17494         [__NR_pread64] (__NR_pread): Remove define.
17495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17496         [__NR_pread64] (__NR_pread): Likewise.
17497         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
17498         define.
17499         (__libc_pread): Use SYSCALL_LL macro on offset argument.
17500         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
17501         Remove define.
17502         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
17503         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
17504         Linux implementation as base.
17505         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
17506         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
17507         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
17508
17509         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
17510         definition.
17511         (__ALIGNMENT_COUNT): Likewise.
17512         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
17513         (__ALIGNMENT_COUNT): Likewise.
17514         (SYSCALL_LL): New define.
17515         (SYSCALL_LL64): Likewise.
17516         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
17517         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
17518         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
17519         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
17520
17521         * sysdeps/unix/sysv/linux/arm/kernel-features.h
17522         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
17523         * sysdeps/unix/sysv/linux/mips/kernel-features.h
17524         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17525         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17526         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
17527
17528 2016-04-11  Florian Weimer  <fweimer@redhat.com>
17529
17530         [BZ #19865]
17531         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
17532         original buffer before retry.
17533
17534 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17535
17536         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
17537         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
17538         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
17539         GLRO(dl_auxv) list.
17540         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
17541         including <ldsodefs.h>.
17542         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
17543
17544 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
17545
17546         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
17547         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
17548         $(CPPFLAGS).
17549
17550 2016-04-09  Khem Raj  <raj.khem@gmail.com>
17551
17552         [BZ #17950]
17553         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
17554         Add -mfpmath=387.
17555
17556 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
17557
17558         * sysdeps/i386/configure.ac: Change == to = when calling test.
17559         * sysdeps/x86_64/configure.ac: Likewise.
17560         * sysdeps/i386/configure: Regenerated.
17561         * sysdeps/x86_64/configure: Likewise.
17562
17563 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
17564
17565         [BZ #16137]
17566         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
17567         * benchtests/bench-strcoll.c (input_files): Likewise.
17568         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
17569         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
17570         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
17571
17572 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
17573
17574         [BZ #19929]
17575         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
17576         [__USE_XOPEN2K8 && !__USE_GNU].
17577         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
17578         variable.
17579
17580         [BZ #19925]
17581         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
17582         define if [!__USE_MISC && __USE_XOPEN2K].
17583         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
17584         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
17585         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
17586         Likewise.
17587         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
17588         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
17589         variable.
17590         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
17591
17592 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17593
17594         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
17595         (sysdep_routines): Add new strspn targets.
17596         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17597         (__libc_ifunc_impl_list): Add strspn.
17598         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
17599         New file.
17600         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
17601         Likewise.
17602         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
17603         Likewise.
17604         * sysdeps/powerpc/powerpc64/power8/strspn.S:
17605         Likewise.
17606
17607 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17608
17609         * misc/hsearch_r.c: Include <limits.h>.
17610
17611 2016-04-07  Florian Weimer  <fweimer@redhat.com>
17612
17613         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
17614
17615 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17616
17617         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17618         (MEMCPY_SYMBOL): New.
17619         (MEMPCPY_SYMBOL): Likewise.
17620         (MEMMOVE_CHK_SYMBOL): Likewise.
17621         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
17622         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
17623         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
17624         Provide alias for memcpy in libc.a and ld.so.
17625
17626 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17627
17628         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17629         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
17630         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
17631         Disabled fro now.
17632         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
17633         symbols.  Properly check USE_MULTIARCH on __memset symbols.
17634
17635 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
17636
17637         * benchtests/Makefile (string-benchset): Add memcpy-large,
17638         memmove-large and memset-large.
17639         * benchtests/bench-memcpy-large.c: New file.
17640         * benchtests/bench-memmove-large.c: Likewise.
17641         * benchtests/bench-memmove-large.c: Likewise.
17642         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
17643
17644 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17645
17646         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
17647         32-bit displacement to avoid long nop between instructions.
17648
17649 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
17650
17651         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
17652         a comment on VMOVU and VMOVA.
17653
17654 2016-04-04  Florian Weimer  <fweimer@redhat.com>
17655
17656         [BZ #19633]
17657         Use specified locale for number formatting in strfmon_l.
17658         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
17659         (__nl_lookup_word): New inline functions.
17660         * include/printf.h (__print_fp_l): Declare.
17661         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
17662         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
17663         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
17664         (___printf_fp): New function.
17665         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
17666         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
17667         * stdlib/tst-strfmon_l.c (do_test): New test.
17668         * stdlib/Makefile (tests): Add kt.
17669         (LOCALES): Build additional locales.
17670         (tst-strfmon_l.out): Require locales.
17671
17672 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17673
17674         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
17675         if not in libc.
17676         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17677         Likewise.
17678         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
17679         Likewise.
17680         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17681         Likewise.
17682
17683 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
17684
17685         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17686         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
17687         with unaligned_erms.
17688         (__memmove_erms): Skip if source == destination.
17689         (__memmove_unaligned_erms): Don't check source == destination
17690         first.
17691
17692 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17693
17694         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
17695         bit_arch_Fast_Copy_Backward for Intel Core proessors.
17696
17697 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17698
17699         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
17700         * string/strspn.c (strspn): Likewise.
17701
17702 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17703
17704         * benchtests/bench-memset.c (do_test): Support 64-byte
17705         alignment.
17706         (test_main): Test 64-byte alignment.
17707
17708 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17709
17710         * benchtests/bench-memmove.c (test_main): Test 64-byte
17711         alignment.
17712
17713 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
17714
17715         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
17716
17717 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17718
17719         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
17720         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
17721         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
17722
17723         * string/strpbrk.c (strpbrk): Rewrite function.
17724         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
17725         (__strpbrk_c2): Likewise.
17726         (__strpbrk_c3): Likewise.
17727         * string/string-inlines.c
17728         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
17729         Likewise.
17730         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
17731         Likewise.
17732
17733         * string/strspn.c (strcspn): Rewrite function.
17734         * string/bits/string2.h (strspn): Use __builtin_strcspn.
17735         (__strspn_c1): Remove inline function.
17736         (__strspn_c2): Likewise.
17737         (__strspn_c3): Likewise.
17738         * string/string-inlines.c
17739         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
17740         compatibility symbol.
17741         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
17742         Likewise.
17743         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
17744         Likewise.
17745         * string/string-inlines.c: Include generic version.
17746
17747 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
17748             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17749
17750         * string/Version (libc): Add GLIBC_2.24.
17751         * string/strcspn.c (strcspn): Rewrite function.
17752         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
17753         (__strcspn_c1): Remove inline function.
17754         (__strcspn_c2): Likewise.
17755         (__strcspn_c3): Likewise.
17756         * string/string-inline.c
17757         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
17758         compatibility symbol.
17759         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
17760         Likewise.
17761         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
17762         Likewise.
17763         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
17764
17765 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
17766
17767         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
17768         Use ahi instead of aghi to adjust stack pointer.
17769
17770 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
17771
17772         [BZ #19853]
17773         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
17774         TEST to take significant digits as second parameter.
17775         [TEST]: Redefine in terms of TEST_N taking 30
17776         significant digits.
17777         (do_test): Add test case to demonstrate precision
17778         failure in the ldbl-128ibm printf.
17779         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
17780         (__mpn_extract_long_double): Carry 7 extra intermediate
17781         bits of precision to aide computing difference when
17782         signs differ.
17783
17784 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17785
17786         [BZ #19881]
17787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17788         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
17789         memset-avx512-unaligned-erms.
17790         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17791         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
17792         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
17793         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
17794         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
17795         __memset_sse2_unaligned_erms, __memset_erms,
17796         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
17797         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
17798         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
17799         file.
17800         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
17801         Likewise.
17802         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
17803         Likewise.
17804         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
17805         Likewise.
17806
17807 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
17808
17809         [BZ #19776]
17810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17811         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
17812         memmove-avx512-unaligned-erms.
17813         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
17814         (__libc_ifunc_impl_list): Test
17815         __memmove_chk_avx512_unaligned_2,
17816         __memmove_chk_avx512_unaligned_erms,
17817         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
17818         __memmove_chk_sse2_unaligned_2,
17819         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
17820         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
17821         __memmove_avx512_unaligned_erms, __memmove_erms,
17822         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
17823         __memcpy_chk_avx512_unaligned_2,
17824         __memcpy_chk_avx512_unaligned_erms,
17825         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
17826         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
17827         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
17828         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
17829         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
17830         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
17831         __mempcpy_chk_avx512_unaligned_erms,
17832         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
17833         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
17834         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
17835         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
17836         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
17837         __mempcpy_erms.
17838         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
17839         file.
17840         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
17841         Likewise.
17842         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
17843         Likewise.
17844         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
17845         Likewise.
17846
17847 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17848
17849         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
17850         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
17851         (La_s390_64_regs): Likewise.
17852         (La_s390_32_retval): Append vector register lrv_v24.
17853         (La_s390_64_retval): Likeweise.
17854         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
17855         Handle extended structs La_s390_32_regs and La_s390_32_retval.
17856         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
17857         Handle extended structs La_s390_64_regs and La_s390_64_retval.
17858
17859 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
17860
17861         [BZ #19916]
17862         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
17863         to create a non-vector/vector version for _dl_runtime_resolve and
17864         _dl_runtime_profile. Move implementation to ...
17865         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
17866         (_dl_runtime_resolve) Save and restore fpr/vrs.
17867         (_dl_runtime_profile) Save and restore vrs and fix some issues
17868         if _dl_call_pltexit is called.
17869         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
17870         Choose the correct resolver function if running on a machine with vx.
17871         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
17872         to create a non-vector/vector version for _dl_runtime_resolve and
17873         _dl_runtime_profile. Move implementation to ...
17874         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
17875         (_dl_runtime_resolve) Save and restore fpr/vrs.
17876         (_dl_runtime_profile) Save and restore vrs and fix some issues
17877         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
17878         Choose the correct resolver function if running on a machine with vx.
17879
17880 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17881
17882         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
17883
17884 2016-03-31  Florian Weimer  <fweimer@redhat.com>
17885
17886         [BZ #19509]
17887         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
17888         skip_map != NULL.
17889         * elf/tst-dlsym-error.c: New file.
17890         * elf/Makefile (tests): Add tst-dlsym-error.
17891         (tst-dlsym-error): Link against libdl.
17892
17893 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
17894
17895         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17896         (__ASSUME_FUTIMESAT): Remove macro.
17897         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
17898
17899 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17900
17901         [BZ #19879]
17902         CVE-2016-3075
17903         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
17904         copy name.
17905
17906 2016-03-29  Florian Weimer  <fweimer@redhat.com>
17907
17908         [BZ #19837]
17909         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
17910         error if parse_line fails.
17911
17912 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17913
17914         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
17915         (index_cpu_ERMS): Likewise.
17916         (reg_ERMS): Likewise.
17917
17918 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
17919
17920         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
17921         PER_LINUX_FDPIC): Add.
17922
17923 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17924
17925         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17926         memcpy-avx512-no-vzeroupper.
17927         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
17928         to ...
17929         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
17930         (MEMCPY): Don't define.
17931         (MEMCPY_CHK): Likewise.
17932         (MEMPCPY): Likewise.
17933         (MEMPCPY_CHK): Likewise.
17934         (MEMPCPY_CHK): Renamed to ...
17935         (__mempcpy_chk_avx512_no_vzeroupper): This.
17936         (MEMPCPY_CHK): Renamed to ...
17937         (__mempcpy_chk_avx512_no_vzeroupper): This.
17938         (MEMCPY_CHK): Renamed to ...
17939         (__memmove_chk_avx512_no_vzeroupper): This.
17940         (MEMCPY): Renamed to ...
17941         (__memmove_avx512_no_vzeroupper): This.
17942         (__memcpy_avx512_no_vzeroupper): New alias.
17943         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
17944
17945 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17946
17947         [BZ #18858]
17948         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
17949         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
17950         and mempcpy-avx512-no-vzeroupper.
17951         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
17952         New.
17953         (MEMPCPY): Likewise.
17954         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
17955         (MEMPCPY_CHK): New.
17956         (MEMPCPY): Likewise.
17957         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
17958         (MEMPCPY): Likewise.
17959         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
17960         (MEMPCPY): Likewise.
17961         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
17962         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
17963         Likewise.
17964         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
17965         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
17966
17967 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
17968              Amit Pawar  <Amit.Pawar@amd.com>
17969
17970         [BZ #19583]
17971         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
17972         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
17973         processors.  Set Fast_Copy_Backward for AMD Excavator
17974         processors.
17975         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
17976         New.
17977         (index_arch_Fast_Unaligned_Copy): Likewise.
17978         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
17979         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
17980
17981 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17982
17983         [BZ #19791]
17984         * resolv/res_send.c (close_and_return_error): New function.
17985         (send_dg): Initialize *resplen2 after reopen failure.  Call
17986         close_and_return_error for error returns.  On error paths without
17987         __res_iclose, initialze *resplen2 explicitly.  Update comment for
17988         successful return.
17989
17990 2016-03-25  Florian Weimer  <fweimer@redhat.com>
17991
17992         [BZ #19860]
17993         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
17994         zero if the compiler does not provide the AVX512F bit.
17995
17996 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
17997
17998         [BZ #19848]
17999         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
18000         from 8 to 4.
18001         (__ieee754_powl): Compare integer exponent against 4 not 8.
18002         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
18003         from 8 to 4.
18004         (__ieee754_powl): Compare integer exponent against 4 not 8.
18005         * math/auto-libm-test-in: Add more tests of pow.
18006         * math/auto-libm-test-out: Regenerated.
18007         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
18008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18009
18010 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
18011
18012         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
18013         Make code unconditional.
18014         [!__NR_utimensat]: Remove conditional code.
18015         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
18016         Make code unconditional.
18017         [!__NR_utimensat]: Remove conditional code.
18018         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
18019         Make code unconditional.
18020         [!__NR_utimensat]: Remove conditional code.
18021
18022 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
18023
18024         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
18025         Make code unconditional.
18026
18027 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
18028
18029         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
18030         call-clobbered %eax on retry path.
18031         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
18032
18033 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18034
18035         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
18036         Don't set %rcx twice before "rep movsb".
18037
18038 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18039
18040         [BZ #19583]
18041         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
18042         inline.  Check family before setting family, model and
18043         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
18044         bits here.
18045         (init_cpu_features): Replace HAS_CPU_FEATURE and
18046         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
18047         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
18048         for Intel processors with usable AVX2.  Call get_common_indeces
18049         for other processors with family == NULL.
18050         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
18051         (CPU_FEATURES_ARCH_P): Likewise.
18052         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
18053         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
18054
18055 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18056
18057         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
18058         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
18059         $(shared-thread-library) instead of hardcoding the path to libpthread.
18060
18061 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
18062
18063         * sysdeps/unix/sysv/linux/kernel-features.h
18064         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
18065         * sysdeps/unix/sysv/linux/getdents.c
18066         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
18067         [!have_no_getdents64_defined]: Likewise.
18068         (__GETDENTS): Remove __have_no_getdents64 conditional.
18069
18070 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
18071
18072         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
18073         Remove macro.
18074         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
18075         <kernel-features.h>.
18076         (signalfd) [__NR_signalfd4]: Make code unconditional.
18077         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
18078
18079 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18080
18081         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
18082         style.
18083
18084 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
18085
18086         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
18087         (__pthread_enable_asynccancel): Use JUMPTARGET to call
18088         __pthread_unwind.
18089         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
18090         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
18091         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
18092         (__condvar_cleanup1): Likewise.
18093
18094 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
18095
18096         [BZ #19822]
18097         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
18098         move it to the final $@ location.
18099
18100 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18101
18102         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
18103         access where posix_spawn success and pid argument is null.
18104         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
18105         success case.
18106
18107 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
18108
18109         * sysdeps/mach/hurd/i386/c++-types.data: New file.
18110
18111         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
18112
18113         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
18114         and __fcntl.
18115         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
18116         __fcntl only.
18117         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
18118         adding attribute_hidden to __open and __fcntl.
18119
18120         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
18121         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
18122         depend on libc-modules.h,
18123         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
18124
18125 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
18126
18127         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
18128         Remove macro.
18129         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
18130         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
18131         entry.
18132
18133         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
18134         Remove macro.
18135         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
18136         include <kernel-features.h>.
18137         [!__ASSUME_FALLOCATE]: Remove conditional code.
18138         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
18139
18140 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
18141
18142         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
18143         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
18144         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
18145         (_ZGVdN4v_cos_avx2): Likewise.
18146         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
18147         (_ZGVdN4v_cos): Likewise.
18148         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
18149         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
18150         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
18151         (_ZGVdN4v_exp_avx2): Likewise.
18152         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
18153         (_ZGVdN4v_exp): Likewise.
18154         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
18155         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
18156         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
18157         (_ZGVdN4v_log_avx2): Likewise.
18158         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
18159         (_ZGVdN4v_log): Likewise.
18160         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
18161         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
18162         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
18163         (_ZGVdN4vv_pow_avx2): Likewise.
18164         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
18165         (_ZGVdN4vv_pow): Likewise.
18166         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
18167         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
18168         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
18169         (_ZGVdN4v_sin_avx2): Likewise.
18170         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
18171         (_ZGVdN4v_sin): Likewise.
18172         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
18173         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
18174         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
18175         (_ZGVdN4vvv_sincos_avx2): Likewise.
18176         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
18177         (_ZGVdN4vvv_sincos): Likewise.
18178         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
18179         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
18180         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
18181         (_ZGVbN4v_cosf_sse4): Likewise.
18182         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
18183         (_ZGVdN8v_cosf_avx2): Likewise.
18184         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
18185         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
18186         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
18187         (_ZGVbN4v_expf_sse4): Likewise.
18188         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
18189         (_ZGVdN8v_expf_avx2): Likewise.
18190         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
18191         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
18192         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
18193         (_ZGVbN4v_logf_sse4): Likewise.
18194         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
18195         (_ZGVdN8v_logf_avx2): Likewise.
18196         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
18197         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
18198         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
18199         (_ZGVbN4vv_powf_sse4): Likewise.
18200         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
18201         (_ZGVdN8vv_powf_avx2): Likewise.
18202         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
18203         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
18204         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
18205         (_ZGVbN4vvv_sincosf_sse4): Likewise.
18206         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
18207         (_ZGVdN8vvv_sincosf_avx2): Likewise.
18208         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
18209         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
18210         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
18211         (_ZGVbN4v_sinf_sse4): Likewise.
18212         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
18213         (_ZGVdN8v_sinf_avx2): Likewise.
18214         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
18215         Use JUMPTARGET to call callee.
18216         (WRAPPER_IMPL_SSE2_ff): Likewise.
18217         (WRAPPER_IMPL_SSE2_fFF): Likewise.
18218         (WRAPPER_IMPL_AVX): Likewise.
18219         (WRAPPER_IMPL_AVX_ff): Likewise.
18220         (WRAPPER_IMPL_AVX_fFF): Likewise.
18221         (WRAPPER_IMPL_AVX512): Likewise.
18222         (WRAPPER_IMPL_AVX512_ff): Likewise.
18223         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
18224         Likewise.
18225         (WRAPPER_IMPL_SSE2_ff): Likewise.
18226         (WRAPPER_IMPL_SSE2_fFF): Likewise.
18227         (WRAPPER_IMPL_AVX): Likewise.
18228         (WRAPPER_IMPL_AVX_ff): Likewise.
18229         (WRAPPER_IMPL_AVX_fFF): Likewise.
18230         (WRAPPER_IMPL_AVX512): Likewise.
18231         (WRAPPER_IMPL_AVX512_ff): Likewise.
18232         (WRAPPER_IMPL_AVX512_fFF): Likewise.
18233
18234 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18235
18236         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
18237         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
18238         qualifier.
18239         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
18240         internal_function qualifiers.
18241
18242 2016-03-15  Carlos O'Donell <carlos@redhat.com>
18243
18244         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
18245         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
18246         * math/atest-exp.c (exp_mpn): Mark chk unused.
18247         * math/atest-exp2.c (exp_mpn): Likewise.
18248         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
18249         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
18250
18251 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
18252
18253         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
18254         Remove macro.
18255         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
18256         <kernel-features.h>.
18257         [__NR_ppoll]: Make code unconditional.
18258         [!__ASSUME_PPOLL]: Remove conditional code.
18259
18260         * sysdeps/unix/sysv/linux/kernel-features.h
18261         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
18262         (__ASSUME_ACCEPT4): Likewise.
18263         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18264         Define.
18265         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
18266         Likewise.
18267         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18268         Likewise.
18269         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
18270         Likewise.
18271         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
18272         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
18273         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18274         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18275         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18276         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18277         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18278         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18279         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18280         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18281         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18282         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18283         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18284         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18285         * sysdeps/unix/sysv/linux/i386/kernel-features.h
18286         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18287         Likewise.
18288         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18289         Likewise.
18290         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18291         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18292         0x040300].
18293         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18294         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
18295         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18296         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18297         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18298         0x030300].
18299         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
18300         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18301         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18302         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18303         0x040300].
18304         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18305         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18306         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18307         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18308         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18309         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18310         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
18311         0x030300].
18312         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18313         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18314         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18315         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18316         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18317         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18318         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18319         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18320         * sysdeps/unix/sysv/linux/s390/kernel-features.h
18321         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
18322         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
18323         0x040300].
18324         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18325         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18326         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18327         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
18328         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18329         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18330         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18331         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18332         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18333         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18334         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18335         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18336         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
18337         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
18338         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
18339         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
18340         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
18341         Likewise.
18342         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
18343         Likewise.
18344
18345 2016-03-15  Andreas Schwab  <schwab@suse.de>
18346
18347         [BZ #19257]
18348         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
18349         statp->_u._ext.nscount as loop count.
18350
18351 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
18352
18353         * math/test-signgam-finite-c99.c: Also #undef
18354         __LIBC_INTERNAL_MATH_INLINES.
18355         * math/test-signgam-main.c: Likewise.
18356
18357 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
18358
18359         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
18360         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18361         (MADV_FREE): Likewise.
18362         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
18363         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
18364         EPOLLEXCLUSIVE.
18365
18366 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
18367
18368         * timezone/README: Remove mention of checktab.awk. Mention wiki
18369         SharedSourceFiles.
18370
18371 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
18372
18373         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
18374         WUNTRACED.
18375
18376 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18377
18378         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
18379         order to match the type of p when calling atomic_exchange_acq().
18380
18381 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18382
18383         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
18384         cfi_offset calls.
18385         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18386         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
18387         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
18388         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
18389         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
18390
18391 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
18392
18393         * timezone/checktab.awk: Removed.
18394
18395 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
18396
18397         * manual/math.texi (Errors in Math Functions): Document relaxed
18398         accuracy goals for IBM long double.
18399         * math/libm-test.inc (test_exceptions): Always allow spurious
18400         "underflow" and "inexact" exceptions for IBM long double.
18401
18402 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18403
18404         [BZ #19762]
18405         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18406         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
18407         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
18408         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
18409         (bit_arch_*): This for feature array.
18410         (bit_*): Renamed to ...
18411         (bit_cpu_*): This for cpu array.
18412         (index_*): Renamed to ...
18413         (index_arch_*): This for feature array.
18414         (index_*): Renamed to ...
18415         (index_cpu_*): This for cpu array.
18416         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
18417         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
18418         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
18419         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
18420         bit_##name with index_cpu_##name and bit_cpu_##name.
18421         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
18422         bit_##name with index_arch_##name and bit_arch_##name.
18423
18424 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
18425
18426         [BZ #19792]
18427         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
18428         Terminate FDE before return label.
18429
18430 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
18431
18432         [BZ #19790]
18433         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
18434         (rintl): Define as macro.
18435         [USE_AS_NEARBYINTL] (__rintl): Likewise.
18436         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
18437         of fesetround.  Ensure results are evaluated before end of scope.
18438         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
18439         USE_AS_NEARBYINTL and include s_rintl.c.
18440         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
18441         Disable exception traps in new environment.
18442         (libc_feholdsetround_ppc_ctx): Likewise.
18443
18444 2016-03-08  Roland McGrath  <roland@hack.frob.com>
18445
18446         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
18447         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
18448         (tst_audit10_aux) [__AVX512F__]: ... here.
18449
18450 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
18451
18452         * include/sys/auxv.h: New file.
18453
18454 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18455
18456         [BZ #19759]
18457         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
18458
18459 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18460
18461         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
18462         operand modifier.
18463         (feclearexcept): Likewise.
18464
18465 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
18466
18467         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
18468         to reflect the entire 32-bit HWCAP.
18469         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
18470         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
18471
18472 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
18473
18474         [BZ #19783]
18475         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
18476         $(test-via-rtld-prefix).
18477         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
18478
18479 2016-03-08  Florian Weimer  <fweimer@redhat.com>
18480
18481         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
18482         union wait.  Report any non-zero exit status as error.
18483
18484 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18485
18486         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
18487         configured with --enable-hardcoded-path-in-tests.
18488
18489 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
18490
18491         [BZ #19677]
18492         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18493         (__ieee754_remainderl): Put zero low parts in canonical form.
18494         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
18495         file.  Based on
18496         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
18497         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
18498         with wrapper round test-fmodrem-ldbl-128ibm.c.
18499         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
18500         file.
18501         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
18502         Likewise.
18503         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
18504         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
18505
18506 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18507
18508         [BZ #19610]
18509         * elf/ldconfig.c (opt_link): Update comment.
18510         (options): Update help string for option -X.
18511         (search_dir): Unlink stale symbolic link only if updating symbolic
18512         links.
18513         * elf/tst-ldconfig-X.sh: New file.
18514         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
18515         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
18516
18517 2016-03-07  Andreas Schwab  <schwab@suse.de>
18518
18519         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
18520         needed arguments.
18521
18522 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
18523
18524         [BZ #15333]
18525         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
18526         to lstat64.
18527
18528 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18529
18530         * libio/filedoalloc.c (isatty): Remove.
18531         (local_isatty): Add comment.  Call __isatty directly.
18532         (_IO_file_doallocate): Update comment.  Assume _LIBC.
18533         * libio/wfiledoalloc.c (isatty): Remove.
18534         (_IO_wfile_doallocate): Update comment.
18535
18536 2016-03-07  Florian Weimer  <fweimer@redhat.com>
18537
18538         [BZ #19269]
18539         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
18540         tst-audit4-aux.o.
18541         (tst-audit10): Depend on tst-audit10-aux.o.
18542         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
18543         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
18544         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
18545         instead of inline AVX code.
18546         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
18547         instead of inline AVX512 code.
18548         * sysdeps/x86_64/tst-audit4-aux.c: New file
18549         * sysdeps/x86_64/tst-audit10-aux.c: New file
18550
18551         [BZ #19648]
18552         * test-skeleton.c (main): Do not set RLIMIT_DATA.
18553
18554 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18555
18556         [BZ #14750]
18557         [BZ #10354]
18558         [BZ #18433]
18559         * include/sched.h (__clone): Add hidden prototype.
18560         (__clone2): Likewise.
18561         * include/unistd.h (__dup): Likewise.
18562         * posix/Makefile (tests): Add tst-spawn2.
18563         * posix/tst-spawn2.c: New file.
18564         * sysdeps/posix/dup.c (__dup): Add hidden definition.
18565         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
18566         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
18567         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
18568         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
18569         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
18570         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
18571         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
18572         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
18573         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
18574         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
18575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
18576         Likewise.
18577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18578         Likewise.
18579         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
18580         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
18581         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
18582         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
18583         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
18584         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
18585         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
18586         * sysdeps/unix/sysv/linux/nptl-signals.h
18587         (____nptl_is_internal_signal): New function.
18588         * sysdeps/unix/sysv/linux/spawni.c: New file.
18589
18590         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
18591         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
18592         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
18593         * posix/tst-execvp2.c (do_test): Likewise.
18594         * posix/tst-execvp3.c (do_test): Likewise.
18595         * posix/tst-execvp4.c (do_test): Likewise.
18596         * posix/tst-execvpe1.c: New file.
18597         * posix/tst-execvpe2.c: Likewise.
18598         * posix/tst-execvpe3.c: Likewise.
18599         * posix/tst-execvpe4.c: Likewise.
18600         * posix/tst-execvpe5.c: Likewise.
18601         * posix/tst-execvpe6.c: Likewise.
18602
18603         [BZ #19534]
18604         * posix/execl.c (execl): Remove dynamic memory allocation.
18605         * posix/execle.c (execle): Likewise.
18606         * posix/execlp.c (execlp): Likewise.
18607
18608 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18609
18610         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
18611         Replace .text with .text.avx512.
18612         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
18613         Likewise.
18614
18615 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
18616
18617         * sysdeps/generic/libnsl.abilist: New file.
18618         * sysdeps/generic/libutil.abilist: New file.
18619
18620 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
18621
18622         [BZ #19762]
18623         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
18624         HAS_ARCH_FEATURE with Fast_Rep_String.
18625         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
18626         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
18627         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
18628         Likewise.
18629         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
18630         Likewise.
18631         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
18632         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
18633         Likewise.
18634         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
18635         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
18636         Likewise.
18637
18638 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18639
18640         [BZ #19745]
18641         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
18642         with *%rax in call.
18643
18644 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18645
18646         [BZ #19745]
18647         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
18648         with *__libc_start_main@GOTPCREL(%rip) in call.
18649
18650 2016-03-04  Roland McGrath  <roland@hack.frob.com>
18651
18652         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
18653         inside conditional for nonempty $(CXX).
18654
18655         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
18656         nonempty.
18657
18658         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
18659         to test for empty $(CXX) rather than $(CXX) of "no".
18660
18661 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
18662
18663         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
18664
18665 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
18666             H.J. Lu  <hongjiu.lu@intel.com>
18667
18668         [BZ #18880]
18669         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
18670         instead of Slow_BSF, and also check for Fast_Copy_Backward to
18671         enable __memcpy_ssse3_back.
18672
18673 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18674
18675         [BZ #19758]
18676         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
18677         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
18678
18679 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
18680
18681         [BZ #19490]
18682         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
18683         (__fentry__): Likewise.
18684
18685 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18686
18687         * gmon/Makefile (noprof): Add $(sysdep_noprof).
18688         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
18689
18690 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18691
18692         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
18693         __mcount_internal directly.
18694         (C_LABEL(__fentry__)): Likewise.
18695         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
18696         directly.
18697
18698 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
18699
18700         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18701         (__start_context): Call __setcontext directly.
18702
18703 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
18704
18705         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
18706         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18707         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
18708         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18709         * sysdeps/unix/sysv/linux/arm/kernel-features.h
18710         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18711         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
18712         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18713         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
18714         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
18715         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18716         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18717         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
18718         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18719         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18720         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
18721         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
18722         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
18723         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18724         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
18725         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
18726         * sysdeps/unix/sysv/linux/mips/kernel-features.h
18727         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18728         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
18729         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
18730         Remove conditional code.
18731         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
18732         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
18733         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18734         * sysdeps/unix/sysv/linux/sh/kernel-features.h
18735         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
18736         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18737         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
18738         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
18739         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
18740         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18741         * sysdeps/unix/sysv/linux/tile/kernel-features.h
18742         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
18743
18744 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
18745
18746         * NEWS (2.23): Fix typo in bug 19048 text.
18747
18748 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
18749
18750         [BZ #14259]
18751         * Makeconfig: Rename msgcatdir to localedir.
18752         Rename inst_msgcatdir to inst_localedir.
18753         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
18754         * config.make.in: Add localedir.
18755         * elf/Makefile ($(objpfx)sotruss): Use localedir.
18756         (ldd-rewrite): Likewise.
18757         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
18758         (install-others): Use inst_localedir.
18759         (CPPFLAGS): Use localedir.
18760         * locale/Makefile (locale-CPPFLAGS): Likewise.
18761         * po/Makefile (mo-installed): Use inst_localedir.
18762
18763         [BZ #19575]
18764         * localedata/charmaps/GB18030: Update comments regarding PAU to
18765         non-PUA mappings.
18766
18767 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
18768
18769         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
18770         test for header.
18771         * sysdeps/unix/sysv/linux/configure: Regenerated.
18772         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
18773         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
18774         Remove conditional code.
18775         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
18776
18777         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
18778         Define to 3.2.0.
18779         (arch_minimum_kernel): Likewise.
18780         * sysdeps/unix/sysv/linux/configure: Regenerated.
18781         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
18782         Define to 2.6.32.
18783         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
18784         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
18785         (arch_minimum_kernel): Define to 2.6.32.
18786         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
18787         * README: Document Linux 3.2 requirement.
18788         * manual/install.texi (Linux): Document Linux 3.2 headers
18789         requirement.
18790         * INSTALL: Regenerated.
18791
18792 2016-02-24  Andreas Schwab  <schwab@suse.de>
18793
18794         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
18795         if !NO_LONG_DOUBLE.
18796
18797 2016-02-22  Roland McGrath  <roland@hack.frob.com>
18798
18799         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
18800         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
18801
18802 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
18803
18804         [BZ #19512]
18805         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
18806
18807 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
18808
18809         * posix/tst-dir.c: Include libc-internal.h.
18810
18811 2016-02-20  Florian Weimer  <fweimer@redhat.com>
18812
18813         [BZ #19056]
18814         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
18815         * manual/filesys.texi (Reading/Closing Directory): Mention
18816         deprecaion.
18817         * posix/tst-dir.c (main): Disable deprecation warning in test.
18818
18819 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18820
18821         [BZ #19679]
18822         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
18823         Renamed to ...
18824         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
18825         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18826         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
18827         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18828         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18829         * sysdeps/x86_64/dl-trampoline.h
18830         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
18831         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
18832
18833 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18834
18835         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
18836
18837 2016-02-19  Mark Wielaard  <mjw@redhat.com>
18838
18839         * elf/elf.h (R_386_GOT32X): New.
18840         (R_386_NUM): Update.
18841         (R_X86_64_GOTPCRELX: New.
18842         (R_X86_64_REX_GOTPCRELX): New.
18843         (R_X86_64_NUM): Update.
18844
18845 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
18846
18847         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
18848
18849 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
18850
18851         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
18852         assign attr->stackaddr to it, and adjust it down when
18853         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
18854         [_STACK_GROWS_UP]: Delete assert.
18855         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
18856         Implement stack grows up logic.
18857         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
18858         stack grows up logic.
18859
18860 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18861
18862         * NEWS: Update with 2.24 template.
18863
18864 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18865
18866         [BZ #19678]
18867         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
18868         Ensure +0.0 is returned when taking the next value below the least
18869         positive value.
18870
18871 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18872
18873         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
18874         available.  Do not define NO_THREADS.
18875         * malloc/malloc.c: Do not check NO_THREADS.
18876         * malloc/arena.c: Likewise.
18877
18878 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18879
18880         * malloc/malloc.c (__libc_mallinfo): Update comment.
18881         (struct malloc_par): Remove max_total_mem member, it was always 0.
18882         (int_mallinfo): Store 0 into usmblks (no functional change).
18883         * malloc/hooks.c (struct malloc_state): Document that
18884         max_total_mem is always 0.
18885         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
18886         always 0.
18887         * manual/memory.texi (Statistics of Malloc): Likewise.
18888
18889 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18890
18891         * malloc/malloc.c (sysmalloc): Do not update arena_max.
18892         * malloc/arena.c (arena_max): Remove.
18893         (heap_trim, _int_new_arena): Do not update arena_max.
18894
18895 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18896
18897         * resolv/res_init.c (res_ninit): Update comment.
18898
18899 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18900
18901         [BZ #19505]
18902         * posix/spawn_int.h: Add headers and include guard.
18903         (__spawn_valid_fd): New function.
18904         * posix/spawn_faction_addopen.c
18905         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
18906         * posix/spawn_faction_addclose.c
18907         (posix_spawn_file_actions_addclose): Likewise.
18908         * posix/spawn_faction_adddup2.c
18909         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
18910         second file descriptor.
18911         * posix/spawn_valid_fd.c: New file.
18912         * posix/tst-posix_spawn-fd.c: New file.
18913         * posix/Makefile (routines): Add spawn_valid_fd.
18914         (tests): Add tst-posix_spawn-fd.
18915
18916 2016-02-19  Florian Weimer  <fweimer@redhat.com>
18917
18918         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
18919         (do_test): Limit the number of arenas, so that we can use fewer
18920         outer threads.  Limit timeout to 3 seconds, in preparation for a
18921         larger TIMEOUT value.
18922
18923 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
18924
18925         [BZ #19674]
18926         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
18927         sign in overflowing and underflowing results when overflow or
18928         underflow is detected early.  Include sign in result before rather
18929         than after scaling.
18930
18931         [BZ #19603]
18932         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
18933         (__ieee754_remainderl): Adjust sign of integer version of low part
18934         when taking absolute value of high part.
18935         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
18936         * math/libm-test.inc (remainder_test_data): Add another test.
18937         (remquo_test_data): Likewise.
18938
18939 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
18940
18941         [BZ #19602]
18942         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
18943         equal high parts and both low parts zero specially.
18944         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
18945         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
18946         Add test-fmodl-ldbl-128ibm.
18947
18948         [BZ #19595]
18949         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
18950         common logic for all cases of shifting subnormal results.  Do not
18951         insert sign bit in shifted mantissa.  Always pass -1023 as biased
18952         exponent to ldbl_insert_mantissa in subnormal case.
18953
18954         [BZ #19594]
18955         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
18956         on high and low parts then adjust result and use
18957         ldbl_canonicalize_int if needed.
18958
18959         [BZ #19593]
18960         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
18961         on high part and __floor or __ceil on low part then use
18962         ldbl_canonicalize_int if needed.
18963
18964         [BZ #19592]
18965         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
18966         high and low parts then use ldbl_canonicalize_int if needed.
18967
18968         [BZ #17899]
18969         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
18970         New function.
18971         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
18972         on high and low parts then use ldbl_canonicalize_int if needed.
18973
18974 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18975
18976         * configure: Regenerated.
18977
18978         * po/libc.pot: Regenerated.
18979
18980         * po/be.po: Updated translation.
18981         * po/bg.po: Likewise.
18982         * po/ca.po: Likewise.
18983         * po/cs.po: Likewise.
18984         * po/da.po: Likewise.
18985         * po/el.po: Likewise.
18986         * po/eo.po: Likewise.
18987         * po/es.po: Likewise.
18988         * po/fi.po: Likewise.
18989         * po/fr.po: Likewise.
18990         * po/gl.po: Likewise.
18991         * po/hr.po: Likewise.
18992         * po/hu.po: Likewise.
18993         * po/ia.po: Likewise.
18994         * po/id.po: Likewise.
18995         * po/it.po: Likewise.
18996         * po/ja.po: Likewise.
18997         * po/lt.po: Likewise.
18998         * po/nb.po: Likewise.
18999         * po/nl.po: Likewise.
19000         * po/pt_BR.po: Likewise.
19001         * po/rw.po: Likewise.
19002         * po/sk.po: Likewise.
19003         * po/sl.po: Likewise.
19004         * po/sv.po: Likewise.
19005         * po/tr.po: Likewise.
19006         * po/zh_CN.po: Likewise.
19007         * po/zh_TW.po: Likewise.
19008
19009         * version.h (RELEAES): Set to "development".
19010         (VERSION): Set to 2.23.90.
19011
19012         * version.h (RELEASE): Set to "stable".
19013         (VERSION): Set to 2.23.
19014         * include/feature.h (__GLIBC_MINOR__): Set to 23.
19015
19016         * NEWS: Updated fixed bugs.
19017
19018 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19019             Wilco Dijkstra  <wdijkstr@arm.com>
19020
19021         [BZ #19462]
19022         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
19023         (_STRING_INLINE_unaligned): This.
19024         * include/string.h: Include <string_private.h>.
19025         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
19026         _STRING_INLINE_unaligned.
19027         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
19028         (_STRING_INLINE_unaligned): New.
19029         * sysdeps/aarch64/string_private.h: New file.
19030         * sysdeps/generic/string_private.h: Likewise.
19031         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
19032         * sysdeps/s390/string_private.h: Likewise.
19033         * sysdeps/x86/string_private.h: Likewise.
19034         * sysdeps/m68k/m680x0/m68020/bits/string.h
19035         (_STRING_ARCH_unaligned): Renamed to ...
19036         (_STRING_INLINE_unaligned): This.
19037         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
19038         to ...
19039         (_STRING_INLINE_unaligned): This.
19040         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
19041         to ...
19042         (_STRING_INLINE_unaligned): This.
19043         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
19044         to ...
19045         (_STRING_INLINE_unaligned): This.
19046
19047 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
19048             H.J. Lu  <hongjiu.lu@intel.com>
19049
19050         [BZ #19590]
19051         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
19052         relocation.
19053
19054 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
19055
19056         [BZ #18665]
19057         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
19058         *herrno_p.
19059         (gaih_getanswer): Document functional behviour. Return tryagain
19060         if any result is tryagain.
19061         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
19062         when freed.
19063         * resolv/res_send.c: Add copyright text.
19064         (__libc_res_nsend): Document that MAXPACKET is expected.
19065         (send_vc): Document. Remove buffer reuse.
19066         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
19067         size of the buffer. Add Dprint for truncated UDP buffer.
19068
19069 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
19070
19071         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
19072         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
19073         * INSTALL: Regenerate.
19074
19075 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
19076             Jonathan Wakely  <jwakely@redhat.com>
19077             Carlos O'Donell  <carlos@redhat.com>
19078
19079         [BZ 19439]
19080         * math/Makefile (tests): Add test-math-isinff.
19081         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
19082         * math/bits/mathcalls.h [__USE_MISC]: Use
19083         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
19084         functions not in C++11 and which don't conflict e.g. isinff,
19085         isinfl etc.
19086         * math/test-math-isinff.cc: New file.
19087
19088 2016-02-12  Florian Weimer  <fweimer@redhat.com>
19089
19090         * misc/bug18240.c (do_test): Set RLIMIT_AS.
19091
19092 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19093
19094         [BZ #19529]
19095         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
19096
19097 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19098
19099         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19100
19101 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
19102
19103         [BZ #19550]
19104         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
19105         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
19106         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
19107         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
19108         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
19109         New syscall entry.
19110         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
19111         New syscall entry.
19112         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
19113         syscall entry.
19114
19115 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         [BZ #18240]
19118         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
19119         unsigned int wraparound.
19120
19121 2016-01-27  Florian Weimer  <fweimer@redhat.com>
19122
19123         [BZ #18240]
19124         * misc/bug18240.c: New test.
19125         * misc/Makefile (tests): Add it.
19126
19127 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
19128             Joseph Myers  <joseph@codesourcery.com>
19129
19130         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
19131         load in branch delay slot when less than a word of input left.
19132
19133 2016-01-27  Andreas Schwab  <schwab@suse.de>
19134
19135         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
19136         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
19137         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
19138         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
19139
19140 2016-01-26  David S. Miller  <davem@davemloft.net>
19141
19142         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
19143
19144 2016-01-25  David S. Miller  <davem@davemloft.net>
19145
19146         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
19147         __sqrtl_finite.
19148         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
19149         instead using versioned_symbol.
19150         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
19151         of entries.
19152
19153         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
19154         __sqrtl_finite to GLIBC_2.23
19155
19156 2016-01-25  Ricchard Henderson  <rth@redhat.com>
19157
19158         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19159
19160 2016-01-25  Andreas Schwab  <schwab@suse.de>
19161
19162         [BZ #17514]
19163         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
19164         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
19165         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
19166         * nptl/tst-mutex-errorcheck.c: New file.
19167
19168 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19169
19170         [BZ #18560]
19171         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
19172         (IPCOP_semop): Likewise.
19173         (IPCOP_semget): Likewise.
19174         (IPCOP_semctl): Likewise.
19175         (IPCOP_msgsnd): Likewise.
19176         (IPCOP_msgrcv): Likewise.
19177         (IPCOP_msgget): Likewise.
19178         (IPCOP_msgctl): Likewise.
19179         (IPCOP_shmat): Likewise.
19180         (IPCOP_shmdt): Likewise.
19181         (IPCOP_shmget): Likewise.
19182         (IPCOP_shmctl): Likewise.
19183
19184 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
19185
19186         * string/tst-endian.c: Include <libc-internal.h>.
19187         (do_test): Ignore tautological-compare warnings around
19188         "htobeXX (beXXtoh (i)) != i" and
19189         "htoleXX (leXXtoh (i)) != i" if-statements.
19190
19191 2016-01-24  David S. Miller  <davem@davemloft.net>
19192
19193         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
19194         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
19195         alias.
19196         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
19197         __sqrtl_finite.
19198
19199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19200
19201 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
19202
19203         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
19204         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
19205         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19206
19207 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19208
19209         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
19210         (thread_func): Use new function to simplify barrier check.
19211         (do_test): Use new function to simplify checking barrier exit
19212         code, and actually join the child thread.
19213
19214 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19215
19216         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
19217         semicolon.
19218         (__libc_tend): Likewise.
19219         (__libc_tabort): Likewise.
19220
19221 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
19222
19223         * sysdeps/nios2/libm-test-ulps: Update.
19224         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
19225         (__gtsf2): Likewise.
19226         (__unorddf2): Likewise.
19227         (__unordsf2): Likewise.
19228         (__ledf2): Likewise.
19229
19230 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
19231
19232         * nis/nis_table.c (__follow_path): Disable diagnostic for
19233         uninitialized variable that is a false positive for gcc 4.7.
19234         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
19235
19236 2016-01-20  Roland McGrath  <roland@hack.frob.com>
19237
19238         * sysdeps/nacl/lowlevellock-futex.h
19239         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
19240         Always evaluate PRIVATE argument.
19241
19242 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
19243
19244         [BZ #19490]
19245         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
19246         (pthread_cond_broadcast): Use ENTRY/END
19247         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
19248         (pthread_cond_signal): Likewise.
19249         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
19250         Likewise.
19251         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
19252         Likewise.
19253         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
19254         Likewise.
19255
19256 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
19257
19258         * sysdeps/ieee754/dbl-64/s_finite.c
19259         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
19260         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
19261         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
19262         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
19263         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
19264
19265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
19266         (__gtsf2): Add as optional for libc.so.
19267         (__unordsf2): Likewise.
19268         (__signbit): Remove for libc.so.
19269         (__signbitl): Likewise.
19270
19271 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
19272
19273         * iconvdata/bug-iconv11.c (test_ibm93x):
19274         Use %zu printf format specifier for size_t argument.
19275
19276 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
19277
19278         * math/gen-libm-test.pl (parse_ulps): Do not reduce
19279         already-recorded ulps.
19280         * sysdeps/arm/libm-test-ulps: Regenerated.
19281         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
19282         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19283         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
19284
19285 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19286             Paul Pluzhnikov  <ppluzhnikov@google.com>
19287
19288         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
19289         assembler not supporting AVX-512.
19290
19291 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
19292
19293         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19294
19295 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
19296
19297         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
19298         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19299
19300         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
19301
19302         * sysdeps/arm/libm-test-ulps: Regenerated.
19303
19304 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
19305
19306         [BZ #19451]
19307         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
19308
19309 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
19310
19311         [BZ #19486]
19312         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
19313         * sysdeps/generic/fix-fp-int-convert-overflow.h
19314         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
19315         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
19316         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
19317         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
19318         Likewise.
19319         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
19320         Avoid conversions to long int where inexact exceptions
19321         could be raised.
19322         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
19323         Likewise.
19324         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
19325         Avoid conversions to long long int where inexact exceptions
19326         could be raised.
19327         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
19328         Likewise.
19329
19330 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
19331
19332         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
19333         * configure: Regenerated.
19334
19335 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19336
19337         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
19338
19339 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
19340
19341         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
19342         outside of comment.
19343
19344 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19345
19346         * nptl/tst-barrier1.c: Add description on first line.
19347         * nptl/tst-barrier2.c: Likewise.
19348         * nptl/tst-barrier3.c: Likewise.
19349         * nptl/tst-barrier4.c: Likewise.
19350         * nptl/tst-barrier5.c: Likewise.
19351
19352 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19353
19354         [BZ #18868]
19355         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
19356
19357 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
19358
19359         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
19360         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19361         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
19362         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
19363         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
19364         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
19365         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
19366         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
19367         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19368         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
19369         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
19370
19371 2016-01-15  Torvald Riegel  <triegel@redhat.com>
19372
19373         [BZ #13065]
19374         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
19375         new implementation.
19376         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
19377         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
19378         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
19379         (BARRIER_IN_THRESHOLD): New macro.
19380         * nptl/pthread_barrierattr_setpshared.c
19381         (pthread_barrierattr_setpshared): Clean up.
19382         * nptl/tst-barrier4.c: Correct comment.
19383         * nptl/tst-barrier5.c: New file.
19384         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
19385         (gen-as-const-headers): Remove lowlevelbarrier.sym.
19386         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
19387         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
19388         * nptl/lowlevelbarrier.sym: Remove.
19389         * nptl/DESIGN-barrier.txt: Remove.
19390         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
19391         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
19392         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
19393         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
19394         error.
19395         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
19396         implementation.
19397
19398 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
19399
19400         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
19401         (do_child): Mask SIGRTMIN while thr is running.
19402
19403 2016-01-15  Martin Sebor  <msebor@redhat.com>
19404
19405         [BZ #19432]
19406         * iconvdata/Makefile: Add bug-iconv11.
19407         * iconvdata/bug-iconv11.c: New test.
19408         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
19409         * iconvdata/ibm933.c: Same.
19410         * iconvdata/ibm935.c: Same.
19411         * iconvdata/ibm937.c: Same.
19412         * iconvdata/ibm939.c: Same.
19413
19414 2016-01-15  Martin Sebor  <msebor@redhat.com>
19415
19416         [BZ #19443]
19417         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
19418         [DEBUG] (_ufc_set_bits): Declare used.
19419         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
19420         [DEBUG] (print_all): Declare used.
19421         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
19422         operands of the ternary ?: expression to target type.
19423         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
19424         calling the undeclared abort.
19425         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
19426
19427 2016-01-15  Martin Sebor  <msebor@redhat.com>
19428
19429         [BZ #18755]
19430         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
19431         warnings.
19432         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
19433         (__gai_create_helper_thread): Same.
19434         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
19435         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
19436         to suppress -Wmaybe-uninitialized warnings.
19437
19438 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19439
19440         [BZ #19465]
19441         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
19442         inside if.
19443         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
19444         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
19445         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
19446
19447 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
19448
19449         [BZ #19466]
19450         * time/tst-mktime2.c (time_t_max): Removed.
19451         (time_t_min): Likewise.
19452         (TYPE_SIGNED): New.
19453         (TYPE_MINIMUM): Likewise.
19454         (TYPE_MAXIMUM): Likewise.
19455         (TIME_T_MIN): Likewise.
19456         (TIME_T_MAX): Likewise.
19457         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
19458         and TIME_T_MIN.
19459         (do_test): Likewise.
19460
19461 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
19462
19463         [BZ #19467]
19464         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19465         index_Fast_Unaligned_Load flag for Excavator family CPUs.
19466
19467 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
19468
19469         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
19470
19471 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
19472
19473         * benchtests/Makefile (PYTHON): Define.
19474         (bench-func): Use $(PYTHON) to run python scripts.
19475         ($(objpfx)bench-%.c): Likewise.
19476
19477 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
19478
19479         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
19480         leading slash when `file_name' is "/".
19481
19482 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
19483
19484         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
19485         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
19486         Likewise.
19487         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
19488         Likewise.
19489         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
19490         Likewise.
19491         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
19492         enum constant and macro.
19493         (PTRACE_SETSIGMASK): Likewise.
19494         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19495         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
19496         (PTRACE_GETSIGMASK): Likewise.
19497         (PTRACE_SETSIGMASK): Likewise.
19498         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19499         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
19500         Likewise.
19501         (PTRACE_SETSIGMASK): Likewise.
19502         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19503         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
19504         (PTRACE_GETSIGMASK): Likewise.
19505         (PTRACE_SETSIGMASK): Likewise.
19506         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19507         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
19508         Likewise.
19509         (PTRACE_SETSIGMASK): Likewise.
19510         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19511         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
19512         Likewise.
19513         (PTRACE_SETSIGMASK): Likewise.
19514         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19515         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
19516         Likewise.
19517         (PTRACE_SETSIGMASK): Likewise.
19518         (PTRACE_SECCOMP_GET_FILTER): Likewise.
19519
19520 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
19521             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19522
19523         [BZ #19439]
19524         * math/bits/mathcalls.h
19525         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
19526         prototype.
19527         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
19528
19529 2016-01-11  Andreas Schwab  <schwab@suse.de>
19530
19531         [BZ #19253]
19532         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
19533         cache when TZDEFRULES was used.
19534         * time/tst-tzname.c: New file.
19535         * time/Makefile (test): Add tst-tzname.
19536         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
19537         * timezone/Makefile (test-zones): Add $(posixrules-file).
19538         ($(testdata)/$(posixrules-file)): New rule.
19539
19540 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
19541
19542         Fix doc quoting problems with Texinfo 5
19543         Without this change, in the info file output, Texinfo 5 quotes code
19544         in text with undirected single quotes 'like this' and generates
19545         code examples that with many PDF readers cannot be cut out of PDFs
19546         and pasted into code.
19547         * manual/libc.texinfo: Configure the libc manual like the GNU
19548         Emacs manual, by using @documentencoding and setting
19549         txicodequoteundirected and txicodequotebacktick.  This way,
19550         Texinfo 5 quotes code in text with directed single quotes ‘like
19551         this’ and produces examples that can be cut out of PDFs.  This
19552         change causes Texinfo 5 to generate info files that contain UTF-8
19553         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
19554         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
19555
19556 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19557
19558         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
19559         __libc_tabort, __libc_tend): New wrappers that enforce compiler
19560         barriers to their respective compiler built-ins.
19561         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
19562         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
19563         * sysdeps/powerpc/sysdep.h: Likewise.
19564         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
19565         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
19566         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
19567
19568 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
19569
19570         * scripts/config.guess: Revert previous shebang change.
19571         * scripts/config.sub: Likewise.
19572         * scripts/mkinstalldirs: Likewise.
19573
19574 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19575
19576         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
19577         PPC_FEATURE2_HAS_IEEE128.
19578         * sysdeps/powerpc/dl-procinfo.c:
19579         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
19580
19581 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
19582
19583         [BZ #19415]
19584         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
19585         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
19586         (_dl_lookup_address): Rewrite using function resolver trampoline.
19587         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
19588         two bits in address.
19589
19590 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19591
19592         * longlong.h: Change !__SHMEDIA__ to
19593         (!defined (__SHMEDIA__) || !__SHMEDIA__).
19594         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
19595
19596 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
19597             Joseph Myers  <joseph@codesourcery.com>
19598             Mark Shinwell  <shinwell@codesourcery.com>
19599             Andrew Stubbs  <ams@codesourcery.com>
19600             Rich Felker <dalias@libc.org>
19601
19602         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
19603
19604 2016-01-07  Richard Henderson  <rth@redhat.com>
19605
19606         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
19607
19608 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
19609
19610         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
19611         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
19612         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
19613         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
19614         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
19615
19616 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
19617             Joseph Myers  <joseph@codesourcery.com>
19618
19619         * timezone/private.h: Update from tzcode 2015g.
19620         * timezone/tzfile.h: Likewise.
19621         * timezone/tzselect.ksh: Likewise.
19622         * timezone/zdump.c: Likewise.
19623         * timezone/zic.c: Likewise.
19624         * timezone/ialloc.c: Remove file.
19625         * timezone/scheck.c: Likewise.
19626         * timezone/Makefile (extra-objs): Remove variable.
19627         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
19628         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
19629         -Wno-maybe-uninitialized.
19630         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
19631         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
19632         (CFLAGS-ialloc.c): Remove variable.
19633         (CFLAGS-scheck.c): Likewise.
19634         * timezone/README: Update list of files from tzcode.
19635
19636 2016-01-07  Khem Raj  <raj.khem@gmail.com>
19637
19638         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
19639         instead of __fxprintf when _LIBC is undefined.
19640
19641 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
19642
19643         * catgets/test-gencat.sh: Remove space after shebang.
19644         * conform/GlibcConform.pm: Likewise.
19645         * conform/check-header-lists.sh: Likewise.
19646         * conform/conformtest.pl: Likewise.
19647         * conform/linknamespace.pl: Likewise.
19648         * conform/list-header-symbols.pl: Likewise.
19649         * debug/catchsegv.sh: Likewise.
19650         * elf/genrtldtbl.awk: Likewise.
19651         * elf/tst-pathopt.sh: Likewise.
19652         * elf/tst-rtld-load-self.sh: Likewise.
19653         * grp/tst_fgetgrent.sh: Likewise.
19654         * iconvdata/gen-8bit-gap-1.sh: Likewise.
19655         * iconvdata/gen-8bit-gap.sh: Likewise.
19656         * iconvdata/gen-8bit.sh: Likewise.
19657         * iconvdata/run-iconv-test.sh: Likewise.
19658         * intl/tst-gettext.sh: Likewise.
19659         * intl/tst-gettext2.sh: Likewise.
19660         * intl/tst-gettext4.sh: Likewise.
19661         * intl/tst-gettext6.sh: Likewise.
19662         * intl/tst-translit.sh: Likewise.
19663         * io/ftwtest-sh: Likewise.
19664         * libio/test-freopen.sh: Likewise.
19665         * locale/gen-translit.pl: Likewise.
19666         * malloc/tst-mtrace.sh: Likewise.
19667         * manual/check-safety.sh: Likewise.
19668         * manual/libc-texinfo.sh: Likewise.
19669         * manual/tsort.awk: Likewise.
19670         * manual/xtract-typefun.awk: Likewise.
19671         * nptl/tst-cancel-wrappers.sh: Likewise.
19672         * nptl/tst-tls6.sh: Likewise.
19673         * posix/globtest.sh: Likewise.
19674         * posix/tst-getconf.sh: Likewise.
19675         * posix/wordexp-tst.sh: Likewise.
19676         * scripts/check-c++-types.sh: Likewise.
19677         * scripts/check-local-headers.sh: Likewise.
19678         * scripts/config.guess: Likewise.
19679         * scripts/config.sub: Likewise.
19680         * scripts/cpp: Likewise.
19681         * scripts/cross-test-ssh.sh: Likewise.
19682         * scripts/documented.sh: Likewise.
19683         * scripts/evaluate-test.sh: Likewise.
19684         * scripts/gen-libc-abis: Likewise.
19685         * scripts/gen-sorted.awk: Likewise.
19686         * scripts/list-fixed-bugs.py: Likewise.
19687         * scripts/merge-test-results.sh: Likewise.
19688         * scripts/mkinstalldirs: Likewise.
19689         * scripts/rellns-sh: Likewise.
19690         * scripts/test-installation.pl: Likewise.
19691         * scripts/update-copyrights: Likewise.
19692         * stdio-common/tst-printf.sh: Likewise.
19693         * stdio-common/tst-unbputc.sh: Likewise.
19694         * stdlib/tst-fmtmsg.sh: Likewise.
19695         * stdlib/tst-setcontext3.sh: Likewise.
19696         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
19697         * sysdeps/unix/make-syscalls.sh: Likewise.
19698
19699 2016-01-06  John David Anglin  <dave.anglin@bell.net>
19700
19701         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
19702         asm stw with atomic_exchange_rel.  Add explanatory comment.
19703         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
19704         Likewise.
19705
19706 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19707
19708         [BZ #19122]
19709         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
19710         * sysdeps/generic/dl-unistd.h: New file.
19711         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
19712
19713 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19714
19715          [BZ #19122]
19716          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
19717          * sysdeps/generic/dl-mman.h: New file.
19718          * sysdeps/mach/hurd/dl-mman.h: Likewise.
19719
19720 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
19721
19722         * manual/texinfo.tex: Update to version 2016-01-04.21 with
19723         trailing whitespace removed.
19724         * scripts/config.guess: Update to version 2016-01-01.
19725         * scripts/config.sub: Update to version 2016-01-01.
19726         * scripts/move-if-change: Update from gnulib.
19727
19728 2016-01-04  Anton Blanchard  <anton@samba.org>
19729
19730         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
19731         for array indices.
19732         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
19733
19734 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
19735
19736         * NEWS: Update copyright dates.
19737         * catgets/gencat.c (print_version): Likewise.
19738         * csu/version.c (banner): Likewise.
19739         * debug/catchsegv.sh: Likewise.
19740         * debug/pcprofiledump.c (print_version): Likewise.
19741         * debug/xtrace.sh (do_version): Likewise.
19742         * elf/ldconfig.c (print_version): Likewise.
19743         * elf/ldd.bash.in: Likewise.
19744         * elf/pldd.c (print_version): Likewise.
19745         * elf/sotruss.sh: Likewise.
19746         * elf/sprof.c (print_version): Likewise.
19747         * iconv/iconv_prog.c (print_version): Likewise.
19748         * iconv/iconvconfig.c (print_version): Likewise.
19749         * locale/programs/locale.c (print_version): Likewise.
19750         * locale/programs/localedef.c (print_version): Likewise.
19751         * login/programs/pt_chown.c (print_version): Likewise.
19752         * malloc/memusage.sh (do_version): Likewise.
19753         * malloc/memusagestat.c (print_version): Likewise.
19754         * malloc/mtrace.pl: Likewise.
19755         * manual/libc.texinfo: Likewise.
19756         * nptl/version.c (banner): Likewise.
19757         * nscd/nscd.c (print_version): Likewise.
19758         * nss/getent.c (print_version): Likewise.
19759         * nss/makedb.c (print_version): Likewise.
19760         * posix/getconf.c (main): Likewise.
19761         * scripts/test-installation.pl: Likewise.
19762         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
19763
19764         * All files with FSF copyright notices: Update copyright dates
19765         using scripts/update-copyrights.
19766         * intl/plural.c: Regenerated.
19767         * locale/programs/charmap-kw.h: Likewise.
19768         * locale/programs/locfile-kw.h: Likewise.
19769
19770 2016-01-02  Helge Deller  <deller@gmx.de>
19771
19772         [BZ #19285]
19773         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
19774         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
19775         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
19776         (MADV_xxK_PAGES): Remove.
19777
19778 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
19779
19780         [BZ #15421]
19781         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
19782         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
19783         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
19784         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
19785
19786 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
19787
19788         [BZ #19408]
19789         * sysdeps/unix/sysv/linux/personality.c: New file.
19790         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
19791         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
19792         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
19793         (sysdep_routines): Add personality.
19794         (tests): Add tst-personality.
19795         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
19796         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
19797         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
19798         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
19799         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
19800         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
19801         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
19802         Likewise.
19803         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
19804         Likewise.
19805         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
19806         Likewise.
19807         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
19808         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
19809         Likewise.
19810
19811 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
19812
19813         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
19814         (PATH_ARM_SYSTYPE): Remove.
19815         (PATH_CPUINFO): Likewise.
19816         (IO_BASE_FOOTBRIDGE): Likewise.
19817         (IO_SHIFT_FOOTBRIDGE): Likewise.
19818         (struct platform): Likewise.
19819         (init_iosys): Remove compatibility code for 2.4 kernels.
19820         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
19821
19822 2015-12-29  Florian Weimer  <fweimer@redhat.com>
19823
19824         * malloc/tst-malloc-thread-fail.c: New file.
19825         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
19826         (tst-malloc-thread-fail): Link against libpthread.
19827
19828 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
19829
19830         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
19831         (get_parser): New function.
19832         (main): New function.
19833
19834 2015-12-29  Rob Wu  <rob@robwu.nl>
19835
19836         [BZ #19369]
19837         * resolv/res_init.c (__res_vinit): Reset defdname before use.
19838
19839 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
19840
19841         [BZ #19270]
19842         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
19843
19844 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
19845
19846         [BZ #15421]
19847         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
19848
19849 2015-12-23  Torvald Riegel  <triegel@redhat.com>
19850
19851         [BZ #13690]
19852         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
19853         after releasing it.
19854         (__lll_robust_unlock): Likewise.
19855         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
19856         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
19857         (lll_robust_unlock): Likewise.
19858         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
19859         Prevent warnings in callers.
19860
19861 2015-12-23  Florian Weimer  <fweimer@redhat.com>
19862
19863         * malloc/arena.c (list_lock): Update comment.
19864
19865 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19866
19867         * sysdeps/powerpc/hwcapinfo.c: Export symbol
19868         __parse_hwcap_and_convert_at_platform to libc.a.
19869
19870 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
19871
19872         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
19873         platform and feature support for POWER9.
19874         * sysdeps/powerpc/dl-procinfo.h: Likewise.
19875         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
19876         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
19877         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
19878         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
19879         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
19880         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
19881         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
19882
19883 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19884
19885         Harmonize generic stdio-lock support with nptl
19886
19887         This fixes build when _IO_funlockfile is a macro, fixes build where
19888         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
19889         stack unwind.
19890
19891         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
19892         _IO_release_lock ): Use cleanup attribute on new
19893         _IO_acquire_lock_file variable instead of assuming that
19894         _IO_release_lock will be called.
19895         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
19896         _IO_acquire_lock_needs_exceptions_enabled.
19897         (_IO_acquire_lock_clear_flags2): New macro.
19898
19899 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19900
19901         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
19902
19903 2015-12-21  Florian Weimer  <fweimer@redhat.com>
19904
19905         [BZ #19182]
19906         * malloc/arena.c (list_lock): Document lock ordering requirements.
19907         (free_list_lock): New lock.
19908         (ptmalloc_lock_all): Comment on free_list_lock.
19909         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
19910         (detach_arena): Update comment.  free_list_lock is now needed.
19911         (_int_new_arena): Use free_list_lock around detach_arena call.
19912         Acquire arena lock after list_lock.  Add comment, including FIXME
19913         about incorrect synchronization.
19914         (get_free_list): Switch to free_list_lock.
19915         (reused_arena): Acquire free_list_lock around detach_arena call
19916         and attached threads counter update.  Add two FIXMEs about
19917         incorrect synchronization.
19918         (arena_thread_freeres): Switch to free_list_lock.
19919         * malloc/malloc.c (struct malloc_state): Update comments to
19920         mention free_list_lock.
19921
19922 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
19923
19924         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
19925         Remove functions.
19926         (sloww, sloww1): Accept argument to offset quadrant.
19927         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
19928         quadrant.
19929         (__sin, __cos): Consolidate common code into new functions.
19930         (reduce_sincos_1, do_sincos_1): New functions.
19931         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19932
19933         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
19934         code to new functions.
19935         (reduce_sincos_2, do_sincos_2): New functions.
19936         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
19937
19938         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
19939         common code for sincos.
19940         (__cos) [!IN_SINCOS]: Likewise.
19941         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
19942         New function.
19943         (__sincos): Use it.
19944
19945 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
19946
19947         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
19948         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
19949         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19950
19951 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
19952
19953         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
19954         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
19955         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
19956         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
19957         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19958         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
19959         index_Prefer_No_VZEROUPPER): New feature.
19960         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
19961         Prefer_No_VZEROUPPER for Knights Landing.
19962
19963 015-12-18  Torvald Riegel  <triegel@redhat.com>
19964
19965         * math/atest-exp2.c (mp_exp_m1): Remove.
19966
19967 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19968
19969         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
19970         syscalls.
19971         (__SYSCALL0): New macro.
19972         (__SYSCALL1): Likewise.
19973         (__SYSCALL2): Likewise.
19974         (__SYSCALL3): Likewise.
19975         (__SYSCALL4): Likewise.
19976         (__SYSCALL5): Likewise.
19977         (__SYSCALL6): Likewise.
19978         (__SYSCALL_CONCAT_X): Likewise.
19979         (__SYSCALL_CONCAT): Likewise.
19980         (__SYSCALL_DIST): Likewise.
19981         (__SYSCALL_CALL): Likewise.
19982
19983 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
19984
19985         [BZ #19363]
19986         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
19987
19988 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19989
19990         [BZ #19375]
19991         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
19992         negative subnormals.
19993
19994 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
19995
19996         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
19997         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
19998         (INTERNAL_SYSCALL_NCS): Use it.
19999         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
20000
20001 2015-12-16  Florian Weimer  <fweimer@redhat.com>
20002
20003         [BZ #19243]
20004         * malloc/arena.c (get_free_list): Remove assert and adjust
20005         reference count handling.  Add comment about reused_arena
20006         interaction.
20007         (reused_arena): Add comments abount get_free_list interaction.
20008         * malloc/tst-malloc-thread-exit.c: New file.
20009         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
20010         (tst-malloc-thread-exit): Link against libpthread.
20011
20012 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20013
20014         [BZ #19367]
20015         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
20016         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
20017         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
20018         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
20019         (index_Prefer_MAP_32BIT_EXEC): Likewise.
20020
20021 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
20022
20023         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
20024         Silvermont optimizations for Knights Landing.
20025
20026 2015-12-15  Andreas Schwab  <schwab@suse.de>
20027
20028         [BZ #17197]
20029         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
20030         immediately after emitting SI.
20031         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
20032         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
20033         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
20034         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
20035         * iconvdata/bug-iconv10.c: New file.
20036         * iconvdata/Makefile (tests): Add bug-iconv10.
20037         ($(objpfx)bug-iconv10.out): New rule.
20038
20039 2015-12-15  Florian Weimer  <fweimer@redhat.com>
20040
20041         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
20042         aliasing violation.
20043
20044 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
20045
20046         [BZ #18472]
20047         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
20048         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
20049         conditionals for them.
20050         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
20051         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
20052         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
20053         sys/kdaemon.h.
20054         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
20055         compat-only syscall, obsoleted in glibc 2.23.
20056         (create_module): Likewise.
20057         (get_kernel_syms): Likewise.
20058         (query_module): Likewise.
20059         (uselib): Likewise.
20060         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
20061
20062 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
20063
20064         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
20065         <linux/version.h>.
20066         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
20067         conditional code.
20068         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
20069         and ioshift_name initialization.
20070
20071 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
20072
20073         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
20074         Fix indentation.
20075
20076 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
20077
20078         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
20079
20080 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
20081
20082         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
20083
20084 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
20085             Jakub Wilk  <jwilk@debian.org>
20086
20087         [BZ #19347]
20088         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
20089         to change the group of the device to the tty group.
20090
20091 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
20092
20093         Split large string section; add truncation advice
20094         * manual/examples/strncat.c: Remove.
20095         This example was misleading, as the code would have undefined
20096         behavior if "hello" was longer than SIZE.  Anyway, the manual
20097         shouldn't encourage strncpy+strncat for this sort of thing.
20098         * manual/string.texi (Copying Strings and Arrays): Split into
20099         three sections Copying Strings and Arrays, Concatenating Strings,
20100         and Truncating Strings, as this section was way too long.  All
20101         cross-referenced changed.  Add advice about string-truncation
20102         functions.  Remove misleading strncat example.
20103
20104 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
20105
20106         * manual/nss.texi (NSS Modules Interface): Document
20107         NSS_STATUS_NOTFOUND and SUCCESS.
20108
20109 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
20110
20111         [BZ 18568]
20112         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20113         201505L, for Unicode 8.
20114
20115 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
20116
20117         * locale/C-translit.h: Regenerate.
20118
20119 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
20120
20121         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
20122         and U+0153.
20123
20124 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
20125
20126         [BZ #19351]
20127         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
20128         expanding log(1+z), compare z rather than its square with epsilon
20129         to determine when to avoid evaluating the expansion.
20130
20131         [BZ #19350]
20132         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
20133         Increase overflow threshold.
20134
20135         [BZ #19349]
20136         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
20137         when small.
20138
20139         * sysdeps/unix/sysv/linux/i386/kernel-features.h
20140         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
20141         New macro.
20142         [__LINUX_KERNEL_VERSION >= 0x040300]
20143         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20144         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
20145         Likewise.
20146         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
20147         Likewise.
20148         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
20149         Likewise.
20150         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
20151         Likewise.
20152         [__LINUX_KERNEL_VERSION >= 0x040300]
20153         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
20154         [__LINUX_KERNEL_VERSION >= 0x040300]
20155         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20156         [__LINUX_KERNEL_VERSION >= 0x040300]
20157         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20158         [__LINUX_KERNEL_VERSION >= 0x040300]
20159         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20160         [__LINUX_KERNEL_VERSION >= 0x040300]
20161         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20162         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
20163         Likewise.
20164         [__LINUX_KERNEL_VERSION >= 0x040300]
20165         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
20166         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
20167         Likewise.
20168         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
20169         Likewise.
20170         [__LINUX_KERNEL_VERSION >= 0x040300]
20171         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
20172         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
20173         Likewise.
20174         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
20175         Likewise.
20176         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
20177         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
20178         Likewise.
20179         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
20180         Likewise.
20181         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
20182         Likewise.
20183         [__LINUX_KERNEL_VERSION >= 0x040300]
20184         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20185         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
20186         Likewise.
20187         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
20188         Likewise.
20189         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
20190         Likewise.
20191         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
20192         Likewise.
20193         [__LINUX_KERNEL_VERSION >= 0x040300]
20194         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
20195         [__LINUX_KERNEL_VERSION >= 0x040300]
20196         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20197         [__LINUX_KERNEL_VERSION >= 0x040300]
20198         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20199         [__LINUX_KERNEL_VERSION >= 0x040300]
20200         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20201         [__LINUX_KERNEL_VERSION >= 0x040300]
20202         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20203         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
20204         Likewise.
20205         [__LINUX_KERNEL_VERSION >= 0x040300]
20206         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
20207         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
20208         Likewise.
20209         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
20210         Likewise.
20211         [__LINUX_KERNEL_VERSION >= 0x040300]
20212         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
20213         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
20214         Likewise.
20215         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
20216         Likewise.
20217         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20218         (__ASSUME_SOCKET_SYSCALL): Likewise.
20219         (__ASSUME_BIND_SYSCALL): Likewise.
20220         (__ASSUME_CONNECT_SYSCALL): Likewise.
20221         (__ASSUME_LISTEN_SYSCALL): Likewise.
20222         (__ASSUME_ACCEPT_SYSCALL): Likewise.
20223         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20224         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20225         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20226         (__ASSUME_SEND_SYSCALL): Likewise.
20227         (__ASSUME_SENDTO_SYSCALL): Likewise.
20228         (__ASSUME_RECV_SYSCALL): Likewise.
20229         (__ASSUME_RECVFROM_SYSCALL): Likewise.
20230         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
20231         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20232         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20233         (__ASSUME_SENDMSG_SYSCALL): Likewise.
20234         (__ASSUME_RECVMSG_SYSCALL): Likewise.
20235         * sysdeps/unix/sysv/linux/sh/kernel-features.h
20236         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
20237         Likewise.
20238         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
20239         Likewise.
20240         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
20241         Likewise.
20242         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
20243         Likewise.
20244         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
20245         Likewise.
20246         [__LINUX_KERNEL_VERSION >= 0x020625]
20247         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
20248         [__LINUX_KERNEL_VERSION >= 0x020625]
20249         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
20250         [__LINUX_KERNEL_VERSION >= 0x020625]
20251         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
20252         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
20253         Likewise.
20254         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
20255         Likewise.
20256         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
20257         Likewise.
20258         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
20259         Likewise.
20260         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
20261         Likewise.
20262         [__LINUX_KERNEL_VERSION >= 0x020625]
20263         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
20264         [__LINUX_KERNEL_VERSION >= 0x020625]
20265         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
20266         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
20267         Likewise.
20268         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
20269         Likewise.
20270
20271 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20272
20273         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
20274         record the current if the current ABI and CPU support the FP64
20275         extension.
20276         (has-modd-spreg): Define to record the current if the current ABI and
20277         CPU support 32-bit floating point values in odd FPU registers.
20278         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20279         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
20280         $(has-modd-spreg) equals yes.
20281         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
20282         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
20283         $(has-modd-spreg) equal yes.
20284
20285 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
20286
20287         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
20288         basename.
20289
20290 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
20291
20292         * benchtests/Makefile (bench-math): Move ffs and ffsll...
20293         (bench-string): ... here.
20294         (bench): Add bench-string.
20295         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
20296         to *-benchset to reflect what they are.
20297         (benchset): Adjust.
20298
20299         * benchtests/sincos-inputs: Add inputs from sin-inputs and
20300         cos-inputs.
20301
20302 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
20303
20304         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
20305         __attribute__ ((__simd__)) for vector math function declarations.
20306
20307 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20308
20309         Fix typo in strncat, wcsncat manual entries
20310         * manual/string.texi (Copying and Concatenation): Fix typos in
20311         sample implementations of strncat and wcsncat, by having them use
20312         the old value of the destination length, not the new one.
20313
20314 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
20315
20316         [BZ #16961]
20317         [BZ #16962]
20318         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
20319         string on the stack for strtod.
20320         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
20321         a string on the stack for strtof.
20322         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
20323         constructing a string on the stack for strtold.
20324         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
20325         __strtold_nan to GLIBC_PRIVATE.
20326         * math/test-nan-overflow.c: New file.
20327         * math/test-nan-payload.c: Likewise.
20328         * math/Makefile (tests): Add test-nan-overflow and
20329         test-nan-payload.
20330
20331 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         Consistency about byte vs character in string.texi
20334         * manual/string.texi (String and Array Utilities):
20335         Distinguish more carefully among bytes, multibyte characters,
20336         and wide characters.  Use "byte" when talking about C 'char',
20337         to distinguish it more clearly from multibyte characters.
20338         Say "wide character" or "multibyte character" instead of
20339         "character", when a wide or multibyte character is intended.
20340         Similarly for "multibyte string" versus "string".
20341         Define these terms more carefully.
20342
20343 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
20344
20345         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
20346         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
20347         Likewise.
20348         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20349         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
20350         * sysdeps/sh/math_private.h: New file.
20351         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
20352         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
20353         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
20354         long double function name.
20355         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
20356         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
20357         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
20358         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
20359         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
20360         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
20361         Remove __finitel, __isinfl, and __isnanl.
20362         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20363         Likewise.
20364         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20365         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20366         Remove __finitel.
20367         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20368         Likewise.
20369         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20370
20371 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
20372
20373         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
20374         installed libmvec_nonshared.a.
20375
20376 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
20377
20378         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
20379         (sysdep_routines): Likewise.
20380         (sysdep-rtld-routines): Likewise.
20381         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
20382         [$(subdir) = nptl](tests-static): test-get_hwcap-static
20383         * sysdeps/powerpc/Versions: Added new
20384         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
20385         * sysdeps/powerpc/hwcapinfo.c: New file.
20386         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
20387         and parse hwcap, hwcap2 and platform number information.
20388         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
20389         to store HWCAP+HWCAP2 and platform number.
20390         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
20391         for HWCAP+HWCAP2 and platform number in the TCB.
20392         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
20393         the HWCAP, HWCAP2 and platform number in the TCB.
20394         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
20395         (TLS_INIT_TP): Included calls to add the hwcap and
20396         at_platform values in the TCB in TP initialization.
20397         (TLS_DEFINE_INIT_TP): Likewise.
20398         (THREAD_GET_HWCAP): New macro.
20399         (THREAD_SET_HWCAP): Likewise.
20400         (THREAD_GET_AT_PLATFORM): Likewise.
20401         (THREAD_SET_AT_PLATFORM): Likewise.
20402         * sysdeps/powerpc/powerpc32/dl-machine.h:
20403         (dl_platform_init): New function that calls
20404         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
20405         powerpc32.
20406         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
20407         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
20408         this functionality, static linking case.
20409         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
20410         linking case.
20411         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
20412         __parse_hwcap_and_convert_at_platform for the static linking case.
20413         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
20414         Included the new __parse_hwcap_and_convert_at_platform symbol in the
20415         ABI list for GLIBC 2.23.
20416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
20417         Likewise.
20418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
20419         Likewise.
20420
20421 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
20422
20423         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
20424         * configure: Regenerate.
20425         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
20426         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
20427
20428 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
20429
20430         * iconvdata/ibm930.c: Add comment explaining encoding uses.
20431         * iconvdata/ibm933.c: Likewise.
20432         * iconvdata/ibm935.c: Likewise.
20433         * iconvdata/ibm937.c: Likewise.
20434         * iconvdata/ibm939.c: Likewise.
20435
20436 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20437
20438         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
20439         pthread_join.
20440         * nptl/tst-cancel21.c (tf): Likewise.
20441
20442 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
20443
20444         [BZ #19313]
20445         * bits/typesizes.h (__CPU_MASK_TYPE): New.
20446         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20447         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
20448         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
20449         Likewise.
20450         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
20451         Likewise.
20452         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
20453         Likewise.
20454         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
20455         Likewise.
20456         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
20457         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
20458         unsigned long int with __CPU_MASK_TYPE.
20459
20460 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20461
20462         * sysdeps/aarch64/libm-test-ulps: Regenerated.
20463
20464 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
20465
20466         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
20467         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
20468         t512.x.
20469         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
20470
20471 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
20472
20473         [BZ #19214]
20474         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
20475         argument to return extended model.  Update family and model
20476         with extended family and model when family == 0x0f.
20477         (init_cpu_features): Updated.
20478
20479 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20480
20481         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
20482         signed off_t, so 32bit bigger than 2GiB values are fine actually.
20483
20484         * sysdeps/mach/hurd/mmap64.c: New file.
20485
20486 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
20487
20488         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
20489         rights for its main user thread in NEWTASK.
20490
20491 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
20492
20493         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
20494         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
20495
20496 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
20497
20498         [BZ #14259]
20499         * Makeconfig: Rename localedir to complocaledir.
20500         Rename inst_localedir to inst_complocaledir.
20501         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
20502         * config.make.in: Use complocaledir and libc_cv_complocaledir.
20503         * configure.ac: Use libc_cv_complocaledir.
20504         * configure: Regenerate.
20505         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
20506         -DCOMPLOCALEDIR.
20507         * locale/findlocale.c: Use COMPLOCALEDIR.
20508         * locale/loadarchive.c: Likewise.
20509         * locale/programs/locale.c: Likewise.
20510         * locale/programs/localedef.c: Likewise.
20511         * locale/programs/locarchive.c: Likewise.
20512         * localedata/Makefile: Use inst_complocaledir.
20513         * sysdeps/gnu/configure: Regenerate.
20514         * sysdeps/hppa/configure: Regenerate.
20515         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
20516         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
20517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
20518         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
20519         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
20520         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
20521         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
20522
20523 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
20524
20525         [BZ #19058]
20526         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
20527         AS_NEEDED.
20528         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
20529         workaround.
20530         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
20531         libmvec-static-only-routines): Added new file.
20532         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
20533
20534 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20535
20536         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
20537         of interrupted RPC instead of restoring it.
20538
20539         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
20540         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
20541         libc_hidden_def.
20542         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
20543         into initialized data instead of common. Define rtld_hidden_data_def.
20544         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
20545         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
20546         libc_hidden_def.
20547         (if_freenameindex): Add libc_hidden_weak.
20548         (if_nameindex): Add libc_hidden_weak.
20549         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
20550         __open64.
20551         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
20552         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
20553         * sysdeps/mach/nanosleep.c: Include <time.h>
20554         (__nanosleep): Rename to __libc_nanosleep.
20555         (__nanosleep): Add weak_alias.
20556         (nanosleep): Update alias.
20557
20558 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
20559
20560         * stdlib/strtod_nan.c: New file.
20561         * stdlib/strtod_nan_double.h: Likewise.
20562         * stdlib/strtod_nan_float.h: Likewise.
20563         * stdlib/strtod_nan_main.c: Likewise.
20564         * stdlib/strtod_nan_narrow.h: Likewise.
20565         * stdlib/strtod_nan_wide.h: Likewise.
20566         * stdlib/strtof_nan.c: Likewise.
20567         * stdlib/strtold_nan.c: Likewise.
20568         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
20569         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
20570         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
20571         * wcsmbs/wcstod_nan.c: Likewise.
20572         * wcsmbs/wcstof_nan.c: Likewise.
20573         * wcsmbs/wcstold_nan.c: Likewise.
20574         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
20575         strtold_nan.
20576         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
20577         wcstof_nan.
20578         * include/stdlib.h (__strtof_nan): Declare and use
20579         libc_hidden_proto.
20580         (__strtod_nan): Likewise.
20581         (__strtold_nan): Likewise.
20582         (__wcstof_nan): Likewise.
20583         (__wcstod_nan): Likewise.
20584         (__wcstold_nan): Likewise.
20585         * include/wchar.h (____wcstoull_l_internal): Declare.
20586         * stdlib/strtod_l.c: Do not include <ieee754.h>.
20587         (____strtoull_l_internal): Remove declaration.
20588         (STRTOF_NAN): Define macro.
20589         (SET_MANTISSA): Remove macro.
20590         (STRTOULL): Likewise.
20591         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
20592         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
20593         (STRTOF_NAN): Define macro.
20594         (SET_MANTISSA): Remove macro.
20595         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
20596         (SET_MANTISSA): Remove macro.
20597         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
20598         macro.
20599         (SET_MANTISSA): Remove macro.
20600         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
20601         macro.
20602         (SET_MANTISSA): Remove macro.
20603         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
20604         (SET_MANTISSA): Remove macro.
20605         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
20606         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
20607         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
20608
20609         [BZ #19266]
20610         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
20611         upper case and lower case letters inside NAN(), not using TOLOWER.
20612         * stdlib/tst-strtod-nan-locale-main.c: New file.
20613         * stdlib/tst-strtod-nan-locale.c: Likewise.
20614         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
20615         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
20616         Depend on $(gen-locales).
20617         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
20618         * wcsmbs/tst-wcstod-nan-locale.c: New file.
20619         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
20620         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
20621         Depend on $(gen-locales).
20622         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
20623
20624 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
20625
20626         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
20627
20628         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
20629         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
20630         __finitel, __isinfl, and __isnanl.
20631         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
20632         Likewise.
20633         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
20635         __finitel.
20636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20637         Likewise.
20638         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20639
20640 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
20641
20642         * malloc/memusage.c (me): Remove redundant getenv call.
20643
20644 2015-10-24  Florian Weimer  <fweimer@redhat.com>
20645
20646         [BZ #19143]
20647         [BZ #19164]
20648         * nptl/check-cpuset.h: Remove.
20649         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20650         Remove CPU set size check.
20651         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20652         Likewise.
20653         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
20654         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
20655         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
20656         (__pthread_setaffinity_new): Remove CPU set size check.
20657         * sysdeps/unix/sysv/linux/sched_setaffinity.c
20658         (__kernel_cpumask_size): Remove.
20659         (__sched_setaffinity_new): Remove CPU set size check.
20660         * manual/threads.texi (Default Thread Attributes): Remove stale
20661         reference to check_cpuset_attr, determine_cpumask_size in comment.
20662         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
20663         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
20664         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
20665         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
20666         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
20667         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
20668         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
20669         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
20670         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
20671         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
20672         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
20673         skeleton test file.
20674         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
20675         tst-affinity-pid.
20676
20677 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20678
20679         * scripts/update-abilist.sh: New file.
20680         * Makefile (+subdir_targets): Add subdir_update-all-abi.
20681         * Makerules (update-all-abi-%, update-all-abi)
20682         (subdir_update-all-abi): New targets.
20683         * elf/Makefile (update-all-abi): New target.
20684
20685 2015-11-24  Florian Weimer  <fweimer@redhat.com>
20686
20687         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
20688         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
20689         (__libc_lock_define_initialized): Use it.
20690         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
20691         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
20692         * malloc/malloc.c (main_arena): Likewise.
20693         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20694         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
20695
20696 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
20697
20698         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
20699         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
20700         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20701         (PTRACE_O_MASK): Update value.
20702         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
20703         New value in enum __ptrace_setoptions.
20704         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20705         (PTRACE_O_MASK): Update value.
20706         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
20707         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20708         (PTRACE_O_MASK): Update value.
20709         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
20710         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20711         (PTRACE_O_MASK): Update value.
20712         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
20713         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
20714         (PTRACE_O_MASK): Update value.
20715         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
20716         New value in enum __ptrace_setoptions.
20717         (PTRACE_O_MASK): Update value.
20718         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
20719         New value in enum __ptrace_setoptions.
20720         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
20721         (PTRACE_O_MASK): Update value.
20722
20723         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
20724         New macro.
20725         (PACKET_AUXDATA): Likewise.
20726         (PACKET_ORIGDEV): Likewise.
20727         (PACKET_VERSION): Likewise.
20728         (PACKET_HDRLEN): Likewise.
20729         (PACKET_RESERVE): Likewise.
20730         (PACKET_TX_RING): Likewise.
20731         (PACKET_LOSS): Likewise.
20732         (PACKET_VNET_HDR): Likewise.
20733         (PACKET_TX_TIMESTAMP): Likewise.
20734         (PACKET_TIMESTAMP): Likewise.
20735         (PACKET_FANOUT): Likewise.
20736         (PACKET_TX_HAS_OFF): Likewise.
20737         (PACKET_QDISC_BYPASS): Likewise.
20738         (PACKET_ROLLOVER_STATS): Likewise.
20739         (PACKET_FANOUT_DATA): Likewise.
20740         (PACKET_MR_UNICAST): Likewise.
20741
20742         [BZ #19242]
20743         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
20744         (TOUPPER): Likewise.
20745         * stdlib/tst-strtol-locale-main.c: New file.
20746         * stdlib/tst-strtol-locale.c: Likewise.
20747         * stdlib/Makefile (tests): Add tst-strtol-locale.
20748         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
20749         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
20750         Depend on $(gen-locales).
20751         * wcsmbs/tst-wcstol-locale.c: New file.
20752         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
20753         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
20754         tr_TR.ISO-8859-9.
20755         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
20756         Depend on $(gen-locales).
20757
20758 2015-11-20  Roland McGrath  <roland@hack.frob.com>
20759
20760         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
20761         __glibc_likely instead of __builtin_expect.  After falling back to
20762         dyncode_create in a non-ET_DYN case, use the allocate_code_data
20763         system interface to register the code pages as occupied.
20764
20765 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
20766
20767         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20768         [!ARM_MATH_PRIVATE_H].
20769         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
20770         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20771         [!HPPA_MATH_PRIVATE_H].
20772         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
20773         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
20774         to [!I386_MATH_PRIVATE_H].
20775         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
20776         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
20777         Change guard to [!M68K_MATH_PRIVATE_H].
20778         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
20779         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
20780         guard to [!MICROBLAZE_MATH_PRIVATE_H].
20781         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
20782         macro.
20783         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20784         [!MIPS_MATH_PRIVATE_H].
20785         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
20786         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20787         [!NIO2_MATH_PRIVATE_H].
20788         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
20789         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
20790         [!TILE_MATH_PRIVATE_H].
20791         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
20792
20793         [BZ #15421]
20794         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
20795         initialize with 0 and define as weak alias of __signgam.
20796         * include/math.h [!_ISOMAC] (__signgam): Declare.
20797         * math/Makefile (libm-calls): Add w_lgamma_compat.
20798         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
20799         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
20800         test-signgam-ullong-init.
20801         (tests-static): Add test-signgam-uchar-static,
20802         test-signgam-uchar-init-static, test-signgam-uint-static,
20803         test-signgam-uint-init-static, test-signgam-ullong-static and
20804         test-signgam-ullong-init-static.
20805         (CFLAGS-test-signgam-uchar.c): New variable.
20806         (CFLAGS-test-signgam-uchar-init.c): Likewise.
20807         (CFLAGS-test-signgam-uchar-static.c): Likewise.
20808         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
20809         (CFLAGS-test-signgam-uint.c): Likewise.
20810         (CFLAGS-test-signgam-uint-init.c): Likewise.
20811         (CFLAGS-test-signgam-uint-static.c): Likewise.
20812         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
20813         (CFLAGS-test-signgam-ullong.c): Likewise.
20814         (CFLAGS-test-signgam-ullong-init.c): Likewise.
20815         (CFLAGS-test-signgam-ullong-static.c): Likewise.
20816         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
20817         * math/Versions (libm): Add GLIBC_2.23.
20818         * math/lgamma-compat.h: New file.
20819         * math/test-signgam-main.c: Likewise.
20820         * math/test-signgam-uchar-init-static.c: Likewise.
20821         * math/test-signgam-uchar-init.c: Likewise.
20822         * math/test-signgam-uchar-static.c: Likewise.
20823         * math/test-signgam-uchar.c: Likewise.
20824         * math/test-signgam-uint-init-static.c: Likewise.
20825         * math/test-signgam-uint-init.c: Likewise.
20826         * math/test-signgam-uint-static.c: Likewise.
20827         * math/test-signgam-uint.c: Likewise.
20828         * math/test-signgam-ullong-init-static.c: Likewise.
20829         * math/test-signgam-ullong-init.c: Likewise.
20830         * math/test-signgam-ullong-static.c: Likewise.
20831         * math/test-signgam-ullong.c: Likewise.
20832         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
20833         wrapper of w_lgamma_main.c.
20834         * math/w_lgamma_compat.c: New file.
20835         * math/w_lgamma_compatf.c: Likewise.
20836         * math/w_lgamma_compatl.c: Likewise.
20837         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
20838         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20839         defining compatibility symbols.
20840         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
20841         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
20842         wrapper of w_lgammaf_main.c.
20843         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
20844         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20845         defining compatibility symbols.
20846         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
20847         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
20848         wrapper of w_lgammal_main.c.
20849         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
20850         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
20851         defining compatibility symbols.
20852         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
20853         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
20854         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
20855         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
20856         <lgamma-compat.h>.
20857         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
20858         (__ieee754_gamma): Define as alias.
20859         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
20860         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
20861         <lgamma-compat.h>.
20862         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
20863         (__ieee754_gammaf): Define as alias.
20864         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
20865         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
20866         <lgamma-compat.h>.
20867         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
20868         (__ieee754_gammal): Define as alias.
20869         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
20870         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
20871         <math/w_lgamma_compat.c>.
20872         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
20873         Define as alias of __lgamma_compat and use in defining lgammal.
20874         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
20875         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
20876         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
20877         (USE_AS_COMPAT): New macro.
20878         (LGAMMA_OLD_VER): Undefine and redefine.
20879         (lgammal): Do not define here.
20880         (gammal): Only define here if [GAMMA_ALIAS].
20881         * conform/linknamespace.pl (@whitelist): Remove signgam.
20882         * sysdeps/nacl/libm.abilist: Update.
20883         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20884         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20885         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20886         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20887         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20888         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20889         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20890         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20891         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20892         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20893         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20894         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
20896         Likewise.
20897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
20898         Likewise.
20899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
20900         Likewise.
20901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
20902         Likewise.
20903         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20904         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20905         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20906         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20907         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20908         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
20909         Likewise.
20910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
20911         Likewise.
20912         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20913         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20914         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20915
20916 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
20917
20918         [BZ #16364]
20919         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
20920         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
20921
20922 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20923
20924         * sysdeps/s390/fpu/bits/mathinline.h:
20925         Use __asm__ [__volatile__] instead of asm [volatile].
20926         * sysdeps/s390/abort-instr.h: Likewise.
20927         * sysdeps/s390/atomic-machine.h: Likewise.
20928         * sysdeps/s390/bits/string.h: Likewise.
20929         * sysdeps/s390/dl-tls.h: Likewise.
20930         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
20931         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
20932         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
20933         * sysdeps/s390/fpu/fesetround.c: Likewise.
20934         * sysdeps/s390/fpu/fpu_control.h: Likewise.
20935         * sysdeps/s390/fpu/s_fma.c: Likewise.
20936         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
20937         * sysdeps/s390/memusage.h: Likewise.
20938         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
20939         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
20940         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
20941         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
20942         * sysdeps/s390/nptl/tls.h: Likewise.
20943         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
20944         * sysdeps/s390/s390-32/backtrace.c: Likewise.
20945         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
20946         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
20947         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20948         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
20949         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
20950         * sysdeps/s390/s390-64/backtrace.c: Likewise.
20951         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
20952         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
20953         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
20954         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20955         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
20956         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
20957         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20958         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20959         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
20960         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
20961         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
20962         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20963         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
20964         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
20965         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
20966
20967 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20968             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20969
20970         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
20971         Add lwarx hint, and use macro for acquire instruction.
20972         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
20973         Likewise.
20974         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
20975         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
20976         update to use new atomic macros.
20977
20978 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20979
20980         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20981         (__lll_trylock_elision): Fix setting of adapt_count.
20982         * sysdeps/unix/sysv/linux/powerpc/htm.h
20983         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
20984         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
20985         (_ABORT_SYSCALL): Renumber, and clarify definition.
20986         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
20987
20988 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
20989
20990         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
20991         after system headers to prevent MIN/MAX redefinition.  Define
20992         HAVE_ALLOCA to preserve builtin alloca usage.
20993
20994 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
20995
20996         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
20997         static and don't set or restore rounding.
20998         (__cos)[IN_SINCOS]: Likewise.
20999         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
21000         (__sincos): Set and restore rounding mode.  Remove check for infinite
21001         or NaN input.
21002
21003         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
21004
21005         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
21006         as used.
21007
21008 2015-11-16  Florian Weimer  <fweimer@redhat.com>
21009
21010         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
21011
21012 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
21013
21014         * config.make.in (have-glob-dat-reloc): New.
21015         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
21016         target supports GLOB_DAT relocaton. AC_SUBST.
21017         * configure: Regenerated.
21018         * elf/Makefile (tests): Add tst-prelink.
21019         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
21020         (tst-prelink-ENV): New.
21021         ($(objpfx)tst-prelink-conflict.out): Likewise.
21022         ($(objpfx)tst-prelink-cmp.out): Likewise.
21023         * sysdeps/x86/tst-prelink.c: Moved to ...
21024         * elf/tst-prelink.c: Here.
21025         * sysdeps/x86/tst-prelink.exp: Moved to ...
21026         * elf/tst-prelink.exp: Here.
21027         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
21028         (tst-prelink-ENV): Removed.
21029         ($(objpfx)tst-prelink-conflict.out): Likewise.
21030         ($(objpfx)tst-prelink-cmp.out): Likewise.
21031         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
21032
21033 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
21034
21035         [BZ #14551]
21036         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
21037         (__mpn_construct_long_double): If high part overflows to infinity,
21038         set errno and recompute overflowed result of the correct sign.
21039         * sysdeps/ieee754/ldbl-128ibm/Makefile
21040         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
21041         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
21042         $(libm).
21043         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
21044
21045 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
21046
21047         [BZ #15479]
21048         [BZ #19238]
21049         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
21050         floating-point state after first operation on input.  Restore full
21051         state rather than just rounding mode.
21052         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
21053         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
21054         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
21055
21056         [BZ #19235]
21057         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
21058         add 0.5 to integer arguments.
21059         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
21060         Likewise.
21061         (.LC2): New object.
21062
21063 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
21064
21065         * scripts/pylintrc (reports): Set to no.
21066
21067 2015-11-10  Roland McGrath  <roland@hack.frob.com>
21068
21069         * elf/dl-load.c (open_verify): Take new argument FD.
21070         Skip __open call if passed FD is not -1.
21071         (_dl_map_object, open_path): Update callers.
21072         * elf/dl-sysdep-open.h: New file.
21073         * elf/dl-load.c: Include it.
21074         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
21075         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
21076         * sysdeps/nacl/dl-sysdep-open.h: New file.
21077         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
21078         from libc to rtld.
21079
21080 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
21081
21082         [BZ #19228]
21083         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
21084         and restore full floating-point state.
21085         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
21086         Likewise.
21087         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
21088         Likewise.
21089         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
21090         Likewise.
21091         * math/test-nearbyint-except-2.c: New file.
21092         * math/Makefile (tests): Add test-nearbyint-except-2.
21093
21094 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
21095
21096         [BZ #19178]
21097         * sysdeps/x86/Makefile (tests): Add tst-prelink.
21098         (tst-prelink-ENV): New.
21099         ($(objpfx)tst-prelink-conflict.out): Likewise.
21100         ($(objpfx)tst-prelink-cmp.out): Likewise.
21101         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
21102         * sysdeps/x86/tst-prelink.c: New file.
21103         * sysdeps/x86/tst-prelink.exp: Likewise.
21104
21105 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
21106
21107         * math/auto-libm-test-in: Add another test of pow.
21108         * math/auto-libm-test-out: Regenerated.
21109         * math/libm-test.inc (pow_test_data): Add another test.
21110
21111 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21112
21113         [BZ #19219]
21114         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
21115         weak_alias to nearbyintl.
21116
21117 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
21118
21119         * sysdeps/aarch64/bits/string.h: New file.
21120         (_STRING_ARCH_unaligned): Define.
21121
21122 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
21123
21124         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
21125         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
21126         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
21127         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
21128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
21129
21130 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
21131
21132         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
21133         for original name of the DSO.  Add it to the name list of the DSO
21134         if it is actually given.
21135         (_dl_map_object): Keep track of whether an audit module rewrote
21136         the file name.  If yes, pass the original name to
21137         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
21138         debugging is enabled, log the change of the file name.
21139         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
21140         _dl_map_object_from_fd.
21141         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
21142         * elf/tst-audit11.c: New file
21143         * elf/tst-auditmod11.c: New file.
21144         * elf/tst-audit11mod1.c: New file.
21145         * elf/tst-audit11mod2.c: New file.
21146         * elf/tst-audit11mod2.map: New file.
21147         * elf/tst-audit12.c: New file
21148         * elf/tst-auditmod12.c: New file.
21149         * elf/tst-audit12mod1.c: New file.
21150         * elf/tst-audit12mod2.c: New file.
21151         * elf/tst-audit12mod2.map: New file.
21152         * elf/tst-audit12mod3.c: New file.
21153
21154 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
21155
21156         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
21157         Don't create weak aliases,
21158         because versioned symbols are created later.
21159         * sysdeps/s390/s390-32/setjmp.S
21160         (setjmp, _setjmp): Remove weak and rename to an unique name
21161         in SHARED case due to existing versioned symbols.
21162         * sysdeps/s390/s390-64/setjmp.S: Likewise.
21163         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
21164         (getcontext): Create weak alias only in non SHARED case.
21165         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
21166
21167 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
21168
21169         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
21170         (__ASSUME_*_SYSCALL) Define new macros.
21171         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
21172         Remove socketcall syscalls.
21173         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
21174         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
21175         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
21176         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
21177         * sysdeps/unix/sysv/linux/send.c (__libc_send):
21178         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
21179
21180 2015-11-09  Florian Weimer  <fweimer@redhat.com>
21181
21182         [BZ #12926]
21183         Terminate process on invalid netlink response.
21184         * sysdeps/unix/sysv/linux/netlinkaccess.h
21185         (__netlink_assert_response): Declare.
21186         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
21187         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
21188         (sysdep_routines): Add netlink_assert_response.
21189         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
21190         __netlink_assert_response.
21191         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
21192         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
21193         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
21194         __netlink_assert_response.
21195
21196 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21197
21198         [BZ #19178]
21199         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
21200         (RTYPE_CLASS_PLT): Likewise.
21201         (RTYPE_CLASS_COPY): Likewise.
21202         (RTYPE_CLASS_TLS): Likewise.
21203         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
21204         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
21205         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
21206         DL_DEBUG_PRELINK.
21207
21208 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
21209
21210         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
21211         calls with argument -0.5.
21212         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
21213
21214         * configure.ac (libc_cv_z_nodelete): Remove configure test.
21215         (libc_cv_z_nodlopen): Likewise.
21216         (libc_cv_z_initfirst): Likewise.
21217         * configure: Regenerated.
21218
21219 2015-11-06  Florian Weimer  <fweimer@redhat.com>
21220
21221         Simplify abilist format to be line-based.
21222         * scripts/abilist.awk: Collect descriptors in the descs variable.
21223         (emit): Write descs variable and sort it
21224         externally, with sort.
21225         * sysdeps/**/*.abilist: Convert to new format.
21226
21227 2015-11-06  Mark Wielaard  <mjw@redhat.com>
21228
21229         [BZ #11460]
21230         * io/Makefile (routines): Add fts64.
21231         (tests): Add tst-fts and tst-fts-lfs.
21232         (CFLAGS-fts64.c): New.
21233         * io/Versions (GLIBC_2.23): New.
21234         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
21235         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
21236         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
21237         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
21238         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
21239         (FTSENT64): Likewise.
21240         (fts64_children): Likewise.
21241         (fts64_close): Likewise.
21242         (fts64_open): Likewise.
21243         (fts64_read): Likewise.
21244         (fts64_set): Likewise.
21245         * io/fts64.c: New file.
21246         * io/tst-fts.c: New test.
21247         * io/tst-fts-lfs.c: Likewise.
21248         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
21249         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
21250         fts64_set.
21251         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21252         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21253         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21254         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21255         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21256         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21257         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21258         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21259         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21260         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
21261         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21262         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21263         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21265         Likewise.
21266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21267         Likewise.
21268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
21269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
21270         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21271         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21272         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21273         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21274         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21275         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
21276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
21277         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21278         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21279         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21280         * sysdeps/wordsize-64/fts.c: New file.
21281         * sysdeps/wordsize-64/fts64.c: Likewise.
21282         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
21283         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
21284         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
21285         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
21286
21287 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21288
21289         * math/libm-test.inc (NON_FINITE): New macro.
21290         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
21291         * math/gen-libm-test.pl (show_exceptions): Add argument
21292         $non_finite.
21293         (parse_args): Update call to show_exceptions.
21294         * math/test-math-finite.h: New file.
21295         * math/test-math-no-finite.h: Likewise.
21296         * math/test-double-finite.c: Likewise.
21297         * math/test-float-finite.c: Likewise.
21298         * math/test-ldouble-finite.c: Likewise.
21299         * math/test-double.c: Include "test-math-no-finite.h".
21300         * math/test-float.c: Include "test-math-no-finite.h".
21301         * math/test-ldouble.c: Include "test-math-no-finite.h".
21302         * math/test-math-inline.h (TEST_FINITE): New macro.
21303         * math/test-math-vector.h (TEST_FINITE): Likewise.
21304         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
21305         (libm-tests): Add test-float-finite and test-double-finite.
21306         ($(objpfx)test-float-finite.o): New dependency on
21307         $(objpfx)libm-test.stmp.
21308         ($(objpfx)test-double-finite.o): Likewise.
21309         ($(objpfx)test-ldouble-finite.o): Likewise.
21310         (libm-test-no-inline-cflags): New variable.
21311         (libm-test-finite-cflags): Likewise.
21312         (CFLAGS-test-float-finite.c): Likewise.
21313         (CFLAGS-test-double-finite.c): Likewise.
21314         (CFLAGS-test-ldouble-finite.c): Likewise.
21315         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
21316         (CFLAGS-test-double.c): Likewise.
21317         (CFLAGS-test-ldouble.c): Likewise.
21318
21319 2015-11-05  Roland McGrath  <roland@hack.frob.com>
21320
21321         * io/fcntl.c (__fcntl): Add ... to prototype.
21322         * misc/ioctl.c (__ioctl): Likewise.
21323         * misc/syscall.c (syscall): Likewise.
21324
21325 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
21326
21327         * scripts/list-fixed-bugs.py: New file.
21328
21329         [BZ #19213]
21330         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
21331         returned for argument 1.
21332         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
21333         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
21334         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
21335         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
21336         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
21337         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
21338
21339         [BZ #19211]
21340         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
21341         __USE_XOPEN], not if [!__USE_ISOC99].
21342         (lgammaf): Likewise.
21343         (lgammal): Likewise.
21344         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
21345         (gammaf): Likewise.
21346         (gammal): Likewise.
21347         * math/test-signgam-finite-c11.c: New file.
21348         * math/test-signgam-finite-c99.c: Likewise.
21349         * math/test-signgam-finite.c: Likewise.
21350         * math/Makefile (tests): Add test-signgam-finite,
21351         test-signgam-finite-c99 and test-signgam-finite-c11.
21352         (CFLAGS-test-signgam-finite.c): New variable.
21353         (CFLAGS-test-signgam-finite-c99.c): Likewise.
21354         (CFLAGS-test-signgam-finite-c11.c): Likewise.
21355
21356         [BZ #19212]
21357         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
21358         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
21359         500].
21360         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
21361         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
21362         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
21363         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
21364         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
21365         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
21366         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
21367         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
21368         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
21369         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
21370
21371         [BZ #19209]
21372         * math/bits/math-finite.h (ldexp): Remove declaration.
21373         (ldexpf): Likewise.
21374         (ldexpl): Likewise.
21375
21376         [BZ #19205]
21377         * math/bits/math-finite.h (acosf): Condition declaration on
21378         [__USE_ISOC99].
21379         (acosl): Likewise.
21380         (acoshf): Likewise.
21381         (acoshl): Likewise.
21382         (asinf): Likewise.
21383         (asinl): Likewise.
21384         (atan2f): Likewise.
21385         (atan2l): Likewise.
21386         (atanhf): Likewise.
21387         (atanhl): Likewise.
21388         (coshf): Likewise.
21389         (coshl): Likewise.
21390         (expf): Likewise.
21391         (expl): Likewise.
21392         (fmodf): Likewise.
21393         (fmodl): Likewise.
21394         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
21395         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
21396         (j0l): Likewise.
21397         (y0f): Likewise.
21398         (y0l): Likewise.
21399         (j1f): Likewise.
21400         (j1l): Likewise.
21401         (y1f): Likewise.
21402         (y1l): Likewise.
21403         (jnf): Likewise.
21404         (jnl): Likewise.
21405         (ynf): Likewise.
21406         (ynl): Likewise.
21407         (lgammaf_r): Condition declaration on [__USE_ISOC99].
21408         (lgammal_r): Likewise.
21409         (__lgamma_r_finite): New declaration.
21410         (__lgammaf_r_finite): Likewise.
21411         (__lgammal_r_finite): Likewise.
21412         (lgamma): Use __lgamma_r_finite.
21413         (lgammaf): Condition definition on [__USE_ISOC99].  Use
21414         __lgammaf_r_finite.
21415         (lgammal): Condition definition on [__USE_ISOC99].  Use
21416         __lgammal_r_finite.
21417         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
21418         __lgamma_r_finite.
21419         (gammaf): Condition definition on [__USE_ISOC99].  Use
21420         __lgammaf_r_finite.
21421         (gammal): Condition definition on [__USE_ISOC99].  Use
21422         __lgammal_r_finite.
21423         (logf): Condition declaration on [__USE_ISOC99].
21424         (logl): Likewise.
21425         (log10f): Likewise.
21426         (log10l): Likewise.
21427         (ldexpf): Likewise.
21428         (ldexpl): Likewise.
21429         (powf): Likewise.
21430         (powl): Likewise.
21431         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
21432         __USE_ISOC99].
21433         (remainderf): Condition declaration on [__USE_ISOC99].
21434         (remainderl): Likewise.
21435         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
21436         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
21437         (scalbl): Likewise.
21438         (sinhf): Condition declaration on [__USE_ISOC99].
21439         (sinhl): Likewise.
21440         (sqrtf): Likewise.
21441         (sqrtl): Likewise.
21442
21443 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21444
21445         * sysdeps/arm/atomic-machine.h
21446         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21447         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21448         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
21449         Remove conditional code.
21450         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
21451         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
21452         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
21453         Change conditional to [__ASSEMBLER__].
21454         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21455         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
21456         [!__ASSEMBLER__].
21457         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
21458         code.
21459         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
21460         conditional macro definitions.
21461         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
21462         (__arch_compare_and_exchange_val_16_acq): Likewise.
21463         (__arch_compare_and_exchange_val_32_acq): Likewise.
21464         (atomic_exchange_and_add): Likewise.
21465         (atomic_add): Likewise.
21466         (atomic_add_negative): Likewise.
21467         (atomic_add_zero): Likewise.
21468         (atomic_bit_set): Likewise.
21469         (atomic_bit_test_set): Likewise.
21470         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
21471         code unconditional.
21472         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21473
21474         * math/test-math-errno.h: New file.
21475         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
21476         empty.
21477         (TEST_ERRNO): New macro.
21478         (TEST_EXCEPTIONS): Likewise.
21479         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
21480         (TEST_EXCEPTIONS): Likewise.
21481         * math/test-math-vector.h (TEST_ERRNO): Likewise.
21482         * math/test-double.c: Include "test-math-errno.h".
21483         * math/test-float.c: Likewise.
21484         * math/test-ldouble.c: Likewise.
21485         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
21486         code unconditional.
21487         (test_exceptions): Only run code if TEST_EXCEPTIONS.
21488         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
21489         unconditional.
21490         (test_errno): Only run code if TEST_ERRNO.
21491         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
21492
21493 2015-11-04  Florian Weimer  <fweimer@redhat.com>
21494
21495         * nptl/tst-once5.cc: Remove attribution.
21496
21497 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
21498
21499         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
21500         sqrt, tan, tanh, y0, y1 and yn.
21501         * math/auto-libm-test-out: Regenerated.
21502         * math/libm-test.inc (scalb_test_data): Add more tests.
21503         (scalbn_test_data): Likewise.
21504         (scalbln_test_data): Likewise.
21505         (signbit_test_data): Likewise.
21506         (sin_test_data): Likewise.
21507         (sincos_test_data): Likewise.
21508         (sinh_test_data): Likewise.
21509         (sqrt_test_data): Likewise.
21510         (tan_test_data): Likewise.
21511         (tanh_test_data): Likewise.
21512         (tgamma_test_data): Likewise.
21513         (y0_test_data): Likewise.
21514         (y1_test_data): Likewise.
21515         (yn_test_data): Likewise.
21516         (significand_test_data): Likewise.
21517         * sysdeps/i386/fpu/libm-test-ulps: Update.
21518
21519 2015-11-03  David Kastrup  <dak@gnu.org>
21520
21521         [BZ #18604]
21522         * assert/assert.h (assert): Don't macro-expand failed assertion
21523         expression in error message.
21524         * malloc/malloc.c (assert): Likewise.
21525
21526 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
21527
21528         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
21529         test.
21530         * configure: Regenerated.
21531
21532 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
21533
21534         * math/libm-test.inc (modf_test_data): Add more tests.
21535         (nearbyint_test_data): Likewise.
21536         (nextafter_test_data): Likewise.
21537         (nexttoward_test_data): Likewise.
21538         (pow_test_data): Likewise.
21539         (remainder_test_data): Likewise.
21540         (remquo_test_data): Likewise.
21541         (rint_test_data): Likewise.
21542
21543         [BZ #19201]
21544         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
21545         Check for zero remainder in case of large exponents and ensure
21546         correct sign of result in that case.
21547         * math/libm-test.inc (remainder_test_data): Add more tests.
21548
21549         [BZ #6799]
21550         * math/s_nextafter.c: Include <errno.h>.
21551         (__nextafter): Set errno on overflow and underflow.
21552         * math/s_nexttowardf.c: Include <errno.h>.
21553         (__nexttowardf): Set errno on overflow and underflow.
21554         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
21555         (__nextafterl): Set errno on overflow and underflow.
21556         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
21557         (__nexttoward): Set errno on overflow and underflow.
21558         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
21559         (__nexttowardf): Set errno on overflow and underflow.
21560         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
21561         (__nextafterf): Set errno on overflow and underflow.
21562         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
21563         (__nextafterl): Set errno on overflow and underflow.
21564         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
21565         (__nexttoward): Set errno on overflow and underflow.
21566         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
21567         (__nexttowardf): Set errno on overflow and underflow.
21568         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
21569         (__nextafterl): Set errno on overflow and underflow.
21570         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
21571         (__nexttoward): Set errno on overflow and underflow.
21572         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
21573         (__nexttowardf): Set errno on overflow and underflow.
21574         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
21575         (__nexttoward): Set errno on overflow and underflow.
21576         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
21577         (__nexttowardf): Set errno on overflow and underflow.
21578         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
21579         (__nldbl_nexttowardf): Set errno on overflow and underflow.
21580         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
21581         (__nextafterl): Set errno on overflow and underflow.
21582         * math/libm-test.inc (nextafter_test_data): Do not allow errno
21583         setting to be missing on overflow.  Add more tests.
21584         (nexttoward_test_data): Likewise.
21585
21586         * configure.ac (libc_cv_initfini_array): Remove configure test.
21587         * configure: Regenerated.
21588
21589 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
21590
21591         [BZ #19189]
21592         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
21593         non-finite argument handle arguments with negative sign.
21594
21595         * math/libm-test.inc (j0_test_data): Do not test sign of zero
21596         result from infinite argument.
21597         (j1_test_data): Likewise.
21598         (jn_test_data): Likewise.
21599         (y0_test_data): Likewise.
21600         (y1_test_data): Likewise.
21601         (yn_test_data): Likewise.
21602
21603         [BZ #16171]
21604         * math/w_remainder.c (drem): Define as weak alias of __remainder.
21605         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
21606         * math/w_remainderf.c (dremf): Define as weak alias of
21607         __remainderf.
21608         * math/w_remainderl.c (dreml): Define as weak alias of
21609         __remainderl.
21610         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
21611         __remainder.
21612         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
21613         __remainderf.
21614         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
21615         __remainderl.
21616         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
21617         weak alias of remainderl.
21618         * sysdeps/ieee754/ldbl-opt/w_remainder.c
21619         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
21620         alias of __remainder.
21621         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
21622         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
21623         strong alias of __remainderl.
21624         (dreml): Use long_double_symbol.
21625         * math/Makefile (libm-calls): Remove w_drem.
21626         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
21627         (CFLAGS-nldbl-drem.c): Remove variable.
21628         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
21629         * math/w_drem.c: Remove file.
21630         * math/w_dremf.c: Likewise.
21631         * math/w_dreml.c: Likewise.
21632         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
21633         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
21634         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
21635
21636         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
21637         * sysdeps/i386/configure: Regenerated.
21638         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
21639         * sysdeps/x86_64/configure: Regenerated.
21640
21641         * configure.ac (libc_cv_asm_protected_directive): Remove configure
21642         test.
21643         (libc_cv_visibility_attribute): Likewise.
21644         (libc_cv_protected_data): Test unconditionally.
21645         (libc_cv_broken_visibility_attribute): Remove configure test.
21646         (libc_cv_have_sdata_section): Test unconditionally.
21647         * configure: Regenerated.
21648
21649         * include/libc-internal.h (libc_max_align_t): Remove typedef.
21650         * include/scratch_buffer.h: Include <stddef.h> instead of
21651         <libc-internal.h>.
21652         (struct scratch_buffer): Use max_align_t instead of
21653         libc_max_align_t.
21654
21655 2015-10-29  Florian Weimer  <fweimer@redhat.com>
21656
21657         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
21658         instead of extend_alloca.  Change control flow to avoid a goto.
21659         Remove assert which is trivially always true.
21660
21661 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21662
21663         [BZ #16068]
21664         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
21665         (FE_ALL_EXCEPT_X86): New macro.
21666         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21667         FE_ALL_EXCEPT.  Ensure precision control is included in
21668         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21669         handle "denormal operand exception" and clear FZ and DAZ bits.
21670         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
21671         (FE_ALL_EXCEPT_X86): New macro.
21672         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
21673         FE_ALL_EXCEPT.  Ensure precision control is included in
21674         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
21675         handle "denormal operand exception" and clear FZ and DAZ bits.
21676         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
21677         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
21678         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21679         test-fenv-x87 and test-fenv-sse-2.
21680         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
21681
21682         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
21683         * math/test-double.h (BUILD_COMPLEX): New macro.
21684         * math/test-float.h (BUILD_COMPLEX): Likewise.
21685         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
21686
21687         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
21688         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
21689         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
21690         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
21691         instead of DBL_DENORM_MIN in comment.
21692         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
21693         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21694         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
21695         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
21696         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
21697         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
21698
21699 2015-10-28  Florian Weimer  <fweimer@redhat.com>
21700
21701         [BZ #19048]
21702         * malloc/malloc.c (struct malloc_state): Update comment.  Add
21703         attached_threads member.
21704         (main_arena): Initialize attached_threads.
21705         * malloc/arena.c (list_lock): Update comment.
21706         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
21707         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
21708         (deattach_arena): New function.
21709         (_int_new_arena): Initialize arena reference count and deattach
21710         replaced arena.
21711         (get_free_list, reused_arena): Update reference count and deattach
21712         replaced arena.
21713         (arena_thread_freeres): Update arena reference count and only put
21714         unreferenced arenas on the free list.
21715
21716 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21717
21718         [BZ #19181]
21719         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
21720         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
21721         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
21722         * math/test-fenv-clear-main.c: New file.
21723         * math/test-fenv-clear.c: Likewise.
21724         * math/Makefile (tests): Add test-fenv-clear.
21725         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
21726         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
21727         test-fenv-clear-sse.
21728         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
21729
21730         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
21731         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
21732         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
21733
21734 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21735
21736         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
21737         static libc.
21738
21739 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
21740
21741         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
21742         test.
21743         * sysdeps/i386/configure: Regenerated.
21744         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
21745         test.
21746         * sysdeps/x86_64/configure: Regenerated.
21747         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
21748         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21749         memset-avx2 unconditionally instead of conditionally on
21750         [$(config-cflags-avx2) = yes].
21751         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21752         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
21753         unconditional.
21754         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
21755         * sysdeps/x86_64/multiarch/memset_chk.S
21756         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
21757         to [IS_IN (libc) && SHARED].
21758
21759 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21760
21761         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
21762         configure test.
21763         * sysdeps/arm/configure: Regenerated.
21764         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
21765         Define variable if not already defined.
21766
21767         [BZ #17404]
21768         * sysdeps/mips/atomic-machine.h
21769         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
21770         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
21771         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
21772
21773         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
21774         unconditional.
21775         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
21776         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21777         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
21778         unconditional.
21779         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21780         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
21781         unconditional.
21782         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21783         * stdlib/setenv.c
21784         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
21785         code unconditional.
21786         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
21787         Remove conditional code.
21788         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
21789         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
21790         unconditional.
21791         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21792         code.
21793         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
21794         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
21795         unconditional.
21796         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21797         code.
21798         * sysdeps/ieee754/ldbl-128/k_tanl.c
21799         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21800         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21801         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
21802         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21803         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21804         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
21805         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
21806         unconditional.
21807         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
21808         code.
21809         * sysdeps/ieee754/ldbl-96/k_tanl.c
21810         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
21811         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
21812
21813         * nptl/tst-initializers1-c11.c: New file.
21814         * nptl/tst-initializers1-gnu11.c: Likewise.
21815         * nptl/Makefile (tests): Add these new tests.
21816         (CFLAGS-tst-initializers1-c11.c): New variable.
21817         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21818
21819         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
21820         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
21821         instead of -std=gnu99.
21822         * configure.ac (systemtap): Test with -std=gnu11 instead of
21823         -std=gnu99.
21824         * configure: Regenerated.
21825         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
21826         in compilation command in comment.
21827
21828         * sysdeps/nptl/configure.ac: Remove file.
21829         * sysdeps/nptl/configure: Remove generated file.
21830         * configure.ac (libc_cv_forced_unwind): Do not substitute.
21831         * configure: Regenerated.
21832         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
21833         * config.make.in (have-forced-unwind): Remove variable.
21834         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21835         unconditional.
21836         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
21837         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
21838         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
21839         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
21840         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
21841         unconditional.
21842
21843 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
21844
21845         [BZ #19174]
21846         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
21847         .skip_lock_out_of_tbegin_retries.
21848         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
21849         (__lll_lock_elision): Likewise, and respect a value of
21850         try_tbegin <= 0.
21851
21852 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
21853
21854         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
21855         statement.
21856
21857 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21858
21859         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
21860         variable.
21861         (test-xfail-ISO11/stdalign.h/conform): Likewise.
21862         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
21863
21864         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
21865         of -std=c1x -D_ISOC11_SOURCE.
21866
21867         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
21868         * configure: Regenerated.
21869         * manual/install.texi (Tools for Compilation): Document
21870         requirement for GCC 4.7 or later.
21871         * INSTALL: Regenerated.
21872
21873 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
21874
21875         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
21876         on CNT to a conditional jump to 'puntdata'.
21877
21878 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
21879
21880         * configure.ac (libc_cv_gcc___thread): Remove configure test.
21881         (libc_cv_gcc_tls_model_attr): Likewise.
21882         * configure: Regenerated.
21883
21884         * configure.ac (libc_cv_need_minus_P): Remove configure test.
21885         * configure: Regenerated.
21886         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
21887
21888 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
21889
21890         * configure.ac (old_glibc_headers): Remove configure test.
21891         * configure: Regenerated.
21892         * config.make.in (old-glibc-headers): Remove variable.
21893         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
21894         (install): Remove dependency on remove-old-headers.
21895         (headers2_0): Remove variable.
21896         (remove-old-headers): Remove rule.
21897
21898         * configure.ac (libc_cv_dot_text): Remove configure test.
21899         (libc_cv_asm_set_directive): Use .text instead of
21900         ${libc_cv_dot_text} in configure test.
21901         * configure: Regenerated.
21902
21903 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21904
21905         [BZ #19168]
21906         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
21907
21908 2015-10-26  Florian Weimer  <fweimer@redhat.com>
21909
21910         * configure.ac (CXX): Clear the variable if the C++ toolchain does
21911         not support static linking.
21912         * configure: Regenerate.
21913
21914 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
21915
21916         * math/libm-test.inc (check_float_internal): Do not special-case
21917         errors up to 0.5 ulp.
21918
21919         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
21920         log2.
21921         * math/auto-libm-test-out: Regenerated.
21922         * math/libm-test.inc (MAX_EXP): New macro.
21923         (ilogb_test_data): Add more tests.
21924         (isfinite_test_data): Likewise.
21925         (isgreater_test_data): Likewise.
21926         (isgreaterequal_test_data): Likewise.
21927         (isinf_test_data): Likewise.
21928         (isless_test_data): Likewise.
21929         (islessequal_test_data): Likewise.
21930         (islessgreater_test_data): Likewise.
21931         (isnan_test_data): Likewise.
21932         (isnormal_test_data): Likewise.
21933         (issignaling_test_data): Likewise.
21934         (isunordered_test_data): Likewise.
21935         (j0_test_data): Likewise.
21936         (j1_test_data): Likewise.
21937         (jn_test_data): Likewise.
21938         (lgamma_test_data): Likewise.
21939         (log_test_data): Likewise.
21940         (log10_test_data): Likewise.
21941         (log1p_test_data): Likewise.
21942         (log2_test_data): Likewise.
21943         (logb_test_data): Likewise.
21944         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21945
21946         [BZ #18611]
21947         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
21948         avoid excess range and precision on underflow.
21949         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
21950         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
21951         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
21952         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
21953         underflow.
21954         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
21955         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
21956         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
21957         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
21958         * math/auto-libm-test-in: Do not allow missing errno setting for
21959         tests of j1 and jn.
21960         * math/auto-libm-test-out: Regenerated.
21961
21962 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
21963
21964         [BZ #15491]
21965         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
21966         floating-point environment instead of clearing all exceptions.
21967         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
21968         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
21969         merging in "invalid" exceptions from frndint.
21970         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
21971         * math/test-nearbyint-except.c: New file.
21972         * math/Makefile (tests): Add test-nearbyint-except.
21973
21974 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
21975
21976         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
21977
21978         * sysdeps/tile/libm-test-ulps: Regenerated.
21979
21980 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
21981
21982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
21983         (__NR_sync_file_range2): Assume it is always defined.
21984         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
21985         (__NR_sync_file_range): Assume it is always defined.
21986
21987 2015-10-22  Andreas Schwab  <schwab@suse.de>
21988
21989         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
21990         INTERNAL_SYSCALL_ERRNO.
21991         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21992         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
21993         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21994         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
21995         Likewise.
21996         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21997
21998 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
21999
22000         * io/tst-fcntl.c (fd): New static variable.
22001         (do_prepare): Open temporary file here....
22002         (do_test): ...not here.
22003
22004         * io/ftwtest-sh: Also trap on exit to remove temporary files.
22005
22006 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
22007
22008         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
22009         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
22010         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
22011         Moved before "#ifdef __ASSEMBLER__".
22012
22013 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22014
22015         [BZ #19156]
22016         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
22017         arguments very close to 0.
22018
22019 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
22020
22021         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
22022         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
22023
22024 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
22025
22026         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
22027         New.  Defined for GCC 5 and above when not compiling for
22028         profiling.
22029         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
22030
22031         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
22032         Renamed to ...
22033         (CFLAGS-epoll_pwait.o): This.
22034         (CFLAGS-mmap.c): Renamed to ...
22035         (CFLAGS-mmap.o): This.
22036         (CFLAGS-mmap64.c): Renamed to ...
22037         (CFLAGS-mmap64.o): This.
22038         (CFLAGS-epoll_pwait.os): New.
22039         (CFLAGS-mmap.os): Likewise.
22040         (CFLAGS-mmap64.os): Likewise.
22041         (CFLAGS-semtimedop.os): Likewise.
22042         (CFLAGS-semtimedop.c): Renamed to ...
22043         (CFLAGS-semtimedop.o): This.
22044
22045 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22046
22047         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
22048         warning message.
22049
22050 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
22051
22052         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
22053         * Makefile ($(objpfx)c++-types-check.out): Filter out
22054         $(+gccwarn-c) instead of -Wstrict-prototypes.
22055
22056         * io/fts.c (fts_open): Convert to prototype-style function
22057         definition.
22058         * malloc/mcheck.c (mcheck): Likewise.
22059         (mcheck_pedantic): Likewise.
22060         * posix/regexec.c (re_search_2_stub): Likewise.  Use
22061         internal_function.
22062         (re_search_internal): Likewise.
22063         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
22064         prototype-style function definition.
22065         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
22066         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
22067         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
22068         (xdr_utmpptr): Likewise.
22069         (xdr_utmparr): Likewise.
22070         (xdr_utmpidle): Likewise.
22071         (xdr_utmpidleptr): Likewise.
22072         (xdr_utmpidlearr): Likewise.
22073
22074         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
22075         log, log10 and log2.
22076         * math/auto-libm-test-out: Regenerated.
22077         * math/libm-test.inc (fmod_test_data): Add more tests.
22078         (fpclassify_test_data): Likewise.
22079         (frexp_test_data): Likewise.
22080         (hypot_test_data): Likewise.
22081         (ilogb_test_data): Likewise.
22082
22083 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
22084
22085         * debug/fortify_fail.c (__fortify_fail): Convert to
22086         prototype-style function definition.  Use internal_function.
22087         * libio/genops.c (save_for_backup): Convert to prototype-style
22088         function definition.
22089         * libio/wgenops.c (save_for_wbackup): Likewise.
22090         * login/grantpt.c (grantpt): Likewise.
22091         * login/ptsname.c (ptsname): Likewise.
22092         (__ptsname_r): Likewise.
22093         * login/unlockpt.c (unlockpt): Likewise.
22094         * mach/msgserver.c (__mach_msg_server): Likewise.
22095         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
22096         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
22097         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
22098         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
22099         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
22100         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
22101         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
22102         Likewise.
22103         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
22104         internal_function.
22105         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
22106         prototype-style function definition.
22107         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
22108         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
22109         (__pthread_create_2_0): Likewise.
22110         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
22111         * nptl/register-atfork.c (__register_atfork): Likewise.
22112         * posix/glob.c (glob): Likewise.
22113         * posix/regcomp.c (re_comp): Likewise.
22114         * posix/regexec.c (re_exec): Likewise.
22115         * stdlib/add_n.c [__STDC__]: Make code unconditional.
22116         [!__STDC__]: Remove conditional code.
22117         * stdlib/cmp.c [__STDC__]: Make code unconditional.
22118         [!__STDC__]: Remove conditional code.
22119         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
22120         [!__STDC__]: Remove conditional code.
22121         * stdlib/divrem.c [__STDC__]: Make code unconditional.
22122         [!__STDC__]: Remove conditional code.
22123         * stdlib/lshift.c [__STDC__]: Make code unconditional.
22124         [!__STDC__]: Remove conditional code.
22125         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
22126         [!__STDC__]: Remove conditional code.
22127         * stdlib/mul.c [__STDC__]: Make code unconditional.
22128         [!__STDC__]: Remove conditional code.
22129         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
22130         [!__STDC__]: Remove conditional code.
22131         * stdlib/rshift.c [__STDC__]: Make code unconditional.
22132         [!__STDC__]: Remove conditional code.
22133         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
22134         function definition.
22135         (STRTOF): Likewise.
22136         * stdlib/strtod_l.c (__STRTOF): Likewise.
22137         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
22138         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
22139         (__strtol_l): Likewise.
22140         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
22141         [!__STDC__]: Remove conditional code.
22142         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
22143         definition.
22144         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
22145         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22146         type.
22147         (__strcasecmp): Convert to prototype-style function definition.
22148         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
22149         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22150         type.
22151         (__strncasecmp): Convert to prototype-style function definition.
22152         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
22153         * sunrpc/xdr.c (xdr_union): Likewise.
22154         * sunrpc/xdr_array.c (xdr_array): Likewise.
22155         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
22156         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
22157         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
22158         Likewise.
22159         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
22160         Likewise.
22161         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
22162         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
22163         Likewise.
22164         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
22165         (LOCALE_PARAM_PROTO): Likewise.
22166         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
22167         argument type.
22168         (ut_argument_spec): Remove macro.
22169         (ut_argument_spec_iso): Rename to ut_argument_spec.
22170         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
22171         prototype-style function definition.
22172         (memcpy_uppcase): Likewise.
22173         (__strftime_internal): Likewise.
22174         (my_strftime): Likewise.
22175         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
22176         (LOCALE_PARAM_DECL): Likewise.
22177         [_LIBC] (LOCALE_PARAM): Include argument type.
22178         (__strptime_internal): Convert to prototype-style function
22179         definition.
22180         (strptime): Likewise.
22181         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
22182         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22183         type.
22184         (__wcscasecmp): Convert to prototype-style function definition.
22185         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
22186         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
22187         type.
22188         (__wcsncasecmp): Convert to prototype-style function definition.
22189
22190         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
22191         function definition.
22192         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
22193         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
22194         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
22195         * elf/dl-minimal.c (_itoa): Likewise.
22196         * hurd/hurdmalloc.c (malloc): Likewise.
22197         (free): Likewise.
22198         (realloc): Likewise.
22199         * inet/inet6_option.c (inet6_option_space): Likewise.
22200         (inet6_option_init): Likewise.
22201         (inet6_option_append): Likewise.
22202         (inet6_option_alloc): Likewise.
22203         (inet6_option_next): Likewise.
22204         (inet6_option_find): Likewise.
22205         * io/ftw.c (FTW_NAME): Likewise.
22206         (NFTW_NAME): Likewise.
22207         (NFTW_NEW_NAME): Likewise.
22208         (NFTW_OLD_NAME): Likewise.
22209         * libio/iofwide.c (_IO_fwide): Likewise.
22210         * libio/strops.c (_IO_str_init_static_internal): Likewise.
22211         (_IO_str_init_static): Likewise.
22212         (_IO_str_init_readonly): Likewise.
22213         (_IO_str_overflow): Likewise.
22214         (_IO_str_underflow): Likewise.
22215         (_IO_str_count): Likewise.
22216         (_IO_str_seekoff): Likewise.
22217         (_IO_str_pbackfail): Likewise.
22218         (_IO_str_finish): Likewise.
22219         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
22220         (_IO_wstr_overflow): Likewise.
22221         (_IO_wstr_underflow): Likewise.
22222         (_IO_wstr_count): Likewise.
22223         (_IO_wstr_seekoff): Likewise.
22224         (_IO_wstr_pbackfail): Likewise.
22225         (_IO_wstr_finish): Likewise.
22226         * locale/programs/localedef.c (normalize_codeset): Likewise.
22227         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
22228         (add_locales_to_archive): Likewise.
22229         (delete_locales_from_archive): Likewise.
22230         * malloc/malloc.c (__libc_mallinfo): Likewise.
22231         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
22232         * misc/tsearch.c (__tfind): Likewise.
22233         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
22234         * nptl/pthread_attr_getdetachstate.c
22235         (__pthread_attr_getdetachstate): Likewise.
22236         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22237         Likewise.
22238         * nptl/pthread_attr_getinheritsched.c
22239         (__pthread_attr_getinheritsched): Likewise.
22240         * nptl/pthread_attr_getschedparam.c
22241         (__pthread_attr_getschedparam): Likewise.
22242         * nptl/pthread_attr_getschedpolicy.c
22243         (__pthread_attr_getschedpolicy): Likewise.
22244         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
22245         Likewise.
22246         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
22247         Likewise.
22248         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22249         Likewise.
22250         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22251         Likewise.
22252         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
22253         (__pthread_attr_init_2_0): Likewise.
22254         * nptl/pthread_attr_setdetachstate.c
22255         (__pthread_attr_setdetachstate): Likewise.
22256         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22257         Likewise.
22258         * nptl/pthread_attr_setinheritsched.c
22259         (__pthread_attr_setinheritsched): Likewise.
22260         * nptl/pthread_attr_setschedparam.c
22261         (__pthread_attr_setschedparam): Likewise.
22262         * nptl/pthread_attr_setschedpolicy.c
22263         (__pthread_attr_setschedpolicy): Likewise.
22264         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
22265         Likewise.
22266         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
22267         Likewise.
22268         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22269         Likewise.
22270         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22271         Likewise.
22272         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
22273         Likewise.
22274         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
22275         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
22276         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
22277         use internal_function.
22278         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
22279         prototype-style function definition.
22280         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22281         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
22282         internal_function.
22283         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
22284         Convert to prototype-style function definition.
22285         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
22286         Likewise.
22287         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
22288         Likewise.
22289         (__pthread_mutex_unlock): Likewise.
22290         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
22291         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
22292         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
22293         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
22294         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
22295         * nss/makedb.c (process_input): Likewise.
22296         * posix/fnmatch.c (__strchrnul): Likewise.
22297         (__wcschrnul): Likewise.
22298         (fnmatch): Likewise.
22299         * posix/fnmatch_loop.c (FCT): Likewise.
22300         * posix/glob.c (globfree): Likewise.
22301         (__glob_pattern_type): Likewise.
22302         (__glob_pattern_p): Likewise.
22303         * posix/regcomp.c (re_compile_pattern): Likewise.
22304         (re_set_syntax): Likewise.
22305         (re_compile_fastmap): Likewise.
22306         (regcomp): Likewise.
22307         (regerror): Likewise.
22308         (regfree): Likewise.
22309         * posix/regexec.c (regexec): Likewise.
22310         (re_match): Likewise.
22311         (re_search): Likewise.
22312         (re_match_2): Likewise.
22313         (re_search_2): Likewise.
22314         (re_search_stub): Likewise.  Use internal_function
22315         (re_copy_regs): Likewise.
22316         (re_set_registers): Convert to prototype-style function
22317         definition.
22318         (prune_impossible_nodes): Likewise.  Use internal_function.
22319         * resolv/inet_net_pton.c (inet_net_pton): Convert to
22320         prototype-style function definition.
22321         (inet_net_pton_ipv4): Likewise.
22322         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
22323         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
22324         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
22325         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
22326         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
22327         Make variadic.
22328         * time/strptime_l.c (localtime_r): Convert to prototype-style
22329         function definition.
22330         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
22331         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
22332         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
22333         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
22334
22335         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
22336         definition.
22337         (_ufc_doit_r): Likewise.
22338         * crypt/crypt_util.c (_ufc_copymem): Likewise.
22339         (_ufc_output_conversion_r): Likewise.
22340         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
22341         * inet/rcmd.c (rcmd_af): Likewise.
22342         (rcmd): Likewise.
22343         (ruserok_af): Likewise.
22344         (ruserok): Likewise.
22345         (ruserok2_sa): Likewise.
22346         (ruserok_sa): Likewise.
22347         (iruserok_af): Likewise.
22348         (iruserok): Likewise.
22349         (__ivaliduser): Likewise.
22350         (__validuser2_sa): Likewise.
22351         * inet/rexec.c (rexec_af): Likewise.
22352         (rexec): Likewise.
22353         * inet/ruserpass.c (ruserpass): Likewise.
22354         * locale/programs/xmalloc.c (xcalloc): Likewise.
22355         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
22356         * math/w_drem.c (__drem): Likewise.
22357         * math/w_dremf.c (__dremf): Likewise.
22358         * math/w_dreml.c (__dreml): Likewise.
22359         * misc/daemon.c (daemon): Likewise.
22360         * resolv/res_debug.c (p_fqnname): Likewise.
22361         * stdlib/div.c (div): Likewise.
22362         * string/memcmp.c (memcmp_bytes): Likewise.
22363         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
22364         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
22365
22366         * crypt/cert.c (main): Convert to prototype-style function
22367         definition.
22368         * io/pipe.c (__pipe): Likewise.
22369         * io/pipe2.c (__pipe2): Likewise.
22370         * misc/futimesat.c (futimesat): Likewise.
22371         * misc/utimes.c (__utimes): Likewise.
22372         * posix/execve.c (__execve): Likewise.
22373         * posix/execvp.c (execvp): Likewise.
22374         * posix/execvpe.c (__execvpe): Likewise.
22375         * posix/fexecve.c (fexecve): Likewise.
22376         * socket/socketpair.c (socketpair): Likewise.
22377         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
22378         * stdlib/erand48.c (erand48): Likewise.
22379         * stdlib/erand48_r.c (__erand48_r): Likewise.
22380         * stdlib/jrand48.c (jrand48): Likewise.
22381         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
22382         * stdlib/lcong48.c (lcong48): Likewise.
22383         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
22384         * stdlib/nrand48.c (nrand48): Likewise.
22385         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
22386         * stdlib/seed48.c (seed48): Likewise.
22387         * stdlib/seed48_r.c (__seed48_r): Likewise.
22388         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
22389         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
22390         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
22391
22392 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22393
22394         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
22395         * configure: Regenerated.
22396         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
22397         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
22398         unconditional.
22399         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22400         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22401         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22402         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
22403         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
22404         unconditional.
22405         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
22406
22407         * posix/Makefile (CFLAGS-regex.c): Remove variable.
22408         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
22409
22410         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
22411         function definition.
22412         * crypt/crypt_util.c (__encrypt_r): Likewise.
22413         * libio/genops.c (_IO_no_init): Likewise.
22414         * libio/iofopncook.c (_IO_fopencookie): Likewise.
22415         (_IO_old_fopencookie): Likewise.
22416         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
22417         * libio/iogetline.c (_IO_getline): Likewise.
22418         (_IO_getline_info): Likewise.
22419         * libio/iogetwline.c (_IO_getwline): Likewise.
22420         (_IO_getwline_info): Likewise.
22421         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
22422         * libio/vswprintf.c (_IO_vswprintf): Likewise.
22423         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
22424         (find_entry): Likewise.
22425         (iterate_table): Likewise.
22426         (lookup): Likewise.
22427         * login/forkpty.c (forkpty): Likewise.
22428         * misc/hsearch_r.c (__hsearch_r): Likewise.
22429         * misc/select.c (__select): Likewise.
22430         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
22431         Likewise.
22432         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
22433         Likewise.
22434         * nptl/old_pthread_cond_timedwait.c
22435         (__pthread_cond_timedwait_2_0): Likewise.
22436         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22437         * nptl/pthread_barrierattr_getpshared.c
22438         (pthread_barrierattr_getpshared): Likewise.
22439         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
22440         Likewise.
22441         * nptl/pthread_mutex_setprioceiling.c
22442         (pthread_mutex_setprioceiling): Likewise.
22443         * nptl/pthread_mutexattr_getprioceiling.c
22444         (pthread_mutexattr_getprioceiling): Likewise.
22445         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22446         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
22447         Likewise.
22448         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
22449         Likewise.
22450         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
22451         Likewise.
22452         * socket/recvfrom.c (__recvfrom): Likewise.
22453         * socket/sendto.c (__sendto): Likewise.
22454         * socket/setsockopt.c (__setsockopt): Likewise.
22455         * stdio-common/_itoa.c (_itoa): Likewise.
22456         * stdio-common/_itowa.c (_itowa): Likewise.
22457         * stdio-common/reg-printf.c (__register_printf_specifier):
22458         Likewise.
22459         (__register_printf_function): Likewise.
22460         * stdio-common/tempname.c (__path_search): Likewise.
22461         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
22462         * stdlib/mul_1.c (mpn_mul_1): Likewise.
22463         * stdlib/random_r.c (__initstate_r): Likewise.
22464         * stdlib/setenv.c (__add_to_environ): Likewise.
22465         * stdlib/submul_1.c (mpn_submul_1): Likewise.
22466         * streams/getpmsg.c (getpmsg): Likewise.
22467         * streams/putmsg.c (putmsg): Likewise.
22468         * streams/putpmsg.c (putpmsg): Likewise.
22469         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
22470         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
22471         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
22472         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
22473         * sunrpc/pm_getport.c (pmap_getport): Likewise.
22474         * sunrpc/svc_udp.c (cache_get): Likewise.
22475         * sunrpc/xdr_array.c (xdr_vector): Likewise.
22476         * sysdeps/mach/hurd/getcwd.c
22477         (__canonicalize_directory_name_internal): Likewise.
22478         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
22479         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
22480         * sysdeps/mach/hurd/select.c (__select): Likewise.
22481         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
22482         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
22483         * sysdeps/sparc/nptl/pthread_barrier_init.c
22484         (__pthread_barrier_init): Likewise.
22485         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
22486         (__pthread_cond_timedwait): Likewise.
22487         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
22488         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
22489         Likewise.
22490         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
22491         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
22492         Likewise.
22493         * sysvipc/semtimedop.c (semtimedop): Likewise.
22494         * time/setitimer.c (__setitimer): Likewise.
22495         * time/strftime_l.c (emacs_strftime): Likewise.
22496
22497 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22498
22499         * config.make.in (have-ssp): Delete.
22500         (stack-protector): New variable.
22501         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
22502         cache test for -fstack-protector-strong.  Export stack_protector to
22503         the best ssp flag.
22504         * configure: Regenerated.
22505         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
22506         * nscd/Makefile (CFLAGS-nscd): Likewise.
22507         * resolv/Makefile (CFLAGS-libresolv): Likewise.
22508
22509 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
22510
22511         [BZ #19122]
22512         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
22513         attribute_hidden.
22514
22515 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
22516
22517         [BZ #18743]
22518         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
22519         code to...
22520         (ELIDE_LOCK): ...here.
22521         (__get_new_count): New function with part of the code from
22522         __elide_lock that updates the value of adapt_count after a
22523         transaction abort.
22524         (__elided_trylock): Moved this code to...
22525         (ELIDE_TRYLOCK): ...here.
22526
22527 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
22528
22529         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
22530         * configure: Regenerate.
22531         * INSTALL: Regenerate.
22532         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
22533         and tweak grammar.
22534
22535 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
22536
22537         * login/programs/pt_chown.c: Include signal.h
22538         (main): Clear any signal mask from the parent process.
22539
22540 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
22541
22542         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
22543         * configure: Regenerated.
22544         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
22545         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
22546         $(gnu89-inline-CFLAGS).
22547
22548         * configure.ac (libc_cv_asm_weak_directive): Remove configure
22549         test.
22550         (libc_cv_asm_weakext_directive): Likewise.
22551         * configure: Regenerated.
22552         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
22553         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
22554         * include/libc-symbols.h
22555         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
22556         #error.
22557         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
22558         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
22559
22560         * sysdeps/arm/backtrace.c (__backtrace): Convert to
22561         prototype-style function definition.
22562         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
22563         * sysdeps/i386/ffs.c (__ffs): Likewise.
22564         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
22565         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
22566         Likewise.
22567         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22568         Likewise.
22569         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
22570         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
22571         Likewise.
22572         * sysdeps/m68k/ffs.c (__ffs): Likewise.
22573         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
22574         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
22575         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
22576         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
22577         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
22578         * sysdeps/mach/hurd/access.c (__access): Likewise.
22579         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
22580         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
22581         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
22582         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
22583         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
22584         (cthread_getspecific): Likewise.
22585         (cthread_setspecific): Likewise.
22586         (__libc_getspecific): Likewise.
22587         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
22588         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
22589         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
22590         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
22591         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
22592         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
22593         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
22594         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
22595         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
22596         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
22597         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
22598         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
22599         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
22600         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
22601         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
22602         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
22603         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
22604         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
22605         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
22606         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
22607         * sysdeps/mach/hurd/link.c (__link): Likewise.
22608         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
22609         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
22610         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
22611         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
22612         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
22613         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
22614         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
22615         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
22616         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
22617         * sysdeps/mach/hurd/rename.c (rename): Likewise.
22618         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
22619         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
22620         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
22621         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
22622         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
22623         * sysdeps/mach/hurd/send.c (__send): Likewise.
22624         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
22625         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
22626         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
22627         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
22628         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
22629         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
22630         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
22631         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
22632         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
22633         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
22634         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
22635         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
22636         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
22637         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
22638         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
22639         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
22640         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
22641         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
22642         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
22643         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
22644         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
22645         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
22646         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
22647         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
22648         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
22649         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
22650         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
22651         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
22652         * sysdeps/posix/alarm.c (alarm): Likewise.
22653         * sysdeps/posix/cuserid.c (cuserid): Likewise.
22654         * sysdeps/posix/dirfd.c (dirfd): Likewise.
22655         * sysdeps/posix/dup.c (__dup): Likewise.
22656         * sysdeps/posix/dup2.c (__dup2): Likewise.
22657         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
22658         (main): Likewise.
22659         * sysdeps/posix/flock.c (__flock): Likewise.
22660         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
22661         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
22662         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
22663         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
22664         * sysdeps/posix/isatty.c (__isatty): Likewise.
22665         * sysdeps/posix/killpg.c (killpg): Likewise.
22666         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
22667         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
22668         * sysdeps/posix/raise.c (raise): Likewise.
22669         * sysdeps/posix/remove.c (remove): Likewise.
22670         * sysdeps/posix/rename.c (rename): Likewise.
22671         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
22672         * sysdeps/posix/seekdir.c (seekdir): Likewise.
22673         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
22674         * sysdeps/posix/sigignore.c (sigignore): Likewise.
22675         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
22676         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
22677         * sysdeps/posix/sigset.c (sigset): Likewise.
22678         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
22679         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
22680         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
22681         * sysdeps/posix/time.c (time): Likewise.
22682         * sysdeps/posix/ttyname.c (getttyname): Likewise.
22683         (ttyname): Likewise.
22684         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
22685         * sysdeps/posix/utime.c (utime): Likewise.
22686         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
22687         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
22688         Likewise.
22689         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
22690         (pthread_spin_trylock): Likewise.
22691         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
22692         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
22693         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
22694         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
22695         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
22696         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
22697         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
22698         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
22699         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
22700         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
22701         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
22702         * sysdeps/s390/ffs.c (__ffs): Likewise.
22703         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
22704         Likewise.
22705         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
22706         Likewise.
22707         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
22708         Likewise.
22709         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
22710         (pthread_barrier_destroy): Likewise.
22711         * sysdeps/sparc/nptl/pthread_barrier_wait.c
22712         (__pthread_barrier_wait): Likewise.
22713         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
22714         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
22715         (__pthread_barrier_wait): Likewise.
22716         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
22717         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
22718         (memcmp_not_common_alignment): Likewise.
22719         (MEMCMP): Likewise.
22720         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
22721         (_wordcopy_fwd_dest_aligned): Likewise.
22722         (_wordcopy_bwd_aligned): Likewise.
22723         (_wordcopy_bwd_dest_aligned): Likewise.
22724         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
22725         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
22726         * sysdeps/unix/bsd/stty.c (stty): Likewise.
22727         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
22728         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
22729         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
22730         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
22731         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
22732         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
22733         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
22734         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
22735         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
22736         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
22737         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
22738         * sysdeps/unix/stime.c (stime): Likewise.
22739         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
22740         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
22741         Likewise.  Use internal_function.
22742         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
22743         Convert to prototype-style function definition.
22744         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
22745         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
22746         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
22747         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22748         Likewise.  Use internal_function.
22749         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
22750         prototype-style function definition
22751         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22752         Likewise.
22753         (__getlogin_r): Likewise.
22754         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
22755         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
22756         (__pthread_cond_broadcast): Likewise.
22757         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
22758         (__pthread_cond_destroy): Likewise.
22759         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
22760         (__pthread_cond_init): Likewise.
22761         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
22762         (__pthread_cond_signal): Likewise.
22763         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
22764         (__pthread_cond_wait): Likewise.
22765         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
22766         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
22767         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
22768         Likewise.
22769         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
22770         Likewise.
22771         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
22772         Likewise.
22773         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
22774         Likewise.
22775         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
22776         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
22777         (__ftruncate64): Likewise.
22778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
22779         (truncate64): Likewise.
22780         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
22781         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
22782         (pthread_getcpuclockid): Likewise.
22783         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
22784         Likewise.
22785         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
22786         Likewise.
22787         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
22788         Likewise.
22789         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
22790         Likewise.
22791         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
22792         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
22793         (__libc_sigaction): Likewise.
22794         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
22795         Likewise.
22796         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
22797         (__sigprocmask): Likewise.
22798         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
22799         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
22800         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
22801         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
22802         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22803         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
22804         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22805         Likewise.
22806         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
22807         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
22808         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22809         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
22810         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
22811         Likewise.
22812         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
22813         (__sigprocmask): Likewise.
22814         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
22815         (cfgetispeed): Likewise.
22816         (cfsetospeed): Likewise.
22817         (cfsetispeed): Likewise.
22818         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
22819         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
22820         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
22821         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
22822         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
22823         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
22824         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
22825         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
22826         Likewise.
22827         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
22828         Likewise.
22829         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
22830         Likewise.
22831         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
22832         Likewise.
22833         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
22834
22835 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22836
22837         sunrpc: Rewrite with explicit TLS access using __thread.
22838         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
22839         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
22840         directly.
22841         (__rpc_thread_variables): Access thread_rpc_vars directly.
22842         Eliminate redundant assignment of the tvp variable.
22843
22844 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22845
22846         malloc: Rewrite with explicit TLS access using __thread.
22847         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
22848         (tsd_setspecific, tsd_getspecific): Remove.
22849         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
22850         (tsd_setspecific, tsd_getspecific): Likewise.
22851         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
22852         (tsd_setspecific, tsd_getspecific): Likewise.
22853         * malloc/arena.c (thread_arena): New TLS variable.
22854         (arena_key): Remove variable.
22855         (arena_get): Use thread_arena.
22856         (arena_lookup): Remove macro.
22857         (malloc_atfork, free_atfork, ptmalloc_lock_all)
22858         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
22859         (_int_new_arena, get_free_list, reused_arena)
22860         (arena_thread_freeres): Use thread_arena.
22861         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
22862         tsd_getspecific, tsd_setspecific from safety annotations.
22863         (Allocating Cleared Space): Remove arena_lookup from safety
22864         annotations.
22865
22866 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22867
22868         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
22869         struct scratch_buffer instead of extend_alloca.
22870
22871 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22872
22873         * sysdeps/unix/sysv/linux/kernel-features.h
22874         (__ASSUME_SOCK_CLOEXEC): Remove.
22875         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
22876         (__have_paccept): Remove unused macro.
22877         * include/unistd.h (__have_sock_cloexec): Remove declaration.
22878         * misc/syslog.c (openlog_internal): Remove fallback code for
22879         !__ASSUME_SOCK_CLOEXEC.
22880         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
22881         missing SOCK_CLOEXEC.
22882         * nscd/connections.c (have_sock_cloexec): Remove definition.
22883         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22884         * nscd/nscd_helper.c (open_socket): Remove fallback code for
22885         !__ASSUME_SOCK_CLOEXEC.
22886         * resolv/res_send.c (__have_o_nonblock): Remove definition.
22887         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
22888         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
22889         definition.
22890         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
22891         code for !__ASSUME_SOCK_CLOEXEC.
22892
22893 2015-10-17  Florian Weimer  <fweimer@redhat.com>
22894
22895         [BZ #18982]
22896         * manual/stdio.texi (Variable Arguments Output): Add portability
22897         note, explaining that vfprintf clobbers the va_list pointer.
22898
22899 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22900
22901         * math/libm-test.inc (fabs_test_data): Add more tests.
22902         (fdim_test_data): Likewise.
22903         (fma_test_data): Likewise.
22904         (fmax_test_data): Likewise.
22905         (fmin_test_data): Likewise.
22906         (fmod_test_data): Likewise.
22907
22908 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
22909
22910         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
22911         data.
22912
22913 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
22914
22915         * math/libm-test.inc (ceil_test_data): Add more tests and more
22916         expectations for "inexact".
22917         (floor_test_data): Add more tests.
22918         (round_test_data): Likewise.
22919         (trunc_test_data): Likewise.
22920
22921         * crypt/cert.c (good_bye): Convert to prototype-style function
22922         definition.
22923         (get8): Likewise.
22924         (put8): Likewise.
22925         * crypt/crypt-entry.c (crypt): Likewise.
22926         (__fcrypt): Likewise.
22927         * crypt/crypt_util.c (_ufc_prbits): Likewise.
22928         (_ufc_set_bits): Likewise.
22929         (_ufc_clearmem): Likewise.
22930         (__init_des_r): Likewise.
22931         (shuffle_sb): Likewise.
22932         (shuffle_sb): Likewise.
22933         (_ufc_setup_salt_r): Likewise.
22934         (_ufc_mk_keytab_r): Likewise.
22935         (_ufc_dofinalperm_r): Likewise.
22936         (encrypt): Likewise.
22937         (__setkey_r): Likewise.
22938         (setkey): Likewise.
22939         * crypt/md5.c (md5_init_ctx): Likewise.
22940         (md5_read_ctx): Likewise.
22941         (md5_finish_ctx): Likewise.
22942         (md5_stream): Likewise.
22943         (md5_buffer): Likewise.
22944         (md5_process_bytes): Likewise.
22945         * crypt/sha256.c (__sha256_init_ctx): Likewise.
22946         (__sha256_finish_ctx): Likewise.
22947         (__sha256_process_bytes): Likewise.
22948         * crypt/sha512.c (__sha512_init_ctx): Likewise.
22949         (__sha512_finish_ctx): Likewise.
22950         (__sha512_process_bytes): Likewise.
22951         * ctype/isctype.c (__isctype): Likewise.
22952         * debug/backtrace.c (__backtrace): Likewise.
22953         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
22954         * debug/fgets_chk.c (__fgets_chk): Likewise.
22955         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
22956         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
22957         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
22958         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
22959         * debug/memset_chk.c (__memset_chk): Likewise.
22960         * debug/strcat_chk.c (__strcat_chk): Likewise.
22961         * debug/strncat_chk.c (__strncat_chk): Likewise.
22962         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
22963         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
22964         * dirent/dirfd.c (dirfd): Likewise.
22965         * dirent/getdents.c (__getdirentries): Likewise.
22966         * dirent/getdents64.c (getdirentries64): Likewise.
22967         * dirent/rewinddir.c (__rewinddir): Likewise.
22968         * dirent/seekdir.c (seekdir): Likewise.
22969         * dirent/telldir.c (telldir): Likewise.
22970         * elf/sln.c (makesymlinks): Likewise.
22971         (makesymlink): Likewise.
22972         * gmon/gmon.c (__moncontrol): Likewise.
22973         (__monstartup): Likewise.
22974         (write_hist): Likewise.
22975         (write_call_graph): Likewise.
22976         (write_bb_counts): Likewise.
22977         * grp/setgroups.c (setgroups): Likewise.
22978         * inet/inet_lnaof.c (inet_lnaof): Likewise.
22979         * inet/inet_net.c (inet_network): Likewise.
22980         * inet/inet_netof.c (inet_netof): Likewise.
22981         * inet/rcmd.c (rresvport_af): Likewise.
22982         (rresvport): Likewise.
22983         * io/access.c (__access): Likewise.
22984         * io/chdir.c (__chdir): Likewise.
22985         * io/chmod.c (__chmod): Likewise.
22986         * io/chown.c (__chown): Likewise.
22987         * io/close.c (__close): Likewise.
22988         * io/creat.c (creat): Likewise.
22989         * io/creat64.c (creat64): Likewise.
22990         * io/dup.c (__dup): Likewise.
22991         * io/dup2.c (__dup2): Likewise.
22992         * io/dup3.c (__dup3): Likewise.
22993         * io/euidaccess.c (__euidaccess): Likewise.
22994         * io/faccessat.c (faccessat): Likewise.
22995         * io/fchmod.c (__fchmod): Likewise.
22996         * io/fchmodat.c (fchmodat): Likewise.
22997         * io/fchown.c (__fchown): Likewise.
22998         * io/fchownat.c (fchownat): Likewise.
22999         * io/fcntl.c (__fcntl): Likewise.
23000         * io/flock.c (__flock): Likewise.
23001         * io/fts.c (fts_load): Likewise.
23002         (fts_close): Likewise.
23003         (fts_read): Likewise.
23004         (fts_set): Likewise.
23005         (fts_children): Likewise.
23006         (fts_build): Likewise.
23007         (fts_stat): Likewise.
23008         (fts_sort): Likewise.
23009         (fts_alloc): Likewise.
23010         (fts_lfree): Likewise.
23011         (fts_palloc): Likewise.
23012         (fts_padjust): Likewise.
23013         (fts_maxarglen): Likewise.
23014         (fts_safe_changedir): Likewise.
23015         * io/getwd.c (getwd): Likewise.
23016         * io/isatty.c (__isatty): Likewise.
23017         * io/lchown.c (__lchown): Likewise.
23018         * io/link.c (__link): Likewise.
23019         * io/linkat.c (linkat): Likewise.
23020         * io/lseek.c (__libc_lseek): Likewise.
23021         * io/mkdir.c (__mkdir): Likewise.
23022         * io/mkdirat.c (mkdirat): Likewise.
23023         * io/mkfifo.c (mkfifo): Likewise.
23024         * io/mkfifoat.c (mkfifoat): Likewise.
23025         * io/open.c (__libc_open): Likewise.
23026         * io/open64.c (__libc_open64): Likewise.
23027         * io/readlink.c (__readlink): Likewise.
23028         * io/readlinkat.c (readlinkat): Likewise.
23029         * io/rmdir.c (__rmdir): Likewise.
23030         * io/symlink.c (__symlink): Likewise.
23031         * io/symlinkat.c (symlinkat): Likewise.
23032         * io/ttyname.c (ttyname): Likewise.
23033         * io/ttyname_r.c (__ttyname_r): Likewise.
23034         * io/umask.c (__umask): Likewise.
23035         * io/unlink.c (__unlink): Likewise.
23036         * io/unlinkat.c (unlinkat): Likewise.
23037         * io/utime.c (utime): Likewise.
23038         * libio/clearerr.c (clearerr): Likewise.
23039         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
23040         * libio/feof.c (_IO_feof): Likewise.
23041         * libio/feof_u.c (feof_unlocked): Likewise.
23042         * libio/ferror.c (_IO_ferror): Likewise.
23043         * libio/ferror_u.c (ferror_unlocked): Likewise.
23044         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
23045         * libio/fileno.c (__fileno): Likewise.
23046         * libio/fputc.c (fputc): Likewise.
23047         * libio/fputc_u.c (fputc_unlocked): Likewise.
23048         * libio/fputwc.c (fputwc): Likewise.
23049         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
23050         * libio/freopen.c (freopen): Likewise.
23051         * libio/freopen64.c (freopen64): Likewise.
23052         * libio/fseek.c (fseek): Likewise.
23053         * libio/fseeko.c (fseeko): Likewise.
23054         * libio/fseeko64.c (fseeko64): Likewise.
23055         * libio/ftello.c (__ftello): Likewise.
23056         * libio/ftello64.c (ftello64): Likewise.
23057         * libio/fwide.c (fwide): Likewise.
23058         * libio/genops.c (_IO_un_link): Likewise.
23059         (_IO_link_in): Likewise.
23060         (_IO_least_marker): Likewise.
23061         (_IO_switch_to_main_get_area): Likewise.
23062         (_IO_switch_to_backup_area): Likewise.
23063         (_IO_switch_to_get_mode): Likewise.
23064         (_IO_free_backup_area): Likewise.
23065         (_IO_switch_to_put_mode): Likewise.
23066         (__overflow): Likewise.
23067         (__underflow): Likewise.
23068         (__uflow): Likewise.
23069         (_IO_setb): Likewise.
23070         (_IO_doallocbuf): Likewise.
23071         (_IO_default_underflow): Likewise.
23072         (_IO_default_uflow): Likewise.
23073         (_IO_default_xsputn): Likewise.
23074         (_IO_sgetn): Likewise.
23075         (_IO_default_xsgetn): Likewise.
23076         (_IO_sync): Likewise.
23077         (_IO_default_setbuf): Likewise.
23078         (_IO_default_seekpos): Likewise.
23079         (_IO_default_doallocate): Likewise.
23080         (_IO_init): Likewise.
23081         (_IO_old_init): Likewise.
23082         (_IO_default_sync): Likewise.
23083         (_IO_default_finish): Likewise.
23084         (_IO_default_seekoff): Likewise.
23085         (_IO_sputbackc): Likewise.
23086         (_IO_sungetc): Likewise.
23087         (_IO_set_column): Likewise.
23088         (_IO_set_column): Likewise.
23089         (_IO_adjust_column): Likewise.
23090         (_IO_get_column): Likewise.
23091         (_IO_init_marker): Likewise.
23092         (_IO_remove_marker): Likewise.
23093         (_IO_marker_difference): Likewise.
23094         (_IO_marker_delta): Likewise.
23095         (_IO_seekmark): Likewise.
23096         (_IO_unsave_markers): Likewise.
23097         (_IO_nobackup_pbackfail): Likewise.
23098         (_IO_default_pbackfail): Likewise.
23099         (_IO_default_seek): Likewise.
23100         (_IO_default_stat): Likewise.
23101         (_IO_default_read): Likewise.
23102         (_IO_default_write): Likewise.
23103         (_IO_default_showmanyc): Likewise.
23104         (_IO_default_imbue): Likewise.
23105         (_IO_iter_next): Likewise.
23106         (_IO_iter_file): Likewise.
23107         * libio/getc.c (_IO_getc): Likewise.
23108         * libio/getwc.c (_IO_getwc): Likewise.
23109         * libio/iofclose.c (_IO_new_fclose): Likewise.
23110         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
23111         * libio/iofflush.c (_IO_fflush): Likewise.
23112         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
23113         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
23114         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
23115         * libio/iofgets.c (_IO_fgets): Likewise.
23116         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
23117         * libio/iofgetws.c (fgetws): Likewise.
23118         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
23119         * libio/iofopen64.c (_IO_fopen64): Likewise.
23120         * libio/iofopncook.c (_IO_cookie_read): Likewise.
23121         (_IO_cookie_write): Likewise.
23122         (_IO_cookie_seek): Likewise.
23123         (_IO_cookie_close): Likewise.
23124         (_IO_cookie_seekoff): Likewise.
23125         (_IO_old_cookie_seek): Likewise.
23126         * libio/iofputs.c (_IO_fputs): Likewise.
23127         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
23128         * libio/iofputws.c (fputws): Likewise.
23129         * libio/iofputws_u.c (fputws_unlocked): Likewise.
23130         * libio/iofread.c (_IO_fread): Likewise.
23131         * libio/iofread_u.c (__fread_unlocked): Likewise.
23132         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
23133         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
23134         * libio/ioftell.c (_IO_ftell): Likewise.
23135         * libio/iofwrite.c (_IO_fwrite): Likewise.
23136         * libio/iogetdelim.c (_IO_getdelim): Likewise.
23137         * libio/iogets.c (_IO_gets): Likewise.
23138         * libio/iopadn.c (_IO_padn): Likewise.
23139         * libio/iopopen.c (_IO_new_proc_open): Likewise.
23140         (_IO_new_popen): Likewise.
23141         (_IO_new_proc_close): Likewise.
23142         * libio/ioputs.c (_IO_puts): Likewise.
23143         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
23144         (_IO_seekoff): Likewise.
23145         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
23146         (_IO_seekpos): Likewise.
23147         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
23148         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
23149         * libio/ioungetc.c (_IO_ungetc): Likewise.
23150         * libio/ioungetwc.c (ungetwc): Likewise.
23151         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
23152         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
23153         * libio/iowpadn.c (_IO_wpadn): Likewise.
23154         * libio/libc_fatal.c (__libc_fatal): Likewise.
23155         * libio/memstream.c (__open_memstream): Likewise.
23156         (_IO_mem_sync): Likewise.
23157         (_IO_mem_finish): Likewise.
23158         * libio/oldfileops.c (_IO_old_file_init): Likewise.
23159         (_IO_old_file_close_it): Likewise.
23160         (_IO_old_file_finish): Likewise.
23161         (_IO_old_file_fopen): Likewise.
23162         (_IO_old_file_attach): Likewise.
23163         (_IO_old_file_setbuf): Likewise.
23164         (_IO_old_do_write): Likewise.
23165         (old_do_write): Likewise.
23166         (_IO_old_file_underflow): Likewise.
23167         (_IO_old_file_overflow): Likewise.
23168         (_IO_old_file_sync): Likewise.
23169         (_IO_old_file_seekoff): Likewise.
23170         (_IO_old_file_write): Likewise.
23171         (_IO_old_file_xsputn): Likewise.
23172         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
23173         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
23174         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
23175         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
23176         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
23177         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
23178         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
23179         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
23180         (_IO_old_popen): Likewise.
23181         (_IO_old_proc_close): Likewise.
23182         * libio/oldpclose.c (__old_pclose): Likewise.
23183         * libio/pclose.c (__new_pclose): Likewise.
23184         * libio/peekc.c (_IO_peekc_locked): Likewise.
23185         * libio/putc.c (_IO_putc): Likewise.
23186         * libio/putc_u.c (putc_unlocked): Likewise.
23187         * libio/putchar.c (putchar): Likewise.
23188         * libio/putchar_u.c (putchar_unlocked): Likewise.
23189         * libio/putwc.c (putwc): Likewise.
23190         * libio/putwc_u.c (putwc_unlocked): Likewise.
23191         * libio/putwchar.c (putwchar): Likewise.
23192         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
23193         * libio/rewind.c (rewind): Likewise.
23194         * libio/setbuf.c (setbuf): Likewise.
23195         * libio/setlinebuf.c (setlinebuf): Likewise.
23196         * libio/vasprintf.c (_IO_vasprintf): Likewise.
23197         * libio/vscanf.c (_IO_vscanf): Likewise.
23198         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
23199         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
23200         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
23201         * libio/wgenops.c (_IO_least_wmarker): Likewise.
23202         (_IO_switch_to_main_wget_area): Likewise.
23203         (_IO_switch_to_wbackup_area): Likewise.
23204         (_IO_wsetb): Likewise.
23205         (_IO_wdefault_pbackfail): Likewise.
23206         (_IO_wdefault_finish): Likewise.
23207         (_IO_wdefault_uflow): Likewise.
23208         (__woverflow): Likewise.
23209         (__wuflow): Likewise.
23210         (__wunderflow): Likewise.
23211         (_IO_wdefault_xsputn): Likewise.
23212         (_IO_wdefault_xsgetn): Likewise.
23213         (_IO_wdoallocbuf): Likewise.
23214         (_IO_wdefault_doallocate): Likewise.
23215         (_IO_switch_to_wget_mode): Likewise.
23216         (_IO_free_wbackup_area): Likewise.
23217         (_IO_switch_to_wput_mode): Likewise.
23218         (_IO_sputbackwc): Likewise.
23219         (_IO_sungetwc): Likewise.
23220         (_IO_adjust_wcolumn): Likewise.
23221         (_IO_init_wmarker): Likewise.
23222         (_IO_wmarker_delta): Likewise.
23223         (_IO_seekwmark): Likewise.
23224         (_IO_unsave_wmarkers): Likewise.
23225         * libio/wmemstream.c (open_wmemstream): Likewise.
23226         (_IO_wmem_sync): Likewise.
23227         (_IO_wmem_finish): Likewise.
23228         * locale/nl_langinfo.c (nl_langinfo): Likewise.
23229         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
23230         * locale/programs/simple-hash.c (init_hash): Likewise.
23231         (delete_hash): Likewise.
23232         (insert_entry): Likewise.
23233         (set_entry): Likewise.
23234         (next_prime): Likewise.
23235         (is_prime): Likewise.
23236         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
23237         (xmalloc): Likewise.
23238         (xrealloc): Likewise.
23239         * locale/programs/xstrdup.c (xstrdup): Likewise.
23240         * localedata/collate-test.c (xstrcoll): Likewise.
23241         * localedata/xfrm-test.c (xstrcmp): Likewise.
23242         * login/getlogin_r.c (__getlogin_r): Likewise.
23243         * login/getpt.c (__posix_openpt): Likewise.
23244         * login/login_tty.c (login_tty): Likewise.
23245         * login/setlogin.c (setlogin): Likewise.
23246         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
23247         (mach_msg_destroy_port): Likewise.
23248         (mach_msg_destroy_memory): Likewise.
23249         * malloc/mcheck.c (flood): Likewise.
23250         * misc/acct.c (acct): Likewise.
23251         * misc/brk.c (__brk): Likewise.
23252         * misc/chflags.c (chflags): Likewise.
23253         * misc/chroot.c (chroot): Likewise.
23254         * misc/fchflags.c (fchflags): Likewise.
23255         * misc/fstab.c (getfsspec): Likewise.
23256         (getfsfile): Likewise.
23257         * misc/fsync.c (fsync): Likewise.
23258         * misc/ftruncate.c (__ftruncate): Likewise.
23259         * misc/ftruncate64.c (__ftruncate64): Likewise.
23260         * misc/getdomain.c (getdomainname): Likewise.
23261         (getdomainname): Likewise.
23262         * misc/gethostname.c (__gethostname): Likewise.
23263         * misc/getpass.c (getpass): Likewise.
23264         * misc/getttyent.c (skip): Likewise.
23265         (value): Likewise.
23266         * misc/gtty.c (gtty): Likewise.
23267         * misc/hsearch.c (hsearch): Likewise.
23268         (hcreate): Likewise.
23269         * misc/hsearch_r.c (__hcreate_r): Likewise.
23270         (__hdestroy_r): Likewise.
23271         * misc/ioctl.c (__ioctl): Likewise.
23272         * misc/mkdtemp.c (mkdtemp): Likewise.
23273         * misc/mkostemp.c (mkostemp): Likewise.
23274         * misc/mkostemp64.c (mkostemp64): Likewise.
23275         * misc/mkostemps.c (mkostemps): Likewise.
23276         * misc/mkostemps64.c (mkostemps64): Likewise.
23277         * misc/mkstemp.c (mkstemp): Likewise.
23278         * misc/mkstemp64.c (mkstemp64): Likewise.
23279         * misc/mkstemps.c (mkstemps): Likewise.
23280         * misc/mkstemps64.c (mkstemps64): Likewise.
23281         * misc/mktemp.c (__mktemp): Likewise.
23282         * misc/preadv.c (preadv): Likewise.
23283         * misc/preadv64.c (preadv64): Likewise.
23284         * misc/pwritev.c (pwritev): Likewise.
23285         * misc/pwritev64.c (pwritev64): Likewise.
23286         * misc/readv.c (__readv): Likewise.
23287         * misc/revoke.c (revoke): Likewise.
23288         * misc/setdomain.c (setdomainname): Likewise.
23289         * misc/setegid.c (setegid): Likewise.
23290         * misc/seteuid.c (seteuid): Likewise.
23291         * misc/sethostid.c (sethostid): Likewise.
23292         * misc/sethostname.c (sethostname): Likewise.
23293         * misc/setregid.c (__setregid): Likewise.
23294         * misc/setreuid.c (__setreuid): Likewise.
23295         * misc/sstk.c (sstk): Likewise.
23296         * misc/stty.c (stty): Likewise.
23297         * misc/syscall.c (syscall): Likewise.
23298         * misc/syslog.c (setlogmask): Likewise.
23299         * misc/truncate.c (__truncate): Likewise.
23300         * misc/truncate64.c (truncate64): Likewise.
23301         * misc/ualarm.c (ualarm): Likewise.
23302         * misc/usleep.c (usleep): Likewise.
23303         * misc/ustat.c (ustat): Likewise.
23304         * misc/writev.c (__writev): Likewise.
23305         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
23306         * nptl/old_pthread_cond_broadcast.c
23307         (__pthread_cond_broadcast_2_0): Likewise.
23308         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
23309         Likewise.
23310         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
23311         Likewise.
23312         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
23313         Likewise.
23314         * nptl/pt-raise.c (raise): Likewise.
23315         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
23316         Likewise.
23317         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
23318         * nptl/pthread_barrierattr_destroy.c
23319         (pthread_barrierattr_destroy): Likewise.
23320         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23321         Likewise.
23322         * nptl/pthread_barrierattr_setpshared.c
23323         (pthread_barrierattr_setpshared): Likewise.
23324         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
23325         Likewise.
23326         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
23327         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23328         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
23329         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
23330         Likewise.
23331         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
23332         Likewise.
23333         * nptl/pthread_condattr_getpshared.c
23334         (pthread_condattr_getpshared): Likewise.
23335         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
23336         Likewise.
23337         * nptl/pthread_condattr_setpshared.c
23338         (pthread_condattr_setpshared): Likewise.
23339         * nptl/pthread_detach.c (pthread_detach): Likewise.
23340         * nptl/pthread_equal.c (__pthread_equal): Likewise.
23341         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
23342         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
23343         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
23344         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
23345         Likewise.
23346         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
23347         Likewise.
23348         * nptl/pthread_mutex_getprioceiling.c
23349         (pthread_mutex_getprioceiling): Likewise.
23350         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
23351         Likewise.
23352         * nptl/pthread_mutexattr_getprotocol.c
23353         (pthread_mutexattr_getprotocol): Likewise.
23354         * nptl/pthread_mutexattr_getpshared.c
23355         (pthread_mutexattr_getpshared): Likewise.
23356         * nptl/pthread_mutexattr_getrobust.c
23357         (pthread_mutexattr_getrobust): Likewise.
23358         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
23359         Likewise.
23360         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
23361         Likewise.
23362         * nptl/pthread_mutexattr_setprioceiling.c
23363         (pthread_mutexattr_setprioceiling): Likewise.
23364         * nptl/pthread_mutexattr_setprotocol.c
23365         (pthread_mutexattr_setprotocol): Likewise.
23366         * nptl/pthread_mutexattr_setpshared.c
23367         (pthread_mutexattr_setpshared): Likewise.
23368         * nptl/pthread_mutexattr_setrobust.c
23369         (pthread_mutexattr_setrobust): Likewise.
23370         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
23371         Likewise.
23372         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
23373         Likewise.
23374         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
23375         Likewise.
23376         * nptl/pthread_rwlockattr_getkind_np.c
23377         (pthread_rwlockattr_getkind_np): Likewise.
23378         * nptl/pthread_rwlockattr_getpshared.c
23379         (pthread_rwlockattr_getpshared): Likewise.
23380         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
23381         Likewise.
23382         * nptl/pthread_rwlockattr_setkind_np.c
23383         (pthread_rwlockattr_setkind_np): Likewise.
23384         * nptl/pthread_rwlockattr_setpshared.c
23385         (pthread_rwlockattr_setpshared): Likewise.
23386         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
23387         Likewise.
23388         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
23389         Likewise.
23390         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
23391         Likewise.
23392         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
23393         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
23394         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
23395         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
23396         * nptl/sem_close.c (sem_close): Likewise.
23397         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
23398         * nptl/sem_init.c (__old_sem_init): Likewise.
23399         * nptl/sigaction.c (__sigaction): Likewise.
23400         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
23401         * posix/_exit.c (_exit): Likewise.
23402         * posix/alarm.c (alarm): Likewise.
23403         * posix/confstr.c (confstr): Likewise.
23404         * posix/fpathconf.c (__fpathconf): Likewise.
23405         * posix/getgroups.c (__getgroups): Likewise.
23406         * posix/getpgid.c (__getpgid): Likewise.
23407         * posix/group_member.c (__group_member): Likewise.
23408         * posix/pathconf.c (__pathconf): Likewise.
23409         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
23410         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
23411         * posix/setgid.c (__setgid): Likewise.
23412         * posix/setpgid.c (__setpgid): Likewise.
23413         * posix/setuid.c (__setuid): Likewise.
23414         * posix/sleep.c (__sleep): Likewise.
23415         * posix/sysconf.c (__sysconf): Likewise.
23416         * posix/times.c (__times): Likewise.
23417         * posix/uname.c (__uname): Likewise.
23418         * posix/waitid.c (__waitid): Likewise.
23419         * pwd/getpw.c (__getpw): Likewise.
23420         * resolv/base64.c (b64_pton): Likewise.
23421         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
23422         * resolv/gethnamaddr.c (Dprintf): Likewise.
23423         (gethostbyname): Likewise.
23424         (gethostbyname2): Likewise.
23425         (gethostbyaddr): Likewise.
23426         (_sethtent): Likewise.
23427         (_gethtbyname): Likewise.
23428         (_gethtbyname2): Likewise.
23429         (_gethtbyaddr): Likewise.
23430         (map_v4v6_address): Likewise.
23431         (map_v4v6_hostent): Likewise.
23432         (addrsort): Likewise.
23433         (ht_sethostent): Likewise.
23434         (ht_gethostbyname): Likewise.
23435         (ht_gethostbyaddr): Likewise.
23436         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
23437         (inet_net_ntop_ipv4): Likewise.
23438         * resolv/inet_neta.c (inet_neta): Likewise.
23439         * resolv/inet_ntop.c (inet_ntop): Likewise.
23440         (inet_ntop4): Likewise.
23441         (inet_ntop6): Likewise.
23442         * resolv/inet_pton.c (__inet_pton): Likewise.
23443         (inet_pton4): Likewise.
23444         (inet_pton6): Likewise.
23445         * resolv/res_debug.c (loc_aton): Likewise.
23446         (loc_ntoa): Likewise.
23447         * resource/getpriority.c (__getpriority): Likewise.
23448         * resource/getrusage.c (__getrusage): Likewise.
23449         * resource/nice.c (nice): Likewise.
23450         * resource/setpriority.c (__setpriority): Likewise.
23451         * resource/setrlimit64.c (setrlimit64): Likewise.
23452         * resource/vlimit.c (vlimit): Likewise.
23453         * resource/vtimes.c (vtimes): Likewise.
23454         * rt/aio_error.c (aio_error): Likewise.
23455         * rt/aio_return.c (aio_return): Likewise.
23456         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
23457         * signal/kill.c (__kill): Likewise.
23458         * signal/killpg.c (killpg): Likewise.
23459         * signal/raise.c (raise): Likewise.
23460         * signal/sigaction.c (__sigaction): Likewise.
23461         * signal/sigaddset.c (sigaddset): Likewise.
23462         * signal/sigaltstack.c (sigaltstack): Likewise.
23463         * signal/sigandset.c (sigandset): Likewise.
23464         * signal/sigblock.c (__sigblock): Likewise.
23465         * signal/sigdelset.c (sigdelset): Likewise.
23466         * signal/sigempty.c (sigemptyset): Likewise.
23467         * signal/sigfillset.c (sigfillset): Likewise.
23468         * signal/sighold.c (sighold): Likewise.
23469         * signal/sigignore.c (sigignore): Likewise.
23470         * signal/sigintr.c (siginterrupt): Likewise.
23471         * signal/sigisempty.c (sigisemptyset): Likewise.
23472         * signal/sigismem.c (sigismember): Likewise.
23473         * signal/signal.c (signal): Likewise.
23474         * signal/sigorset.c (sigorset): Likewise.
23475         * signal/sigpause.c (__sigpause): Likewise.
23476         * signal/sigpending.c (sigpending): Likewise.
23477         * signal/sigprocmask.c (__sigprocmask): Likewise.
23478         * signal/sigrelse.c (sigrelse): Likewise.
23479         * signal/sigreturn.c (__sigreturn): Likewise.
23480         * signal/sigset.c (sigset): Likewise.
23481         * signal/sigsetmask.c (__sigsetmask): Likewise.
23482         * signal/sigstack.c (sigstack): Likewise.
23483         * signal/sigsuspend.c (__sigsuspend): Likewise.
23484         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
23485         * signal/sysv_signal.c (__sysv_signal): Likewise.
23486         * socket/accept.c (accept): Likewise.
23487         * socket/accept4.c (__libc_accept4): Likewise.
23488         * socket/bind.c (__bind): Likewise.
23489         * socket/connect.c (__connect): Likewise.
23490         * socket/getpeername.c (getpeername): Likewise.
23491         * socket/getsockname.c (__getsockname): Likewise.
23492         * socket/getsockopt.c (getsockopt): Likewise.
23493         * socket/listen.c (__listen): Likewise.
23494         * socket/recv.c (__recv): Likewise.
23495         * socket/recvmsg.c (__recvmsg): Likewise.
23496         * socket/send.c (__send): Likewise.
23497         * socket/sendmsg.c (__sendmsg): Likewise.
23498         * socket/shutdown.c (shutdown): Likewise.
23499         * socket/sockatmark.c (sockatmark): Likewise.
23500         * socket/socket.c (__socket): Likewise.
23501         * stdio-common/ctermid.c (ctermid): Likewise.
23502         * stdio-common/cuserid.c (cuserid): Likewise.
23503         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
23504         * stdio-common/remove.c (remove): Likewise.
23505         * stdio-common/rename.c (rename): Likewise.
23506         * stdio-common/renameat.c (renameat): Likewise.
23507         * stdio-common/tempname.c (__gen_tempname): Likewise.
23508         * stdio-common/xbug.c (InitBuffer): Likewise.
23509         (AppendToBuffer): Likewise.
23510         (ReadFile): Likewise.
23511         * stdlib/a64l.c (a64l): Likewise.
23512         * stdlib/drand48_r.c (drand48_r): Likewise.
23513         * stdlib/getcontext.c (getcontext): Likewise.
23514         * stdlib/getenv.c (getenv): Likewise.
23515         * stdlib/l64a.c (l64a): Likewise.
23516         * stdlib/llabs.c (llabs): Likewise.
23517         * stdlib/lldiv.c (lldiv): Likewise.
23518         * stdlib/lrand48_r.c (lrand48_r): Likewise.
23519         * stdlib/mrand48_r.c (mrand48_r): Likewise.
23520         * stdlib/putenv.c (putenv): Likewise.
23521         * stdlib/random.c (__srandom): Likewise.
23522         (__initstate): Likewise.
23523         (__setstate): Likewise.
23524         * stdlib/random_r.c (__srandom_r): Likewise.
23525         (__setstate_r): Likewise.
23526         (__random_r): Likewise.
23527         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
23528         * stdlib/setcontext.c (setcontext): Likewise.
23529         * stdlib/setenv.c (setenv): Likewise.
23530         (unsetenv): Likewise.
23531         * stdlib/srand48.c (srand48): Likewise.
23532         * stdlib/srand48_r.c (__srand48_r): Likewise.
23533         * stdlib/swapcontext.c (swapcontext): Likewise.
23534         * stdlib/system.c (__libc_system): Likewise.
23535         * stdlib/tst-strtod.c (expand): Likewise.
23536         * stdlib/tst-strtol.c (expand): Likewise.
23537         * stdlib/tst-strtoll.c (expand): Likewise.
23538         * streams/fattach.c (fattach): Likewise.
23539         * streams/fdetach.c (fdetach): Likewise.
23540         * streams/getmsg.c (getmsg): Likewise.
23541         * streams/isastream.c (isastream): Likewise.
23542         * string/ffs.c (__ffs): Likewise.
23543         * string/ffsll.c (ffsll): Likewise.
23544         * string/memcmp.c (memcmp_common_alignment): Likewise.
23545         (memcmp_not_common_alignment): Likewise.
23546         (MEMCMP): Likewise.
23547         * string/memcpy.c (memcpy): Likewise.
23548         * string/memmove.c (MEMMOVE): Likewise.
23549         * string/memset.c (memset): Likewise.
23550         * string/rawmemchr.c (RAWMEMCHR): Likewise.
23551         * string/strchrnul.c (STRCHRNUL): Likewise.
23552         * string/strerror.c (strerror): Likewise.
23553         * string/strndup.c (__strndup): Likewise.
23554         * string/strverscmp.c (__strverscmp): Likewise.
23555         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
23556         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
23557         (clnttcp_freeres): Likewise.
23558         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
23559         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
23560         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
23561         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
23562         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
23563         (xdr_callhdr): Likewise.
23564         * sunrpc/rpcinfo.c (udpping): Likewise.
23565         (tcpping): Likewise.
23566         (pstatus): Likewise.
23567         (pmapdump): Likewise.
23568         (brdcst): Likewise.
23569         (deletereg): Likewise.
23570         (getprognum): Likewise.
23571         (getvers): Likewise.
23572         (get_inet_address): Likewise.
23573         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
23574         * sunrpc/svc_udp.c (svcudp_create): Likewise.
23575         (svcudp_stat): Likewise.
23576         (svcudp_recv): Likewise.
23577         (svcudp_reply): Likewise.
23578         (svcudp_getargs): Likewise.
23579         (svcudp_freeargs): Likewise.
23580         (svcudp_destroy): Likewise.
23581         * sunrpc/xdr.c (xdr_bytes): Likewise.
23582         (xdr_netobj): Likewise.
23583         (xdr_string): Likewise.
23584         (xdr_wrapstring): Likewise.
23585         * sunrpc/xdr_float.c (xdr_float): Likewise.
23586         (xdr_double): Likewise.
23587         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
23588         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
23589         * sysvipc/ftok.c (ftok): Likewise.
23590         * sysvipc/msgctl.c (msgctl): Likewise.
23591         * sysvipc/msgget.c (msgget): Likewise.
23592         * sysvipc/msgrcv.c (msgrcv): Likewise.
23593         * sysvipc/msgsnd.c (msgsnd): Likewise.
23594         * sysvipc/semget.c (semget): Likewise.
23595         * sysvipc/semop.c (semop): Likewise.
23596         * sysvipc/shmat.c (shmat): Likewise.
23597         * sysvipc/shmctl.c (shmctl): Likewise.
23598         * sysvipc/shmdt.c (shmdt): Likewise.
23599         * sysvipc/shmget.c (shmget): Likewise.
23600         * termios/cfmakeraw.c (cfmakeraw): Likewise.
23601         * termios/speed.c (cfgetospeed): Likewise.
23602         (cfgetispeed): Likewise.
23603         (cfsetospeed): Likewise.
23604         (cfsetispeed): Likewise.
23605         * termios/tcflow.c (tcflow): Likewise.
23606         * termios/tcflush.c (tcflush): Likewise.
23607         * termios/tcgetattr.c (__tcgetattr): Likewise.
23608         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
23609         * termios/tcgetsid.c (tcgetsid): Likewise.
23610         * termios/tcsendbrk.c (tcsendbreak): Likewise.
23611         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
23612         * time/adjtime.c (__adjtime): Likewise.
23613         * time/dysize.c (dysize): Likewise.
23614         * time/ftime.c (ftime): Likewise.
23615         * time/getitimer.c (__getitimer): Likewise.
23616         * time/gettimeofday.c (__gettimeofday): Likewise.
23617         * time/gmtime.c (__gmtime_r): Likewise.
23618         (gmtime): Likewise.
23619         * time/localtime.c (__localtime_r): Likewise.
23620         (localtime): Likewise.
23621         * time/offtime.c (__offtime): Likewise.
23622         * time/settimeofday.c (__settimeofday): Likewise.
23623         * time/stime.c (stime): Likewise.
23624         * time/strftime_l.c (tm_diff): Likewise.
23625         (iso_week_days): Likewise.
23626         * time/strptime.c (strptime): Likewise.
23627         * time/time.c (time): Likewise.
23628         * time/timespec_get.c (timespec_get): Likewise.
23629         * time/tzset.c (tzset_internal): Likewise.
23630         (compute_change): Likewise.
23631         (__tz_compute): Likewise.
23632         * wcsmbs/btowc.c (__btowc): Likewise.
23633         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
23634         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
23635         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
23636         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
23637         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
23638         * wcsmbs/wcscat.c (__wcscat): Likewise.
23639         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23640         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
23641         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
23642         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23643         * wcsmbs/wcsdup.c (wcsdup): Likewise.
23644         * wcsmbs/wcslen.c (__wcslen): Likewise.
23645         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
23646         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
23647         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
23648         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
23649         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23650         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
23651         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23652         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23653         * wcsmbs/wcstok.c (wcstok): Likewise.
23654         * wcsmbs/wctob.c (wctob): Likewise.
23655         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
23656         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23657         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
23658         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
23659         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
23660         * wcsmbs/wmemset.c (__wmemset): Likewise.
23661         * wctype/wcfuncs.c (__towlower): Likewise.
23662         (__towupper): Likewise.
23663
23664         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
23665         (lll_unlock_elision): Add adapt_count parameter.
23666
23667 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23668
23669         * sysdeps/nptl/configure.ac: Do not give errors based on the
23670         results of top-level configure tests.
23671         * sysdeps/nptl/configure: Regenerated.
23672
23673         * configure.ac (libc_cv_Bgroup): Remove configure test.
23674         * configure: Regenerated.
23675         * config.make.in (have-Bgroup): Remove variable.
23676
23677         * configure.ac (sizeof_long_double): Remove configure test.
23678         * configure: Regenerated.
23679         * config.make.in (sizeof-long-double): Remove variable.
23680
23681         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
23682         * configure: Regenerated.
23683         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
23684         variable.
23685         (exceptions): Likewise.
23686         * sysdeps/arm/configure: Regenerated.
23687         * config.make.in (exceptions): Remove variable.
23688         * Makeconfig (uses-callbacks): Use -fexceptions instead of
23689         $(exceptions).
23690         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
23691         (CFLAGS-vdprintf_chk.c): Likewise.
23692         (CFLAGS-printf_chk.c): Likewise.
23693         (CFLAGS-fprintf_chk.c): Likewise.
23694         (CFLAGS-vprintf_chk.c): Likewise.
23695         (CFLAGS-vfprintf_chk.c): Likewise.
23696         (CFLAGS-gets_chk.c): Likewise.
23697         (CFLAGS-fgets_chk.c): Likewise.
23698         (CFLAGS-fgets_u_chk.c): Likewise.
23699         (CFLAGS-fread_chk.c): Likewise.
23700         (CFLAGS-fread_u_chk.c): Likewise.
23701         (CFLAGS-wprintf_chk.c): Likewise.
23702         (CFLAGS-fwprintf_chk.c): Likewise.
23703         (CFLAGS-vwprintf_chk.c): Likewise.
23704         (CFLAGS-vfwprintf_chk.c): Likewise.
23705         (CFLAGS-fgetws_chk.c): Likewise.
23706         (CFLAGS-fgetws_u_chk.c): Likewise.
23707         * libio/Makefile (CFLAGS-fileops.c): Likewise.
23708         (CFLAGS-fputc.c): Likewise.
23709         (CFLAGS-fputwc.c): Likewise.
23710         (CFLAGS-freopen64.c): Likewise.
23711         (CFLAGS-freopen.c): Likewise.
23712         (CFLAGS-fseek.c): Likewise.
23713         (CFLAGS-fseeko64.c): Likewise.
23714         (CFLAGS-fseeko.c): Likewise.
23715         (CFLAGS-ftello64.c): Likewise.
23716         (CFLAGS-ftello.c): Likewise.
23717         (CFLAGS-fwide.c): Likewise.
23718         (CFLAGS-genops.c): Likewise.
23719         (CFLAGS-getc.c): Likewise.
23720         (CFLAGS-getchar.c): Likewise.
23721         (CFLAGS-getwc.c): Likewise.
23722         (CFLAGS-getwchar.c): Likewise.
23723         (CFLAGS-iofclose.c): Likewise.
23724         (CFLAGS-iofflush.c): Likewise.
23725         (CFLAGS-iofgetpos64.c): Likewise.
23726         (CFLAGS-iofgetpos.c): Likewise.
23727         (CFLAGS-iofgets.c): Likewise.
23728         (CFLAGS-iofgetws.c): Likewise.
23729         (CFLAGS-iofputs.c): Likewise.
23730         (CFLAGS-iofputws.c): Likewise.
23731         (CFLAGS-iofread.c): Likewise.
23732         (CFLAGS-iofsetpos64.c): Likewise.
23733         (CFLAGS-iofsetpos.c): Likewise.
23734         (CFLAGS-ioftell.c): Likewise.
23735         (CFLAGS-iofwrite.c): Likewise.
23736         (CFLAGS-iogetdelim.c): Likewise.
23737         (CFLAGS-iogetline.c): Likewise.
23738         (CFLAGS-iogets.c): Likewise.
23739         (CFLAGS-iogetwline.c): Likewise.
23740         (CFLAGS-ioputs.c): Likewise.
23741         (CFLAGS-ioseekoff.c): Likewise.
23742         (CFLAGS-ioseekpos.c): Likewise.
23743         (CFLAGS-iosetbuffer.c): Likewise.
23744         (CFLAGS-iosetvbuf.c): Likewise.
23745         (CFLAGS-ioungetc.c): Likewise.
23746         (CFLAGS-ioungetwc.c): Likewise.
23747         (CFLAGS-oldfileops.c): Likewise.
23748         (CFLAGS-oldiofclose.c): Likewise.
23749         (CFLAGS-oldiofgetpos64.c): Likewise.
23750         (CFLAGS-oldiofgetpos.c): Likewise.
23751         (CFLAGS-oldiofsetpos64.c): Likewise.
23752         (CFLAGS-oldiofsetpos.c): Likewise.
23753         (CFLAGS-peekc.c): Likewise.
23754         (CFLAGS-putc.c): Likewise.
23755         (CFLAGS-putchar.c): Likewise.
23756         (CFLAGS-putwc.c): Likewise.
23757         (CFLAGS-putwchar.c): Likewise.
23758         (CFLAGS-rewind.c): Likewise.
23759         (CFLAGS-wfileops.c): Likewise.
23760         (CFLAGS-wgenops.c): Likewise.
23761         (CFLAGS-oldiofopen.c): Likewise.
23762         (CFLAGS-iofopen.c): Likewise.
23763         (CFLAGS-iofopen64.c): Likewise.
23764         (CFLAGS-oldtmpfile.c): Likewise.
23765         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
23766         (CFLAGS-fprintf.c): Likewise.
23767         (CFLAGS-printf.c): Likewise.
23768         (CFLAGS-vfwprintf.c): Likewise.
23769         (CFLAGS-vfscanf.c): Likewise.
23770         (CFLAGS-vfwscanf.c): Likewise.
23771         (CFLAGS-fscanf.c): Likewise.
23772         (CFLAGS-scanf.c): Likewise.
23773         (CFLAGS-isoc99_vfscanf.c): Likewise.
23774         (CFLAGS-isoc99_vscanf.c): Likewise.
23775         (CFLAGS-isoc99_fscanf.c): Likewise.
23776         (CFLAGS-isoc99_scanf.c): Likewise.
23777         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
23778         (CFLAGS-isoc99_fwscanf.c): Likewise.
23779         (CFLAGS-isoc99_vwscanf.c): Likewise.
23780         (CFLAGS-isoc99_vfwscanf.c): Likewise.
23781
23782         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
23783         after mkstemp64.
23784         * login/tst-utmp.c (do_prepare): Likewise.
23785         * rt/tst-aio.c (do_prepare): Likewise.
23786         * rt/tst-aio64.c (do_prepare): Likewise.
23787
23788 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23789
23790         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
23791         (__lll_lock_elision): Remove adapt_count decrement...
23792         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
23793         (__lll_trylock_elision): Likewise.
23794         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
23795         (__lll_unlock_elision): ... to here. And utilize
23796         new adapt_count parameter.
23797         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23798         (__lll_unlock_elision): Update to include adapt_count
23799         parameter.
23800         (lll_unlock_elision): Pass pointer to adapt_count
23801         variable.
23802
23803 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
23804
23805         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
23806         Add elision adapt_count parameter to list of arguments.
23807         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
23808         (lll_unlock_elision): Update with new parameter list
23809         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
23810         (lll_unlock_elision): Likewise.
23811         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
23812         (lll_unlock_elision): Likewise.
23813
23814 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23815
23816         [BZ #19122]
23817         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
23818         attribute_hidden.
23819
23820         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
23821         attribute_hidden.
23822         [IS_IN (rtld)] (__strdup): Likewise.
23823         [IS_IN (rtld)] (__strerror_r): Likewise.
23824         [IS_IN (rtld)] (__strsep_g): Likewise.
23825         [IS_IN (rtld)] (memchr): Likewise.
23826         [IS_IN (rtld)] (memcmp): Likewise.
23827         [IS_IN (rtld)] (memcpy): Likewise.
23828         [IS_IN (rtld)] (memmove): Likewise.
23829         [IS_IN (rtld)] (memset): Likewise.
23830         [IS_IN (rtld)] (rawmemchr): Likewise.
23831         [IS_IN (rtld)] (stpcpy): Likewise.
23832         [IS_IN (rtld)] (strchr): Likewise.
23833         [IS_IN (rtld)] (strcmp): Likewise.
23834         [IS_IN (rtld)] (strlen): Likewise.
23835         [IS_IN (rtld)] (strnlen): Likewise.
23836         [IS_IN (rtld)] (strsep): Likewise.
23837
23838         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
23839         attribute_hidden.
23840         [IS_IN (rtld)] (__strtoul_internal): Likewise.
23841
23842         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
23843         attribute_hidden.
23844         [IS_IN (rtld)] (__libc_sigaction): Likewise.
23845
23846         * include/setjmp.h (__longjmp): Add attribute_hidden.
23847         [IS_IN (rtld)] (__sigsetjmp): Likewise.
23848
23849         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
23850         Add attribute_hidden.
23851
23852         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
23853         [IS_IN (rtld)] (__open): Likewise.
23854         [IS_IN (rtld)] (__fcntl): Likewise.
23855
23856         * include/dirent.h (__opendirat): Add attribute_hidden.
23857         (__getdents): Likewise.
23858         (__getdents64): Likewise.
23859         (__alloc_dir): Likewise.
23860         [IS_IN (rtld)] (__closedir): Likewise.
23861         [IS_IN (rtld)] (__fdopendir): Likewise.
23862         [IS_IN (rtld)] (__readdir): Likewise.
23863         [IS_IN (rtld)] (__readdir64): Likewise.
23864         [IS_IN (rtld)] (__rewinddir): Likewise.
23865
23866         * include/dlfcn.h (_dl_catch_error): Moved to ...
23867         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
23868         attribute_hidden.
23869
23870         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
23871         (_itoa_word): Likewise.
23872
23873         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
23874         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
23875         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
23876         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
23877         (_dl_higher_prime_number): Likewise.
23878         (_dl_debug_printf_c): Likewise.
23879         (_dl_signal_cerror): Likewise.
23880         (_dl_receive_error): Likewise.
23881         (_dl_reloc_bad_type): Likewise.
23882         (_dl_resolve_conflicts): Likewise.
23883         (_dl_check_all_versions): Likewise.
23884         (_dl_check_map_versions): Likewise.
23885         (_dl_sort_fini): Likewise.
23886         (_dl_debug_initialize): Likewise.
23887         (_dl_init_paths): Likewise.
23888         (_dl_show_auxv): Likewise.
23889         (_dl_next_ld_env_entry): Likewise.
23890         (_dl_important_hwcaps): Likewise.
23891         (_dl_load_cache_lookup): Likewise.
23892         (_dl_update_slotinfo): Likewise.
23893         (_dl_show_scope): Likewise.
23894
23895         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
23896         attribute_hidden.
23897         (_wordcopy_fwd_dest_aligned): Likewise.
23898         (_wordcopy_bwd_aligned): Likewise.
23899         (_wordcopy_bwd_dest_aligned): Likewise.
23900
23901         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
23902         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23903         Likewise.
23904         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
23905         Likewise.
23906         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
23907
23908 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23909
23910         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
23911         GCC 5 requirement.
23912
23913 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
23914
23915         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
23916         test.
23917         * sysdeps/i386/configure: Regenerated.
23918         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
23919         code unconditional.
23920
23921         * configure.ac (libc_cv_asm_previous_directive): Remove configure
23922         test.
23923         (libc_cv_asm_popsection_directive): Likewise.
23924         * configure: Regenerated.
23925         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
23926         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
23927         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
23928         (__make_section_unallocated): Make definition unconditional.
23929         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
23930         Remove conditional definition.
23931         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
23932         (__make_section_unallocated): Likewise.
23933
23934         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
23935         * configure: Regenerated.
23936         * config.make.in (static-libgcc): Remove variable.
23937         * Makerules (build-shlib-helper): Use -static-libgcc instead of
23938         $(static-libgcc).
23939         (build-module-helper): Likewise.
23940
23941         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
23942         * configure: Regenerated.
23943
23944 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23945
23946         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
23947         (struct char_buffer): New type.
23948         (char_buffer_start, char_buffer_size, char_buffer_error)
23949         (char_buffer_rewind, char_buffer_add): New functions.
23950         (ADDW): Remove macro, replaced by the char_buffer_add function.
23951         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
23952         of extend_alloca.  Make control flow more explicit.
23953
23954 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23955
23956         [BZ #19137]
23957         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
23958         Add -fomit-frame-pointer.
23959         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
23960
23961 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23962
23963         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
23964         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
23965         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
23966         only if !__GNUC_PREREQ (5,0).
23967         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
23968         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
23969         (INTERNAL_SYSCALL_NCS): Likewise.
23970         (LOADREGS_0): New macro for GCC 5.
23971         (ASMARGS_0): Likewise.
23972         (LOADREGS_1): Likewise.
23973         (ASMARGS_1): Likewise.
23974         (LOADREGS_2): Likewise.
23975         (ASMARGS_2): Likewise.
23976         (LOADREGS_3): Likewise.
23977         (ASMARGS_3): Likewise.
23978         (LOADREGS_4): Likewise.
23979         (ASMARGS_4): Likewise.
23980         (LOADREGS_5): Likewise.
23981         (ASMARGS_5): Likewise.
23982         (LOADREGS_6): Likewise.
23983         (ASMARGS_6): Likewise.
23984
23985 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
23986
23987         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
23988         -fomit-frame-pointer.
23989         (CFLAGS-mmap64.c): Likewise.
23990         (CFLAGS-semtimedop.c): Likewise.
23991         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
23992         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
23993         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
23994         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
23995
23996 2015-10-15  Florian Weimer  <fweimer@redhat.com>
23997
23998         [BZ #18928]
23999         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
24000         _dl_pointer_guard member.
24001         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
24002         initializer.
24003         (security_init): Always set up pointer guard.
24004         (process_envvars): Do not process LD_POINTER_GUARD.
24005
24006 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
24007
24008         [BZ #19134]
24009         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
24010         (.LC2): Likewise.
24011         (.LC3): Likewise.
24012         (__lround): Do not add 0.5 to integer or out-of-range arguments.
24013
24014 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
24015
24016         [BZ #19129]
24017         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
24018         r0 and r1.
24019
24020 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
24021
24022         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
24023
24024 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
24025
24026         * include/stap-probe.h: Fix macro definition formatting.
24027
24028 2015-10-14  Florian Weimer  <fweimer@redhat.com>
24029
24030         [BZ #19074]
24031         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
24032         load and store num_ifs.
24033
24034 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
24035
24036         [BZ #18822]
24037         * sysdeps/unix/sysv/linux/sched_getaffinity.c
24038         (__sched_getaffinity_new): Add libc_hidden_proto and
24039         libc_hidden_def.
24040
24041 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
24042
24043         [BZ #19007]
24044         * scripts/localplt.awk: Also allow GOT references.
24045         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
24046         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
24047         with "+ REL R_386_GLOB_DAT".
24048         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
24049         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
24050
24051 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
24052
24053         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
24054         INLINE_SYSCALL_ERROR_RETURN_VALUE.
24055         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
24056         Likewise.
24057         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
24058         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
24059         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
24060         INTERNAL_SYSCALLINTERNAL_SYSCALL and
24061         INLINE_SYSCALL_ERROR_RETURN_VALUE.
24062         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
24063         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
24064         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
24065         Likewise.
24066         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
24067
24068 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
24069
24070         [BZ #19125]
24071         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
24072         <math_private.h> and <stdint.h>.
24073         (__llround): Avoid conversions to and from long long int, and
24074         subtractions, where those might raise spurious exceptions.
24075         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
24076         <math_private.h> and <stdint.h>.
24077         (__llroundf): Avoid conversions to and from long long int, and
24078         subtractions, where those might raise spurious exceptions.
24079
24080 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
24081
24082         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
24083         INLINE_SYSCALL_ERROR_RETURN_VALUE.
24084         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
24085         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
24086         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
24087         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
24088         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
24089         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
24090         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
24091         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
24092         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
24093         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
24094         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
24095         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
24096         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
24097         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
24098         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
24099         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
24100         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
24101         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
24102         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
24103         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
24104         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
24105         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
24106         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
24107         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
24108         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
24109         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
24110         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
24111         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
24112         (__xstat64_conv): Likewise.
24113         (__xstat32_conv): Likewise.
24114
24115 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
24116
24117         * sysdeps/unix/sysv/linux/sysdep.h: New file.
24118         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
24119         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
24120         <sysdeps/unix/sysv/linux/sysdep.h>.
24121         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24122         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
24123         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
24124         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24125         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24126         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
24127         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
24128         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
24129         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
24130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24132         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24133         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24134         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24135         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
24136         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24137         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
24138         (sysdep-dl-routines): Add sysdep.
24139         [$(subdir) == nptl] (libpthread-routines): Likewise.
24140         [$(subdir) == rt] (librt-routines): Likewise.
24141         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
24142         PIC when branching to SYSCALL_ERROR_LABEL.
24143         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
24144         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
24145         <sysdeps/unix/sysv/linux/sysdep.h>.
24146         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
24147         (SYSCALL_ERROR_ERRNO): Removed.
24148         (SYSCALL_ERROR_HANDLER): Changed to empty.
24149         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
24150         (__syscall_error): New prototype.
24151         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
24152         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
24153
24154 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
24155
24156         [BZ #19124]
24157         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
24158         (_dl_runtime_resolve_avx512): Make it a hidden alias of
24159         _dl_runtime_resolve_avx.
24160         (_dl_runtime_profile_avx512): Make it a hidden alias of
24161         _dl_runtime_profile_avx.
24162
24163 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
24164
24165         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
24166         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
24167         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
24168         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
24169
24170         [BZ #16422]
24171         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
24172         New configure test.
24173         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
24174         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
24175         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
24176         <math_private.h> and <stdint.h>.
24177         (__llrint): Avoid conversions to long long int where those might
24178         raise spurious exceptions.
24179         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
24180         <math_private.h> and <stdint.h>.
24181         (__llrintf): Avoid conversions to long long int where those might
24182         raise spurious exceptions.
24183
24184 2015-10-12  Andreas Schwab  <schwab@suse.de>
24185
24186         [BZ #18969]
24187         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
24188         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
24189         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
24190         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
24191         $(gen-locales).
24192         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
24193         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
24194         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
24195         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
24196         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
24197         $(gen-locales).
24198         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
24199         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
24200         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
24201         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
24202         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
24203         ($(objpfx)tst-ftell-active-handler.out)
24204         ($(objpfx)tst-ftell-append.out)
24205         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
24206         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
24207         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
24208         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
24209         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
24210         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
24211         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
24212         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
24213         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
24214         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
24215         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
24216         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
24217         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
24218         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
24219         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
24220         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
24221         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
24222         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
24223         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
24224         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
24225         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
24226         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
24227         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
24228         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
24229         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
24230         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
24231         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
24232         $(gen-locales).
24233         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
24234         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
24235         $(gen-locales).
24236         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
24237         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
24238         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
24239         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
24240         $(gen-locales).
24241         * libio/tst_wprintf2.c (main): Use explicit locale.
24242         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
24243
24244 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24245
24246         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
24247         __msg_sig_post.
24248         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
24249
24250 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24251
24252         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
24253         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
24254
24255         * sysdeps/arm/libm-test-ulps: Regenerated.
24256
24257         [BZ #15470]
24258         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
24259
24260         [BZ #16399]
24261         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
24262         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
24263         and <fix-fp-int-convert-overflow.h>.
24264         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
24265         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24266         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
24267         and <fix-fp-int-convert-overflow.h>.
24268         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
24269         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24270         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
24271         <fix-fp-int-convert-overflow.h>.
24272         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
24273         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24274         * sysdeps/ieee754/dbl-64/s_lround.c: Include
24275         <fix-fp-int-convert-overflow.h>.
24276         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
24277         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24278         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
24279         and <fix-fp-int-convert-overflow.h>.
24280         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24281         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24282         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
24283         <limits.h> and <fix-fp-int-convert-overflow.h>.
24284         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24285         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24286         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
24287         and <fix-fp-int-convert-overflow.h>.
24288         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
24289         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24290         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
24291         and <fix-fp-int-convert-overflow.h>.
24292         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
24293         FIX_DBL_LLONG_CONVERT_OVERFLOW.
24294         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
24295
24296 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
24297
24298         [BZ #18589]
24299         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
24300         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
24301         $(gen-locales).
24302
24303 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24304             Phil Blundell <pb@pbcl.net>
24305
24306         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
24307         * nptl/tst-cancel26.c: New file.
24308         * nptl/tst-cancel27.c: Likewise.
24309
24310 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
24311
24312         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
24313         __ILP32__ isn't defined.
24314         (lrint): Likewise.
24315         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
24316         (lrintf): Likewise.
24317         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
24318         (lrintl): Likewise.
24319         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
24320         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
24321         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
24322
24323 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
24324
24325         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
24326         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
24327
24328         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
24329         file.
24330         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
24331         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
24332
24333 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
24334
24335         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
24336         configure test.
24337         * sysdeps/i386/configure: Regenerated.
24338         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
24339         configure test.
24340         * sysdeps/x86_64/configure: Regenerated.
24341         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
24342         Make code unconditional.
24343
24344         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
24345         test.
24346         * sysdeps/i386/configure: Regenerated.
24347         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
24348         test.
24349         * sysdeps/x86_64/configure: Regenerated.
24350         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
24351         Make code unconditional.
24352         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
24353         Likewise.
24354         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
24355         Likewise.
24356         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24357         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
24358         code unconditional.
24359         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24360         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
24361         code unconditional.
24362         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24363         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
24364         code unconditional.
24365         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
24366         code unconditional.
24367         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24368         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
24369         code unconditional.
24370         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24371         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
24372         code unconditional.
24373         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24374         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
24375         code unconditional.
24376         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24377         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
24378         code unconditional.
24379         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
24380         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
24381
24382         [BZ #19095]
24383         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
24384         mantissa to long int before shifting left.
24385
24386 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24387
24388         [BZ #19094]
24389         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
24390         <limits.h>.
24391         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24392         when result overflows but exception would not result from cast.
24393         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
24394         <limits.h>.
24395         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24396         when result overflows but exception would not result from cast.
24397         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
24398         <limits.h>.
24399         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24400         when result overflows but exception would not result from cast.
24401         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
24402         <limits.h>.
24403         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24404         when result overflows but exception would not result from cast.
24405         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
24406         <limits.h>.
24407         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
24408         when result overflows but exception would not result from cast.
24409         * math/libm-test.inc (lrint_test_data): Add more tests.
24410         (llrint_test_data): Likewise.
24411
24412 2015-10-08  Roland McGrath  <roland@hack.frob.com>
24413
24414         [BZ #18872]
24415         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
24416         Move out from under [$(run-built-tests) = yes] conditional.
24417         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
24418         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
24419
24420 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
24421
24422         [BZ #18589]
24423         * string/Makefile (tests): Add bug-strcoll2.
24424         (LOCALES): Add cs_CZ.UTF-8.
24425         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
24426
24427         [BZ #18589]
24428         * string/bug-strcoll2.c: New file.
24429         * locale/categories.def: Revert commit
24430         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
24431         * locale/langinfo.h: Likewise.
24432         * locale/localeinfo.h: Likewise.
24433         * locale/C-collate.c: Likewise.
24434         * locale/programs/ld-collate.c (collate_output): Likewise.
24435         * string/strcoll_l.c (STRDIFF): Likewise.
24436         (STRCOLL): Likewise.
24437         * wcsmbs/wcscoll_l.c: Likewise.
24438
24439 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
24440
24441         * math/libm-test.inc (lround_test_data): Do not expect the absence
24442         of "inexact" for some tests with non-integer arguments.
24443         (llround_test_data): Likewise.
24444
24445         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
24446         test.
24447         (libc_cv_cc_sse2avx): Likewise.
24448         * sysdeps/i386/configure: Regenerated.
24449         * sysdeps/i386/i686/multiarch/Makefile
24450         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
24451         [$(subdir) = math].
24452         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
24453         code unconditional.
24454         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24455         Likewise.
24456         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
24457         Likewise.
24458         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24459         Likewise.
24460         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
24461         test.
24462         (libc_cv_cc_sse2avx): Likewise.
24463         * sysdeps/x86_64/configure: Regenerated.
24464         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
24465         unconditional.
24466         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
24467         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
24468         unconditional.
24469         (_dl_runtime_profile)
24470         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
24471         conditional code.
24472         * sysdeps/x86_64/fpu/multiarch/Makefile
24473         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
24474         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
24475         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24476         * sysdeps/x86_64/fpu/multiarch/e_exp.c
24477         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24478         * sysdeps/x86_64/fpu/multiarch/e_log.c
24479         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24480         * sysdeps/x86_64/fpu/multiarch/s_atan.c
24481         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24482         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
24483         Likewise.
24484         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
24485         Likewise.
24486         * sysdeps/x86_64/fpu/multiarch/s_sin.c
24487         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24488         * sysdeps/x86_64/fpu/multiarch/s_tan.c
24489         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
24490         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
24491         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
24492         (HAVE_SSE2AVX_SUPPORT): Likewise.
24493
24494 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
24495
24496         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
24497         instead of #pragma optimize.
24498
24499 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24500
24501         [BZ #17195]
24502         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
24503         as is similarly done in systrim and _int_free already.
24504
24505 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24506
24507         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
24508
24509 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24510
24511         [BZ #19088]
24512         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
24513         <limits.h>.
24514         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24515         overflows but exception would not result from cast.
24516         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
24517         and <limits.h>.
24518         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
24519         overflows but exception would not result from cast.
24520         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
24521         <limits.h>.
24522         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24523         overflows but exception would not result from cast.
24524         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
24525         <limits.h>.
24526         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24527         overflows but exception would not result from cast.
24528         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
24529         <limits.h>.
24530         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
24531         overflows but exception would not result from cast.
24532         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
24533         <limits.h>.
24534         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
24535         overflows but exception would not result from cast.
24536         * math/libm-test.inc (lround_test_data): Add more tests.
24537         (llround_test_data): Likewise.
24538
24539 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
24540
24541         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
24542         (CFLAGS-ialloc.c): Ditto.
24543         (CFLAGS-scheck.c): Ditto.
24544
24545 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
24546
24547         [BZ #19086]
24548         * manual/filesys.texi (Storage Allocation): Fix argument order for
24549         posix_fallocate64.
24550
24551 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24552
24553         [BZ #19085]
24554         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
24555         exponent below 48 inside case for non-overflowing exponent.
24556         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
24557
24558 2015-10-07  Florian Weimer  <fweimer@redhat.com>
24559
24560         * iconvdata/cp737.h (from_idx): Add const.
24561         * iconvdata/cp775.h (from_idx): Likewise.
24562
24563 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
24564
24565         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
24566         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
24567         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
24568
24569         [BZ #19079]
24570         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
24571         file, conditioned on [!_LP64].
24572         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
24573         [!_LP64] (__lround): Do not define as function or alias.
24574         [!_LP64] (lround): Likewise.
24575         [!_LP64] (__lroundl): Likewise.
24576         [!_LP64] (lroundl): Likewise.
24577         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
24578         macro.
24579         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
24580         Likewise.
24581
24582 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24583
24584         * math/libm-test.inc (lrint_test_data): Add more tests.
24585         (llrint_test_data): Likewise.
24586         (lround_test_data): Likewise.
24587         (llround_test_data): Likewise.
24588
24589         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
24590         (llrint_test_data): Add tests used for lrint.
24591
24592         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
24593         test.
24594         * sysdeps/i386/configure: Regenerated.
24595         * sysdeps/i386/i686/multiarch/Makefile
24596         [$(config-cflags-sse4) = yes]: Make code unconditional.
24597         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24598         Likewise.
24599         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
24600         Likewise.
24601         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
24602         test.
24603         * sysdeps/x86_64/configure: Regenerated.
24604         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
24605         Make code unconditional.
24606         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
24607         Likewise.
24608         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
24609         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
24610
24611         * scripts/rpm2dynsym.sh: Remove file.
24612
24613 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24614
24615         * configure.ac (libc_cv_cxx_thread_local): Define.
24616         * configure: Regenerate.
24617         * config.make.in (have-cxx-thread_local): Define.
24618         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
24619         (LDLIBS-tst-thread_local1): Define.
24620         (tests): Add tst-thread_local1.
24621         [have-cxx-thread_local != yes] (tests-unsupported): Add
24622         tst-thread_local1.
24623         * nptl/tst-thread_local1.cc: New file.
24624
24625 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
24626
24627         [BZ #19078]
24628         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
24629         (u_thres): Likewise.
24630         (__expl): Determine whether to call __kernel_standard_l based on
24631         value of result, not argument.
24632
24633         * math/libm-test.inc (scalb_test_data): Add more expectations for
24634         the "inexact" exception.
24635
24636         [BZ #19077]
24637         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
24638         0.0L for argument 1.0L.
24639
24640         [BZ #19076]
24641         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
24642         constant 0.0L when computing infinite result.
24643
24644 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24645
24646         [BZ #10432]
24647         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
24648         malloc_usable_size.
24649
24650 2015-10-06  Florian Weimer  <fweimer@redhat.com>
24651
24652         [BZ #19018]
24653         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
24654         Mangle function pointer before storing it.
24655         (__call_tls_dtors): Demangle function pointer before calling it.
24656
24657 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24658
24659         [BZ #19012]
24660         * iconv/gconv_db.c (gen_steps): Check for additional errors.
24661         Clean up on failure.
24662
24663 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
24664
24665         [BZ #19071]
24666         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
24667         long int variable to store possibly incremented high part of
24668         mantissa.
24669         * math/libm-test.inc (lround_test_data): Add tests used for
24670         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
24671         for tests requiring 64-bit long.  Do not condition tests on
24672         [TEST_FLOAT] unnecessarily.
24673         (llround_test_data): Add tests used for lround.  Add another
24674         expectation for the "inexact" exception.  Do not condition tests
24675         on [TEST_FLOAT] unnecessarily.
24676
24677         [BZ #887]
24678         [BZ #19049]
24679         [BZ #19050]
24680         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
24681         * sysdeps/ieee754/dbl-64/e_log10.c: Include
24682         <fix-int-fp-convert-zero.h>.
24683         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24684         * sysdeps/ieee754/dbl-64/e_log2.c: Include
24685         <fix-int-fp-convert-zero.h>.
24686         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24687         * sysdeps/ieee754/dbl-64/s_erf.c: Include
24688         <fix-int-fp-convert-zero.h>.
24689         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24690         * sysdeps/ieee754/dbl-64/s_logb.c: Include
24691         <fix-int-fp-convert-zero.h>.
24692         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24693         * sysdeps/ieee754/flt-32/e_log10f.c: Include
24694         <fix-int-fp-convert-zero.h>.
24695         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24696         * sysdeps/ieee754/flt-32/e_log2f.c: Include
24697         <fix-int-fp-convert-zero.h>.
24698         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24699         * sysdeps/ieee754/flt-32/s_erff.c: Include
24700         <fix-int-fp-convert-zero.h>.
24701         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24702         * sysdeps/ieee754/flt-32/s_logbf.c: Include
24703         <fix-int-fp-convert-zero.h>.
24704         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24705         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
24706         <fix-int-fp-convert-zero.h>.
24707         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24708         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
24709         <fix-int-fp-convert-zero.h>.
24710         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
24711         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
24712         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
24713         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
24714         file.
24715         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
24716
24717 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
24718
24719         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
24720
24721 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
24722
24723         [BZ #19059]
24724         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
24725         overflowing computation.
24726         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
24727         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
24728         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
24729         Likewise.
24730         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
24731         Likewise.
24732         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
24733         Likewise.
24734         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
24735         Likewise.
24736         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
24737         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
24738         Likewise.
24739         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
24740         Likewise.
24741         * math/libm-test.inc (nexttoward_test_data): Add more tests.
24742
24743         * nss/rewrite_field.c (__nss_rewrite_field): Use
24744         internal_function.
24745         * nss/valid_field.c (__nss_valid_field): Likewise.
24746         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
24747
24748 2015-10-02  Florian Weimer  <fweimer@redhat.com>
24749
24750         [BZ #18724]
24751         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
24752         (__nss_invalid_field_characters, __nss_valid_field)
24753         (__nss_valid_list_field, __nss_rewrite_field): Declare.
24754         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
24755         tst-field.c: New file.
24756         * nss/Makefile (routines): Add valid_field, rewrite_field.
24757         (tests-static): Define unconditionally.
24758         (tests): Include tests-static.
24759         [build-static-nss] (tests-static): Use append.
24760         [build-static-nss] (tests): Remove modification.
24761         * nss/getent.c (print_group): Call putgrent.  Report error.
24762         (print_gshadow): Call putsgent.  Report error.
24763         (print_passwd): Call putpwent.  Report error.
24764         (print_shadow): Call putspent.  Report error.
24765         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
24766         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
24767         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
24768         name, password, directory, shell fields for valid syntax.  Rewrite
24769         GECOS field to match syntax.
24770         * pwd/Makefile (tests): Add tst-putpwent.
24771         * pwd/tst-putpwent.c: New file.
24772         * grp/putgrent.c (putgrent): Convert to ISO function definition.
24773         Check grName, grpasswd, gr_mem fields for valid syntax.
24774         Change loop variable i to size_t.
24775         * grp/Makefile (tests): Add tst-putgrent.
24776         * grp/tst-putgrent.c: New file.
24777         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
24778         valid syntax.
24779         * shadow/Makefile (tests): Add tst-putspent.
24780         * shadow/tst-putspent.c: New file.
24781         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
24782         sg_mem fields for valid syntax.
24783         * gshadow/Makefile (tests): Add tst-putsgent.
24784         * gshadow/tst-putsgent.c: New file.
24785
24786 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24787
24788         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
24789         assembly instructions.
24790
24791 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
24792
24793         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
24794         prefix from operands.
24795
24796 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
24797
24798         [BZ #16347]
24799         [BZ #19046]
24800         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
24801         <libc-internal.h>.
24802         (MAXLGM): Do not use diagnostic control macros.
24803         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
24804         threshold for ldbl-128ibm.
24805         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
24806         instead of multiplying by log then subtracting.
24807         * math/auto-libm-test-in: Add more tests of lgamma.
24808         * math/auto-libm-test-out: Regenerated.
24809
24810         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
24811         (TYPE_HEX_DIG): Likewise.
24812         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
24813         precisions when printing floating-point numbers.
24814         (check_float_internal): Likewise.
24815
24816 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24817
24818         [BZ #16620]
24819         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
24820         of log (10) rounded downward to 48 bits.
24821         (log10_low): Use corresponding low part of log (10).
24822
24823         [BZ #19032]
24824         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
24825         compute result as (x - x) / (x - x) not as 0 / 0.
24826         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
24827         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
24828
24829         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
24830         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
24831         and expm1.
24832         * math/auto-libm-test-out: Regenerated.
24833         * math/libm-test.inc (acos_test_data): Add more tests.
24834         (asin_test_data): Likewise.
24835         (asinh_test_data): Likewise.
24836         (atan_test_data): Likewise.
24837         (atanh_test_data): Likewise.
24838         (atan2_test_data): Likewise.
24839         (cbrt_test_data): Likewise.
24840         (ceil_test_data): Likewise.
24841         (copysign_test_data): Likewise.
24842         (cos_test_data): Likewise.
24843         (cosh_test_data): Likewise.
24844         (erf_test_data): Likewise.
24845         (erfc_test_data): Likewise.
24846         (exp_test_data): Likewise.
24847         (exp10_test_data): Likewise.
24848         (exp2_test_data): Likewise.
24849         (expm1_test_data): Likewise.
24850         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24851
24852 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
24853
24854         [BZ #19006]
24855         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
24856         to ...
24857         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
24858         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
24859         to ...
24860         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
24861         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
24862         to ...
24863         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
24864         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
24865         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
24866         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
24867         to ...
24868         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
24869         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
24870         Moved to ...
24871         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
24872         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
24873         Moved to ...
24874         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
24875         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
24876         to ...
24877         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
24878         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
24879         Moved to ...
24880         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
24881         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
24882         to ...
24883         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
24884         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
24885         Removed.
24886         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
24887         Likewise.
24888         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
24889         Likewise.
24890         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
24891         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
24892         Likewise.
24893         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
24894         Likewise.
24895         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
24896         Likewise.
24897         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
24898         Likewise.
24899         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
24900         Likewise.
24901         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
24902         Likewise.
24903         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
24904         Likewise.
24905         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
24906         Likewise.
24907         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
24908         Likewise.
24909         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
24910         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
24911         Likewise.
24912         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
24913         Likewise.
24914         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
24915         Likewise.
24916         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
24917         Likewise.
24918         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
24919         Likewise.
24920         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
24921         Replace ../i486/pthread_cond_timedwait.S with
24922         ../pthread_cond_timedwait.S.
24923
24924 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
24925
24926         * math/libm-test.inc (acos_test_data): Refine expectations for
24927         errno and "inexact" exceptions.
24928         (acosh_test_data): Likewise.
24929         (asin_test_data): Likewise.
24930         (asinh_test_data): Likewise.
24931         (atan_test_data): Likewise.
24932         (atanh_test_data): Likewise.
24933         (atan2_test_data): Likewise.
24934         (cbrt_test_data): Likewise.
24935         (ceil_test_data): Likewise.
24936         (copysign_test_data): Likewise.
24937         (cosh_test_data): Likewise.
24938         (erf_test_data): Likewise.
24939         (erfc_test_data): Likewise.
24940         (exp_test_data): Likewise.
24941         (exp10_test_data): Likewise.
24942         (exp2_test_data): Likewise.
24943         (expm1_test_data): Likewise.
24944         (fabs_test_data): Likewise.
24945         (floor_test_data): Likewise.
24946         (fma_test_data): Likewise.
24947         (fmax_test_data): Likewise.
24948         (fmin_test_data): Likewise.
24949         (fmod_test_data): Likewise.
24950         (fpclassify_test_data): Likewise.
24951         (frexp_test_data): Likewise.
24952         (hypot_test_data): Likewise.
24953         (ilogb_test_data): Likewise.
24954         (isgreater_test_data): Likewise.
24955         (isgreaterequal_test_data): Likewise.
24956         (isinf_test_data): Likewise.
24957         (isless_test_data): Likewise.
24958         (islessequal_test_data): Likewise.
24959         (islessgreater_test_data): Likewise.
24960         (isnan_test_data): Likewise.
24961         (isnormal_test_data): Likewise.
24962         (issignaling_test_data): Likewise.
24963         (isunordered_test_data): Likewise.
24964         (j0_test_data): Likewise.
24965         (j1_test_data): Likewise.
24966         (jn_test_data): Likewise.
24967         (lgamma_test_data): Likewise.
24968         (lrint_test_data): Likewise.
24969         (llrint_test_data): Likewise.
24970         (log_test_data): Likewise.
24971         (log10_test_data): Likewise.
24972         (log1p_test_data): Likewise.
24973         (log2_test_data): Likewise.
24974         (logb_test_data): Likewise.
24975         (lround_test_data): Likewise.
24976         (llround_test_data): Likewise.
24977         (modf_test_data): Likewise.
24978         (nearbyint_test_data): Likewise.
24979         (nextafter_test_data): Likewise.
24980         (nexttoward_test_data): Likewise.
24981         (pow_test_data): Likewise.
24982         (remainder_test_data): Likewise.
24983         (remquo_test_data): Likewise.
24984         (rint_test_data): Likewise.
24985         (round_test_data): Likewise.
24986         (signbit_test_data): Likewise.
24987         (sinh_test_data): Likewise.
24988         (sqrt_test_data): Likewise.
24989         (tanh_test_data): Likewise.
24990         (tgamma_test_data): Likewise.
24991         (trunc_test_data): Likewise.
24992         (y0_test_data): Likewise.
24993         (y1_test_data): Likewise.
24994         (yn_test_data): Likewise.
24995         (significand_test_data): Likewise.
24996
24997 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
24998
24999         * manual/filesys.texi (Storage Allocation): Document that
25000         posix_fallocate emulation fails when fd is open with O_WRONLY.
25001
25002 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
25003
25004         [BZ #19016]
25005         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
25006         allow more cases with X^2 + Y^2 >= 0.5.
25007         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
25008         normal element in sum instead of special-casing based on values of
25009         arguments.
25010         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
25011         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
25012         -1 as normal element in sum instead of special-casing based on
25013         values of arguments.
25014         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
25015         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
25016         (__x2y2m1): Update comment.
25017         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
25018         as normal element in sum instead of special-casing based on values
25019         of arguments.
25020         * math/s_clog.c (__clog): Handle more cases using log1p without
25021         hypot.
25022         * math/s_clog10.c (__clog10): Likewise.
25023         * math/s_clog10f.c (__clog10f): Likewise.
25024         * math/s_clog10l.c (__clog10l): Likewise.
25025         * math/s_clogf.c (__clogf): Likewise.
25026         * math/s_clogl.c (__clogl): Likewise.
25027         * math/auto-libm-test-in: Add more tests of clog and clog10.
25028         * math/auto-libm-test-out: Regenerated.
25029         * sysdeps/i386/fpu/libm-test-ulps: Update.
25030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25031
25032 2015-09-28  Martin Sebor  <msebor@redhat.com>
25033
25034         [BZ #18969]
25035         * string/Makefile (LOCALES): Define.
25036         (gen-locales.mk): Include.
25037         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
25038         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
25039         * string/tst-strxfrm2.c (do_test): Print the name of the locale
25040         on setlocale failure.
25041
25042 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
25043
25044         [BZ #18985]
25045         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
25046         (__strftime_internal): Likewise.
25047         * time/tst-strftime.c (do_bz18985): New test.
25048         (do_test): Call it.
25049
25050 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
25051
25052         [BZ #18956]
25053         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
25054         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
25055         extracting high part.
25056         * math/auto-libm-test-in: Add another test of pow.
25057         * math/auto-libm-test-out: Regenerated.
25058         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25059
25060 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
25061
25062         [BZ #18825]
25063         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
25064         New macro.
25065         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
25066         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
25067         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
25068         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
25069         DBL_NARROW_EVAL, reloading the PIC register as needed.
25070         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
25071         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
25072         FLT_NARROW_EVAL.  Use separate return path for case when first
25073         argument is NaN.
25074         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
25075         DEFINE_LDBL_MIN.
25076         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
25077         PIC register.
25078         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
25079         math_check_force_underflow_nonneg.
25080         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
25081         underflow for subnormal result.
25082         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
25083         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
25084         math_check_force_underflow_nonneg.
25085         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
25086         math_check_force_underflow.
25087         * sysdeps/x86_64/fpu/x86_64-math-asm.h
25088         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
25089         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
25090         DEFINE_LDBL_MIN.
25091         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
25092         * math/auto-libm-test-in: Add more tests of pow.
25093         * math/auto-libm-test-out: Regenerated.
25094
25095 2015-09-25  Florian Weimer  <fweimer@redhat.com>
25096
25097         * nss/bug17079.c (init_test_items): Add diagnostic for
25098         inconsistent entries.
25099         (test_buffer_size): Skip inconsistent entries.
25100
25101 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
25102
25103         [BZ #13304]
25104         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
25105         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
25106         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
25107
25108         [BZ #13304]
25109         * sysdeps/microblaze/s_fma.c: New file.
25110         * sysdeps/microblaze/s_fmaf.c: Likewise.
25111         * sysdeps/microblaze/sfp-machine.h: Likewise.
25112
25113 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
25114
25115         [BZ #17250]
25116         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
25117         member.
25118
25119 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
25120
25121         [BZ #18803]
25122         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
25123         (MO): New macro.
25124         (__ieee754_hypot) [PIC]: Load PIC register.
25125         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
25126         DBL_NARROW_EVAL.
25127         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
25128         math_check_force_underflow_nonneg in case where result might be
25129         tiny.
25130         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
25131         Likewise.
25132         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
25133         Likewise.
25134         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
25135         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
25136         * math/auto-libm-test-in: Add more tests of hypot.
25137         * math/auto-libm-test-out: Regenerated.
25138
25139 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
25140
25141         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
25142
25143 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
25144
25145         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
25146         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
25147         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
25148         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
25149         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
25150         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
25151         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
25152
25153         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
25154         LOAD_PIC_REG.
25155
25156         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
25157         (FLT_CHECK_FORCE_UFLOW): Likewise.
25158         (DBL_CHECK_FORCE_UFLOW): Likewise.
25159         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
25160         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
25161         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
25162         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
25163         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
25164         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
25165         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
25166         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
25167         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
25168         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25169         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
25170         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
25171         (flt_min): Replace with use of DEFINE_FLT_MIN.
25172         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
25173         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
25174         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25175         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
25176         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
25177         (flt_min): Replace with use of DEFINE_FLT_MIN.
25178         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
25179         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
25180         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25181         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
25182         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
25183         (flt_min): Replace with use of DEFINE_FLT_MIN.
25184         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
25185         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
25186         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
25187         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
25188         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
25189         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
25190         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
25191         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
25192         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25193         (__atan): Use DBL_CHECK_FORCE_UFLOW.
25194         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
25195         (flt_min): Replace with use of DEFINE_FLT_MIN.
25196         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
25197         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
25198         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25199         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
25200         main computation.
25201         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
25202         (flt_min): Replace with use of DEFINE_FLT_MIN.
25203         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
25204         main computation.
25205         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
25206         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25207         (MO): New macro.
25208         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
25209         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
25210         (flt_min): Replace with use of DEFINE_FLT_MIN.
25211         (MO): New macro.
25212         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
25213         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
25214         (__log1pl): Use MO.
25215
25216         [BZ #19003]
25217         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
25218         $(config-cflags-nofma).
25219
25220 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
25221
25222         * sysdeps/aarch64/libm-test-ulps: Regenerated.
25223
25224 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
25225
25226         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
25227         (TWO127): Likewise.
25228
25229         * sysdeps/generic/math_private.h (fabs_tg): New macro.
25230         (min_of_type): Likewise.
25231         (math_check_force_underflow): Likewise.
25232         (math_check_force_underflow_nonneg): Likewise.
25233         (math_check_force_underflow_complex): Likewise.
25234         * math/e_exp2l.c (__ieee754_exp2l): Use
25235         math_check_force_underflow_nonneg.
25236         * math/k_casinh.c (__kernel_casinh): Likewise.
25237         * math/k_casinhf.c (__kernel_casinhf): Likewise.
25238         * math/k_casinhl.c (__kernel_casinhl): Likewise.
25239         * math/s_catan.c (__catan): Use
25240         math_check_force_underflow_complex.
25241         * math/s_catanf.c (__catanf): Likewise.
25242         * math/s_catanh.c (__catanh): Likewise.
25243         * math/s_catanhf.c (__catanhf): Likewise.
25244         * math/s_catanhl.c (__catanhl): Likewise.
25245         * math/s_catanl.c (__catanl): Likewise.
25246         * math/s_ccosh.c (__ccosh): Likewise.
25247         * math/s_ccoshf.c (__ccoshf): Likewise.
25248         * math/s_ccoshl.c (__ccoshl): Likewise.
25249         * math/s_cexp.c (__cexp): Likewise.
25250         * math/s_cexpf.c (__cexpf): Likewise.
25251         * math/s_cexpl.c (__cexpl): Likewise.
25252         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
25253         * math/s_clog10.c (__clog10): Likewise.
25254         * math/s_clog10f.c (__clog10f): Likewise.
25255         * math/s_clog10l.c (__clog10l): Likewise.
25256         * math/s_clogf.c (__clogf): Likewise.
25257         * math/s_clogl.c (__clogl): Likewise.
25258         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
25259         * math/s_csinf.c (__csinf): Likewise.
25260         * math/s_csinh.c (__csinh): Likewise.
25261         * math/s_csinhf.c (__csinhf): Likewise.
25262         * math/s_csinhl.c (__csinhl): Likewise.
25263         * math/s_csinl.c (__csinl): Likewise.
25264         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
25265         * math/s_csqrtf.c (__csqrtf): Likewise.
25266         * math/s_csqrtl.c (__csqrtl): Likewise.
25267         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
25268         * math/s_ctanf.c (__ctanf): Likewise.
25269         * math/s_ctanh.c (__ctanh): Likewise.
25270         * math/s_ctanhf.c (__ctanhf): Likewise.
25271         * math/s_ctanhl.c (__ctanhl): Likewise.
25272         * math/s_ctanl.c (__ctanl): Likewise.
25273         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
25274         instead of volatile.
25275         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
25276         math_check_force_underflow.
25277         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
25278         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
25279         volatile when forcing underflow.
25280         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
25281         math_check_force_underflow_nonneg.
25282         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
25283         Likewise.
25284         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
25285         math_check_force_underflow.
25286         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
25287         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25288         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
25289         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
25290         math_check_force_underflow_nonneg.
25291         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
25292         math_check_force_underflow.
25293         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
25294         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
25295         instead of volatile.
25296         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
25297         math_check_force_underflow.
25298         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
25299         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
25300         math_check_force_underflow_nonneg.
25301         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
25302         math_check_force_underflow.
25303         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
25304         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
25305         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
25306         math_check_force_underflow_nonneg.
25307         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25308         Likewise.
25309         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
25310         math_check_force_underflow.
25311         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
25312         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25313         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
25314         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
25315         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
25316         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
25317         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
25318         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
25319         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
25320         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
25321         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
25322         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
25323         Likewise.
25324         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
25325         math_check_force_underflow_nonneg.
25326         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25327         Likewise.
25328         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
25329         math_check_force_underflow.
25330         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
25331         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
25332         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
25333         Likewise.
25334         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
25335         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
25336         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
25337         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
25338         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
25339         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
25340         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
25341         instead of volatile.
25342         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
25343         math_check_force_underflow.
25344         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
25345         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
25346         math_check_force_underflow.
25347         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
25348         Likewise.
25349         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25350         Use math_check_force_underflow_nonneg.
25351         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
25352         math_check_force_underflow.
25353         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
25354         Likewise.
25355         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
25356         Likewise.
25357         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
25358         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
25359         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
25360         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
25361         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
25362         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
25363         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
25364         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
25365         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
25366         math_check_force_underflow_nonneg.
25367         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
25368         math_check_force_underflow.
25369         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
25370         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
25371         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
25372         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
25373         math_check_force_underflow_nonneg.
25374         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
25375         math_check_force_underflow.
25376         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
25377         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
25378         instead of volatile.
25379         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
25380         math_check_force_underflow.
25381
25382         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
25383         * stdlib/strtod_l.c: Include <math_private.h>.
25384         (overflow_value): Use math_narrow_eval.
25385         (underflow_value): Likewise.
25386         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
25387         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
25388         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
25389         (__ieee754_gamma_r): Likewise.
25390         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
25391         Likewise.
25392         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
25393         Likewise.
25394         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
25395         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
25396         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
25397         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
25398         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
25399         (__ieee754_gammaf_r): Likewise.
25400         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
25401         Likewise.
25402         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
25403         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
25404         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
25405         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
25406         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
25407         volatile.
25408         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
25409         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
25410         math_narrow_eval.
25411         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
25412         Likewise.
25413         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
25414         Likewise.
25415         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
25416         Likewise.
25417         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
25418         volatile.
25419         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
25420         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
25421         math_narrow_eval.
25422         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
25423         Likewise.
25424         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
25425         Likewise.
25426
25427 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
25428
25429         * nptl/Versions: Remove ignored symbols.
25430
25431 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25432
25433         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
25434         * nss/Makefile (tests): Update.
25435
25436 2015-09-22  Florian Weimer  <fweimer@redhat.com>
25437
25438         * nss/bug18287.c: New file.
25439         * nss/Makefile (tests): Add bug18287.
25440
25441 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25442
25443         * mach/Versions (__mach_host_self_): Add symbol.
25444
25445 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25446
25447         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
25448         vm_page_size.
25449
25450 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25451
25452         Really fix sysdeps/i386/fpu/s_scalbn.S build
25453
25454         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
25455         (libc: GLIBC_2_22): Remove unused version set.
25456
25457 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25458
25459         * config.make.in (enable-timezone-tools): New variable.
25460         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
25461         (enable_timezone_tools): Export to generated files.
25462         * configure: Regenerate.
25463         * INSTALL: Regenerate.
25464         * manual/install.texi (--disable-timezone-tools): Document new flag.
25465         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
25466         ifeq ($(enable-timezone-tools),yes) check.
25467
25468 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25469
25470         * timezone/Makefile: Revert previous change.
25471
25472         [BZ #18980]
25473         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
25474         (DEFINE_DBL_MIN): Likewise.
25475         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25476         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
25477         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25478         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
25479         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
25480         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25481         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25482         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
25483         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
25484         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25485         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25486         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
25487         (flt_min): Replace with use of DEFINE_FLT_MIN.
25488         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25489         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
25490         (dbl_min): Replace with use of DEFINE_DBL_MIN.
25491         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
25492         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
25493         (flt_min): Replace with use of DEFINE_FLT_MIN.
25494         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25495         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
25496         (flt_min): Replace with use of DEFINE_FLT_MIN.
25497         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
25498         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
25499         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
25500         (__ieee754_hypot): Use DBL_NARROW_EVAL.
25501         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
25502         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
25503         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
25504         (__ieee754_pow): Use DBL_NARROW_EVAL.
25505         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
25506         (__ieee754_powf): Use FLT_NARROW_EVAL.
25507         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
25508         (__ieee754_expf_sse2): Convert double-precision result to single
25509         precision.
25510         * sysdeps/i386/fpu/libm-test-ulps: Update.
25511
25512 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25513
25514         * timezone/Makefile: Ignore unused variable errors due to private.h
25515         (time_t_min) and (time_t_max).
25516         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
25517         Likewise.
25518
25519 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25520
25521         [BZ #18981]
25522         * sysdeps/i386/fpu/i386-math-asm.h: New file.
25523         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
25524         (__ieee754_scalb): Use DBL_NARROW_EVAL.
25525         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
25526         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
25527         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
25528         (__scalbn): Use DBL_NARROW_EVAL.
25529         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
25530         (__scalbnf): Use FLT_NARROW_EVAL.
25531
25532 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25533
25534         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
25535         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
25536         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
25537         * stdio-common/printf_fp.c (___printf_fp):
25538         Use signbit to get the sign. Use isinf macro to allow inlining.
25539         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
25540         * stdio-common/printf_size.c (__printf_size): Likewise.
25541
25542 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
25543
25544         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
25545
25546 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
25547
25548         [BZ #18980]
25549         * sysdeps/generic/math_private.h: Include <float.h>.
25550         (math_narrow_eval): New macro.
25551         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
25552         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
25553         math_narrow_eval on overflowing return value.
25554         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
25555         Likewise.
25556         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
25557         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
25558         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
25559         Likewise.
25560         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
25561
25562 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25563
25564         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
25565         * math/Makefile: Remove isinf_ns.c.
25566         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
25567         * math/multc3.c (__multc3): Likewise.
25568         * math/s_casin.c (__casin): Likewise.
25569         * math/s_casinf.c (__casinf): Likewise.
25570         * math/s_casinl.c (__casinl): Likewise.
25571         * math/s_cproj.c (__cproj): Likewise.
25572         * math/s_cprojf.c (__cprojf): Likewise.
25573         * math/s_cprojl.c (__cprofl): Likewise.
25574         * math/s_ctan.c (__ctan): Likewise.
25575         * math/s_ctanf.c (__ctanf): Likewise.
25576         * math/s_ctanh.c (__ctanh): Likewise.
25577         * math/s_ctanhf.c (__ctanhf): Likewise.
25578         * math/s_ctanhl.c (__ctanhl): Likewise.
25579         * math/s_ctanl.c (__ctanl): Likewise.
25580         * math/w_fmod.c (__fmod): Likewise.
25581         * math/w_fmodf.c (__fmodf): Likewise.
25582         * math/w_fmodl.c (_fmodl): Likewise.
25583         * math/w_remainder.c (__remainder): Likewise.
25584         * math/w_remainderf.c (__remainderf): Likewise.
25585         * math/w_remainderl.c (__remainderl): Likewise.
25586         * math/w_scalb.c (__scalb): Likewise.
25587         * math/w_scalbf.c (__scalbf): Likewise.
25588         * math/w_scalbl.c (__scalbl): Likewise.
25589         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
25590         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
25591         with isinf.
25592         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
25593         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
25594         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
25595         __isinf_nsf with isinf.
25596         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
25597         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
25598         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
25599         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
25600         with isinf.
25601         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
25602         __isinf_nsl with isinf.
25603         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
25604         with isinf.
25605         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
25606         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
25607         __isinf_nsl with isinf.
25608         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
25609         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
25610         with isinf.
25611
25612 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25613
25614         * resolv/base64.c (rcsid): Remove unused static.
25615         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
25616         static.  (tqpi1): Likewise.
25617         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
25618         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
25619         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
25620         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
25621         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
25622         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
25623         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
25624         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
25625         Likewise.
25626
25627 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
25628
25629         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
25630         <nptl/pthreadP.h>.
25631         (_longjmp_unwind): Use __libc_ptf_call.
25632         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
25633
25634 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
25635
25636         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
25637         * sysdeps/arm/__longjmp.S: Likewise.
25638
25639 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25640
25641         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
25642         Use __builtin_signbit.
25643         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
25644         Use __builtin_signbitf.
25645         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
25646         Use __builtin_signbitl.
25647         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
25648         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
25649
25650 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25651
25652         [BZ #15367]
25653         [BZ #17441]
25654
25655         * math/Makefile: Build test-snan.c with -fsignaling-nans.
25656         * math/math.h (fpclassify): Use __builtin_fpclassify when
25657         available.  (signbit): Use __builtin_signbit(f/l).
25658         (isfinite): Use__builtin_isfinite.  (isnormal): Use
25659         __builtin_isnormal.  (isnan): Use __builtin_isnan.
25660         (isinf): Use __builtin_isinf_sign.
25661
25662 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
25663
25664         * benchtests/Makefile: Add bench-math-inlines, link with libm.
25665         * benchtests/bench-math-inlines.c: New benchmark.
25666         * benchtests/bench-util.h: New file.
25667         * benchtests/bench-util.c: New file.
25668         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
25669
25670 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
25671
25672         * elf/tst-dlmopen1.c: Define TEST_SO.
25673         (do_test): Use TEST_SO.
25674
25675         * elf/dl-load.c: Include libc-internal.h.
25676         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
25677
25678 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25679
25680         [BZ #17887]
25681         * time/strptime_l.c (__strptime_internal): Make %z accept
25682         [+-]HH:MM time zones.
25683
25684 2015-09-18  Vincent Bernat  <vincent@bernat.im>
25685
25686         [BZ #17886]
25687         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
25688         valid time zone.
25689
25690 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
25691
25692         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
25693         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
25694         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
25695         (__ASSUME_FDATASYNC): Delete.
25696
25697 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25698
25699         * conform/linknamespace.pl: Require weak undefined symbols to be
25700         in the standard namespace.
25701         (%strong_syms): Rename to %seen_syms.
25702         (%strong_seen): Rename to %seen_where.
25703
25704 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
25705
25706         [BZ #18970]
25707         * misc/error.c (error): Replace pthread_setcancelstate with
25708         __pthread_setcancelstate.
25709         (error_at_line): Likewise.
25710         * posix/wordexp.c (parse_comm): Likewise.
25711         * stdlib/fmtmsg.c (fmtmsg): Likewise.
25712         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
25713         (__pthread_setcancelstate): This.
25714         (pthread_setcancelstate): Add an alias.
25715         * nptl/nptl-init.c (pthread_functions): Replace
25716         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
25717         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
25718         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
25719         hidden_proto.
25720         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
25721         it with hidden_def.
25722         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
25723         (pthread_setcancelstate): Renamed to ...
25724         (__pthread_setcancelstate): This.
25725         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
25726         __libc_ptf_call with __pthread_setcancelstate.
25727
25728 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25729             Andreas Schwab  <schwab@suse.de>
25730
25731         [BZ #17118]
25732         * math/s_ctan.c (__ctan): Determine sign of zero real part of
25733         result when imaginary part of argument is infinite using sine and
25734         cosine.
25735         * math/s_ctanf.c (__ctanf): Likewise.
25736         * math/s_ctanl.c (__ctanl): Likewise.
25737         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
25738         of result when real part of argument is infinite using sine and
25739         cosine.
25740         * math/s_ctanhf.c (__ctanhf): Likewise.
25741         * math/s_ctanhl.c (__ctanhl): Likewise.
25742         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
25743         (ctanh_test_data): Add more tests of ctanh.
25744
25745 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
25746
25747         [BZ #15384]
25748         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
25749         bit-mask as in subtraction.
25750         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
25751         Likewise.
25752         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
25753         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
25754         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
25755
25756         [BZ #18951]
25757         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
25758         underflow exception for small results.
25759         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
25760         Likewise.
25761         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
25762         Likewise.
25763         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
25764         Likewise.
25765         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
25766         Likewise.
25767         * math/auto-libm-test-in: Add more tests of tgamma.
25768         * math/auto-libm-test-out: Regenerated.
25769
25770 2015-09-17  Andreas Schwab  <schwab@suse.de>
25771
25772         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
25773
25774 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25775
25776         [BZ #18977]
25777         * math/bits/mathcalls.h
25778         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
25779         not declare.
25780         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
25781         Likewise.
25782         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
25783         Likewise.
25784         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
25785         Likewise.
25786         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
25787         Likewise.
25788         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
25789         Likewise.
25790         * conform/data/math.h-data
25791         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
25792         function.
25793         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
25794         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
25795         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
25796         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
25797         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
25798         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
25799         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
25800         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
25801         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
25802         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
25803         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
25804
25805         [BZ #6803]
25806         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
25807         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
25808         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
25809         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
25810         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
25811         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
25812         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
25813         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
25814         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25815         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
25816         Likewise.
25817         [NO_LONG_DOUBLE] (scalbnl): Likewise.
25818         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
25819         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
25820         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
25821         long_double_symbol calls.
25822         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
25823         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
25824         strong alias of __ldexpl.
25825         (scalbnl): Define using long_double_symbol.
25826         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
25827         Remove alias.
25828         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
25829         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
25830         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
25831         (scalbln_test_data): Add more errno expectations.
25832
25833 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
25834
25835         Cache the host port like we cache the task port.  This way we do not
25836         need to call the kernel just to get the port.  Furthermore, we no
25837         longer increase the reference count on every invocation of
25838         `mach_host_self'.
25839
25840         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
25841         Protect declarations against the macro expansion.
25842         * mach/mach_init.c (__mach_host_self_): New variable.
25843         (mach_init): Initialize `__mach_host_self_'.
25844         * mach/mach_init.h (__mach_host_self_): New declaration.
25845         (__mach_host_self, mach_host_self): New macros.
25846         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
25847         Release reference.
25848
25849 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
25850
25851         [BZ #4404]
25852         * po/de.po: Update from Translation Project.
25853
25854         [BZ #16415]
25855         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
25856         (__expm1l): Remove code to handle positive infinity and overflow.
25857         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
25858         variable.
25859         (__expm1l): Remove code to handle positive infinity and overflow.
25860
25861 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
25862             Paul Pluzhnikov  <ppluzhnikov@google.com>
25863
25864         [BZ #18872]
25865         * stdio-common/Makefile (tst-printf-bz18872): New test.
25866         (tst-printf-bz18872-mem.out): Likewise.
25867         * stdio-common/tst-printf-bz18872.sh: Generate new test.
25868         * stdio-common/vfprintf.c: Fix memory leaks.
25869
25870 2015-09-16  Andreas Schwab  <schwab@suse.de>
25871
25872         [BZ #17244]
25873         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
25874         Remove extra va_start/va_end calls.
25875
25876         [BZ #17243]
25877         * posix/execl.c (execl): Add missing va_end.
25878         * posix/execle.c (execle): Likewise.
25879         * posix/execlp.c (execlp): Likewise.
25880
25881 2015-09-15  Roland McGrath  <roland@hack.frob.com>
25882
25883         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
25884         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
25885
25886 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
25887
25888         [BZ #18967]
25889         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
25890         undefine around includes of <bits/mathcalls.h>.
25891         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
25892         not declare function.
25893         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
25894         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
25895         (scalb): Likewise.
25896         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
25897         not define macro.
25898         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
25899         variable.
25900         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
25901         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
25902         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
25903
25904         [BZ #18857]
25905         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
25906         return non-finite argument without doing ordered comparisons on
25907         it.
25908
25909         [BZ #16296]
25910         * math/fenv.h (fegetround): Use __attribute_pure__.
25911         * include/fenv.h (__fegetround): Likewise.
25912
25913         [BZ #18595]
25914         * math/s_ctan.c (__ctan): Force underflow exception for results
25915         whose real or imaginary part has small absolute value.
25916         * math/s_ctanf.c (__ctanf): Likewise.
25917         * math/s_ctanh.c (__ctanh): Likewise.
25918         * math/s_ctanhf.c (__ctanhf): Likewise.
25919         * math/s_ctanhl.c (__ctanhl): Likewise.
25920         * math/s_ctanl.c (__ctanl): Likewise.
25921         * math/auto-libm-test-in: Do not allow missing underflow for ctan
25922         and ctanh.  Add more tests of ctan and ctanh.
25923
25924         [BZ #15918]
25925         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
25926         handling of cases where one argument is an infinity.
25927
25928         [BZ #18875]
25929         [BZ #18966]
25930         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
25931         (MO): New macro.
25932         (__ieee754_exp10): For small results, force underflow exception
25933         and remove excess range and precision from return value.
25934         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
25935         (MO): New macro.
25936         (__ieee754_exp10f): For small results, force underflow exception
25937         and remove excess range and precision from return value.
25938         * math/auto-libm-test-in: Add more tests of exp10.
25939         * math/auto-libm-test-out: Regenerated.
25940
25941 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
25942
25943         [BZ #18875]
25944         [BZ #18961]
25945         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
25946         (MO): New macro.
25947         (__ieee754_exp): For small results, force underflow exception and
25948         remove excess range and precision from return value.
25949         (__exp_finite): Likewise.
25950         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
25951         (MO): New macro.
25952         (__ieee754_expf): For small results, force underflow exception and
25953         remove excess range and precision from return value.
25954         (__expf_finite): Likewise.
25955         * math/auto-libm-test-in: Add more tests of exp.
25956         * math/auto-libm-test-out: Regenerated.
25957
25958         [BZ #16521]
25959         [BZ #18875]
25960         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
25961         small results.
25962         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
25963         (MO): New macro.
25964         (__ieee754_exp2): For small results, force underflow exception and
25965         remove excess range and precision from return value.
25966         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
25967         (MO): New macro.
25968         (__ieee754_exp2f): For small results, force underflow exception
25969         and remove excess range and precision from return value.
25970         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
25971         (MO): New macro.
25972         (__ieee754_exp2l): Force underflow exception for small results.
25973         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
25974         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
25975         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
25976         (MO): New macro.
25977         (__ieee754_exp2l): Force underflow exception for small results.
25978         * math/auto-libm-test-in: Add more tests or exp2.
25979         * math/auto-libm-test-out: Regenerated.
25980
25981 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
25982
25983         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
25984
25985         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
25986         /dev/null.
25987
25988 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25989
25990         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
25991         io fs process)): Drop spurious backslash.
25992
25993 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
25994
25995         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
25996         Use sysinfo system call instead of parsing /proc/meminfo.
25997         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
25998         Likewise.
25999
26000 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
26001
26002         [BZ #16985]
26003         * programs/localedef.c (main): Display argv[remaining] when
26004         output_path is NULL.
26005
26006 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
26007
26008         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
26009         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
26010         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
26011         tanh.
26012         * math/auto-libm-test-out: Regenerated.
26013         * sysdeps/i386/fpu/libm-test-ulps: Update.
26014         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
26015         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
26016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26017
26018 2015-09-11  Roland McGrath  <roland@hack.frob.com>
26019
26020         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
26021         Use 'override' keyword to freeze the value here, preventing
26022         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
26023
26024 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
26025
26026         [BZ #14912]
26027         * sysdeps/aarch64/bits/atomic.h: Move to ...
26028         * sysdeps/aarch64/atomic-machine.h: ...here.
26029         (_AARCH64_BITS_ATOMIC_H): Rename macro to
26030         _AARCH64_ATOMIC_MACHINE_H.
26031         * sysdeps/alpha/bits/atomic.h: Move to ...
26032         * sysdeps/alpha/atomic-machine.h: ...here.
26033         * sysdeps/arm/bits/atomic.h: Move to ...
26034         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
26035         * bits/atomic.h: Move to ...
26036         * sysdeps/generic/atomic-machine.h: ...here.
26037         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26038         * sysdeps/i386/bits/atomic.h: Move to ...
26039         * sysdeps/i386/atomic-machine.h: ...here.
26040         * sysdeps/ia64/bits/atomic.h: Move to ...
26041         * sysdeps/ia64/atomic-machine.h: ...here.
26042         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
26043         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
26044         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26045         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
26046         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
26047         * sysdeps/microblaze/bits/atomic.h: Move to ...
26048         * sysdeps/microblaze/atomic-machine.h: ...here.
26049         * sysdeps/mips/bits/atomic.h: Move to ...
26050         * sysdeps/mips/atomic-machine.h: ...here.
26051         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
26052         * sysdeps/powerpc/bits/atomic.h: Move to ...
26053         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
26054         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
26055         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
26056         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
26057         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
26058         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
26059         <atomic-machine.h> instead of <bits/atomic.h>.
26060         * sysdeps/s390/bits/atomic.h: Move to ...
26061         * sysdeps/s390/atomic-machine.h: ...here.
26062         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
26063         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
26064         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26065         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
26066         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
26067         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
26068         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
26069         * sysdeps/tile/bits/atomic.h: Move to ...
26070         * sysdeps/tile/atomic-machine.h: ...here.
26071         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
26072         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
26073         <sysdeps/tile/atomic-machine.h> instead of
26074         <sysdeps/tile/bits/atomic.h>.
26075         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26076         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
26077         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
26078         <sysdeps/tile/atomic-machine.h> instead of
26079         <sysdeps/tile/bits/atomic.h>.
26080         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26081         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
26082         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
26083         <sysdeps/arm/atomic-machine.h> instead of
26084         <sysdeps/arm/bits/atomic.h>.
26085         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
26086         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
26087         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26088         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
26089         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
26090         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
26091         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
26092         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
26093         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
26094         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
26095         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
26096         * sysdeps/x86_64/bits/atomic.h: Move to ...
26097         * sysdeps/x86_64/atomic-machine.h: ...here.
26098         * include/atomic.h: Include <atomic-machine.h> instead of
26099         <bits/atomic.h>.
26100
26101         * sysdeps/mips/mips32/libm-test-ulps: Update.
26102         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
26103
26104         [BZ #18952]
26105         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
26106         not convert non-integer negative arguments to int to determine the
26107         value of signgam.
26108         * math/auto-libm-test-in: Add more tests of lgamma.
26109         * math/auto-libm-test-out: Regenerated.
26110
26111         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
26112         cosh, csqrt, erfc, expm1 and lgamma.
26113         * math/auto-libm-test-out: Regenerated.
26114         * sysdeps/i386/fpu/libm-test-ulps: Update.
26115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26116
26117 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
26118
26119         [BZ #2542]
26120         [BZ #2543]
26121         [BZ #2558]
26122         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
26123         __lgamma_neg for arguments from -28.0 to -2.0.
26124         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
26125         __lgamma_negf for arguments from -15.0 to -2.0.
26126         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26127         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
26128         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
26129         Call __lgamma_negl for arguments from -33.0 to -2.0.
26130         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
26131         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
26132         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
26133         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
26134         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
26135         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
26136         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
26137         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
26138         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
26139         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
26140         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
26141         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
26142         (__lgamma_neg): Likewise.
26143         (__lgamma_negl): Likewise.
26144         (__lgamma_product): Likewise.
26145         (__lgamma_productl): Likewise.
26146         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
26147         * math/auto-libm-test-in: Add more tests of lgamma.
26148         * math/auto-libm-test-out: Regenerated.
26149         * sysdeps/i386/fpu/libm-test-ulps: Update.
26150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26151
26152 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
26153
26154         [BZ #18675]
26155         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
26156
26157 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26158
26159         [BZ #14912]
26160         * bits/libc-lock.h: Move to ...
26161         * sysdeps/generic/libc-lock.h: ...here.
26162         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26163         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
26164         * sysdeps/mach/hurd/libc-lock.h: ...here.
26165         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26166         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
26167         * sysdeps/mach/bits/libc-lock.h: Move to ...
26168         * sysdeps/mach/libc-lock.h: ...here.
26169         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26170         * sysdeps/nptl/bits/libc-lock.h: Move to ...
26171         * sysdeps/nptl/libc-lock.h: ...here.
26172         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
26173         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
26174         * sysdeps/nptl/libc-lockP.h: ...here.
26175         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
26176         * crypt/crypt_util.c: Include <libc-lock.h> instead of
26177         <bits/libc-lock.h>.
26178         * dirent/scandir-tail.c: Likewise.
26179         * dlfcn/dlerror.c: Likewise.
26180         * elf/dl-close.c: Likewise.
26181         * elf/dl-iteratephdr.c: Likewise.
26182         * elf/dl-lookup.c: Likewise.
26183         * elf/dl-open.c: Likewise.
26184         * elf/dl-support.c: Likewise.
26185         * elf/dl-writev.h: Likewise.
26186         * elf/rtld.c: Likewise.
26187         * grp/fgetgrent.c: Likewise.
26188         * gshadow/fgetsgent.c: Likewise.
26189         * gshadow/sgetsgent.c: Likewise.
26190         * iconv/gconv_conf.c: Likewise.
26191         * iconv/gconv_db.c: Likewise.
26192         * iconv/gconv_dl.c: Likewise.
26193         * iconv/gconv_int.h: Likewise.
26194         * iconv/gconv_trans.c: Likewise.
26195         * include/link.h: Likewise.
26196         * inet/getnameinfo.c: Likewise.
26197         * inet/getnetgrent.c: Likewise.
26198         * inet/getnetgrent_r.c: Likewise.
26199         * intl/bindtextdom.c: Likewise.
26200         * intl/dcigettext.c: Likewise.
26201         * intl/finddomain.c: Likewise.
26202         * intl/gettextP.h: Likewise.
26203         * intl/loadmsgcat.c: Likewise.
26204         * intl/localealias.c: Likewise.
26205         * intl/textdomain.c: Likewise.
26206         * libidn/idn-stub.c: Likewise.
26207         * libio/libioP.h: Likewise.
26208         * locale/duplocale.c: Likewise.
26209         * locale/freelocale.c: Likewise.
26210         * locale/newlocale.c: Likewise.
26211         * locale/setlocale.c: Likewise.
26212         * login/getutent_r.c: Likewise.
26213         * login/getutid_r.c: Likewise.
26214         * login/getutline_r.c: Likewise.
26215         * login/utmp-private.h: Likewise.
26216         * login/utmpname.c: Likewise.
26217         * malloc/mtrace.c: Likewise.
26218         * misc/efgcvt.c: Likewise.
26219         * misc/error.c: Likewise.
26220         * misc/fstab.c: Likewise.
26221         * misc/getpass.c: Likewise.
26222         * misc/mntent.c: Likewise.
26223         * misc/syslog.c: Likewise.
26224         * nis/nis_call.c: Likewise.
26225         * nis/nis_callback.c: Likewise.
26226         * nis/nss-default.c: Likewise.
26227         * nis/nss_compat/compat-grp.c: Likewise.
26228         * nis/nss_compat/compat-initgroups.c: Likewise.
26229         * nis/nss_compat/compat-pwd.c: Likewise.
26230         * nis/nss_compat/compat-spwd.c: Likewise.
26231         * nis/nss_nis/nis-alias.c: Likewise.
26232         * nis/nss_nis/nis-ethers.c: Likewise.
26233         * nis/nss_nis/nis-grp.c: Likewise.
26234         * nis/nss_nis/nis-hosts.c: Likewise.
26235         * nis/nss_nis/nis-network.c: Likewise.
26236         * nis/nss_nis/nis-proto.c: Likewise.
26237         * nis/nss_nis/nis-pwd.c: Likewise.
26238         * nis/nss_nis/nis-rpc.c: Likewise.
26239         * nis/nss_nis/nis-service.c: Likewise.
26240         * nis/nss_nis/nis-spwd.c: Likewise.
26241         * nis/nss_nisplus/nisplus-alias.c: Likewise.
26242         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
26243         * nis/nss_nisplus/nisplus-grp.c: Likewise.
26244         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
26245         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
26246         * nis/nss_nisplus/nisplus-network.c: Likewise.
26247         * nis/nss_nisplus/nisplus-proto.c: Likewise.
26248         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
26249         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
26250         * nis/nss_nisplus/nisplus-service.c: Likewise.
26251         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
26252         * nis/ypclnt.c: Likewise.
26253         * nptl/libc_pthread_init.c: Likewise.
26254         * nss/getXXbyYY.c: Likewise.
26255         * nss/getXXent.c: Likewise.
26256         * nss/getXXent_r.c: Likewise.
26257         * nss/nss_db/db-XXX.c: Likewise.
26258         * nss/nss_db/db-netgrp.c: Likewise.
26259         * nss/nss_db/nss_db.h: Likewise.
26260         * nss/nss_files/files-XXX.c: Likewise.
26261         * nss/nss_files/files-alias.c: Likewise.
26262         * nss/nsswitch.c: Likewise.
26263         * posix/regex_internal.h: Likewise.
26264         * posix/wordexp.c: Likewise.
26265         * pwd/fgetpwent.c: Likewise.
26266         * resolv/res_hconf.c: Likewise.
26267         * resolv/res_libc.c: Likewise.
26268         * shadow/fgetspent.c: Likewise.
26269         * shadow/lckpwdf.c: Likewise.
26270         * shadow/sgetspent.c: Likewise.
26271         * socket/opensock.c: Likewise.
26272         * stdio-common/reg-modifier.c: Likewise.
26273         * stdio-common/reg-printf.c: Likewise.
26274         * stdio-common/reg-type.c: Likewise.
26275         * stdio-common/vfprintf.c: Likewise.
26276         * stdio-common/vfscanf.c: Likewise.
26277         * stdlib/abort.c: Likewise.
26278         * stdlib/cxa_atexit.c: Likewise.
26279         * stdlib/fmtmsg.c: Likewise.
26280         * stdlib/random.c: Likewise.
26281         * stdlib/setenv.c: Likewise.
26282         * string/strsignal.c: Likewise.
26283         * sunrpc/auth_none.c: Likewise.
26284         * sunrpc/bindrsvprt.c: Likewise.
26285         * sunrpc/create_xid.c: Likewise.
26286         * sunrpc/key_call.c: Likewise.
26287         * sunrpc/rpc_thread.c: Likewise.
26288         * sysdeps/arm/backtrace.c: Likewise.
26289         * sysdeps/generic/ldsodefs.h: Likewise.
26290         * sysdeps/generic/stdio-lock.h: Likewise.
26291         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
26292         * sysdeps/i386/backtrace.c: Likewise.
26293         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
26294         * sysdeps/m68k/backtrace.c: Likewise.
26295         * sysdeps/mach/hurd/cthreads.c: Likewise.
26296         * sysdeps/mach/hurd/dirstream.h: Likewise.
26297         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26298         * sysdeps/nptl/malloc-machine.h: Likewise.
26299         * sysdeps/nptl/stdio-lock.h: Likewise.
26300         * sysdeps/posix/dirstream.h: Likewise.
26301         * sysdeps/posix/getaddrinfo.c: Likewise.
26302         * sysdeps/posix/system.c: Likewise.
26303         * sysdeps/pthread/aio_suspend.c: Likewise.
26304         * sysdeps/s390/s390-32/backtrace.c: Likewise.
26305         * sysdeps/s390/s390-64/backtrace.c: Likewise.
26306         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
26307         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
26308         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
26309         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
26310         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
26311         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26312         * sysdeps/unix/sysv/linux/system.c: Likewise.
26313         * sysdeps/x86_64/backtrace.c: Likewise.
26314         * time/alt_digit.c: Likewise.
26315         * time/era.c: Likewise.
26316         * time/tzset.c: Likewise.
26317         * wcsmbs/wcsmbsload.c: Likewise.
26318         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
26319         instead of <bits/libc-lock.h> in comment.
26320
26321 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
26322
26323         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
26324         Only use .set mips2 if the current ISA is below mips2.
26325         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
26326         Likewise.
26327         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
26328         mips32r2 if the current ISA is below mips32r2.
26329         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
26330         (TLS_IE): Updated to use the TLD_RDHWR macro.
26331         (TLS_LE): Likewise.
26332         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
26333         __ASSEMBLER__ condition.
26334
26335 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26336
26337         Fix parallel build of before-compile targets.
26338
26339         * sysdeps/mach/Makefile ($(patsubst
26340         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
26341         mach-before-compile target.
26342         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26343         io fs process)): Move rule to dedicated hurd-before-compile target.
26344
26345 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26346
26347         Fix rules generating headers in hurd/ and mach/ when initial make call
26348         has subdir= explicitly set.
26349
26350         * sysdeps/mach/Makefile ($(patsubst
26351         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
26352         calling $(MAKE).
26353         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
26354         io fs process)): Force subdir to hurd when calling $(MAKE).
26355         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
26356         subdir to mach when calling $(MAKE).
26357
26358 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
26359
26360         Check sysheaders when looking for Mach and Hurd headers
26361
26362         * sysdeps/mach/configure.ac: Add sysheaders check.
26363         * sysdeps/mach/configure: Regenerate.
26364         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
26365         * sysdeps/mach/hurd/configure: Regenerate.
26366
26367 2015-09-04  Roland McGrath  <roland@hack.frob.com>
26368
26369         [BZ #18921]
26370         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
26371         Fix inverted sense of test of 'o_directory_works' value.
26372         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
26373         Bernhard Voelker <mail@bernhard-voelker.de>.
26374
26375 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26376
26377         [BZ #14912]
26378         * bits/linkmap.h: Move to ...
26379         * sysdeps/generic/linkmap.h: ...here.
26380         * sysdeps/aarch64/bits/linkmap.h: Move to ...
26381         * sysdeps/aarch64/linkmap.h: ...here.
26382         * sysdeps/arm/bits/linkmap.h: Move to ...
26383         * sysdeps/arm/linkmap.h: ...here.
26384         * sysdeps/hppa/bits/linkmap.h: Move to ...
26385         * sysdeps/hppa/linkmap.h: ...here.
26386         * sysdeps/ia64/bits/linkmap.h: Move to ...
26387         * sysdeps/ia64/linkmap.h: ...here.
26388         * sysdeps/mips/bits/linkmap.h: Move to ...
26389         * sysdeps/mips/linkmap.h: ...here.
26390         * sysdeps/s390/bits/linkmap.h: Move to ...
26391         * sysdeps/s390/linkmap.h: ...here.
26392         * sysdeps/sh/bits/linkmap.h: Move to ...
26393         * sysdeps/sh/linkmap.h: ...here.
26394         * sysdeps/x86/bits/linkmap.h: Move to ...
26395         * sysdeps/x86/linkmap.h: ...here.
26396         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
26397
26398 2015-09-04  Andreas Schwab  <schwab@suse.de>
26399
26400         [BZ #18635]
26401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
26402         (__makecontext): Terminate FDE before return label.
26403         (__novec_makecontext): Likewise.
26404
26405 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26406
26407         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
26408         first member of struct sv in syscall macro.
26409
26410 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
26411
26412         [BZ #14912]
26413         * bits/stdio-lock.h: Move to ...
26414         * sysdeps/generic/stdio-lock.h: ...here.
26415         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26416         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
26417         * sysdeps/nptl/stdio-lock.h: ...here.
26418         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
26419         * include/libio.h: Include <stdio-lock.h> instead of
26420         <bits/stdio-lock.h>.
26421         * sysdeps/nptl/fork.c: Likewise.
26422         * sysdeps/pthread/flockfile.c: Likewise.
26423         * sysdeps/pthread/ftrylockfile.c: Likewise.
26424         * sysdeps/pthread/funlockfile.c: Likewise.
26425
26426         [BZ #14912]
26427         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
26428         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
26429         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
26430         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
26431         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
26432         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
26433         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
26434
26435 2015-09-03  Roland McGrath  <roland@hack.frob.com>
26436
26437         * elf/Makefile (test-xfail-tst-protected1a): New variable.
26438         (test-xfail-tst-protected1b): New variable.
26439
26440 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
26441
26442         [BZ #14912]
26443         * bits/libc-tsd.h: Move to ...
26444         * sysdeps/generic/libc-tsd.h: ...here.
26445         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
26446         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
26447         * sysdeps/mach/hurd/libc-tsd.h: ...here.
26448         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
26449         * include/ctype.h: Include <libc-tsd.h> instead of
26450         <bits/libc-tsd.h>.
26451         * include/rpc/rpc.h: Likewise.
26452         * locale/localeinfo.h: Likewise.
26453         * sunrpc/rpc_thread.c: Likewise.
26454         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
26455         * sysdeps/nptl/malloc-machine.h: Likewise.
26456
26457         * Makefile (headers): Remove bits/libc-lock.h.
26458         * libio/Makefile (headers): Remove bits/stdio-lock.h.
26459
26460         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
26461         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
26462         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
26463         <bits/stdio-lock.h>.
26464         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
26465         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
26466
26467 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26468
26469         [BZ #18757]
26470         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
26471         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
26472         BZ #18757.
26473
26474 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
26475
26476         * malloc/mtrace.pl: Filter out NULL entries.
26477
26478 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
26479
26480         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
26481         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
26482         macro.
26483
26484         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
26485         (TCP_CC_INFO): Likewise.
26486         (TCP_SAVE_SYN): Likewise.
26487         (TCP_SAVED_SYN): Likewise.
26488
26489 2015-08-31  Brett Neumeier <brett@neumeier.us>
26490
26491         [BZ #18870]
26492         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
26493
26494 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
26495
26496         [BZ #18873]
26497         Fix broken overflow check in posix_fallocate
26498         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
26499         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
26500         Fix parenthesization typo.
26501
26502 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
26503
26504         [BZ #18887]
26505         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
26506         tst-mntent-blank-passno.
26507         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
26508         * misc/tst-mntent-blank-corrupt.c: New test.
26509         * misc/tst-mntent-blank-passno.c: New test ripped from ...
26510         * misc/tst-mntent.c (do_test): ... here.
26511
26512 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
26513
26514         [BZ #4404]
26515         * po/de.po: Fix SIGALRM typo.
26516
26517 2015-08-28  James Perkins  <james@loowit.net>
26518
26519         * time/tst-strptime2.c (tests): Replace short list of test
26520         strings for strptime %z specifier with code which exhaustively
26521         tests every combination of sign and 0 to 5 digits. Tests for
26522         rejection of invalid strings.
26523
26524 2015-08-28  James Perkins  <james@loowit.net>
26525
26526         [BZ #16141]
26527         * time/strptime_l.c (__strptime_internal): Fix %z minutes
26528         calculation, removing incorrect decimal time rounding, so that
26529         all minute values result in a valid seconds value.
26530         * time/strptime_l.c (__strptime_internal): Extend %z time zone
26531         offset range limits to UTC-99:59 through UTC+99:59 to parse
26532         current and historical use cases.
26533         * time/tst-strptime2.c (tests): Modify and add tests for the
26534         strptime %z input field descriptor, specifically conversion of
26535         minutes to seconds and validating an offset range of -9959 to
26536         +9959.
26537
26538 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
26539             Dmitry V. Levin  <ldv@altlinux.org>
26540
26541         [BZ #18877]
26542         * posix/Makefile (tests): Add tst-mmap-offset.
26543         * posix/tst-mmap.c: New file.
26544         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
26545         offset calculation for negative values.
26546
26547 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26548
26549         * sysdeps/i386/init-arch.h: New file.
26550         * sysdeps/i386/i586/init-arch.h: Likewise.
26551         * sysdeps/i386/i686/init-arch.h: Likewise.
26552         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
26553         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
26554         * sysdeps/x86/cpu-features.h (bit_I586): New.
26555         (bit_I686): Likewise.
26556         (bit_CX8): Likewise.
26557         (bit_CMOV): Likewise.
26558         (index_CX8): Likewise.
26559         (index_CMOV): Likewise.
26560         (index_I586): Likewise.
26561         (index_I686): Likewise.
26562         (reg_CX8): Likewise.
26563         (reg_CMOV): Likewise.
26564         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
26565         available at compile-time.
26566         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
26567         available at compile-time.
26568         * sysdeps/x86/init-arch.h (USE_I586): New macro.
26569         (USE_I686): Likewise.
26570
26571 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26572
26573         * sysdeps/i386/bcopy.S: New file.
26574         * sysdeps/i386/bzero.S: Likewise.
26575         * sysdeps/i386/memcpy.S: Likewise.
26576         * sysdeps/i386/memmove.S: Likewise.
26577         * sysdeps/i386/mempcpy.S: Likewise.
26578         * sysdeps/i386/memset.S: Likewise.
26579         * sysdeps/i386/bzero.c: Removed.
26580         * sysdeps/i386/memset.c: Likewise.
26581         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
26582         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
26583         * sysdeps/i386/i586/memset_chk.S: Likewise.
26584         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
26585         * sysdeps/i386/memcpy_chk.S: Here.
26586         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
26587         * sysdeps/i386/memmove_chk.S: Here.
26588         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
26589         * sysdeps/i386/mempcpy_chk.S: Likewise.
26590         * sysdeps/i386/i686/memset_chk.S: Moved to ...
26591         * sysdeps/i386/memset_chk.S: Likewise.
26592
26593 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
26594
26595         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
26596         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
26597         file, move DIAG_POP_NEEDS_COMMENT to end of file.
26598         * soft-fp/fmadf4.c: Ditto.
26599         * soft-fp/fmatf4.c: Ditto.
26600
26601 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26602
26603         * sysdeps/i386/i586/Implies: Removed.
26604         * sysdeps/i386/i686/Implies: Likewise.
26605
26606 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26607
26608         * sysdeps/i386/i486/strlen.S: Moved to ...
26609         * sysdeps/i386/strlen.S: Here.
26610
26611 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26612
26613         * sysdeps/i386/i486/strcat.S: Moved to ...
26614         * sysdeps/i386/strcat.S: Here.
26615
26616 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26617
26618         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
26619         * sysdeps/i386/pthread_spin_trylock.S: Here.
26620         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
26621         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
26622
26623 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26624
26625         * sysdeps/i386/i486/string-inlines.c: Moved to ...
26626         * sysdeps/i386/string-inlines.c: Here.
26627
26628 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26629
26630         * sysdeps/i386/i486/htonl.S: Moved ...
26631         * sysdeps/i386/htonl.S: here.
26632
26633 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26634
26635         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
26636         * sysdeps/i386/bits/atomic.h: Here.
26637
26638 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
26639
26640         * sysdeps/i386/i486/Versions: Removed.
26641
26642 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
26643
26644         [BZ #2898]
26645         * misc/mktemp.c: Add mkdtemp to the link_warning message.
26646         Based on patch by Aurelien Jarno.
26647
26648 2015-08-26  Stan Shebs  <stanshebs@google.com>
26649
26650         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
26651         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
26652
26653 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
26654
26655         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
26656         * sysdeps/powerpc/dl-procinfo.c:
26657         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
26658         feature so it shows when LD_SHOW_AUXV=1.
26659
26660 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
26661
26662         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
26663         (__arch_compare_and_exchange_val_32_acq): Remove and use common
26664         definition.  ISA 2.07B no longer requires full sync.
26665
26666 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
26667
26668         [BZ #18863]
26669         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
26670         (si_call_addr): Define.
26671         (si_syscall): Define.
26672         (si_arch): Define.
26673
26674 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26675
26676         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
26677         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
26678         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
26679         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26680         (__memset_zero_constant_len_parameter): New.
26681         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
26682         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
26683         (__memset_zero_constant_len_parameter): Don't define if
26684         __memset_chk or USE_AS_BZERO are defined.
26685
26686         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
26687         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
26688         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
26689
26690         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
26691         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
26692         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
26693         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
26694         comments.
26695         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
26696         -mno-mmx for $(all-rtld-routines).
26697         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
26698         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
26699         i386.
26700
26701 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
26702
26703         * sysdeps/generic/unwind.h
26704         (_Unwind_Word): Use __mode__(__unwind_word__)
26705         instead of __mode__(__word__).
26706         (_Unwind_Sword): Likewise.
26707
26708         * sysdeps/s390/s390-64/utf8-utf16-z9.c
26709         (MAX_NEEDED_INPUT): New define.
26710         (MAX_NEEDED_OUTPUT): New define.
26711
26712         * NEWS: New item for IBM z13 string optimizations.
26713
26714         * sysdeps/s390/multiarch/memrchr-c.c: New File.
26715         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
26716         * sysdeps/s390/multiarch/memrchr.c: Likewise.
26717         * sysdeps/s390/multiarch/Makefile
26718         (sysdep_routines): Add memrchr functions.
26719         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26720         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
26721
26722         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
26723         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
26724         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
26725         * sysdeps/s390/multiarch/Makefile
26726         (sysdep_routines): Add wmemcmp functions.
26727         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26728         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
26729         * benchtests/bench-wmemcmp.c: New File.
26730         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
26731
26732         * sysdeps/s390/multiarch/wmemset-c.c: New File.
26733         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
26734         * sysdeps/s390/multiarch/wmemset.c: Likewise.
26735         * sysdeps/s390/multiarch/Makefile
26736         (sysdep_routines): Add wmemset functions.
26737         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26738         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
26739         * wcsmbs/wmemset.c: Use WMEMSET if defined.
26740         * string/test-memset.c: Add wmemset support.
26741         * wcsmbs/test-wmemset.c: New File.
26742         * wcsmbs/Makefile (strop-tests): Add wmemset.
26743         * benchtests/bench-memset.c: Add wmemset support.
26744         * benchtests/bench-wmemset.c: New File.
26745         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
26746
26747         * sysdeps/s390/multiarch/memccpy-c.c: New File.
26748         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
26749         * sysdeps/s390/multiarch/memccpy.c: Likewise.
26750         * sysdeps/s390/multiarch/Makefile
26751         (sysdep_routines): Add memccpy functions.
26752         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26753         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
26754         * string/memccpy.c: Use MEMCCPY if defined.
26755
26756         * sysdeps/s390/multiarch/memchr-vx.S: New File.
26757         * sysdeps/s390/multiarch/memchr.c: Likewise.
26758         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
26759         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
26760         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
26761         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
26762         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
26763         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
26764         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
26765         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
26766         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
26767         and rawmemchr functions.
26768         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
26769         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
26770         and wmemchr.
26771         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
26772         * string/test-memchr.c: Add wmemchr support.
26773         * wcsmbs/test-wmemchr.c: New File.
26774         * wcsmbs/Makefile (strop-tests): Add wmemchr.
26775         * benchtests/bench-memchr.c: Add wmemchr support.
26776         * benchtests/bench-wmemchr.c: New File.
26777         * benchtests/Makefile (wcsmbs-bench): wmemchr.
26778
26779         * sysdeps/s390/multiarch/strcspn-c.c: New File.
26780         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
26781         * sysdeps/s390/multiarch/strcspn.c: Likewise.
26782         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
26783         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
26784         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
26785         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
26786         wcscspn functions.
26787         * sysdeps/s390/multiarch/ifunc-impl-list.c
26788         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
26789         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
26790         * string/test-strcspn.c: Add wcscspn support.
26791         * wcsmbs/test-wcscspn.c: New File.
26792         * wcsmbs/Makefile (strop-tests): Add wcscspn.
26793         * benchtests/bench-strcspn.c: Add wcscspn support.
26794         * benchtests/bench-wcscspn.c: New File.
26795         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
26796
26797         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
26798         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
26799         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
26800         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
26801         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
26802         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
26803         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
26804         wcspbrk functions.
26805         * sysdeps/s390/multiarch/ifunc-impl-list.c
26806         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
26807         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
26808         * string/test-strpbrk.c: Add wcspbrk support.
26809         * wcsmbs/test-wcspbrk.c: New File.
26810         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
26811         * benchtests/bench-strpbrk.c: Add wcspbrk support.
26812         * benchtests/bench-wcspbrk.c: New File.
26813         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
26814
26815         * sysdeps/s390/multiarch/strspn-c.c: New File.
26816         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
26817         * sysdeps/s390/multiarch/strspn.c: Likewise.
26818         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
26819         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
26820         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
26821         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
26822         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
26823         wcsspn functions.
26824         * sysdeps/s390/multiarch/ifunc-impl-list.c
26825         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
26826         * string/test-strspn.c: Add wcsspn support.
26827         * wcsmbs/test-wcsspn.c: New File.
26828         * wcsmbs/Makefile (strop-tests): Add wcsspn.
26829         * benchtests/bench-strspn.c: Add wcsspn support.
26830         * benchtests/bench-wcsspn.c: New File.
26831         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
26832
26833         * sysdeps/s390/multiarch/strrchr-c.c: New File.
26834         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
26835         * sysdeps/s390/multiarch/strrchr.c: Likewise.
26836         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
26837         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
26838         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
26839         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
26840         wcsrchr functions.
26841         * sysdeps/s390/multiarch/ifunc-impl-list.c
26842         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
26843         * benchtests/bench-wcsrchr.c: New File.
26844         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
26845
26846         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
26847         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
26848         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
26849         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
26850         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
26851         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
26852         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
26853         wcschrnul functions.
26854         * sysdeps/s390/multiarch/ifunc-impl-list.c
26855         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
26856         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
26857         * string/test-strchr.c: Add wcschrnul support.
26858         * wcsmbs/test-wcschrnul.c: New File.
26859         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
26860         * benchtests/bench-strchr.c: Add wcschrnul support.
26861         * benchtests/bench-wcschrnul.c: New File.
26862         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
26863
26864         * sysdeps/s390/multiarch/strchr-c.c: New File.
26865         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
26866         * sysdeps/s390/multiarch/strchr.c: Likewise.
26867         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
26868         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
26869         * sysdeps/s390/multiarch/wcschr.c: Likewise.
26870         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
26871         wcschr functions.
26872         * sysdeps/s390/multiarch/ifunc-impl-list.c
26873         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
26874         * string/strchr.c (STRCHR): Define and use macro.
26875         * benchtests/bench-wcschr.c: New File.
26876         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
26877
26878         * sysdeps/s390/multiarch/strncmp-c.c: New File.
26879         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
26880         * sysdeps/s390/multiarch/strncmp.c: Likewise.
26881         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
26882         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
26883         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
26884         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
26885         wcsncmp functions.
26886         * sysdeps/s390/multiarch/ifunc-impl-list.c
26887         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
26888         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
26889         * benchtests/bench-strncmp.c: Add wcsncmp support.
26890         * benchtests/bench-wcsncmp.c: New File.
26891         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
26892
26893         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
26894         * sysdeps/s390/multiarch/strcmp.c: Likewise.
26895         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
26896         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
26897         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
26898         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
26899         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
26900         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
26901         wcscmp functions.
26902         * sysdeps/s390/multiarch/ifunc-impl-list.c
26903         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
26904         * string/strcmp.c (STRCMP): Define and use macro.
26905         * benchtests/bench-wcscmp.c: New File.
26906         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
26907         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
26908         instead of _HAVE_STRING_ARCH_memchr.
26909
26910         * sysdeps/s390/multiarch/strncat-c.c: New File.
26911         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
26912         * sysdeps/s390/multiarch/strncat.c: Likewise.
26913         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
26914         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
26915         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
26916         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
26917         wcsncat functions.
26918         * sysdeps/s390/multiarch/ifunc-impl-list.c
26919         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
26920         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
26921         * string/test-strncat.c: Add wcsncat support.
26922         * wcsmbs/test-wcsncat.c: New File.
26923         * wcsmbs/Makefile (strop-tests): Add wcsncat.
26924         * benchtests/bench-strncat.c: Add wcsncat support.
26925         * benchtests/bench-wcsncat.c: New File.
26926         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
26927
26928         * sysdeps/s390/multiarch/strcat-c.c: New File.
26929         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
26930         * sysdeps/s390/multiarch/strcat.c: Likewise.
26931         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
26932         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
26933         * sysdeps/s390/multiarch/wcscat.c: Likewise.
26934         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
26935         wcscat functions.
26936         * sysdeps/s390/multiarch/ifunc-impl-list.c
26937         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
26938         * string/strcat.c (STRCAT): Define and use macro.
26939         * wcsmbs/wcscat.c: Use WCSCAT if defined.
26940         * string/test-strcat.c: Add wcscat support.
26941         * wcsmbs/test-wcscat.c: New File.
26942         * wcsmbs/Makefile (strop-tests): Add wcscat.
26943         * benchtests/bench-strcat.c: Add wcscat support.
26944         * benchtests/bench-wcscat.c: New File.
26945         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
26946
26947         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
26948         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
26949         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
26950         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
26951         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
26952         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
26953         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
26954         wcpncpy functions.
26955         * sysdeps/s390/multiarch/ifunc-impl-list.c
26956         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
26957         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
26958         * string/test-stpncpy.c: Add wcpncpy support.
26959         * wcsmbs/test-wcpncpy.c: New File.
26960         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
26961         * benchtests/bench-stpncpy.c: Add wcpncpy support.
26962         * benchtests/bench-wcpncpy.c: New File.
26963         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
26964
26965         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
26966         * sysdeps/s390/multiarch/strncpy.c: Likewise.
26967         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
26968         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
26969         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
26970         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
26971         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
26972         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
26973         wcsncpy functions.
26974         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
26975         * sysdeps/s390/multiarch/ifunc-impl-list.c
26976         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
26977         * string/test-strncpy.c: Add wcsncpy support.
26978         * wcsmbs/test-wcsncpy.c: New File.
26979         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
26980         * benchtests/bench-strncpy.c: Add wcsncpy support.
26981         * benchtests/bench-wcsncpy.c: New File.
26982         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
26983
26984         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
26985         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
26986         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
26987         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
26988         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
26989         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
26990         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
26991         wcpcpy functions.
26992         * string/stpcpy.c: Use STPCPY if defined.
26993         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
26994         * sysdeps/s390/multiarch/ifunc-impl-list.c
26995         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
26996         * string/test-stpcpy.c: Add wcpcpy support.
26997         * wcsmbs/test-wcpcpy.c: New File.
26998         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
26999         * benchtests/bench-stpcpy.c: Add wcpcpy support.
27000         * benchtests/bench-wcpcpy.c: New File.
27001         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
27002
27003         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
27004         * sysdeps/s390/multiarch/strcpy.c: Likewise.
27005         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
27006         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
27007         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
27008         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
27009         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
27010         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
27011         wcscpy functions.
27012         * sysdeps/s390/multiarch/ifunc-impl-list.c
27013         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
27014         * benchtests/bench-wcscpy.c: New File.
27015         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
27016
27017         * sysdeps/s390/multiarch/strnlen-c.c: New File.
27018         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
27019         * sysdeps/s390/multiarch/strnlen.c: Likewise.
27020         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
27021         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
27022         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
27023         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
27024         wcsnlen functions.
27025         * sysdeps/s390/multiarch/ifunc-impl-list.c
27026         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
27027         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
27028         * string/test-strnlen.c: Add wcsnlen support.
27029         * wcsmbs/test-wcsnlen.c: New File.
27030         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
27031         * benchtests/bench-strnlen.c: Add wcsnlen support.
27032         * benchtests/bench-wcsnlen.c: New File.
27033         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
27034
27035         * sysdeps/s390/multiarch/Makefile: New File.
27036         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
27037         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
27038         * sysdeps/s390/multiarch/strlen.c: Likewise.
27039         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
27040         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
27041         * sysdeps/s390/multiarch/wcslen.c: Likewise.
27042         * string/strlen.c (STRLEN): Define and use macro.
27043         * sysdeps/s390/multiarch/ifunc-impl-list.c
27044         (IFUNC_VX_IMPL): New macro function.
27045         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
27046         * benchtests/Makefile (wcsmbs-bench): New variable.
27047         (string-bench-all): Added wcsmbs-bench.
27048         * benchtests/bench-wcslen.c: New File.
27049
27050         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
27051         s390_vx_libc_ifunc2): New macro function.
27052
27053         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
27054         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
27055         assembler support.
27056         * sysdeps/s390/configure: Regenerated.
27057
27058         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
27059         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
27060
27061         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
27062         * sysdeps/s390/dl-procinfo.h: Add vector capability.
27063         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
27064
27065         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
27066         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
27067         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
27068         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
27069         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
27070         (memcmp, bcmp): Use __memcmp_default as alias source.
27071         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
27072         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
27073         Rename to __memcmp_default.
27074         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
27075         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
27076         (memcpy): Use __memcpy_default as alias source.
27077         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
27078         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
27079         Rename to __memcpy_default.
27080         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
27081         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
27082         (memset): Use __memset_default as alias source.
27083         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
27084         * sysdeps/s390/s390-32/memset.S (__memset_g5):
27085         Rename to __memset_default.
27086         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
27087         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
27088         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
27089         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
27090         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
27091         (memcmp, bcmp): Use __memcmp_default as alias source.
27092         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
27093         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
27094         Rename to __memcmp_default.
27095         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
27096         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
27097         (memcpy): Use __memcpy_default as alias source.
27098         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
27099         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
27100         Rename to __memcpy_default.
27101         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
27102         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
27103         (memset): Use __memset_default as alias source.
27104         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
27105         * sysdeps/s390/s390-64/memset.S (__memset_z900):
27106         Rename to __memset_default.
27107         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
27108         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
27109
27110         [BZ #18610]
27111         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
27112         __ieee_instruction_pointer to __unused.
27113         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
27114         __ieee_instruction_pointer.
27115         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
27116         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
27117         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
27118         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
27119         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
27120         Mark dxc-field as reserved.
27121
27122 2015-08-25  Roland McGrath  <roland@hack.frob.com>
27123
27124         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
27125         if the weak reference is not null.
27126
27127 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27128
27129         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
27130
27131         [BZ #11214]
27132         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
27133
27134 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27135
27136         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
27137         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
27138         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
27139         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
27140         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
27141         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
27142         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
27143         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
27144         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
27145         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
27146         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
27147         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
27148         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
27149         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
27150         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
27151         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
27152         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
27153         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
27154
27155 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
27156
27157         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
27158         register other than r0 for tabort, it has special meaning.
27159         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
27160         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
27161         transaction before starting syscall.
27162
27163 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
27164
27165         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
27166
27167 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27168
27169         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
27170
27171         * sysdeps/x86_64/rtld-memcmp.c: Removed.
27172         * sysdeps/x86_64/rtld-memset.S: Likewise.
27173         * sysdeps/x86_64/rtld-strchr.S: Likewise.
27174         * sysdeps/x86_64/rtld-strlen.S: Likewise.
27175         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
27176         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
27177
27178         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
27179
27180 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
27181
27182         * debug/strcpy_chk.c: Improve performance.
27183         * debug/stpcpy_chk.c: Likewise.
27184         * sysdeps/x86_64/strcpy_chk.S: Remove.
27185         * sysdeps/x86_64/stpcpy_chk.S: Remove.
27186
27187         [BZ #18240]
27188         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
27189
27190 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
27191
27192         [BZ #15128]
27193         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
27194         ifuncmain8.
27195         (modules-names): Add ifuncmod8.
27196         ($(objpfx)ifuncmain8): New rule.
27197         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
27198         <cpuid.h>.
27199         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
27200         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
27201         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
27202         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
27203         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
27204         * sysdeps/x86_64/dl-trampoline.h: Likewise.
27205         * sysdeps/x86_64/ifuncmain8.c: New file.
27206         * sysdeps/x86_64/ifuncmod8.c: Likewise.
27207         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
27208         Removed.
27209         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
27210         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
27211         Change rtld_savespace_sse to __glibc_unused2.
27212         (RTLD_CHECK_FOREIGN_CALL): Removed.
27213         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
27214         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
27215         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
27216
27217 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
27218
27219         * sysdeps/aarch64/bzero.S (__bzero): Remove.
27220
27221 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
27222
27223         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
27224         Unconditionally set __fpcr to avoid uninialized warning.
27225         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
27226
27227 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
27228
27229         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
27230         is corrupt.
27231
27232         * malloc/arena.c (arena_get2): Drop unused argument.
27233         (arena_lock): Adjust.
27234         (arena_get_retry): Likewise.
27235
27236 2015-08-24  Andreas Schwab  <schwab@suse.de>
27237
27238         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
27239         Don't define.
27240         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
27241         (__ASSUME_IPC64): Don't undef.
27242         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
27243         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
27244         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
27245         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
27246         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
27247         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
27248         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
27249         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
27250         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
27251         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
27252         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
27253         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
27254         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
27255         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
27256         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
27257         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
27258         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
27259         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
27260         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
27261         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
27262         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
27263
27264 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
27265
27266         * manual/Makefile (install): Only build manual when perl is available.
27267
27268 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27269
27270         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
27271         '#undef memcpy' by '#undef memchr'.
27272
27273 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27274
27275         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
27276         memchr not point to the internal __GI_memchr implementation.
27277
27278 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27279
27280         * timezone/Makefile (CFLAGS-zdump.c): Remove
27281         -Wno-strict-prototypes.
27282         (CFLAGS-zic.c): Likewise.
27283         (CFLAGS-ialloc.c): Likewise.
27284         (CFLAGS-scheck.c): Likewise.
27285
27286         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
27287         -Wno-error=undef.
27288
27289 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27290
27291         * i386/i686/multiarch/strcasestr-c.c: Removed.
27292         * x86_64/multiarch/strcasestr.c: Likewise.
27293         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27294         Remove strcasestr.
27295
27296 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
27297
27298         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
27299
27300         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
27301         variables for high and low parts before possibly modifying them.
27302
27303 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27304
27305         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
27306         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
27307         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
27308         of "multiarch/init-arch.h".
27309         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
27310         * sysdeps/x86/init-arch.h: This.
27311
27312 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
27313
27314         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
27315         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
27316
27317 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
27318
27319         [BZ #17787]
27320         * manual/macros.texi: Add twoexp macro.
27321         * manual/filesys.texi: Fix exponents.
27322         * manual/llio.texi: Likewise.
27323         * manual/stdio.texi: Likewise.
27324
27325 2015-08-20  Florian Weimer  <fweimer@redhat.com>
27326
27327         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
27328         incorrect use.
27329
27330 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27331
27332         [BZ #18370]
27333         * math/s_csqrt.c (__csqrt): Force underflow exception for results
27334         whose real or imaginary part has small absolute value.
27335         * math/s_csqrtf.c (__csqrtf): Likewise.
27336         * math/s_csqrtl.c (__csqrtl): Likewise.
27337         * math/auto-libm-test-in: Add more tests of csqrt.
27338         * math/auto-libm-test-out: Regenerated.
27339         * sysdeps/i386/fpu/libm-test-ulps: Update.
27340
27341 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
27342
27343         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
27344         __ppc_set_ppr_very_low): New functions.
27345         * manual/platform.texi: Add documentation about
27346         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
27347
27348 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
27349
27350         * string/stpncpy.c (stpncpy): Improve performance using
27351         __strnlen/memcpy/memset.
27352
27353 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
27354
27355         [BZ #18796]
27356         * scripts/test-installation.pl: Don't add -lmvec to build options if
27357         libmvec wasn't built.
27358
27359 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
27360
27361         [BZ #14341]
27362         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
27363         case when there is a gap between DT_REL and DT_JMPREL sections.
27364         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
27365         (LDFLAGS-tst-split-dynreloc): New.
27366         (tst-split-dynreloc-ENV): Likewise.
27367         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
27368         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
27369
27370 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27371
27372         [BZ #18822]
27373         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
27374         attribute_hidden.
27375         (__xstat64_conv): Likewise.
27376         (__xstat32_conv): Likewise.
27377
27378 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27379
27380         [BZ #18822]
27381         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
27382         Don't load %ebx when calling __setcontext.  Call __setcontext
27383         with HIDDEN_JUMPTARGET.
27384         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
27385         libc_hidden_def.
27386
27387 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27388
27389         * sysdeps/i386/i686/Makefile
27390         [$(subdir) == string] (sysdep_routines): Moved to ...
27391         * sysdeps/i386/Makefile: Here.
27392         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
27393         * sysdeps/i386/cacheinfo.c: Here.
27394         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
27395         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
27396         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
27397         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
27398
27399 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
27400
27401         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
27402         __i586__ is defined.
27403         (HAS_I686): Defined to 1 if __i686__ is defined.
27404
27405 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
27406
27407         * elf/Makefile [$(have-z-execstack) = yes]
27408         (CPPFLAGS-tst-execstack.c): New variable.
27409
27410         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
27411         conditional to [defined UTMPX || _HAVE_UT_TYPE].
27412         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
27413         UTMPX || _HAVE_UT_TV].
27414         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
27415         UTMPX || _HAVE_UT_TV - 0].
27416
27417 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
27418
27419         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
27420         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
27421         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
27422
27423 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
27424
27425         * sysdeps/powerpc/dl-procinfo.c:
27426         (_dl_powerpc_cap_flags): Added missing strings for some
27427         hwcap features.
27428         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
27429
27430 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
27431
27432         Port the 0x7efe...feff pattern to GCC 6.
27433         See Steve Ellcey's bug report in:
27434         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
27435         * string/memrchr.c (MEMRCHR):
27436         * string/rawmemchr.c (RAWMEMCHR):
27437         * string/strchr.c (strchr):
27438         * string/strchrnul.c (STRCHRNUL):
27439         Rewrite code to avoid issues with signed shift overflow.
27440
27441 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
27442
27443         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
27444         whether cpuid is available only if HAS_CPUID is 0.
27445         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
27446         (HAS_I586): Likewise.
27447         (HAS_I686): Likewise.
27448
27449 2015-08-18  Zack Weinberg  <zackw@panix.com>
27450
27451         * misc/Versions (libc): Add GLIBC_2.23.
27452
27453 2015-08-18  Alan Modra  <amodra@gmail.com>
27454
27455         [BZ #18421]
27456         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
27457         .Lp__global.
27458         (_start): Load %dp via .Lp__global.
27459         [!SHARED]: Use .section .rodata.
27460
27461 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27462
27463         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
27464         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
27465
27466 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27467
27468         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
27469         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
27470
27471 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27472
27473         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
27474         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
27475
27476 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27477
27478         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
27479         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
27480
27481 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27482
27483         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
27484         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
27485
27486 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27487
27488         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
27489         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
27490
27491 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27492
27493         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
27494
27495 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27496
27497         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
27498         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
27499         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27500         (__ASSUME_LWS_CAS): Delete.
27501
27502 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
27503
27504         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
27505         * sysdeps/hppa/configure: Regenerated.
27506         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
27507         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
27508         * sysdeps/hppa/nptl/tls.h: Likewise.
27509
27510 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
27511
27512         [BZ #18823]
27513         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
27514         for scaling up small arguments.
27515         * math/s_csqrtf.c (__csqrtf): Likewise.
27516         * math/s_csqrtl.c (__csqrtl): Likewise.
27517         * math/auto-libm-test-in: Add more tests of csqrt.
27518         * math/auto-libm-test-out: Regenerated.
27519
27520 2015-08-17  Andreas Schwab  <schwab@suse.de>
27521
27522         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
27523         version set GLIBC_2.19.
27524
27525 2015-08-16  Zack Weinberg  <zackw@panix.com>
27526
27527         [BZ #18681]
27528         * misc/regexp.h: This interface is no longer supported.
27529         Remove all contents, leaving only an #error directive.
27530         * misc/regexp.c (loc1, loc2, locs, step, advance):
27531         Demote to compatibility symbols.
27532
27533 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
27534
27535         [BZ #18084]
27536         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
27537         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
27538         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
27539         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
27540         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
27541         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
27542         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
27543         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
27544         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
27545
27546 2015-08-15  Zack Weinberg  <zackw@panix.com>
27547
27548         [BZ #18795]
27549         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
27550         buffer length is known to be too large, not if it's known to be
27551         small enough.
27552         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
27553         overflow at runtime, involving a length parameter, twice: once
27554         with a compile-time constant length parameter, once without.
27555
27556 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
27557
27558         [BZ #18824]
27559         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
27560         scaling x * y up instead of down.
27561         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27562         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27563         * math/auto-libm-test-in: Add more tests of fma.
27564         * math/auto-libm-test-out: Regenerated.
27565
27566 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
27567
27568         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27569
27570 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27571
27572         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
27573         unnecessary movq.
27574         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
27575         Likewise.
27576
27577 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
27578
27579         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
27580         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
27581         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
27582         and tgamma.
27583         * math/auto-libm-test-out: Regenerated.
27584         * sysdeps/i386/fpu/libm-test-ulps: Update.
27585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27586
27587         [BZ #16520]
27588         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
27589         (__tanh): Force underflow exception for arguments with small
27590         absolute value.
27591         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
27592         (__tanhf): Force underflow exception for arguments with small
27593         absolute value.
27594         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
27595         (__tanhl): Force underflow exception for arguments with small
27596         absolute value.
27597         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
27598         (__tanhl): Force underflow exception for arguments with small
27599         absolute value.
27600         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
27601         (__tanhl): Force underflow exception for arguments with small
27602         absolute value.
27603         * math/auto-libm-test-in: Add more tests of tanh.
27604         * math/auto-libm-test-out: Regenerated.
27605         * sysdeps/i386/fpu/libm-test-ulps: Update.
27606
27607 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27608
27609         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
27610         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
27611
27612 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27613
27614         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
27615         <cpuid.h>.
27616
27617 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27618
27619         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
27620         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
27621
27622 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27623
27624         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
27625         Remove $(objpfx)init-arch.o.
27626         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
27627         init-arch.
27628         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
27629         (INIT_ARCH_EXT): Defined as empty.
27630         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
27631         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
27632         __init_cpu_features call.  Replace HAS_XXX with
27633         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27634         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
27635         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
27636         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
27637         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
27638         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
27639         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
27640         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
27641         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
27642         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
27643         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
27644         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
27645         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
27646         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
27647         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
27648         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
27649         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
27650         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
27651         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
27652         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
27653         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
27654         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
27655         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
27656         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
27657         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
27658         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
27659         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
27660         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
27661         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
27662         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
27663         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
27664         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
27665         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
27666         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
27667         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
27668         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
27669
27670 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27671
27672         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
27673         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27674         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27675         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
27676         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
27677         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
27678         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
27679         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
27680         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
27681         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
27682         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
27683         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
27684         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27685         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27686         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27687         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27688         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27689         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27690         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27691         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27692         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27693         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27694         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27695         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27696         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27697         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27698         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27699         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27700         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27701         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27702         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27703         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27704         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27705         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27706         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27707         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27708         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27709         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27710         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27711         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27712         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27713         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27714         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27715
27716 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27717
27718         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
27719         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27720         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27721         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27722         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27723         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
27724         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27725         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
27726         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27727         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27728         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27729         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
27730         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
27731         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
27732         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
27733         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
27734         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
27735         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
27736         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
27737         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
27738         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
27739         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
27740         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
27741         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27742         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27743         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
27744         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
27745         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
27746         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
27747         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27748         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27749         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27750         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27751         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27752         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27753         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27754         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27755         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27756         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27757         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27758         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27759         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27760         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27761
27762 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
27763
27764         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
27765         (dl_platform_init): Call init_cpu_features.
27766         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
27767         * sysdeps/i386/i686/cacheinfo.c
27768         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
27769         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
27770         * sysdeps/i386/i686/multiarch/Versions: Removed.
27771         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
27772         Removed.
27773         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
27774         * sysdeps/unix/sysv/linux/x86/Makefile
27775         (libpthread-sysdep_routines): Remove init-arch.
27776         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
27777         <sysdeps/x86_64/dl-procinfo.c> instead of
27778         sysdeps/generic/dl-procinfo.c>.
27779         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
27780         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
27781         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
27782         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
27783         [$(subdir) == elf] (tests-static): Add
27784         tst-get-cpu-features-static.
27785         * sysdeps/x86/Versions: New file.
27786         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
27787         * sysdeps/x86/cpu-features.c: Likewise.
27788         * sysdeps/x86/cpu-features.h: Likewise.
27789         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
27790         * sysdeps/x86/libc-start.c: Likewise.
27791         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
27792         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
27793         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
27794         * sysdeps/x86_64/dl-procinfo.c: Likewise.
27795         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
27796         Assume USE_MULTIARCH is defined and don't check it.
27797         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
27798         (is_amd): Likewise.
27799         (max_cpuid): Likewise.
27800         (intel_check_word): Likewise.
27801         (__cache_sysconf): Don't call __init_cpu_features.
27802         (__x86_preferred_memory_instruction): Removed.
27803         (init_cacheinfo): Don't call __init_cpu_features. Replace
27804         __cpu_features with GLRO(dl_x86_cpu_features).
27805         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
27806         (dl_platform_init): Call init_cpu_features.
27807         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
27808         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
27809         * sysdeps/x86_64/multiarch/Versions: Removed.
27810         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
27811         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
27812         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
27813         Removed.
27814         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
27815
27816 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27817
27818         [BZ #18820]
27819         * libio/Makefile (test-fmemopen-mem): New test.
27820         * libio/test-fmemopen.c (do_bz18820): New test.
27821         * libio/fmemopen.c (__fmemopen): Fix memory leak.
27822         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
27823
27824 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
27825
27826         [BZ #16734]
27827         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
27828         (FREE_BUF): Delete.
27829         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
27830         * libio/genops.c (_IO_setb): Use malloc and free directly.
27831         (_IO_default_doallocate, _IO_default_finish): Likewise.
27832         ( _IO_unbuffer_all): Likewise.
27833         ( libc_freeres_fn): Likewise.
27834         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
27835         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
27836         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
27837         (_IO_wdefault_doallocate): Likewise.
27838
27839 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
27840
27841         [BZ #18086]
27842         * sysdeps/posix/nice.c (nice): Restore old errno.
27843         * posix/tst-nice.c (do_test): Add test for BZ #18086.
27844
27845 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
27846
27847         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
27848
27849 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
27850
27851         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
27852         __bcopy and add a weak_alias to bcopy.
27853         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
27854         for static build.
27855
27856         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
27857         cleanup macro usage.
27858         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
27859         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
27860         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
27861         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
27862         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
27863         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
27864         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
27865         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27866         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
27867         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
27868         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27869         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
27870         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
27871         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
27872         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
27873         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
27874         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
27875         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
27876         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
27877
27878         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
27879         libc_hidden_def.
27880         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
27881
27882         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
27883         (sysdep_routines): Add strstr-ppc64.
27884         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
27885
27886 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
27887
27888         [BZ #18778]
27889         * elf/Makefile (tests): Add Add tst-nodelete2.
27890         (modules-names): Add tst-nodelete2mod.
27891         (tst-nodelete2mod.so-no-z-defs): New.
27892         ($(objpfx)tst-nodelete2): Likewise.
27893         ($(objpfx)tst-nodelete2.out): Likewise.
27894         (LDFLAGS-tst-nodelete2): Likewise.
27895         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
27896         out of loop through all loaded libraries.
27897         * elf/tst-nodelete2.c: New file.
27898         * elf/tst-nodelete2mod.c: Likewise.
27899         * elf/tst-znodelete-zlib.cc: Delete.
27900
27901 2015-08-11  Andreas Schwab  <schwab@suse.de>
27902
27903         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
27904         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
27905         (__openat64_nocancel): Likewise.
27906
27907 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
27908
27909         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
27910         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
27911         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
27912         * math/auto-libm-test-out: Regenerated.
27913         * sysdeps/i386/fpu/libm-test-ulps: Update.
27914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27915
27916 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27917
27918         [BZ #18790]
27919         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
27920         threshold for returning +/- 1.
27921         * math/auto-libm-test-in: Add more tests of tanh.
27922         * math/auto-libm-test-out: Regenerated.
27923         * sysdeps/i386/fpu/libm-test-ulps: Update.
27924
27925 2015-08-10  Andreas Schwab  <schwab@suse.de>
27926
27927         [BZ #18781]
27928         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
27929         MORE_OFLAGS to oflag.
27930         * io/test-lfs.c (do_test): Test openat64.
27931
27932 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
27933
27934         [BZ #18789]
27935         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
27936         smaller threshold for returning the argument.
27937         * math/auto-libm-test-in: Add more tests of sinh.
27938         * math/auto-libm-test-out: Regenerated.
27939         * sysdeps/i386/fpu/libm-test-ulps: Update.
27940
27941 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
27942
27943         [BZ #18674]
27944         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
27945         break.
27946
27947 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
27948
27949         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
27950         (generated): Don't add $(addprefix z.,$(tzfiles)).
27951
27952 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27953
27954         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
27955         * scripts/sysd-rules.awk: Likewise.
27956
27957 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27958
27959         * iconvdata/tst-tables.sh: Change echo -n to printf.
27960         * nss/db-Makefile: Likewise.
27961         * posix/tst-getconf.sh: Likewise.
27962         * stdio-common/tst-unbputc.sh: Likewise.
27963
27964 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
27965
27966         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
27967         MADV_*_PAGES defines behind this feature check.
27968
27969 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
27970
27971         [BZ #18480]
27972         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
27973         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
27974         Define.
27975         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
27976         LOAD_REGS_5, LOAD_REGS_6): Update.
27977         (INTERNAL_SYSCALL): Update using new LOAD defines.
27978         (INTERNAL_SYSCALL_NCS): Likewise.
27979         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
27980
27981 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27982
27983         [BZ #16734]
27984         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
27985
27986 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27987
27988         [BZ #17905]
27989         * catgets/Makefile (tst-catgets-mem): New test.
27990         * catgets/catgets.c (catopen): Don't use unbounded alloca.
27991         * catgets/open_catalog.c (__open_catalog): Likewise.
27992         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
27993
27994 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
27995
27996         [BZ #18787]
27997         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
27998         clobber registers.
27999         (atomic_compare_and_exchange_val_acq): Use register asms to assign
28000         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
28001         Cast return to __typeof (oldval).
28002
28003 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
28004
28005         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
28006         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
28007         and delete sys/syscall.h include.
28008
28009 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
28010
28011         [BZ #16517]
28012         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
28013         (tan): Force underflow exception for arguments with small absolute
28014         value.
28015         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
28016         (__kernel_tanf): Force underflow exception for arguments with
28017         small absolute value.
28018         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
28019         (__kernel_tanl): Force underflow exception for arguments with
28020         small absolute value.
28021         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
28022         (__kernel_tanl): Force underflow exception for arguments with
28023         small absolute value.
28024         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
28025         (__kernel_tanl): Force underflow exception for arguments with
28026         small absolute value.
28027         * math/auto-libm-test-in: Add more tests of tan.
28028         * math/auto-libm-test-out: Regenerated.
28029
28030 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28031
28032         Fix sysdeps/i386/fpu/s_scalbn.S build
28033
28034         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
28035
28036 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
28037
28038         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28039
28040 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28041
28042         Fix gcrt0.o compilation
28043
28044         When static-start-installed-name is different from
28045         start-installed-name, we must not use the shared objects.
28046
28047         * csu/Makefile
28048         (extra-objs): Add gmon-start.o when building shared library and
28049         $(static-start-installed-name) is different from
28050         $(start-installed-name).
28051         $(objpfx)g$(static-start-installed-name): When building shared
28052         library and $(static-start-installed-name) is different from
28053         $(static-start-installed-name), revert to non-shared rule,
28054         i.e. using $(objpfx)% and gmon-start.o.
28055
28056 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
28057
28058         [BZ #16519]
28059         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
28060         (__ieee754_sinh): Force underflow exception for arguments with
28061         small absolute value.
28062         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
28063         (__ieee754_sinhf): Force underflow exception for arguments with
28064         small absolute value.
28065         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
28066         (__ieee754_sinhl): Force underflow exception for arguments with
28067         small absolute value.
28068         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
28069         (__ieee754_sinhl): Force underflow exception for arguments with
28070         small absolute value.
28071         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
28072         (__ieee754_sinhl): Force underflow exception for arguments with
28073         small absolute value.
28074         * math/auto-libm-test-in: Add more tests of sinh.
28075         * math/auto-libm-test-out: Regenerated.
28076         * sysdeps/i386/fpu/libm-test-ulps: Update.
28077
28078 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
28079
28080         * libio/oldfileops.c: Include unistd.h.
28081
28082 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
28083
28084         * stdlib/isomac.c: Include ctype.h.
28085
28086 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
28087
28088         * dirent/tst-seekdir.c (main): Converted to ...
28089         (do_test): ... this.
28090         (TEST_FUNCTION): New macro.
28091         Include test-skeleton.c.
28092         * elf/tst-dlmodcount.c (main): Converted to ...
28093         (do_test): ... this.
28094         (TEST_FUNCTION): New macro.
28095         Include test-skeleton.c.
28096         * elf/tst-order-main.c (main): Converted to ...
28097         (do_test): ... this.
28098         (TEST_FUNCTION): New macro.
28099         Include test-skeleton.c.
28100         * elf/tst-pie2.c (main): Converted to ...
28101         (do_test): ... this.
28102         (TEST_FUNCTION): New macro.
28103         Include test-skeleton.c.
28104         * inet/tst-ether_aton.c (main): Converted to ...
28105         (do_test): ... this.
28106         (TEST_FUNCTION): New macro.
28107         Include test-skeleton.c.
28108         * misc/tst-mntent.c (main): Converted to ...
28109         (do_test): ... this.
28110         (TEST_FUNCTION): New macro.
28111         Include test-skeleton.c.
28112         * misc/tst-tsearch.c (main): Converted to ...
28113         (do_test): ... this.
28114         (TEST_FUNCTION): New macro.
28115         Include test-skeleton.c.
28116         * posix/tst-regexloc.c (main): Converted to ...
28117         (do_test): ... this.
28118         (TEST_FUNCTION): New macro.
28119         Include test-skeleton.c.
28120         * resolv/tst-aton.c (main): Converted to ...
28121         (do_test): ... this.
28122         (TEST_FUNCTION): New macro.
28123         Include test-skeleton.c.
28124         * stdio-common/test-fwrite.c (main): Converted to ...
28125         (do_test): ... this.
28126         (TEST_FUNCTION): New macro.
28127         Include test-skeleton.c.
28128         * stdio-common/tst-ferror.c (main): Converted to ...
28129         (do_test): ... this.
28130         (TEST_FUNCTION): New macro.
28131         Include test-skeleton.c.
28132         * stdio-common/tst-printf.c (main): Converted to ...
28133         (do_test): ... this.
28134         (TEST_FUNCTION): New macro.
28135         Include test-skeleton.c.
28136         * stdio-common/tst-printfsz.c (main): Converted to ...
28137         (do_test): ... this.
28138         (TEST_FUNCTION): New macro.
28139         Include test-skeleton.c.
28140         * stdlib/tst-strtod.c (main): Converted to ...
28141         (do_test): ... this.
28142         (TEST_FUNCTION): New macro.
28143         Include test-skeleton.c.
28144         * string/tst-strlen.c (main): Converted to ...
28145         (do_test): ... this.
28146         (TEST_FUNCTION): New macro.
28147         Include test-skeleton.c.
28148         * string/tst-svc.c (main): Converted to ...
28149         (do_test): ... this.
28150         (TEST_FUNCTION): New macro.
28151         Include test-skeleton.c.
28152         * time/tst-strptime.c (main): Converted to ...
28153         (do_test): ... this.
28154         (TEST_FUNCTION): New macro.
28155         Include test-skeleton.c.
28156         * timezone/tst-timezone.c (main): Converted to ...
28157         (do_test): ... this.
28158         (TEST_FUNCTION): New macro.
28159         Include test-skeleton.c.
28160
28161 2015-08-05  Zack Weinberg  <zackw@panix.com>
28162
28163         * misc/regexp.h: Update comments.
28164
28165 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
28166
28167         [BZ #18635]
28168         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
28169         before return label.
28170
28171 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28172
28173         [BZ #18661]
28174         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
28175         when calling __errno_location.
28176         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
28177         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
28178
28179 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28180
28181         [BZ #18661]
28182         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
28183         (__lll_timedwait_tid): Align stack to 16 bytes when calling
28184         __gettimeofday.
28185
28186 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28187
28188         [BZ #18661]
28189         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
28190         (__start_context): Don't use pop to restore %rdi so that stack
28191         is aligned to 16 bytes when calling __setcontext.
28192
28193 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28194
28195         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
28196         only for libc.
28197         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
28198
28199 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28200
28201         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
28202         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
28203         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
28204
28205 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28206
28207         * string/memccpy.c (memccpy):
28208         Improve performance by using memchr/memcpy/__mempcpy.
28209
28210 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28211
28212         * string/strncpy.c (strncpy):
28213         Improve performance by using __strnlen/memcpy.
28214
28215 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28216
28217         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
28218         Optimize to avoid an unnecessary FPCR read.
28219
28220 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
28221
28222         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
28223         Optimize to reduce FPCR/FPSR accesses.
28224
28225 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
28226
28227         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
28228         dead->data[category] != NULL.
28229
28230 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
28231
28232         [BZ #18647]
28233         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
28234         and |x| close to 1, use absolute value of x when computing log.
28235         * math/auto-libm-test-in: Add more tests of pow.
28236         * math/auto-libm-test-out: Regenerated.
28237
28238 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28239
28240         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
28241         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
28242         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
28243
28244 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
28245
28246         [BZ #18525]
28247         * locales/km_KH: Remove timezone definition.
28248         * locales/lo_LA: Likewise.
28249         * locales/my_MM: Likewise.
28250         * locales/nan_TW@latin: Likewise.
28251         * locales/th_TH: Likewise.
28252         * locales/uk_UA: Likewise.
28253
28254 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
28255
28256         [BZ #18265]
28257         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
28258         (wcsncat): Likewise.
28259         (wcscmp): Likewise.
28260         (wcsncmp): Likewise.
28261
28262 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28263
28264         * test-skeleton.c (usage): New function.
28265         (main): Call usage when opt is '?'.
28266
28267 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28268
28269         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
28270         before first use.
28271
28272 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
28273
28274         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
28275         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
28276         in there too.
28277
28278 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
28279
28280         * version.h (RELEASE): Set to "development".
28281         (VERSION): Set to "2.22.90"
28282
28283         * version.h (RELEASE): Set to "stable".
28284         (VERSION): Set to "2.22"
28285         * include/features.h (__GLIBC_MINOR__): Set to 22.
28286
28287 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
28288
28289         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
28290         Restructure macro to avoid "value computed is not used" warning.
28291         (atomic_compare_and_exchange_val_acq): Likewise.
28292
28293 2015-08-04  Andreas Schwab  <schwab@suse.de>
28294
28295         [BZ #18635]
28296         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
28297         ret.
28298         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
28299
28300 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
28301
28302         * po/pl.po: Updated translation.
28303         * po/uk.po: Likewise.
28304         * po/fi.po: Likewise.
28305         * po/ko.po: Likewise.
28306         * po/ru.po: Likewise.
28307         * po/vi.po: Likewise.
28308
28309 2015-07-31  Zack Weinberg  <zackw@panix.com>
28310
28311         [BZ #18681]
28312         * regexp.h: Add unconditional #warning stating that this header
28313         will be removed soon.  Revise banner comment to match.
28314         (compile): Consistently use ERROR instead of RETURN to report
28315         errors (partial fix for BZ #18681).
28316         * regexp.c: Don't include regexp.h. Remove some unnecessary
28317         declarations.
28318
28319 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
28320
28321         * po/libc.pot: Regenerated.
28322
28323 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
28324
28325         [BZ #18740]
28326         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
28327         float-vlen4-arch-ext-cflags): Removed.
28328         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
28329         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
28330
28331 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28332
28333         [BZ #14113]
28334         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
28335         aligned to __aligned__.
28336         (pthread_cond_t, pthread_rwlock_t): Likewise.
28337
28338 2015-07-30  Torvald Riegel  <triegel@redhat.com>
28339
28340         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
28341
28342 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28343
28344         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
28345         (struct sigaction): Change sa_flags from a long to an int, and add
28346         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
28347
28348 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28349
28350         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
28351         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
28352         sysdeps/generic/sysdep.h include.
28353         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
28354         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
28355         sysdeps/hppa/sysdep.h.
28356         (ENTRY, PSEUDO): Undefine before defining.
28357
28358 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
28359
28360         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
28361         from scratch to use INTERNAL_SYSCALL.
28362
28363 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
28364
28365         [BZ #18078]
28366         * scripts/check-localplt.awk: Support alternate relocations.
28367         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
28368         sections.
28369         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
28370         malloc entries with + REL R_386_GLOB_DAT.
28371         * sysdeps/x86_64/localplt.data: New file.
28372
28373 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
28374
28375         [BZ #18731]
28376         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
28377         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
28378         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
28379
28380 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28381
28382         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
28383
28384 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28385
28386         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
28387         directly in terms of __sync_fetch_and_add and delete (int) cast.
28388
28389 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28390
28391         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
28392         the -D_ASM_IA64_CURRENT_H flag.
28393
28394 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
28395
28396         [BZ #18641]
28397         * pwd/pwd.h (putpwent): Delete __nonnull markings.
28398
28399 2015-07-27  Andreas Schwab  <schwab@suse.de>
28400
28401         * conform/conformtest.pl (checknamespace): Filter out string
28402         literals while tokenizing.
28403
28404 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28405
28406         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28407         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
28408         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28409
28410 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
28411
28412         * nptl/tst-join7mod.c: Add #include <string.h>.
28413
28414 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28415
28416         * sysdeps/nios2/libm-test-ulps: Update.
28417
28418 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
28419
28420         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
28421         Fix order of arguments to the rt_sigprocmask syscall.
28422         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
28423         Likewise.
28424
28425 2015-07-24  Roland McGrath  <roland@hack.frob.com>
28426
28427         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
28428
28429 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28430
28431         [BZ #18457]
28432         * nptl/Makefile (tests): New test case tst-join7.
28433         (modules-names): New test case module tst-join7mod.
28434         * nptl/tst-join7.c: New file.
28435         * nptl/tst-join7mod.c: New file.
28436         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
28437         all translation units in libc.so, libpthread.so and rtld.
28438
28439 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28440
28441         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28442
28443 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
28444
28445         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
28446         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
28447         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
28448         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
28449         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
28450         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
28451         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
28452         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
28453         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
28454         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
28455         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
28456         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
28457         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
28458         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
28459         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
28460         implementation.
28461
28462 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28463
28464         [BZ #17711]
28465         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28466         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
28467         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28468         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
28469         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
28470         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
28471
28472 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28473
28474         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
28475         instead of just saying load lock in the comments.
28476
28477 2015-07-23  Roland McGrath  <roland@hack.frob.com>
28478
28479         * sysdeps/unix/Subdirs: Moved ...
28480         * sysdeps/posix/Subdirs: ... here.
28481         * login/pty.h (struct termios, struct winsize): Add forward decls.
28482         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
28483         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
28484         * sysdeps/arm/nacl/libc.abilist: Updated.
28485         * sysdeps/nacl/libutil.abilist: New file.
28486
28487         * bits/signum.h: Update comments to mention 1003.1-2013 too.
28488         (SIGWINCH): New macro.
28489
28490         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
28491         * sysdeps/arm/nacl/libc.abilist: Add it.
28492
28493 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28494
28495         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
28496
28497 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
28498
28499         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28500         Swap __glibc_reserved0 and sa_flags order.
28501
28502 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
28503
28504         [BZ #18657]
28505         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
28506         are pending TLS destructor calls.
28507         * include/link.h (struct link_map): Add concurrency note for
28508         L_TLS_DTOR_COUNT.
28509         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
28510         Don't touch the link map flag.  Atomically increment
28511         l_tls_dtor_count.
28512         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
28513         Avoid taking the load lock and don't touch the link map flag.
28514         * stdlib/tst-tls-atexit-nodelete.c: New test case.
28515         * stdlib/Makefile (tests): Use it.
28516         * stdlib/tst-tls-atexit.c (do_test): dlopen
28517         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
28518         to allow tst-tls-atexit-nodelete test case to use it.
28519
28520 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28521
28522         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
28523         to bits/types.h.
28524         (msgqnum_t): New typedef.
28525         (msglen_t): Likewise.
28526         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
28527         and msg_qbytes type to msglen_t.
28528
28529 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28530
28531         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
28532         pad0 to __glibc_reserved0.
28533         (struct stat64): Likewise.
28534
28535 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28536
28537         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
28538         Change sa_flags from a long to an int and add __glibc_reserved0 before
28539         it for padding.
28540
28541 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
28542
28543         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
28544         anonymous by deleting "siginfo" name.
28545
28546 2015-07-21  Roland McGrath  <roland@hack.frob.com>
28547
28548         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
28549         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
28550         rather than __nacl_irt_filename.
28551         * sysdeps/nacl/xstat.c (__xstat): Likewise.
28552
28553         * NEWS: New item for arm-nacl port.
28554         * sysdeps/arm/nacl/libc.abilist: New file.
28555         * sysdeps/nacl/ld.abilist: New file.
28556         * sysdeps/nacl/libBrokenLocale.abilist: New file.
28557         * sysdeps/nacl/libanl.abilist: New file.
28558         * sysdeps/nacl/libcrypt.abilist: New file.
28559         * sysdeps/nacl/libdl.abilist: New file.
28560         * sysdeps/nacl/libm.abilist: New file.
28561         * sysdeps/nacl/libpthread.abilist: New file.
28562         * sysdeps/nacl/libresolv.abilist: New file.
28563         * sysdeps/nacl/librt.abilist: New file.
28564
28565 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
28566
28567         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
28568         __startcontext to initialize the new context.
28569         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
28570         up CFI directive to forbid further backtracing.
28571
28572 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
28573
28574         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
28575         reference.
28576         * charmaps/ANSI_X3.4-1968: Likewise.
28577         * charmaps/BS_4730: Likewise.
28578         * charmaps/BS_VIEWDATA: Likewise.
28579         * charmaps/CP1250: Likewise.
28580         * charmaps/CP1251: Likewise.
28581         * charmaps/CP1252: Likewise.
28582         * charmaps/CP1253: Likewise.
28583         * charmaps/CP1254: Likewise.
28584         * charmaps/CP1255: Likewise.
28585         * charmaps/CP1256: Likewise.
28586         * charmaps/CSN_369103: Likewise.
28587         * charmaps/EBCDIC-DK-NO: Likewise.
28588         * charmaps/GB_1988-80: Likewise.
28589         * charmaps/GREEK-CCITT: Likewise.
28590         * charmaps/GREEK7: Likewise.
28591         * charmaps/INIS-8: Likewise.
28592         * charmaps/ISIRI-3342: Likewise.
28593         * charmaps/ISO_2033-1983: Likewise.
28594         * charmaps/ISO_5427-EXT: Likewise.
28595         * locales/POSIX: Likewise.
28596         * locales/ar_SA: Likewise.
28597         * locales/be_BY: Likewise.
28598         * locales/be_BY@latin: Likewise.
28599         * locales/ca_ES: Likewise.
28600         * locales/cs_CZ: Likewise.
28601         * locales/da_DK: Likewise.
28602         * locales/de_BE: Likewise.
28603         * locales/de_CH: Likewise.
28604         * locales/de_LU: Likewise.
28605         * locales/en_AU: Likewise.
28606         * locales/en_BW: Likewise.
28607         * locales/en_CA: Likewise.
28608         * locales/en_DK: Likewise.
28609         * locales/en_GB: Likewise.
28610         * locales/en_IE: Likewise.
28611         * locales/en_NZ: Likewise.
28612         * locales/en_ZA: Likewise.
28613         * locales/en_ZW: Likewise.
28614         * locales/es_AR: Likewise.
28615         * locales/es_BO: Likewise.
28616         * locales/es_CL: Likewise.
28617         * locales/es_CO: Likewise.
28618         * locales/es_DO: Likewise.
28619         * locales/es_EC: Likewise.
28620         * locales/es_ES: Likewise.
28621         * locales/es_HN: Likewise.
28622         * locales/es_MX: Likewise.
28623         * locales/es_PA: Likewise.
28624         * locales/es_PE: Likewise.
28625         * locales/es_PY: Likewise.
28626         * locales/es_SV: Likewise.
28627         * locales/es_US: Likewise.
28628         * locales/es_UY: Likewise.
28629         * locales/es_VE: Likewise.
28630         * locales/et_EE: Likewise.
28631         * locales/fa_IR: Likewise.
28632         * locales/fo_FO: Likewise.
28633         * locales/fr_CA: Likewise.
28634         * locales/fr_CH: Likewise.
28635         * locales/gv_GB: Likewise.
28636         * locales/he_IL: Likewise.
28637         * locales/hr_HR: Likewise.
28638         * locales/id_ID: Likewise.
28639         * locales/is_IS: Likewise.
28640         * locales/it_CH: Likewise.
28641         * locales/iw_IL: Likewise.
28642         * locales/kl_GL: Likewise.
28643         * locales/ko_KR: Likewise.
28644         * locales/kw_GB: Likewise.
28645         * locales/lg_UG: Likewise.
28646         * locales/lt_LT: Likewise.
28647         * locales/lv_LV: Likewise.
28648         * locales/mi_NZ: Likewise.
28649         * locales/nhn_MX: Likewise.
28650         * locales/nl_BE: Likewise.
28651         * locales/pl_PL: Likewise.
28652         * locales/sk_SK: Likewise.
28653         * locales/sl_SI: Likewise.
28654         * locales/sv_FI: Likewise.
28655         * locales/tl_PH: Likewise.
28656         * locales/tr_TR: Likewise.
28657         * locales/vi_VN: Likewise.
28658
28659 2015-07-21  Khem Raj  <raj.khem@gmail.com>
28660
28661         [BZ #17475]
28662         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
28663         of tu_IN and bh_IN.
28664
28665 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
28666
28667         [BZ #18694]
28668         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
28669         bits/wordsize.h.
28670         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
28671
28672 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28673
28674         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
28675         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
28676         (spawn_thread): New function.
28677         (load): Rename to reg_dtor_and_close.  Move dlopen to...
28678         (do_test): ... here.  Use IS_LOADED to test for its
28679         availability.
28680
28681 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
28682
28683         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28684
28685 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
28686
28687         [BZ #18696]
28688         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
28689         si_addr_bnd.
28690         (si_lower): New.
28691         (si_upper): Likewise.
28692
28693 2015-07-16  David S. Miller  <davem@davemloft.net>
28694
28695         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
28696
28697 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28698
28699         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
28700         buffer.
28701         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
28702         fail output information.
28703
28704 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
28705
28706         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
28707         and strstr-ppc64..
28708         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
28709         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
28710         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
28711         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
28712         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
28713
28714 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28715
28716         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28717         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28718         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
28719         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
28720
28721 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
28722
28723         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
28724         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
28725         rtld_hidden_proto.
28726         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
28727
28728 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
28729
28730         * tst-nodelete-opened.c (do_test): Add comment to clarify how
28731         the test can fail.
28732
28733         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
28734
28735         [BZ #18676]
28736         * elf/tst-nodelete-opened.c: New test case.
28737         * elf/tst-nodelete-opened-lib.c: New test case module.
28738         * elf/Makefile (tests, modules-names): Use them.
28739         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
28740         early.
28741
28742 2015-07-15  David S. Miller  <davem@davemloft.net>
28743
28744         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
28745         futex-intenal.h
28746         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
28747         * sysdeps/sparc/sparc64/Makefile: Likewise.
28748         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
28749         Remove space from macro define.
28750         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
28751
28752 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
28753
28754         [BZ #17475]
28755         * locale/iso-639.def: Update Bhili and Tulu language codes as
28756         per iso639-3.
28757
28758 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
28759
28760         * elf/tst-leaks1.c (main): Converted to ...
28761         (do_test): ... this.
28762         (TEST_FUNCTION): New macro.
28763         Include test-skeleton.c.
28764         * localedata/tst-langinfo.c (main): Converted to ...
28765         (do_test): ... this.
28766         (TEST_FUNCTION): New macro.
28767         Include test-skeleton.c.
28768         * math/test-fpucw.c (main): Converted to ...
28769         (do_test): ... this.
28770         (TEST_FUNCTION): New macro.
28771         Include test-skeleton.c.
28772         * math/test-tgmath.c (main): Converted to ...
28773         (do_test): ... this.
28774         (TEST_FUNCTION): New macro.
28775         Include test-skeleton.c.
28776         * math/test-tgmath2.c (main): Converted to ...
28777         (do_test): ... this.
28778         (TEST_FUNCTION): New macro.
28779         Include test-skeleton.c.
28780         * setjmp/tst-setjmp.c (main): Converted to ...
28781         (do_test): ... this.
28782         (TEST_FUNCTION): New macro.
28783         Include test-skeleton.c.
28784         * stdio-common/tst-sscanf.c (main): Converted to ...
28785         (do_test): ... this.
28786         (TEST_FUNCTION): New macro.
28787         Include test-skeleton.c.
28788         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
28789         (do_test): ... this.
28790         (TEST_FUNCTION): New macro.
28791         Include test-skeleton.c.
28792
28793         * elf/tst-audit9.c (main): Converted to ...
28794         (do_test): ... this.
28795         (TEST_FUNCTION): New macro.
28796         Include test-skeleton.c.
28797
28798 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
28799
28800         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
28801
28802 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28803
28804         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
28805         New variable.
28806
28807 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
28808
28809         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28810
28811 2015-07-14  Roland McGrath  <roland@hack.frob.com>
28812
28813         * sysdeps/generic/dl-fileid.h: New file.
28814         * sysdeps/posix/dl-fileid.h: New file.
28815         * sysdeps/nacl/dl-fileid.h: New file.
28816         * include/link.h: Include <dl-fileid.h>.
28817         (struct link_map): Replace l_dev and l_ino with l_file_id.
28818         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
28819         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
28820         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
28821
28822 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28823
28824         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
28825
28826 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28827
28828         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
28829         Add iff $CXX is set.
28830         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
28831         Likewise.
28832         (tst-nodelete-zmodiff): Likewise.
28833         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
28834
28835 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28836
28837         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
28838
28839 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28840
28841         * sysdeps/aarch64/fpu/math_private.h
28842         (define math_opt_barrier): Add AArch64 version.
28843         (math_force_eval): Likewise.
28844
28845 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
28846
28847         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
28848
28849 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
28850
28851         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
28852         %ld with %jd and cast to intmax_t.
28853         (do_test_length_zero): Likewise.
28854
28855 2015-07-10  Roland McGrath  <roland@hack.frob.com>
28856
28857         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
28858
28859 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
28860
28861         * sysdeps/tile/libm-test-ulps: Regenerated.
28862
28863         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
28864         Comment out the whole function, not just its body.
28865
28866 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28867
28868         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
28869         locks.
28870
28871         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
28872
28873 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28874
28875         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
28876         (sem_assume_only_signals_cause_futex_EINTR): Remove.
28877
28878 2015-07-10  Torvald Riegel  <triegel@redhat.com>
28879
28880         * sysdeps/nptl/futex-internal.h: New file.
28881         * sysdeps/nacl/futex-internal.h: New file.
28882         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
28883         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
28884         error checking.
28885         (setxid_unmark_thread): Likewise.
28886         (__nptl_setxid): Likewise.
28887         (__wait_lookup_done): Likewise.
28888         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28889         * nptl/nptl-init.c (sighandler_setxid): Likewise.
28890         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28891         * nptl/pthread_once.c (clear_once_control): Likewise.
28892         (__pthread_once_slow): Likewise.
28893         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
28894         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
28895         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
28896         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28897         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
28898         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
28899         Likewise.
28900         (__pthread_rwlock_rdlock): Likewise.
28901         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
28902         Likewise.
28903         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
28904         Likewise.
28905         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
28906         Likewise.
28907         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
28908         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
28909         Likewise.
28910         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
28911         __ASSUME_PRIVATE_FUTEX check.
28912         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
28913         Check that shared futexes are supported.
28914         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
28915         wrappers with error checking.
28916         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
28917         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
28918         * nptl/pthread_barrierattr_setpshared.c
28919         (pthread_barrierattr_setpshared): Check that shared futexes are
28920         supported.
28921         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
28922         Likewise.
28923         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
28924         Likewise.
28925         * nptl/sem_init.c (futex_private_if_supported): Remove.
28926         (__new_sem_init): Adapt and check that shared futexes are supported.
28927         * nptl/sem_open.c (sem_open): Likewise.
28928         * nptl/sem_post.c (futex_wake): Remove.
28929         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
28930         (do_futex_wait): Use futex wrappers with error checking.
28931         * nptl/sem_wait.c: Include lowlevellock.h.
28932         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
28933         Use futex_supports_pshared.
28934         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
28935         Use futex wrappers with error checking.
28936         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
28937         Likewise.
28938         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
28939         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
28940         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
28941         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
28942         (futex_wake): Likewise.
28943         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
28944         (do_futex_wait): Use futex wrappers with error checking.
28945         (__new_sem_wait_slow): Update EINTR handling.
28946         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
28947
28948 2015-07-09  Martin Sebor  <msebor@redhat.com>
28949
28950         [BZ #18435]
28951         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
28952         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
28953         * nptl/Makefile (test-xfail-tst-once5): Define.
28954
28955 2015-07-09  Roland McGrath  <roland@hack.frob.com>
28956
28957         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
28958         * elf/dl-minimal.c: For readability, reorder some definitions and
28959         introduce more page breaks.  Include <stdio.h>.
28960         (__libc_fatal): New function.
28961
28962         * include/unistd.h: Add rtld_hidden_proto for _exit.
28963         * posix/_exit.c: Add rtld_hidden_def.
28964         * sysdeps/mach/hurd/_exit.c: Likewise.
28965         * sysdeps/nacl/_exit.c: Likewise.
28966         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
28967         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
28968
28969 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
28970
28971         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
28972         bndmov encoding with zero displacement.
28973
28974 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
28975             H.J. Lu  <hongjiu.lu@intel.com>
28976
28977         [BZ #18134]
28978         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
28979         * sysdeps/i386/configure: Regenerated.
28980         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
28981         (_dl_runtime_profile): Save and restore Intel MPX return bound
28982         registers when calling _dl_call_pltexit.  Add
28983         PRESERVE_BND_REGS_PREFIX before return.
28984         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
28985         (LRV_BND1_OFFSET): Likewise.
28986         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
28987         lrv_bnd1.
28988         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
28989         typo in bndmov encoding.
28990         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
28991         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
28992         branch instructions to preserve bounds.
28993
28994 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
28995
28996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
28997         [GLIBC_2.22]: Add fmemopen.
28998
28999 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29000
29001         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
29002         returns an error, also try to use host port from __mach_host_self for
29003         the __vm_wire call.
29004         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
29005
29006 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29007
29008         [BZ #18400]
29009         [BZ #18648]
29010         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
29011         Fix pr_uid and pr_gid members.
29012         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
29013         definition to elf_greg_t.
29014
29015 2015-07-08  Roland McGrath  <roland@hack.frob.com>
29016
29017         [BZ #18383]
29018         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
29019         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
29020         * sysdeps/arm/configure: Regenerated.
29021         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
29022         (test-xfail-tst-tlsalign-static): Variable removed.
29023
29024         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
29025         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
29026         rather than explicit 'ln -s'.
29027
29028         * resolv/rpc/netdb.h: New file.
29029         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
29030
29031 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
29032
29033         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
29034         length buffers.
29035         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
29036         test-skeleton.c.
29037
29038         [BZ #6544]
29039         [BZ #11216]
29040         [BZ #12836]
29041         [BZ #13151]
29042         [BZ #13152]
29043         [BZ #14292]
29044         * include/stdio.h (fmemopen): Remove hidden prototype.
29045         (__fmemopen): Add new hidden prototype.
29046         * libio/Makefile: Add oldfmemopen object.
29047         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
29048         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
29049         compliance.
29050         * libio/oldfmemopen.c: New file: old fmemopen implementation for
29051         symbol compatibility.
29052         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
29053         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
29054         fmemopen.
29055         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
29056         on append and read mode.
29057         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
29058         fmemopen.
29059         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
29060         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
29061         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
29062         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
29063         Likewise.
29064         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
29065         [GLIBC_2.22]: Likewise.
29066         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
29067         Likewise.
29068         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
29069         Likewise.
29070         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
29071         [GLIBC_2.22]: Likewise.
29072         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
29073         [GLIBC_2.22]: Likewise.
29074         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
29075         [GLIBC_2.22]: Likewise.
29076         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
29077         [GLIBC_2.22]: Likewise.
29078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
29079         [GLIBC_2.22]: Likewise.
29080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
29081         [GLIBC_2.22]: Likewise.
29082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
29083         [GLIBC_2.22]: Likewise.
29084         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
29085         Likewise.
29086         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
29087         Likewise.
29088         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
29089         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
29090         [GLIBC_2.22]: Likewise.
29091         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
29092         [GLIBC_2.22]: Likewise.
29093         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
29094         [GLIBC_2.22]: Likewise.
29095         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
29096         [GLIBC_2.22]: Likewise.
29097         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
29098         Likewise.
29099         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
29100         Likewise.
29101         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
29102         Likewise.
29103         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
29104         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
29105
29106 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
29107
29108         [BZ #18643]
29109         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
29110         IPV6_PATHMTU, and IPV6_DONTFRAG.
29111
29112 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
29113
29114         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
29115         and _IO_UNBUFFERED.
29116         * libio/oldfileops.c: Likewise.
29117         * libio/wfileops.c: Likewise.
29118
29119 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
29120
29121         * nscd/selinux.c: Delete selinux/flask.h include.
29122
29123 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
29124
29125         [BZ #18641]
29126         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
29127         (putpwent): Likewise.
29128         (getpwnam): Likewise.
29129         (getpwent_r): Likewise.
29130         (getpwuid_r): Likewise.
29131         (getpwnam_r): Likewise.
29132         (fgetpwent_r): Likewise.
29133
29134 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
29135
29136         [BZ #18557]
29137         * inet/rcmd.c (__validuser2_sa): Check user first to
29138         short-circuit host check.
29139
29140 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
29141             Mikhail Ilin  <m.ilin@samsung.com>
29142
29143         [BZ #17833]
29144         * elf/Makefile (tests): Add tst-nodelete.
29145         (modules-names): Add tst-nodelete-uniquemod.
29146         (tst-nodelete-uniquemod.so-no-z-defs): New.
29147         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
29148         (tst-nodelete-zmod.so-no-z-defs): Likewise.
29149         ($(objpfx)tst-nodelete): Likewise.
29150         ($(objpfx)tst-nodelete.out): Likewise.
29151         (LDFLAGS-tst-nodelete): Likewise.
29152         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
29153         * elf/dl-close.c (_dl_close_worker): Add a parameter to
29154         implement forced object deletion.
29155         (_dl_close): Pass false to _dl_close_worker.
29156         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
29157         * elf/tst-nodelete.cc: New file.
29158         * elf/tst-nodeletelib.cc: Likewise.
29159         * elf/tst-znodeletelib.cc: Likewise.
29160         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
29161
29162 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
29163
29164         [BZ #18508]
29165         * stdlib/Makefile ($(objpfx)tst-makecontext3):
29166         Depend on $(libdl).
29167         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
29168         is not called infinitely times.
29169         (backtrace_helper): New function.
29170         (trace_arg): New struct.
29171         (st1): Enlarge stack size.
29172         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29173         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
29174         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29175         Likewise.
29176
29177 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
29178
29179         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
29180
29181 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
29182
29183         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
29184         Include sys/types.h instead of bits/types.h.
29185         Remove inclusion of bits/wordsize.h.
29186
29187 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
29188
29189         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
29190         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
29191         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
29192         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
29193         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
29194         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
29195
29196 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
29197
29198         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
29199         link-defines.sym.
29200         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
29201         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
29202         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
29203         and LR_SIZE.
29204         * sysdeps/i386/link-defines.sym: New file.
29205
29206 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
29207
29208         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
29209         (modules-names): Add tst-auditmod3a tst-auditmod3b.
29210         ($(objpfx)tst-audit3): New rule.
29211         ($(objpfx)tst-audit3.out): Likewise.
29212         * sysdeps/i386/tst-audit3.c: New file.
29213         * sysdeps/i386/tst-audit3.h: Likewise.
29214         * sysdeps/i386/tst-auditmod3a.c: Likewise.
29215         * sysdeps/i386/tst-auditmod3b.c: Likewise.
29216
29217 2015-07-07  Torvald Riegel  <triegel@redhat.com>
29218
29219         [BZ #18633]
29220         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
29221         pointer in C code.
29222         (__strcat_c): Likewise.
29223         (__strcat_g): Likewise.
29224
29225 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
29226
29227         [BZ #18592]
29228         * misc/sbrk.c: Set errno to ENOMEM on overflow.
29229
29230 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
29231
29232         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
29233         New function.  (__ieee754_sqrtf): New function.
29234         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
29235         New function.
29236         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
29237         New function.
29238
29239 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
29240
29241         * sysdeps/ieee754/support.c: Remove unused file.
29242
29243 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29244
29245         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
29246         registers instead of d ones so the layout is kernel abi compatible.
29247         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
29248         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
29249         Likewise.
29250
29251 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
29252
29253         * sysdeps/aarch64/libm-test-ulps: Regenerated.
29254
29255 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
29256
29257         [BZ #18619]
29258         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
29259         and return argument in case of subnormal argument.
29260
29261 2015-07-01  Martin Sebor  <msebor@redhat.com>
29262
29263         [BZ #18435]
29264         * nptl/Makefile: Add tst-once5.cc.
29265         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
29266         Remove macro redefinitions.
29267         * nptl/tst-once5.cc: New test.
29268
29269 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
29270
29271         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
29272
29273         * sysdeps/arm/libm-test-ulps: Regenerated.
29274
29275         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
29276         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29277
29278 2015-06-30  Torvald Riegel  <triegel@redhat.com>
29279
29280         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
29281         lll_lock_wait_private and lll_futex_wake probes.
29282
29283         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29284         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
29285         Likewise.
29286         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
29287         atomic_spin_nop.
29288         * sysdeps/x86_64/bits/atomic.h: Likewise.
29289         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
29290         to atomic_spin_nop and move ...
29291         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
29292         ... here and ...
29293         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
29294         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
29295         atomic_spin_nop instead of BUSY_WAIT_NOP.
29296         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
29297         Likewise.
29298         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
29299         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
29300         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
29301         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
29302         instead of atomic_delay.
29303
29304 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
29305
29306         [BZ #18613]
29307         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
29308         X_ADJ not X when adjusting exponent.
29309         (__ieee754_gamma_r): Do intermediate computations in
29310         round-to-nearest then adjust overflowing and underflowing results
29311         as needed.
29312         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
29313         of X_ADJ not X when adjusting exponent.
29314         (__ieee754_gammaf_r): Do intermediate computations in
29315         round-to-nearest then adjust overflowing and underflowing results
29316         as needed.
29317         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
29318         log of X_ADJ not X when adjusting exponent.
29319         (__ieee754_gammal_r): Do intermediate computations in
29320         round-to-nearest then adjust overflowing and underflowing results
29321         as needed.  Use 1.0L not 1.0f as numerator of division.
29322         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
29323         log of X_ADJ not X when adjusting exponent.
29324         (__ieee754_gammal_r): Do intermediate computations in
29325         round-to-nearest then adjust overflowing and underflowing results
29326         as needed.  Use 1.0L not 1.0f as numerator of division.
29327         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
29328         of X_ADJ not X when adjusting exponent.
29329         (__ieee754_gammal_r): Do intermediate computations in
29330         round-to-nearest then adjust overflowing and underflowing results
29331         as needed.  Use 1.0L not 1.0f as numerator of division.
29332         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
29333         to auto-libm-test-in.
29334         (tgamma_test): Use ALL_RM_TEST.
29335         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
29336         tests of tgamma with spurious-overflow.
29337         * math/auto-libm-test-out: Regenerated.
29338         * math/gen-libm-have-vector-test.sh: Do not check for START.
29339         * sysdeps/i386/fpu/libm-test-ulps: Update.
29340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29341
29342         [BZ #18612]
29343         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
29344         arguments, just return 0.5 times the argument, with underflow
29345         forced as needed.
29346         * math/auto-libm-test-in: Add more tests of j1.
29347         * math/auto-libm-test-out: Regenerated.
29348
29349         [BZ #16559]
29350         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
29351         (__ieee754_j1): Force underflow exception for small results.
29352         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
29353         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
29354         (__ieee754_j1f): Force underflow exception for small results.
29355         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29356         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29357         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29358         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
29359         (__ieee754_j1l): Force underflow exception for small results.
29360         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29361         * math/auto-libm-test-in: Add more tests of j1 and jn.
29362         * math/auto-libm-test-out: Regenerated.
29363
29364         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
29365         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
29366         (PF_MPLS): Likewise.
29367         (AF_IB): Likewise.
29368         (AF_MPLS): Likewise.
29369         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
29370         value and macro.
29371         (MS_RMT_MASK): Include MS_LAZYTIME.
29372
29373 2015-06-26  Mel Gorman  <mgorman@suse.de>
29374
29375         [BZ #18502]
29376         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
29377         already minimal.
29378
29379 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
29380
29381         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
29382         (DT_MIPS_NUM): Update.
29383         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
29384         DT_MIPS_RLD_MAP_REL.
29385
29386 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
29387
29388         [BZ #16559]
29389         [BZ #18602]
29390         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
29391         round-to-nearest internally then recompute results that
29392         underflowed to zero in the original rounding mode.
29393         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
29394         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29395         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
29396         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29397         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
29398         * sysdeps/i386/fpu/libm-test-ulps: Update.
29399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29400
29401 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
29402
29403         * NEWS: Fixed description of link with vector math library.
29404
29405 2015-06-25  Andreas Schwab  <schwab@suse.de>
29406
29407         [BZ #18549]
29408         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
29409         * libio/test-fmemopen.c (do_test): Add test for it.
29410
29411 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
29412
29413         [BZ #17841]
29414         * Makeconfig (no-pie-ldflag): New.
29415         (+link): Set to $(+link-pie) if default to PIE.
29416         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
29417         * config.make.in (build-pie-default): New.
29418         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
29419         is default.  AC_SUBST.
29420         * configure: Regenerated.
29421         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
29422
29423 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29424
29425         * nptl/descr.h (struct pthread): Change type of field setxid_futex
29426         to 'unsigned int'.
29427
29428         * resolv/gai_misc.h (struct waitlist): Change type of field
29429         counterp to 'volatile unsigned int *'.
29430         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
29431         FUTEXADDR and OLDVAL.
29432         * resolv/getaddrinfo_a.c (getaddrinfo_a):
29433         Give local variable TOTAL type 'volatile unsigned int'.
29434         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29435         * resolv/gai_suspend.c (gai_suspend):
29436         Give local variable CNTR type 'unsigned int'.
29437
29438         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
29439         counterp to 'volatile unsigned int *'.
29440         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
29441         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
29442         (aio_suspend): Give local variable CNTR type 'unsigned int'.
29443         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
29444         Give local variable TOTAL type 'volatile unsigned int'.
29445         (struct async_waitlist): Change type of field counter to 'unsigned int'.
29446
29447 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29448
29449         [BZ #18383]
29450         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
29451         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
29452         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
29453         comment for i386/x86-64.
29454         (test-xfail-tst-tlsalign-extern-static): Removed.
29455
29456 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29457
29458         * math/test-double.h: New file.
29459         * math/test-float.h: Likewise.
29460         * math/test-ldouble.h: Likewise.
29461         * math/test-math-inline.h: Likewise.
29462         * math/test-math-no-inline.h: Likewise.
29463         * math/test-math-scalar.h: Likewise.
29464         * math/test-math-vector.h: Likewise.
29465         * math/test-vec-loop.h: Remove file.  Contents moved into
29466         test-math-vector.h.
29467         * math/libm-test.inc (MATHCONST): Do not document macro.
29468         * math/test-double.c: Include test-double.h, test-math-no-inline.h
29469         and test-math-scalar.h.
29470         (FUNC): Remove macro.
29471         (FUNC_TEST): Likewise.
29472         (FLOAT): Likewise.
29473         (MATHCONST): Likewise.
29474         (PRINTF_EXPR): Likewise.
29475         (PRINTF_XEXPR): Likewise.
29476         (PRINTF_NEXPR): Likewise.
29477         (TEST_DOUBLE): Likewise.
29478         (TEST_MATHVEC): Likewise.
29479         (__NO_MATH_INLINES): Likewise.
29480         * math/test-float.c: Include test-float.h, test-math-no-inline.h
29481         and test-math-scalar.h.
29482         (FUNC): Remove macro.
29483         (FUNC_TEST): Likewise.
29484         (FLOAT): Likewise.
29485         (MATHCONST): Likewise.
29486         (PRINTF_EXPR): Likewise.
29487         (PRINTF_XEXPR): Likewise.
29488         (PRINTF_NEXPR): Likewise.
29489         (TEST_FLOAT): Likewise.
29490         (TEST_MATHVEC): Likewise.
29491         (__NO_MATH_INLINES): Likewise.
29492         * math/test-idouble.c: Include test-double.h, test-math-inline.h
29493         and test-math-scalar.h.
29494         (FUNC): Remove macro.
29495         (FUNC_TEST): Likewise.
29496         (FLOAT): Likewise.
29497         (MATHCONST): Likewise.
29498         (PRINTF_EXPR): Likewise.
29499         (PRINTF_XEXPR): Likewise.
29500         (PRINTF_NEXPR): Likewise.
29501         (TEST_DOUBLE): Likewise.
29502         (TEST_MATHVEC): Likewise.
29503         (TEST_INLINE): Likewise.
29504         (__NO_MATH_INLINES): Likewise.
29505         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
29506         test-math-scalar.h.
29507         (FUNC): Remove macro.
29508         (FUNC_TEST): Likewise.
29509         (FLOAT): Likewise.
29510         (MATHCONST): Likewise.
29511         (PRINTF_EXPR): Likewise.
29512         (PRINTF_XEXPR): Likewise.
29513         (PRINTF_NEXPR): Likewise.
29514         (TEST_FLOAT): Likewise.
29515         (TEST_MATHVEC): Likewise.
29516         (TEST_INLINE): Likewise.
29517         (__NO_MATH_INLINES): Likewise.
29518         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
29519         and test-math-scalar.h.
29520         (FUNC): Remove macro.
29521         (FUNC_TEST): Likewise.
29522         (FLOAT): Likewise.
29523         (MATHCONST): Likewise.
29524         (PRINTF_EXPR): Likewise.
29525         (PRINTF_XEXPR): Likewise.
29526         (PRINTF_NEXPR): Likewise.
29527         (TEST_LDOUBLE): Likewise.
29528         (TEST_MATHVEC): Likewise.
29529         (TEST_INLINE): Likewise.
29530         (__NO_MATH_INLINES): Likewise.
29531         * math/test-ldouble.c: Include test-ldouble.h,
29532         test-math-no-inline.h and test-math-scalar.h.
29533         (FUNC): Remove macro.
29534         (FUNC_TEST): Likewise.
29535         (FLOAT): Likewise.
29536         (MATHCONST): Likewise.
29537         (PRINTF_EXPR): Likewise.
29538         (PRINTF_XEXPR): Likewise.
29539         (PRINTF_NEXPR): Likewise.
29540         (TEST_LDOUBLE): Likewise.
29541         (TEST_MATHVEC): Likewise.
29542         (__NO_MATH_INLINES): Likewise.
29543         * math/test-double-vlen2.h: Include test-double.h,
29544         test-math-no-inline.h and test-math-vector.h.
29545         (FLOAT): Remove macro.
29546         (FUNC): Likewise.
29547         (MATHCONST): Likewise.
29548         (PRINTF_EXPR): Likewise.
29549         (PRINTF_XEXPR): Likewise.
29550         (PRINTF_NEXPR): Likewise.
29551         (TEST_DOUBLE): Likewise.
29552         (TEST_MATHVEC): Likewise.
29553         (__NO_MATH_INLINES): Likewise.
29554         (CNCT): Likewise.
29555         (CONCAT): Likewise.
29556         (WRAPPER_NAME): Likewise.
29557         (WRAPPER_DECL): Likewise.
29558         (WRAPPER_DECL_ff): Likewise.
29559         (WRAPPER_DECL_fFF): Likewise.
29560         (VECTOR_WRAPPER): Likewise.
29561         (VECTOR_WRAPPER_ff): Likewise.
29562         (VECTOR_WRAPPER_fFF): Likewise.
29563         (VEC_LEN): New macro.
29564         * math/test-double-vlen4.h: Include test-double.h,
29565         test-math-no-inline.h and test-math-vector.h.
29566         (FLOAT): Remove macro.
29567         (FUNC): Likewise.
29568         (MATHCONST): Likewise.
29569         (PRINTF_EXPR): Likewise.
29570         (PRINTF_XEXPR): Likewise.
29571         (PRINTF_NEXPR): Likewise.
29572         (TEST_DOUBLE): Likewise.
29573         (TEST_MATHVEC): Likewise.
29574         (__NO_MATH_INLINES): Likewise.
29575         (CNCT): Likewise.
29576         (CONCAT): Likewise.
29577         (WRAPPER_NAME): Likewise.
29578         (WRAPPER_DECL): Likewise.
29579         (WRAPPER_DECL_ff): Likewise.
29580         (WRAPPER_DECL_fFF): Likewise.
29581         (VECTOR_WRAPPER): Likewise.
29582         (VECTOR_WRAPPER_ff): Likewise.
29583         (VECTOR_WRAPPER_fFF): Likewise.
29584         (VEC_LEN): New macro.
29585         * math/test-double-vlen8.h: Include test-double.h,
29586         test-math-no-inline.h and test-math-vector.h.
29587         (FLOAT): Remove macro.
29588         (FUNC): Likewise.
29589         (MATHCONST): Likewise.
29590         (PRINTF_EXPR): Likewise.
29591         (PRINTF_XEXPR): Likewise.
29592         (PRINTF_NEXPR): Likewise.
29593         (TEST_DOUBLE): Likewise.
29594         (TEST_MATHVEC): Likewise.
29595         (__NO_MATH_INLINES): Likewise.
29596         (CNCT): Likewise.
29597         (CONCAT): Likewise.
29598         (WRAPPER_NAME): Likewise.
29599         (WRAPPER_DECL): Likewise.
29600         (WRAPPER_DECL_ff): Likewise.
29601         (WRAPPER_DECL_fFF): Likewise.
29602         (VECTOR_WRAPPER): Likewise.
29603         (VECTOR_WRAPPER_ff): Likewise.
29604         (VECTOR_WRAPPER_fFF): Likewise.
29605         (VEC_LEN): New macro.
29606         * math/test-float-vlen4.h: Include test-float.h,
29607         test-math-no-inline.h and test-math-vector.h.
29608         (FLOAT): Remove macro.
29609         (FUNC): Likewise.
29610         (MATHCONST): Likewise.
29611         (PRINTF_EXPR): Likewise.
29612         (PRINTF_XEXPR): Likewise.
29613         (PRINTF_NEXPR): Likewise.
29614         (TEST_FLOAT): Likewise.
29615         (TEST_MATHVEC): Likewise.
29616         (__NO_MATH_INLINES): Likewise.
29617         (CNCT): Likewise.
29618         (CONCAT): Likewise.
29619         (WRAPPER_NAME): Likewise.
29620         (WRAPPER_DECL): Likewise.
29621         (WRAPPER_DECL_ff): Likewise.
29622         (WRAPPER_DECL_fFF): Likewise.
29623         (VECTOR_WRAPPER): Likewise.
29624         (VECTOR_WRAPPER_ff): Likewise.
29625         (VECTOR_WRAPPER_fFF): Likewise.
29626         (VEC_LEN): New macro.
29627         * math/test-float-vlen8.h: Include test-float.h,
29628         test-math-no-inline.h and test-math-vector.h.
29629         (FLOAT): Remove macro.
29630         (FUNC): Likewise.
29631         (MATHCONST): Likewise.
29632         (PRINTF_EXPR): Likewise.
29633         (PRINTF_XEXPR): Likewise.
29634         (PRINTF_NEXPR): Likewise.
29635         (TEST_FLOAT): Likewise.
29636         (TEST_MATHVEC): Likewise.
29637         (__NO_MATH_INLINES): Likewise.
29638         (CNCT): Likewise.
29639         (CONCAT): Likewise.
29640         (WRAPPER_NAME): Likewise.
29641         (WRAPPER_DECL): Likewise.
29642         (WRAPPER_DECL_ff): Likewise.
29643         (WRAPPER_DECL_fFF): Likewise.
29644         (VECTOR_WRAPPER): Likewise.
29645         (VECTOR_WRAPPER_ff): Likewise.
29646         (VECTOR_WRAPPER_fFF): Likewise.
29647         (VEC_LEN): New macro.
29648         * math/test-float-vlen16.h: Include test-float.h,
29649         test-math-no-inline.h and test-math-vector.h.
29650         (FLOAT): Remove macro.
29651         (FUNC): Likewise.
29652         (MATHCONST): Likewise.
29653         (PRINTF_EXPR): Likewise.
29654         (PRINTF_XEXPR): Likewise.
29655         (PRINTF_NEXPR): Likewise.
29656         (TEST_FLOAT): Likewise.
29657         (TEST_MATHVEC): Likewise.
29658         (__NO_MATH_INLINES): Likewise.
29659         (CNCT): Likewise.
29660         (CONCAT): Likewise.
29661         (WRAPPER_NAME): Likewise.
29662         (WRAPPER_DECL): Likewise.
29663         (WRAPPER_DECL_ff): Likewise.
29664         (WRAPPER_DECL_fFF): Likewise.
29665         (VECTOR_WRAPPER): Likewise.
29666         (VECTOR_WRAPPER_ff): Likewise.
29667         (VECTOR_WRAPPER_fFF): Likewise.
29668         (VEC_LEN): New macro.
29669         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
29670         test-vec-loop.h.
29671         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
29672         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
29673         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
29674         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
29675         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
29676         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
29677         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
29678
29679 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29680
29681         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
29682         (__getlogin_r): ... this.
29683
29684 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29685
29686         [BZ #18594]
29687         * math/s_ccosh.c (__ccosh): Compare with least normal value
29688         instead of comparing class with FP_SUBNORMAL.
29689         * math/s_ccoshf.c (__ccoshf): Likewise.
29690         * math/s_ccoshl.c (__ccoshl): Likewise.
29691         * math/s_cexp.c (__cexp): Likewise.
29692         * math/s_cexpf.c (__cexpf): Likewise.
29693         * math/s_cexpl.c (__cexpl): Likewise.
29694         * math/s_csin.c (__csin): Likewise.
29695         * math/s_csinf.c (__csinf): Likewise.
29696         * math/s_csinh.c (__csinh): Likewise.
29697         * math/s_csinhf.c (__csinhf): Likewise.
29698         * math/s_csinhl.c (__csinhl): Likewise.
29699         * math/s_csinl.c (__csinl): Likewise.
29700         * math/s_ctan.c (__ctan): Likewise.
29701         * math/s_ctanf.c (__ctanf): Likewise.
29702         * math/s_ctanh.c (__ctanh): Likewise.
29703         * math/s_ctanhf.c (__ctanhf): Likewise.
29704         * math/s_ctanhl.c (__ctanhl): Likewise.
29705         * math/s_ctanl.c (__ctanl): Likewise.
29706         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
29707         csin, csinh, ctan and ctanh.
29708         * math/auto-libm-test-out: Regenerated.
29709         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
29710         * sysdeps/i386/fpu/libm-test-ulps: Update.
29711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29712
29713 2015-06-24  Roland McGrath  <roland@hack.frob.com>
29714
29715         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
29716         return value is wrong, print the expected value too.
29717
29718 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29719
29720         [BZ #18585]
29721         * elf/readlib.c (is_gdb_python_file): New.
29722         (process_file): Don't issue errors on filenames with -gdb.py
29723         suffix.
29724
29725 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
29726
29727         * math/auto-libm-test-in: Add more tests of csin and csinh.
29728         * math/auto-libm-test-out: Regenerated.
29729         * math/libm-test.inc (csin_test_data): Remove tests moved to
29730         auto-libm-test-in.
29731         (csinh_test_data): Likewise.
29732
29733         [BZ #18593]
29734         * math/s_csin.c (__csin): Negate before rather than after possibly
29735         overflowing multiplication.
29736         * math/s_csinf.c (__csinf): Likewise.
29737         * math/s_csinh.c (__csinh): Likewise.
29738         * math/s_csinhf.c (__csinhf): Likewise.
29739         * math/s_csinhl.c (__csinhl): Likewise.
29740         * math/s_csinl.c (__csinl): Likewise.
29741         * math/auto-libm-test-in: Add some tests of csin and csinh.
29742         * math/auto-libm-test-out: Regenerated.
29743         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
29744         (csinh_test_data): Likewise.
29745         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29746
29747         [BZ #18586]
29748         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
29749         underflow exception for small results.
29750
29751 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
29752
29753         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29754         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
29755         variable and included header.
29756         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
29757         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
29758         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
29759         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
29760         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
29761         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
29762         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
29763         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
29764         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
29765         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
29766         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
29767         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
29768         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
29769         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
29770         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
29771         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
29772
29773 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29774
29775         [BZ #16526]
29776         [BZ #16538]
29777         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
29778         (__sin): Force underflow exception for arguments with small
29779         absolute value.
29780         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
29781         (__kernel_sinf): Force underflow exception for arguments with
29782         small absolute value.
29783         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
29784         (__kernel_sincosl): Force underflow exception for arguments with
29785         small absolute value.
29786         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
29787         (__kernel_sinl): Force underflow exception for arguments with
29788         small absolute value.
29789         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
29790         (__kernel_sincosl): Force underflow exception for arguments with
29791         small absolute value.
29792         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
29793         (__kernel_sinl): Force underflow exception for arguments with
29794         small absolute value.
29795         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
29796         (__kernel_sinl): Force underflow exception for arguments with
29797         small absolute value.
29798         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
29799         (__kernel_sinf): Force underflow exception for arguments with
29800         small absolute value.
29801         * math/auto-libm-test-in: Add more tests of sin and sincos.
29802         * math/auto-libm-test-out: Regenerated.
29803
29804         [BZ #18245]
29805         [BZ #18583]
29806         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
29807         (__kernel_standard_l): Use feholdexcept and fesetenv around
29808         conversion to double instead of special-casing overflow and
29809         underflow.
29810         * math/libm-test.inc (fmod_test_data): Add more tests.
29811         (remainder_test_data): Likewise.
29812         (sqrt_test_data): Likewise.
29813
29814 2015-06-23  Torvald Riegel  <triegel@redhat.com>
29815
29816         [BZ #17403]
29817         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
29818         atomic_read_barrier, atomic_write_barrier): Define.
29819         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
29820         atomic_read_barrier, atomic_write_barrier): Define.
29821
29822 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29823
29824         * math/Makefile [$(PERL) != no]
29825         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
29826         dependency on libm-test.stmp below the inclusion of Rules.
29827
29828 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
29829
29830         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
29831         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
29832         and included header.
29833         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
29834         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
29835         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
29836         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
29837         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
29838         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
29839         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
29840         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
29841         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
29842         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
29843         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
29844         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
29845         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
29846         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
29847         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
29848         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
29849         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
29850         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
29851         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
29852
29853 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
29854
29855         [BZ #18371]
29856         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
29857         intermediate but not final result might underflow.
29858         * math/s_csqrtf.c (__csqrtf): Likewise.
29859         * math/s_csqrtl.c (__csqrtl): Likewise.
29860         * math/auto-libm-test-in: Add more tests of csqrt.
29861         * math/auto-libm-test-out: Regenerated.
29862         * sysdeps/i386/fpu/libm-test-ulps: Update.
29863
29864         [BZ #18219]
29865         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
29866         threshold on absolute value of exponent for which scaling is used.
29867         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
29868         * math/auto-libm-test-in: Add more tests of exp2.
29869         * math/auto-libm-test-out: Regenerated.
29870
29871 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
29872
29873         [BZ #17977]
29874         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
29875         when initializing interface list, based on the bug analysis
29876         and the patch proposed by Eric Newton.
29877         * resolv/tst-res_hconf_reorder.c: New test.
29878         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
29879         tst-res_hconf_reorder.
29880         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
29881         and $(shared-thread-library).
29882         (tst-res_hconf_reorder-ENV): New variable.
29883
29884         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
29885         in comment.
29886
29887 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
29888
29889         [BZ #16353]
29890         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
29891         (__expm1): Force underflow exception for arguments with small
29892         absolute value.
29893         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
29894         (__expm1f): Force underflow exception for arguments with small
29895         absolute value.
29896         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
29897         (__expm1): Force underflow exception for arguments with small
29898         absolute value.
29899         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
29900         (__expm1f): Force underflow exception for arguments with small
29901         absolute value.
29902         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29903         Check for small arguments before calling __expm1.
29904         * math/auto-libm-test-in: Do not mark underflow exceptions as
29905         possibly missing for bug 16353.
29906         * math/auto-libm-test-out: Regenerated.
29907
29908 2015-06-22  Andreas Schwab  <schwab@suse.de>
29909
29910         [BZ #18513]
29911         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
29912         PTR queries.
29913
29914 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
29915
29916         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
29917
29918         * string/strcoll_l.c: Remove unused struct element idxnow.
29919
29920 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
29921
29922         [BZ #18569]
29923         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
29924         underflow and return argument in case of subnormal argument.
29925         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29926         Likewise.
29927         * math/auto-libm-test-in: Add more tests of expm1.
29928         * math/auto-libm-test-out: Regenerated.
29929
29930         [BZ #16361]
29931         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29932         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29933         tiny results.
29934         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
29935         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
29936         tiny results.
29937         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
29938         mark underflow exceptions as possibly missing for bug 16361.
29939         * math/auto-libm-test-out: Regenerated.
29940
29941 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
29942
29943         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
29944         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
29945         Remove variable.
29946         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
29947         (test-xfail-XOPEN2K8/utmpx.h/conform).
29948
29949         * conform/conformtest.pl ($xerrors): New variable.
29950         (note_error): New function.
29951         (compiletest): New argument $xfail.  Use not_error.
29952         (runtest): Likewise.
29953         (top level): Handle xfail- lines.  Update calls to compiletest and
29954         runtest.  Handle xfail- and optional- in headers listed with
29955         allow-header.
29956         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
29957         (O_EXEC): Likewise.
29958         (O_SEARCH): Likewise.
29959         * conform/data/stropts.h-data (ioctl): Likewise.
29960         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
29961         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
29962         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
29963         (msghdr.msg_controllen): Likewise.
29964         (cmsghdr.cmsg_len): Likewise.
29965         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
29966         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
29967         variable.
29968         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
29969         (test-xfail-XPG4/stropts.h/conform): Likewise.
29970         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
29971         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
29972         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
29973         (test-xfail-UNIX98/stropts.h/conform): Likewise.
29974         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
29975         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
29976         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
29977         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
29978         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
29979         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
29980         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
29981         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
29982         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
29983         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
29984         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
29985         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
29986         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
29987         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
29988         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
29989
29990 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
29991
29992         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
29993         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
29994         definitions for proper unfolding of __MATHDECL_VEC.
29995
29996 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
29997
29998         * benchtests/bench-strcoll.c:
29999         Include string.h.
30000         (main): Remove unused variable res.
30001
30002 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
30003
30004         * timezone/Makefile (%/UTC %/Universal):
30005         Generate test-result files for UTC and Universal.
30006
30007 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
30008
30009         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
30010
30011 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
30012
30013         [BZ #16350]
30014         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
30015         for arguments with small absolute value.
30016         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
30017         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
30018         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
30019         (__asinh): Force underflow exception for arguments with small
30020         absolute value.
30021         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
30022         (__asinhf): Force underflow exception for arguments with small
30023         absolute value.
30024         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
30025         (__asinhl): Force underflow exception for arguments with small
30026         absolute value.
30027         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
30028         (__asinhl): Force underflow exception for arguments with small
30029         absolute value.
30030         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
30031         (__asinhl): Force underflow exception for arguments with small
30032         absolute value.
30033         * math/auto-libm-test-in: Do not mark underflow exceptions as
30034         possibly missing for bug 16350.
30035         * math/auto-libm-test-out: Regenerated.
30036
30037         * include/bits/ipc.h: Remove file.
30038         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
30039         variable.
30040         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
30041         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
30042         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
30043         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
30044         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
30045         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
30046         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
30047         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
30048         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
30049
30050         * math/auto-libm-test-in: Remove spurious underflow allowance for
30051         tests of cexp.
30052         * math/auto-libm-test-out: Regenerated.
30053
30054         [BZ #18558]
30055         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
30056         unconditional definition.
30057         (MCAST_BLOCK_SOURCE): Likewise.
30058         (MCAST_UNBLOCK_SOURCE): Likewise.
30059         (MCAST_LEAVE_GROUP): Likewise.
30060         (MCAST_JOIN_SOURCE_GROUP): Likewise.
30061         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
30062         (MCAST_MSFILTER): Likewise.
30063         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
30064         Remove variable.
30065         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
30066         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
30067         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
30068         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
30069         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
30070
30071 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
30072
30073         * NEWS: Mention addition of x86_64 vector sincosf.
30074         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
30075         * math/test-float-vlen4.h: Likewise.
30076         * math/test-float-vlen8.h: Likewise.
30077         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30078         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
30079         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30080         * sysdeps/x86_64/fpu/Versions: New versions added.
30081         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30082         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30083         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30084         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
30085         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
30086         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
30087         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
30088         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
30089         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
30090         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
30091         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
30092         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
30093         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
30094         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
30095         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
30096         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
30097         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
30098         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
30099         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30100         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30101         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30102         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30103         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30104         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30105
30106         * NEWS: Mention addition of x86_64 vector sincos.
30107         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
30108         * math/math.h (__MATHDECL_VEC): New macro.
30109         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
30110         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
30111         declaration under condition.
30112         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
30113         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
30114         TEST_VEC_LOOP change.
30115         * math/test-double-vlen4.h: Likewise.
30116         * math/test-double-vlen8.h: Likewise.
30117         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
30118         * math/test-float-vlen4.h: Likewise.
30119         * math/test-float-vlen8.h: Likewise.
30120         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30121         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
30122         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30123         * sysdeps/x86_64/fpu/Versions: New versions added.
30124         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30125         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30126         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30127         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
30128         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
30129         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
30130         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
30131         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
30132         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
30133         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
30134         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
30135         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
30136         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
30137         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
30138         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
30139         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
30140         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
30141         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30142         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30143         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30144         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30145         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30146         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30147         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30148
30149         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30150         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30151         redirections for powf.
30152         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30153         * sysdeps/x86_64/fpu/Versions: New versions added.
30154         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30155         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30156         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30157         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
30158         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
30159         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
30160         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
30161         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
30162         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
30163         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
30164         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
30165         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
30166         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
30167         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
30168         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
30169         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
30170         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
30171         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30172         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30173         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30174         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30175         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30176         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30177         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30178         * math/test-float-vlen16.h: Fixed 2 argument macro.
30179         * math/test-float-vlen4.h: Likewise.
30180         * math/test-float-vlen8.h: Likewise.
30181         * NEWS: Mention addition of x86_64 vector powf.
30182
30183 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
30184
30185         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
30186         and redefine.
30187         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
30188         and redefine.
30189         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
30190         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
30191         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30192
30193         [BZ #18553]
30194         * resource/getpriority.c (getpriority): Rename to __getpriority
30195         and define as weak alias of __getpriority.
30196         * resource/setpriority.c (setpriority): Rename to __setpriority
30197         and define as weak alias of __setpriority.
30198         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
30199         __getpriority and define as weak alias of __getpriority.
30200         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
30201         __setpriority and define as weak alias of __setpriority.
30202         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
30203         strong name.
30204         (setpriority): Use __setpriority as strong name.
30205         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
30206         __getpriority and define as weak alias of __getpriority.
30207         * include/sys/resource.h (__getpriority): Declare.  Use
30208         libc_hidden_proto.
30209         (__setpriority): Likewise.
30210         (getpriority): Don't use libc_hidden_proto.
30211         (setpriority): Likewise.
30212         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
30213         getpriority.  Call __setpriority instead of setpriority.
30214         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
30215         Remove variable.
30216
30217         [BZ #18547]
30218         * misc/getttyent.c (getttynam): Rename to __getttynam and define
30219         as weak alias of __getttynam.  Use prototype function definition.
30220         Call __setttyent, __getttyent and __endttyent instead of
30221         setttyent, getttyent and endttyent.
30222         (getttyent): Rename to __getttyent and define as weak alias of
30223         __getttyent.  Call __setttyent instead of setttyent.  Call
30224         __fgets_unlocked instead of fgets_unlocked.
30225         (setttyent): Rename to __setttyent and define as weak alias of
30226         __setttyent.
30227         (endttyent): Rename to __endttyent and define as weak alias of
30228         __endttyent.
30229         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
30230         (__setttyent): Likewise.
30231         (__endttyent): Likewise.
30232         (getttyent): Don't use libc_hidden_proto.
30233         (setttyent): Likewise.
30234         (endttyent): Likewise.
30235         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
30236         __endttyent instead of setttyent, getttyent and endttyent.
30237         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
30238         Remove variable.
30239
30240         [BZ #18546]
30241         * socket/recv.c (__recv): Use libc_hidden_def.
30242         * socket/socket.c (__socket): Likewise.
30243         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
30244         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
30245         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
30246         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
30247         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
30248         libc_hidden_def.
30249         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
30250         libc_hidden_weak.
30251         * include/sys/socket.h (__socket): Do not use attribute_hidden.
30252         Use libc_hidden_proto.
30253         (__recv): Likewise.
30254         * socket/Versions (libc): Export __recv and __socket at version
30255         GLIBC_PRIVATE.
30256         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
30257         instead of recv.
30258         (init_mq_netlink): Call __socket instead of socket.
30259         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
30260         Remove variable.
30261
30262         [BZ #18545]
30263         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
30264         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
30265         hidden_weak.
30266         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
30267         define as alias of __mq_timedsend.  Use hidden_weak.
30268         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
30269         __mq_timedsend as strong name.
30270         (mq_timedreceive): Use __mq_timedreceive as strong name.
30271         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
30272         (__mq_timedreceive): Likewise.
30273         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
30274         __mq_timedreceive instead of mq_timedreceive.
30275         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
30276         instead of mq_timedsend.
30277         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
30278         Remove variable.
30279
30280         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
30281         hidden_def and hidden_weak instead of libc_hidden_def and
30282         libc_hidden_weak.
30283         (top level): Refer to hidden_def in comment.
30284         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
30285         macro.  Use it instead of libc_hidden_def.
30286         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
30287         specify __GI_* name explicitly.
30288         (mq_timedreceive): Likewise.
30289         (mq_setattr): Likewise.
30290
30291         [BZ #18544]
30292         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
30293         __pthread_barrier_init and define as weak alias of
30294         __pthread_barrier_init.
30295         * sysdeps/sparc/nptl/pthread_barrier_init.c
30296         (pthread_barrier_init): Likewise.
30297         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
30298         __pthread_barrier_wait and define as weak alias of
30299         __pthread_barrier_wait.
30300         * sysdeps/sparc/nptl/pthread_barrier_wait.c
30301         (pthread_barrier_wait): Likewise.
30302         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
30303         (pthread_barrier_wait): Likewise.
30304         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
30305         (pthread_barrier_wait): Likewise.
30306         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
30307         (pthread_barrier_wait): Likewise.
30308         * nptl/Versions (libpthread): Export __pthread_barrier_init and
30309         __pthread_barrier_wait at version GLIBC_PRIVATE.
30310         * include/pthread.h (__pthread_barrier_init): Declare.
30311         (__pthread_barrier_wait): Likewise.
30312         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
30313         Call __pthread_barrier_wait instead of pthread_barrier_wait.
30314         (helper_thread): Likewise.
30315         (init_mq_netlink): Call __pthread_barrier_init instead of
30316         pthread_barrier_init.
30317
30318         [BZ #18542]
30319         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
30320         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
30321         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
30322         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
30323         vswscanf.
30324         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
30325         Remove variable.
30326
30327         [BZ #18540]
30328         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
30329         strong alias of _IO_fflush.  Use libc_hidden_def.
30330         * libio/iofflush_u.c (fflush_unlocked): Rename to
30331         __fflush_unlocked and define as weak alias of __fflush_unlocked.
30332         Use libc_hidden_weak.
30333         * include/stdio.h (__fflush_unlocked): Declare.  Use
30334         libc_hidden_proto.
30335         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
30336         fflush_unlocked.
30337         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
30338         Remove variable.
30339
30340         [BZ #18539]
30341         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
30342         define as weak alias of __addseverity.
30343         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
30344         Remove variable.
30345         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
30346         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
30347         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
30348
30349         [BZ #18536]
30350         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
30351         (__tfind): Likewise.
30352         (__tdelete): Likewise.
30353         (__twalk): Likewise.
30354         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
30355         __twalk to GLIBC_PRIVATE.
30356         * include/search.h (__tsearch): Use libc_hidden_proto.
30357         (__tfind): Likewise.
30358         (__tdelete): Likewise.
30359         (__twalk): Likewise.
30360         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
30361         Call __tdelete instead of tdelete.
30362         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
30363         tfind.  Call __tsearch instead of tsearch.
30364         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
30365         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
30366         Remove variable.
30367         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
30368
30369         [BZ #18534]
30370         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
30371         (dprintf): Define as a weak alias of __dprintf, not a strong
30372         alias.
30373         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
30374         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
30375         dprintf.
30376         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
30377         Remove variable.
30378         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
30379         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
30380
30381         [BZ #18533]
30382         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
30383         not a strong alias.
30384         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
30385         Remove variable.
30386
30387         [BZ #18532]
30388         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
30389         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
30390         (in6addr_loopback): Rename to __in6addr_loopback and define as
30391         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
30392         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
30393         libc_hidden_proto.
30394         (__in6addr_any): Likewise.
30395         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
30396         in6addr_any.
30397         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
30398         variable.
30399         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
30400
30401 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
30402
30403         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
30404         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
30405         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30406         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30407         redirections for pow.
30408         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30409         * sysdeps/x86_64/fpu/Versions: New versions added.
30410         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30411         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30412         build of SSE, AVX2 and AVX512 IFUNC versions.
30413         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
30414         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
30415         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
30416         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
30417         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
30418         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
30419         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
30420         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
30421         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
30422         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
30423         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
30424         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
30425         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
30426         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
30427         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30428         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30429         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30430         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30431         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30432         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30433         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30434         * NEWS: Mention addition of x86_64 vector pow.
30435
30436         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30437         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30438         redirections for expf.
30439         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30440         * sysdeps/x86_64/fpu/Versions: New versions added.
30441         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30442         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30443         build of SSE, AVX2 and AVX512 IFUNC versions.
30444         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
30445         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
30446         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
30447         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
30448         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
30449         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
30450         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
30451         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
30452         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
30453         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
30454         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
30455         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
30456         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
30457         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30458         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30459         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30460         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30461         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30462         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30463         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30464         * NEWS: Mention addition of x86_64 vector expf.
30465
30466         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
30467         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
30468         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30469         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30470         redirections for exp.
30471         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30472         * sysdeps/x86_64/fpu/Versions: New versions added.
30473         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30474         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30475         build of SSE, AVX2 and AVX512 IFUNC versions.
30476         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
30477         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
30478         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
30479         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
30480         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
30481         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
30482         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
30483         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
30484         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
30485         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
30486         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
30487         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
30488         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
30489         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30490         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30491         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30492         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30493         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30494         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30495         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30496         * NEWS: Mention addition of x86_64 vector exp.
30497
30498         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30499         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30500         redirections for logf.
30501         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30502         * sysdeps/x86_64/fpu/Versions: New versions added.
30503         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30504         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30505         build of SSE, AVX2 and AVX512 IFUNC versions.
30506         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
30507         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
30508         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
30509         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
30510         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
30511         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
30512         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
30513         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
30514         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
30515         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
30516         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
30517         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
30518         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
30519         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30520         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30521         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30522         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30523         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30524         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30525         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30526         * NEWS: Mention addition of x86_64 vector logf.
30527
30528         * bits/libm-simd-decl-stubs.h: Added stubs for log.
30529         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
30530         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30531         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
30532         redirections for log.
30533         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30534         * sysdeps/x86_64/fpu/Versions: New versions added.
30535         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30536         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30537         build of SSE, AVX2 and AVX512 IFUNC versions.
30538         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
30539         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
30540         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
30541         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
30542         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
30543         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
30544         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
30545         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
30546         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
30547         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
30548         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
30549         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
30550         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
30551         test.
30552         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30553         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30554         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30555         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30556         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30557         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30558         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30559         * NEWS: Mention addition of x86_64 vector log.
30560
30561 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
30562
30563         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
30564         cfi_adjust_cfa_offset argument.
30565         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
30566         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
30567
30568         [BZ #18034]
30569         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
30570         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
30571         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
30572         ordering using ldar.
30573         (_dl_tlsdesc_dynamic): Likewise.
30574         (_dl_tlsdesc_return_lazy): Likewise.
30575         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
30576         relaxed atomics instead of volatile and synchronize with release store.
30577         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
30578         volatile.
30579         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
30580
30581 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
30582
30583         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
30584         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
30585         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30586         * sysdeps/x86_64/fpu/Versions: New versions added.
30587         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30588         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
30589         build of SSE, AVX2 and AVX512 IFUNC versions.
30590         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
30591         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
30592         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
30593         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
30594         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
30595         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
30596         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
30597         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
30598         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
30599         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
30600         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
30601         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
30602         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
30603         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
30604         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
30605         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
30606         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
30607         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
30608         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
30609         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
30610         * NEWS: Mention addition of x86_64 vector sinf.
30611
30612 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
30613
30614         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
30615         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
30616         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
30617         Remove variable.
30618         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
30619         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
30620
30621 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30622
30623         [BZ #18530]
30624         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
30625         strong alias of _IO_fputs.  Use libc_hidden_def.
30626         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
30627         and define as weak alias of __fputs_unlocked.  Use
30628         libc_hidden_weak.
30629         * include/stdio.h (__fputs_unlocked): Declare.  Use
30630         libc_hidden_proto.
30631         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
30632         fputs_unlocked.
30633
30634         [BZ #18529]
30635         * resolv/netdb.h [__USE_POSIX]: Change condition to
30636         [__USE_XOPEN2K].
30637         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
30638         not expect.
30639         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
30640         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
30641         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
30642         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
30643         [XPG4 || UNIX98] (AI_ALL): Likewise.
30644         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
30645         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
30646         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
30647         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
30648         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
30649         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
30650         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
30651         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
30652         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
30653         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
30654         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
30655         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
30656         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
30657         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
30658         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
30659         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30660         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
30661         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
30662         [XPG4 || UNIX98] (gai_strerror): Likewise.
30663         [XPG4 || UNIX98] (getaddrinfo): Likewise.
30664         [XPG4 || UNIX98] (getnameinfo): Likewise.
30665
30666         [BZ #18528]
30667         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
30668         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
30669         __USE_XOPEN2K8].
30670         (getgrent): Likewise.
30671         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
30672         expect.
30673         [XPG3 || POSIX2008] (endgrent): Likewise.
30674         [XPG3] (setgrent): Likewise.
30675         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
30676         variable.
30677         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
30678
30679         [BZ #18527]
30680         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
30681         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
30682         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
30683         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
30684         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
30685         * include/unistd.h (__getlogin_r): Declare.  Use
30686         libc_hidden_proto.
30687         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
30688         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
30689         variable.
30690         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
30691         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
30692         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
30693
30694 2015-06-12  Martin Sebor  <msebor@redhat.com>
30695
30696         [BZ #18512]
30697         * Makerules (check-install-supported): New target.
30698         (install): Add check-install-supported as a dependency.
30699         * manual/install.texi (Installing the C Library): Document
30700         that overriding prefix and exec_prefix is not supported.
30701         Mention DESTDIR.
30702         * INSTALL: Regenerate from the above.
30703
30704 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
30705
30706         [BZ #18519]
30707         * posix/Versions (libc): Export __libc_pread at version
30708         GLIBC_PRIVATE.
30709         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
30710         instead of pread.
30711         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
30712         variable.
30713
30714         [BZ #18522]
30715         * misc/efgcvt_r.c
30716         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
30717         (cvt_symbol): Use weak_alias instead of strong_alias.
30718         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
30719         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
30720         Remove variable.
30721         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
30722         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
30723
30724         [BZ #18520]
30725         * inet/herrno.c (h_errno): Rename to __h_errno.
30726         (__libc_h_errno): Define as alias of __h_errno not h_errno.
30727         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
30728         to __h_errno instead of h_errno.
30729         * nptl/herrno.c (h_errno): Rename to __h_errno.
30730         (__h_errno_location): Refer to __h_errno not h_errno.
30731         * resolv/Versions (h_errno): Rename to __h_errno.
30732         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
30733         Remove variable.
30734         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
30735
30736 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
30737
30738         * configure.ac: More strict check for AVX512 assembler support.
30739         * configure: Regenerated.
30740
30741         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
30742         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
30743         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30744         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
30745         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30746         * sysdeps/x86_64/fpu/Versions: New versions added.
30747         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30748         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30749         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30750         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
30751         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
30752         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
30753         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
30754         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
30755         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
30756         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
30757         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
30758         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
30759         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
30760         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
30761         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
30762         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
30763         test.
30764         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
30765         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
30766         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
30767         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
30768         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
30769         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
30770         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
30771         * NEWS: Mention addition of x86_64 vector sin.
30772
30773 2015-06-11  Florian Weimer  <fweimer@redhat.com>
30774
30775         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
30776         comment.
30777
30778 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
30779
30780         [BZ #18479]
30781         * nptl/pt-interp.c: New file.
30782         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
30783         Add pt-interp.
30784         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
30785         $(common-objpfx)runtime-linker.h.
30786
30787 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
30788
30789         * Makeconfig (+interp): Remove unused variable.
30790         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
30791         only.  Depend on $(common-objpfx)runtime-linker.h instead of
30792         $(elf-objpfx)runtime-linker.h.
30793         ($(elf-objpfx)runtime-linker.h): Rename to
30794         $(common-objpfx)runtime-linker.h and move ...
30795         * Makerules [$(build-shared) = yes]: ... here.
30796         * elf/interp.c: Include <runtime-linker.h> instead of
30797         <elf/runtime-linker.h>.
30798
30799 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30800
30801         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
30802         (__gettimeofday_syscall): Remove vsyscall fallback.
30803         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
30804         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
30805         Add syscall fallback function.
30806         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
30807         if vDSO is not present.
30808         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
30809         fallback function.
30810         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
30811         present.
30812         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
30813         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30814
30815 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
30816
30817         [BZ #18497]
30818         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
30819         of wcscmp.
30820         (wcscmp): Define as weak alias of WCSCMP.
30821         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
30822         wcscoll.
30823         (USE_HIDDEN_DEF): Define.
30824         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
30825         __wcscoll.  Don't use libc_hidden_weak.
30826         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
30827         wcscmp.
30828         * sysdeps/i386/i686/multiarch/wcscmp-c.c
30829         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
30830         __GI_wcscmp.
30831         (weak_alias): Undefine and redefine.
30832         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
30833         __wcscmp and define as weak alias of __wcscmp.
30834         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
30835         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
30836         (__wcscoll): Likewise.
30837         (wcscmp): Don't use libc_hidden_proto.
30838         (wcscoll): Likewise.
30839         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
30840         wcscoll.
30841         * posix/regexec.c (check_node_accept_bytes): Likewise.
30842         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
30843         variable.
30844         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
30845         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
30846
30847         [BZ #18507]
30848         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
30849         __fstatvfs and define as weak alias of __fstatvfs.  Use
30850         libc_hidden_weak.
30851         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
30852         and define as weak alias of __statvfs.  Use libc_hidden_weak.
30853         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
30854         Define as alias of __fstatvfs, not fstatvfs.
30855         (fstatvfs64): Likewise.
30856         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
30857         Define as alias of __statvfs, not statvfs.
30858         (statvfs64): Likewise.
30859         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
30860         Remove variable.
30861
30862 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
30863
30864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
30865         (HAVE_GETCPU_VSYSCALL): Define.
30866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30867         (HAVE_GETCPU_VSYSCALL): Likewise.
30868         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
30869         * sysdeps/unix/sysv/linux/sched_getcpu.c
30870         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
30871         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
30872         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
30873         prototype.
30874         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30875         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
30876         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
30877         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
30878         Define.
30879         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
30880         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
30881         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
30882         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30883
30884 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
30885
30886         * sysdeps/x86_64/fpu/Makefile: New file.
30887         * sysdeps/x86_64/fpu/Versions: New file.
30888         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
30889         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
30890         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
30891         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
30892         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
30893         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
30894         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
30895         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
30896         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
30897         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
30898         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
30899         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
30900         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
30901         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30902         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30903         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
30904         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
30905         * sysdeps/x86_64/configure.ac: Options for libmvec build.
30906         * sysdeps/x86_64/configure: Regenerated.
30907         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
30908         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
30909         * manual/install.texi (Configuring and compiling): Document
30910         --disable-mathvec.
30911         * INSTALL: Regenerated.
30912         * NEWS: Mention addition of libmvec and x86_64 vector cos.
30913
30914         * math/Makefile: Added rules for vector tests.
30915         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
30916         declaration under condition.
30917         * math/test-double-vlen2.h: New file.
30918         * math/test-double-vlen4.h: New file.
30919         * math/test-double-vlen8.h: New file.
30920         * math/test-vec-loop.h: Added initialization macro.
30921         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
30922         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
30923         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
30924         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
30925         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
30926         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
30927         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
30928         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
30929         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
30930         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
30931         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
30932
30933         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
30934         * sysdeps/x86_64/fpu/Versions: New versions added.
30935         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
30936         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
30937         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
30938         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
30939         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
30940         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
30941         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
30942         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
30943         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
30944         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
30945         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
30946         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
30947         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
30948         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
30949         Added build of SSE, AVX2 and AVX512 IFUNC versions.
30950         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
30951         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
30952         * NEWS: Mention addition of x86_64 vector cosf.
30953
30954         * math/Makefile: Added CFLAGS for new tests.
30955         * math/test-float-vlen16.h: New file.
30956         * math/test-float-vlen4.h: New file.
30957         * math/test-float-vlen8.h: New file.
30958         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
30959         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
30960         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30961         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
30962         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
30963         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
30964         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
30965         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
30966         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
30967         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
30968         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
30969
30970 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
30971
30972         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
30973         * locale/programs/ld-ctype.c: Likewise.
30974
30975 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
30976
30977         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
30978         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
30979         bit_ZMM16_31_state): New macro.
30980         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30981         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
30982
30983 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
30984
30985         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
30986
30987 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
30988
30989         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
30990
30991 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
30992
30993         [BZ #18498]
30994         * libio/memstream.c (open_memstream): Rename to __open_memstream
30995         and define as weak alias of __open_memstream.
30996         * include/stdio.h (__open_memstream): Declare.  Use
30997         libc_hidden_proto.
30998         (open_memstream): Don't use libc_hidden_proto.
30999         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
31000         open_memstream.
31001         * posix/getopt.c (_getopt_internal_r): Likewise.
31002         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
31003         variable.
31004         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
31005         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
31006         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
31007
31008         [BZ #18496]
31009         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
31010         instead of wcrtomb.
31011
31012         [BZ #18483]
31013         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
31014         [__USE_XOPEN2K8].  Remove redundant #endif.
31015         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
31016         Remove redundant #if.
31017         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
31018         Remove variable.
31019         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
31020         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
31021
31022         [BZ #18495]
31023         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
31024         (__iswlower): Likewise.
31025         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
31026         (__iswlower): Likewise.
31027         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
31028         instead of towlower.
31029         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
31030         instead of iswlower.  Call __towupper instead of towupper.
31031         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
31032         instead of iswalnum.
31033
31034 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31035
31036         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
31037         errors to stderr.
31038
31039 2015-06-05  Florian Weimer  <fweimer@redhat.com>
31040
31041         [BZ #15661]
31042         [BZ #17322]
31043         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
31044         Check for overflow properly.  Check for O_APPEND.  Ignore large
31045         file system block sizes.  Add comments about problems.
31046         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
31047         * manual/filesys.texi (Storage Allocation): New node.
31048
31049 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31050
31051         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
31052         cancellable syscalls.
31053         (SYS_ify): Add guard to no redefine it.
31054         (INLINE_SYSCALL): Likewise.
31055         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
31056         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
31057         SYSCALL_CANCEL instead.
31058         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
31059         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
31060         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
31061         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
31062         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
31063         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
31064         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
31065         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
31066         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
31067         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
31068         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
31069         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
31070         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
31071         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
31072         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
31073         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
31074         Likewise.
31075         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
31076         (__libc_pread64): Likewise.
31077         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
31078         (__libc_preadv): Likewise.
31079         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
31080         (__libc_readv64): Likewise.
31081         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
31082         (__libc_pwrite): Likewise.
31083         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
31084         (__libc_pwrite64): Likewise.
31085         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
31086         (__libc_pwritev): Likewise.
31087         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
31088         (__libc_pwritev64): Likewise.
31089         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
31090         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
31091         (sync_file_range): Likewise.
31092         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
31093         Likewise.
31094         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
31095         Likewise.
31096         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
31097         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
31098         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
31099         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
31100         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
31101         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
31102         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
31103         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
31104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
31105         Likewise.
31106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
31107         (__libc_read64): Likewise.
31108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
31109         Likewise.
31110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
31111         Likewise.
31112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
31113         Likewise.
31114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
31115         Likewise.
31116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
31117         (__libc_pread64): Likewise.
31118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
31119         Likewise.
31120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
31121         (__libc_pwrite64): Likewise.
31122         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
31123         (sync_file_range): Likewise.
31124         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
31125         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
31126         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
31127         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
31128         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
31129         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
31130         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
31131         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
31132         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
31133         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
31134         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
31135         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
31136         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
31137         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
31138         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
31139         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
31140         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
31141         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
31142         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
31143         Likewise.
31144         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
31145         Likewise.
31146         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
31147         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
31148         Likewise.
31149         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
31150         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
31151         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
31152         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
31153         Likewise.
31154         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
31155         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
31156         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
31157         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
31158         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
31159
31160 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
31161
31162         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
31163         Include dl-vdso.
31164         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
31165         Use VDSO routines for gettimeofday, clock_gettime if
31166         available.
31167         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
31168         Declare VDSO symbols.
31169         * sysdeps/unix/sysv/linux/arm/sysdep.h:
31170         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
31171         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31172         * sysdeps/unix/sysv/linux/arm/Versions: Add
31173         __vdso_clock_gettime.
31174
31175 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31176
31177         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
31178         be an inline implementation regardless of library is built within.
31179         (open_not_cancel_2): Likewise.
31180         (__read_nocancel): Likewise.
31181         (__write_nocancel): Likewise.
31182         (openat_not_cancel): Likewise.
31183         (openat_not_cancel_3): Likewise.
31184         (openat64_not_cancel): Likewise.
31185         (openat64_not_cancel_3): Likewise.
31186         (__close_nocancel): Likewise.
31187         (pause_not_cancel): Likewise.
31188         (nanosleep_not_cancel): Likewise.
31189         (sigsuspend_not_cancel): Likewise.
31190
31191 2015-06-04  Torvald Riegel  <triegel@redhat.com>
31192
31193         [BZ #14958]
31194         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
31195         wake-up.
31196         (__pthread_rwlock_rdlock_slow): Likewise.
31197         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
31198         Likewise.
31199         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
31200         Likewise.
31201         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
31202         * nptl/tst-rwlock16.c: New file.
31203         * nptl/Makefile (tests): Add new test.
31204
31205 2015-06-04  Torvald Riegel  <triegel@redhat.com>
31206
31207         [BZ #18324]
31208         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
31209         missing wake-up of readers.
31210         * nptl/tst-rwlock15.c: New file.
31211         * nptl/Makefile (tests): Add new test.
31212
31213 2015-06-03  Roland McGrath  <roland@hack.frob.com>
31214
31215         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
31216         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
31217         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
31218         and __nacl_supply_interface_rtld.
31219         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
31220         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
31221         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
31222         Add __nacl_supply_interface_rtld.
31223         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
31224
31225 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
31226
31227         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
31228         isfinite.
31229         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
31230         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
31231
31232 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
31233
31234         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
31235         __signbit* with standard C99 macros.
31236         * math/e_exp10l.c: Likewise.
31237         * math/e_exp2l.c: Likewise.
31238         * math/e_scalb.c: Likewise.
31239         * math/e_scalbf.c: Likewise.
31240         * math/e_scalbl.c: Likewise.
31241         * math/s_ldexp.c: Likewise.
31242         * math/s_ldexpf.c: Likewise.
31243         * math/s_ldexpl.c: Likewise.
31244         * math/w_atan2.c: Likewise.
31245         * math/w_atan2f.c: Likewise.
31246         * math/w_atan2l.c: Likewise.
31247         * math/w_cosh.c: Likewise.
31248         * math/w_coshf.c: Likewise.
31249         * math/w_coshl.c: Likewise.
31250         * math/w_exp10.c: Likewise.
31251         * math/w_exp10f.c: Likewise.
31252         * math/w_exp10l.c: Likewise.
31253         * math/w_exp2.c: Likewise.
31254         * math/w_exp2f.c: Likewise.
31255         * math/w_exp2l.c: Likewise.
31256         * math/w_fmod.c: Likewise.
31257         * math/w_fmodf.c: Likewise.
31258         * math/w_fmodl.c: Likewise.
31259         * math/w_hypot.c: Likewise.
31260         * math/w_hypotf.c: Likewise.
31261         * math/w_hypotl.c: Likewise.
31262         * math/w_jnl.c: Likewise.
31263         * math/w_lgamma.c: Likewise.
31264         * math/w_lgamma_r.c: Likewise.
31265         * math/w_lgammaf.c: Likewise.
31266         * math/w_lgammaf_r.c: Likewise.
31267         * math/w_lgammal.c: Likewise.
31268         * math/w_lgammal_r.c: Likewise.
31269         * math/w_pow.c: Likewise.
31270         * math/w_powf.c: Likewise.
31271         * math/w_powl.c: Likewise.
31272         * math/w_remainder.c: Likewise.
31273         * math/w_remainderf.c: Likewise.
31274         * math/w_remainderl.c: Likewise.
31275         * math/w_scalb.c: Likewise.
31276         * math/w_scalbf.c: Likewise.
31277         * math/w_scalbl.c: Likewise.
31278         * math/w_scalbln.c: Likewise.
31279         * math/w_scalblnf.c: Likewise.
31280         * math/w_scalblnl.c: Likewise.
31281         * math/w_sinh.c: Likewise.
31282         * math/w_sinhf.c: Likewise.
31283         * math/w_sinhl.c: Likewise.
31284         * math/w_tgamma.c: Likewise.
31285         * math/w_tgammaf.c: Likewise.
31286         * math/w_tgammal.c: Likewise.
31287         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
31288         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
31289         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
31290         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
31291         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
31292         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
31293         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
31294         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
31295         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
31296         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
31297         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
31298         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
31299         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
31300         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
31301         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
31302         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
31303         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
31304         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
31305         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
31306         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
31307         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
31308         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
31309         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
31310         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31311         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
31312         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
31313         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
31314         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
31315         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
31316         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
31317         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
31318         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
31319         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
31320         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
31321         * stdio-common/printf_fp.c: Likewise.
31322         * stdio-common/printf_fphex.c: Likewise.
31323         * stdio-common/printf_size.c: Likewise.
31324
31325 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
31326
31327         [BZ #18470]
31328         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
31329         strnlen.
31330         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
31331         Remove variable.
31332         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
31333         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
31334         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
31335         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
31336         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
31337         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
31338         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
31339         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
31340         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
31341         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
31342
31343         [BZ #18468]
31344         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
31345         weak alias of __wmemchr.  Use libc_hidden_weak.
31346         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
31347         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
31348         instead of wmemchr.
31349
31350 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31351
31352         [BZ #18383]
31353         * elf/tst-tlsalign-extern.c: New file.
31354         * elf/tst-tlsalign-extern-static.c: New file.
31355         * elf/tst-tlsalign-vars.c: New file.
31356         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
31357         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
31358         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
31359         ($(objpfx)tst-tlsalign-extern-static): Likewise.
31360         (test-xfail-tst-tlsalign-extern-static): New variable.
31361
31362 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
31363
31364         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
31365         Use variable name _sc_err instead of err.
31366         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
31367         instead of ret.
31368         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
31369         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
31370         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
31371         (INLINE_SYSCALL): Likewise.
31372
31373         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
31374         * include/string.h (__strnlen): Use libc_hidden_proto.
31375         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
31376         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
31377         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
31378         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
31379         (libc_hidden_def): Undefine and redefine.
31380         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
31381         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
31382         __GI_strnlen.
31383         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
31384         libc_hidden_def.
31385         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
31386
31387         [BZ #18469]
31388         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
31389         weak alias of __towlower.  Use libc_hidden_weak.
31390         (towupper): Rename to __towupper and define as weak alias of
31391         __towupper.  Use libc_hidden_weak.
31392         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
31393         (__towupper): Likewise.
31394         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
31395         __towlower instead of towlower.
31396
31397 2015-06-02  Roland McGrath  <roland@hack.frob.com>
31398
31399         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
31400         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
31401
31402 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31403
31404         * sysdeps/aarch64/libm-test-ulps: Update.
31405
31406 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31407
31408         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
31409         Define.
31410         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31411         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
31412         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31413         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31414         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
31415         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
31416         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
31417
31418 2015-06-01  Martin Sebor  <msebor@redhat.com>
31419
31420         [BZ #18116]
31421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
31422         (__setcontext): Use extended four-operand version of mtsf whenever
31423         possible.
31424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
31425         (__novec_swapcontext): Likewise.
31426
31427 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31428
31429         * benchtests/scripts/compare_bench.py: New file.
31430         * benchtests/scripts/import_bench.py (mean): New function.
31431         (split_list): Likewise.
31432         (do_for_all_timings): Likewise.
31433         (compress_timings): Likewise.
31434
31435         * benchtests/scripts/import_bench.py: New file.
31436         * benchtests/scripts/validate_benchout.py: Import import_bench
31437         instead of jsonschema.
31438         (validate_bench): Remove function.
31439         (main): Use import_bench.
31440
31441 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
31442
31443         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
31444         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
31445
31446 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31447
31448         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31449
31450 2015-05-28  Roland McGrath  <roland@hack.frob.com>
31451
31452         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
31453         set THREAD_SELF->tid to a magic value and futex-wake it.
31454         Pass its address to the thread_exit system call.
31455         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
31456         bit is clear.
31457         * sysdeps/nacl/lowlevellock.h: New file.
31458         * sysdeps/nacl/lll_timedwait_tid.c: New file.
31459
31460         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
31461         Add TIMEOUT to current time, don't subtract it.
31462
31463 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
31464
31465         [BZ #2981]
31466         [BZ #18422]
31467         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
31468         ($(objpfx)tst-audit2.out): Also depend on
31469         $(objpfx)tst-auditmod9b.so.
31470         * elf/tst-audit2.c: Include <dlfcn.h>.
31471         (calloc_called): New.
31472         (calloc): Allow to be called more than once.
31473         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
31474
31475 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
31476
31477         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
31478         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
31479
31480 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
31481
31482         * stdlib/monetary.h: Fix comment.
31483
31484 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
31485
31486         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
31487         Avoid using variables in #defines that might cause shadowing.
31488         (INTERNAL_VSYSCALL_CALL): Likewise.
31489
31490 2015-05-26  Roland McGrath  <roland@hack.frob.com>
31491
31492         * sysdeps/nacl/lll_timedlock_wait.c: New file.
31493
31494         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
31495         * nptl/lll_timedlock_wait.c: ... to this new file.
31496         * nptl/Makefile (libpthread-routines): Add it.
31497         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
31498         * nptl/lll_timedwait_tid.c: ... to this new file.
31499         * nptl/Makefile (libpthread-routines): Add it.
31500         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
31501         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
31502         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
31503         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
31504         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
31505         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
31506         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
31507         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
31508         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
31509         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
31510
31511 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31512
31513         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
31514         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31515         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
31516         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
31517         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
31518         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31519         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31520         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31521         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31522         * sysdeps/unix/sysv/linux/tile/sysdep.h
31523         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
31524         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
31525         using vDSO syscall macro.
31526
31527 2015-05-26  Andriy Rysin  <arysin@gmail.com>
31528
31529         [BZ #17293]
31530         * uk_UA: Fix sorting order for Ukrainian locale
31531
31532 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
31533
31534         * stdlib/monetary.h: Fix comment.
31535
31536 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
31537
31538         [BZ #18234]
31539         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
31540         st_mtim and st_ctim members.
31541         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
31542         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
31543         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
31544         (struct stat64): Likewise.
31545         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
31546         (struct stat64): Likewise.
31547         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
31548         (struct stat64): Likewise.
31549
31550 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31551
31552         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
31553         Define and include sysdep-vdso.h.
31554         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
31555         Likewise.
31556         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
31557         Likewise.
31558         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
31559         Define with VDSO_SYMBOL and use PTR_MANGLE.
31560         (__vdso_clock_gettime): Likewise.
31561         (__vdso_clock_getres): Likewise.
31562         (_libc_vdso_platform_setup): Likewise.
31563         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
31564         Likewise.
31565         (_libc_vdso_platform_setup): Likewise.
31566         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
31567         Likewise.
31568         (__vdso_clock_gettime): Likewise.
31569         (__vdso_clock_getres): Likewise.
31570         (__vdso_get_tbfreq): Likewise.
31571         (__vdso_getcpu): Likewise.
31572         (__vdso_time): Likewise.
31573         (__vdso_sigtramp_rt64): Likewise.
31574         (__vdso_signtramp32): Likewise.
31575         (__vdso_sigtramp_rt32): Likewise.
31576         (_libc_vdso_platform_setup): Likewise.
31577         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
31578         Likewise.
31579         (__vdso_clock_gettime): Likewise.
31580         (__vdso_clock_getres): Likewise.
31581         (_libc_vdso_platform_setup): Likewise.
31582         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
31583         Likewise.
31584         (__vdso_clock_gettime): Likewise.
31585         (_libc_vdso_platform_setup): Likewise.
31586         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
31587         Likewise.
31588         (__vdso_getcpu): Likewise.
31589         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
31590         Use VDSO_SYMBOL macro to define.
31591         (__vdso_clock_gettime): Likewise.
31592         (__vdso_clock_getres): Likewise.
31593         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
31594         Likewise.
31595         (__vdso_clock_gettime): Likewise.
31596         (__vdso_clock_getres): Likewise.
31597         (__vdso_get_tbfreq): Likewise.
31598         (__vdso_getcpu): Likewise.
31599         (__vdso_time): Likewise.
31600         (__vdso_sigtramp_rt64): Likewise.
31601         (__vdso_signtramp32): Likewise.
31602         (__vdso_sigtramp_rt32): Likewise.
31603         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
31604         Likewise.
31605         (__vdso_clock_gettime): Likewise.
31606         (__vdso_clock_getres): Likewise.
31607         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
31608         Likewise.
31609         (__vdso_clock_gettime): Likewise.
31610         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
31611         Likewise.
31612         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
31613         macro.
31614         (INTERNAL_VSYSCALL): Likewise.
31615         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
31616         Remove macro.
31617         (INTERNAL_VSYSCALL): Likewise.
31618         (INTERNAL_VSYSCALL_NCS): Likewise.
31619         (INTERNAL_VSYSCALL_CALL): New macro.
31620         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31621         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
31622         Likewise.
31623         (INTERNAL_VSYSCALL): Likewise.
31624         (INTERNAL_VSYSCALL_NCS): Likewise.
31625         (INTERNAL_VSYSCALL_CALL): New macro.
31626         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
31627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31628         (INLINE_VSYSCALL): Remove macro.
31629         (INTERNAL_VSYSCALL): Remove macro.
31630         (INTERNAL_VSYSCALL_NCS): Remove macro.
31631         (INTERNAL_VSYSCALL_CALL): New macro.
31632         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
31633         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
31634         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31635         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
31636         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
31637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
31638         (INLINE_VSYSCALL): Remove macro.
31639         (INTERNAL_VSYSCALL): Likewise.
31640         (INTERNAL_VSYSCALL_NCS): Likewise.
31641         (INTERNAL_VSYSCALL_CALL): New macro.
31642         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
31643         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
31644         PTR_DEMANGLE on vDSO pointer.
31645         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
31646         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
31647         macro.
31648         (INTERNAL_SYSCALL): Likewise.
31649         (INTERNAL_VSYSCALL_NCS): Remove macro.
31650         (INTERNAL_VSYSCALL_CALL): New macro.
31651         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
31652         Remove macro.
31653         (INTERNAL_VSYSCALL): Likewise.
31654         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
31655         sysdep-vdso.h instead of libc-vdso.h.
31656         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
31657         definition.
31658         (INLINE_VSYSCALL): Likewise.
31659         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
31660         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
31661         definition.
31662         (INLINE_VSYSCALL): Likewise.
31663         (INTERNAL_VSYSCALL): Likewise.
31664         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31665         * sysdeps/unix/sysv/linux/timespec_get.c
31666         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
31667         (timespec_get): Use ANSI prototype.
31668         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
31669         and definition for Linux.
31670
31671 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
31672
31673         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
31674         * include/libc-symbols.h: libmvec_hidden_* macro series added.
31675
31676 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31677
31678         [BZ #2981]
31679         [BZ #18410]
31680         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
31681         for missing DT_PLTRELSZ.
31682
31683 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31684
31685         Remove obsolete aliases that broke 'locale -a'
31686         [BZ #18412]
31687         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
31688         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
31689         breaking some applications that use 'locale -a' output.
31690         Change the encoding of this file from Latin-1 to ASCII to avoid
31691         other potential problems with people grepping this file.
31692
31693 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
31694
31695         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
31696         -fasynchronous-unwind-tables.
31697         (CFLAGS-sendto.c): Likewise.
31698         (CFLAGS-sendmsg.c): Likewise.
31699         (CFLAGS-connect.c): Likewise.
31700         (CFLAGS-recvmsg.c): Likewise.
31701         (CFLAGS-recvfrom.c): Likewise.
31702         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
31703         (SOCKETCALL): New macro: non-cancellable socketcall.
31704         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
31705         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
31706         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
31707         * sysdeps/unix/sysv/linux/accept.c: New file.
31708         * sysdeps/unix/sysv/linux/bind.c: Likewise.
31709         * sysdeps/unix/sysv/linux/connect.c: Likewise.
31710         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
31711         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
31712         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
31713         * sysdeps/unix/sysv/linux/listen.c: Likewise.
31714         * sysdeps/unix/sysv/linux/recv.c: Likewise.
31715         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
31716         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
31717         * sysdeps/unix/sysv/linux/send.c: Likewise.
31718         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
31719         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
31720         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
31721         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
31722         * sysdeps/unix/sysv/linux/socket.c: Likewise.
31723         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
31724         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
31725         prototype.
31726         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
31727         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31728         instead of __internal_xxx function.
31729         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
31730         prototype.
31731         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
31732         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31733         instead of __internal_xxx function.
31734         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
31735         prototype.
31736         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
31737         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
31738         instead of __internal_xxx function.
31739         * sysdeps/unix/sysv/linux/accept.S: Remove file.
31740         * sysdeps/unix/sysv/linux/bind.S: Likewise.
31741         * sysdeps/unix/sysv/linux/connect.S: Likewise.
31742         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
31743         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
31744         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
31745         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
31746         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
31747         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
31748         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
31749         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
31750         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31751         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
31752         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
31753         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
31754         * sysdeps/unix/sysv/linux/listen.S: Likewise.
31755         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
31756         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
31757         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
31758         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
31759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
31760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
31761         * sysdeps/unix/sysv/linux/recv.S: Likewise.
31762         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
31763         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
31764         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
31765         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
31766         * sysdeps/unix/sysv/linux/send.S: Likewise.
31767         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
31768         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
31769         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
31770         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
31771         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
31772         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
31773         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
31774         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
31775         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
31776         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
31777         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
31778         socketcall is implemented in GLIBC.
31779
31780 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31781
31782         * soft-fp/fmadf4.c: Include <libc-internal.h>.
31783         (__fma): Ignore uninitialized warnings around packing.
31784         * soft-fp/fmasf4.c: Include <libc-internal.h>.
31785         (__fmaf): Ignore uninitialized warnings around packing.
31786         * soft-fp/fmatf4.c: Include <libc-internal.h>.
31787         (__fmal): Ignore uninitialized warnings around packing.
31788
31789         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
31790         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31791         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
31792         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
31793
31794         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
31795         switch statement into default case.
31796         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
31797
31798         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
31799         a conditional in forcing "inexact".
31800         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
31801         Likewise.
31802
31803 2015-05-22  Roland McGrath  <roland@hack.frob.com>
31804
31805         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
31806         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
31807         for each INTERNAL_SYSCALL use.
31808
31809 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
31810
31811         [BZ #438]
31812         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
31813         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
31814         variable.
31815
31816         [BZ #18444]
31817         * string/basename.c (basename): Rename to __basename and define as
31818         weak alias of __basename.  Use libc_hidden_weak.
31819         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
31820         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
31821         __basename instead of basename.
31822         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
31823         Remove variable.
31824         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
31825
31826 2015-05-18  Florian Weimer  <fweimer@redhat.com>
31827
31828         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
31829         (_IO_JUMPS_FILE_plus): New.
31830         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
31831         _IO_CAST_FIELD_ACCESS.
31832         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
31833         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
31834         * libio/freopen.c (freopen): Likewise.
31835         * libio/freopen64.c (freopen64): Likewise.
31836         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
31837         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
31838         * libio/iofwide.c (_IO_fwide): Likewise.
31839         * libio/memstream.c (open_memstream): Likewise.
31840         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31841         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
31842         * libio/oldiopopen.c (_IO_old_popen): Likewise.
31843
31844 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
31845
31846         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
31847         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
31848         NADJ.
31849         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
31850         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
31851         NADJ.
31852         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
31853         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
31854         NADJ.
31855
31856         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
31857         (p == 4) case.
31858
31859         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
31860         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
31861         Remove variable.
31862         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
31863         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
31864         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
31865
31866 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31867
31868         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
31869         Adjust jump table label generation macros.
31870
31871 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31872
31873         * stdio-common/vfprintf.c (vfprintf): Move local variables
31874         args_malloced, specs, specs_malloced, and the code after
31875         do_positional to the printf_positional function.
31876         (printf_positional): New function.
31877
31878 2015-05-21  Florian Weimer  <fweimer@redhat.com>
31879
31880         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
31881         function.
31882         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
31883         STEP4_TABLE, process_arg): Move macro definitions
31884         out of the vfprintf function.  (Cosmetic change only.)
31885
31886 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
31887
31888         * benchtests/Makefile (stdio-common-bench): Define.
31889         (benchset): Add stdio-common-bench.
31890         * sprintf-inputs: New file.
31891         * sprintf-source.c: New file.
31892
31893 2015-05-21  Andreas Schwab  <schwab@suse.de>
31894
31895         [BZ #13028]
31896         [BZ #17053]
31897         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
31898         of struct __res_state.
31899         * resolv/res_send.c (__libc_res_nsend): Likewise.
31900         (get_nsaddr): New function.
31901         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
31902         statp directly.
31903
31904 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
31905
31906         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
31907         -D_POSIX_C_SOURCE=199506L.
31908
31909         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
31910
31911         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
31912         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
31913         Do not mention otherwise.
31914         [POSIX] (_XOPEN_VERSION): Do not expect.
31915         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
31916         [POSIX] (_POSIX2_C_BIND): Likewise.
31917         [POSIX] (_POSIX2_VERSION): Likewise.
31918         [POSIX] (_XOPEN_XPG2): Likewise.
31919         [POSIX] (_XOPEN_XPG3): Likewise.
31920         [POSIX] (_XOPEN_XPG4): Likewise.
31921         [POSIX] (_XOPEN_UNIX): Likewise.
31922         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
31923         [POSIX] (_POSIX_BARRIERS): Likewise.
31924         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
31925         [POSIX] (_POSIX_CPUTIME): Likewise.
31926         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
31927         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
31928         [POSIX] (_POSIX_SHELL): Likewise.
31929         [POSIX] (_POSIX_SPAWN): Likewise.
31930         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
31931         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
31932         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
31933         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
31934         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
31935         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
31936         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
31937         [POSIX] (_XBS5_LP64_OFF64): Likewise.
31938         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
31939         [POSIX] (_POSIX_TIMEOUTS): Likewise.
31940         [POSIX] (_POSIX2_PBS): Likewise.
31941         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
31942         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
31943         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
31944         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
31945         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
31946         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
31947         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
31948         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
31949         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
31950         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
31951         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
31952         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
31953         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
31954         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
31955         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
31956         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
31957         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
31958         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
31959         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
31960         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
31961         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
31962         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
31963         [POSIX] (_SC_2_C_BIND): Likewise.
31964         [POSIX] (_SC_2_C_VERSION): Likewise.
31965         [POSIX] (_SC_2_PBS): Likewise.
31966         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
31967         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
31968         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
31969         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
31970         [POSIX] (_SC_2_PBS_TRACK): Likewise.
31971         [POSIX] (_SC_ATEXIT_MAX): Likewise.
31972         [POSIX] (_SC_BARRIERS): Likewise.
31973         [POSIX] (_SC_BASE): Likewise.
31974         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
31975         [POSIX] (_SC_DEVICE_IO): Likewise.
31976         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
31977         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
31978         [POSIX] (_SC_FD_MGMT): Likewise.
31979         [POSIX] (_SC_FIFO): Likewise.
31980         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
31981         [POSIX] (_SC_FILE_LOCKING): Likewise.
31982         [POSIX] (_SC_FILE_SYSTEM): Likewise.
31983         [POSIX] (_SC_IOV_MAX): Likewise.
31984         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
31985         [POSIX] (_SC_NETWORKING): Likewise.
31986         [POSIX] (_SC_PAGE_SIZE): Likewise.
31987         [POSIX] (_SC_PASS_MAX): Likewise.
31988         [POSIX] (_SC_PIPE): Likewise.
31989         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
31990         [POSIX] (_SC_REGEXP): Likewise.
31991         [POSIX] (_SC_SHELL): Likewise.
31992         [POSIX] (_SC_SIGNALS): Likewise.
31993         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
31994         [POSIX] (_SC_SPIN_LOCKS): Likewise.
31995         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
31996         [POSIX] (_SC_USER_GROUPS): Likewise.
31997         [POSIX] (_SC_USER_GROUPS_R): Likewise.
31998         [POSIX] (_SC_STREAMS): Likewise.
31999         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
32000         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
32001         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
32002         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
32003         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
32004         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
32005         [POSIX] (_PC_FILESIZEBITS): Likewise.
32006         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
32007         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
32008         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
32009         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
32010         [POSIX] (uid_t): Likewise.
32011         [POSIX] (gid_t): Likewise.
32012         [POSIX] (off_t): Likewise.
32013         [POSIX] (pid_t): Likewise.
32014         [POSIX] (cuserid): Allow.
32015         (_SC_2_CHAR_TERM): Require constant.
32016         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
32017         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
32018         variable.
32019
32020 2015-05-20  Roland McGrath  <roland@hack.frob.com>
32021
32022         * sysdeps/nacl/pthread-pids.h: New file.
32023         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
32024         (create_thread): Use __nacl_get_tid to initialize PD->tid.
32025
32026         * nptl/pthread-pids.h: New file.
32027         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
32028         * nptl/nptl-init.c: Include <pthread-pids.h>.
32029         (__pthread_initialize_minimal_internal):
32030         Call __pthread_initialize_pids instead of set_tid_address syscall.
32031
32032         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
32033         * sysdeps/posix/usleep.c: ... here.
32034
32035 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32036
32037         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
32038         call_pselect6 object.
32039         [$(subdir) = io]: Remove call_sync_file_range object.
32040         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
32041         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
32042         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
32043         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
32044
32045 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
32046
32047         * math/s_cproj.c: Add include "math_private.h".
32048         * math/s_cprojf.c: Likewise.
32049         * math/s_cprojl.c: Likewise.
32050
32051 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
32052
32053         [BZ #18244]
32054         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
32055         high mantissa bit when testing whether P is a NaN.
32056         * math/libm-test.inc (remainder_test_data): Add more tests.
32057         (remquo_test_data): Likewise.
32058
32059         [BZ #18049]
32060         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
32061         below -32, return the argument, with underflow if subnormal.
32062         * math/auto-libm-test-in: Add more tests of atanh.
32063         * math/auto-libm-test-out: Regenerated.
32064
32065 2015-05-19  Roland McGrath  <roland@hack.frob.com>
32066
32067         [BZ #18434]
32068         * nptl/tst-sem15.c: New file.
32069         * nptl/Makefile (tests): Add it.
32070         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
32071         s/<</>>/ to fix typo in EOVERFLOW check.
32072         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
32073
32074 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
32075
32076         * manual/strings.texi (envz_remove): Fix typo in safety
32077         annotations.
32078
32079 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32080             Steve Ellcey  <sellcey@imgtec.com>
32081
32082         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
32083         in order to avoid strict alias warnings.
32084         (iruserok_af): Ditto for ra.
32085
32086 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
32087
32088         [BZ #17581]
32089         * malloc/hooks.c
32090         (magicbyte): Convert to a function and avoid returning 0x01.
32091         (mem2mem_check): Avoid using a length byte equal to the magic byte.
32092         (mem2chunk_check): Fix unsigned comparisons to zero.
32093         Hoist defs of sz and magic.
32094
32095 2015-05-19  Richard Henderson  <rth@redhat.com>
32096
32097         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
32098
32099         * sysdeps/alpha/fpu/libm-test-ulps: Update.
32100
32101 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
32102
32103         [BZ #16159]
32104         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
32105         * malloc/arena.c (arena_lock): Check if arena is corrupt.
32106         (reused_arena): Find a non-corrupt arena.
32107         (heap_trim): Pass arena to unlink.
32108         * malloc/hooks.c (malloc_check_get_size): Pass arena to
32109         malloc_printerr.
32110         (top_check): Likewise.
32111         (free_check): Likewise.
32112         (realloc_check): Likewise.
32113         * malloc/malloc.c (malloc_printerr): Add arena argument.
32114         (unlink): Likewise.
32115         (munmap_chunk): Adjust.
32116         (ARENA_CORRUPTION_BIT): New macro.
32117         (arena_is_corrupt): Likewise.
32118         (set_arena_corrupt): Likewise.
32119         (sysmalloc): Use mmap if there are no usable arenas.
32120         (_int_malloc): Likewise.
32121         (__libc_malloc): Don't fail if arena_get returns NULL.
32122         (_mid_memalign): Likewise.
32123         (__libc_calloc): Likewise.
32124         (__libc_realloc): Adjust for additional argument to
32125         malloc_printerr.
32126         (_int_free): Likewise.
32127         (malloc_consolidate): Likewise.
32128         (_int_realloc): Likewise.
32129         (_int_memalign): Don't touch corrupt arenas.
32130         * malloc/tst-malloc-backtrace.c: New test case.
32131
32132         * Makefile (summarize-tests): Fix return value on success.
32133
32134         * manual/string.texi (Envz Functions): Add envz_remove.
32135
32136 2015-05-18  Roland McGrath  <roland@hack.frob.com>
32137
32138         * sysdeps/posix/opendir.c: Include <stdbool.h>.
32139         (invalid_name): New function, broken out of ...
32140         (__opendirat): ... here.  Call it.
32141         (need_isdir_precheck): New function, broken out of ...
32142         (__opendirat): ... here.  Call it.
32143         Use __fxstatat64, not __xstatat64.
32144         (opendir_oflags): New function, broken out of ...
32145         (__opendirat): ... here.  Call it.
32146         (opendir_tail): New function, broken out of ...
32147         (__opendirat): ... here.  Call it.
32148         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
32149         opendir_tail, rather than punting to __opendirat.
32150         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
32151
32152 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
32153
32154         * .gitignore: Ignore generated *.pyc.
32155
32156 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
32157
32158         * include/stdio.h: Define __need_wint_t.
32159         * test-skeleton.c: Avoid `for' loop initial declaration.
32160         * nptl/tst-initializers1.c: Use test-skeleton.c.
32161
32162 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32163
32164         [BZ #18418]
32165         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
32166
32167 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
32168
32169         [BZ #16352]
32170         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
32171         (__ieee754_atanh): Force underflow exception for results with
32172         small absolute value.
32173         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
32174         (__ieee754_atanhf): Force underflow exception for results with
32175         small absolute value.
32176         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
32177         (__ieee754_atanh): Force underflow exception for results with
32178         small absolute value.
32179         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
32180         (__ieee754_atanhf): Force underflow exception for results with
32181         small absolute value.
32182         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
32183         (__ieee754_atanhl): Force underflow exception for results with
32184         small absolute value.
32185         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
32186         (__ieee754_atanhl): Force underflow exception for results with
32187         small absolute value.
32188         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
32189         (__ieee754_atanhl): Force underflow exception for results with
32190         small absolute value.
32191         * math/auto-libm-test-in: Do not allow missing underflow
32192         exceptions from atanh.
32193         * math/auto-libm-test-out: Regenerated.
32194
32195         [BZ #18221]
32196         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
32197         2**-28 as threshold for returning x or +/- 1/x.
32198         * math/auto-libm-test-in: Add more tests of tan.
32199         * math/auto-libm-test-out: Regenerated.
32200
32201         [BZ #18220]
32202         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
32203         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
32204         * math/auto-libm-test-in: Add another test of lgamma.
32205         * math/auto-libm-test-out: Regenerated.
32206
32207 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
32208
32209         * stdio-common/printf_fp.c (___printf_fp): Use abs.
32210         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
32211         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
32212         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
32213         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
32214         (ADD2A): Use fabs.  (SUB2A): Use fabs.
32215         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
32216         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
32217         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
32218         (log1): Use fabs.  (my_log2): Use fabs.
32219         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
32220         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
32221         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
32222         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
32223         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
32224         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
32225         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
32226         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
32227         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
32228         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
32229         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
32230
32231 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
32232
32233         [BZ #18217]
32234         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
32235         as threshold for returning 1 - x.
32236         * math/auto-libm-test-in: Add more tests of erfc.
32237         * math/auto-libm-test-out: Regenerated.
32238
32239 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
32240
32241         [BZ #18196]
32242         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
32243         threshold for large arguments.
32244         * math/auto-libm-test-in: Add another test of atan.
32245         * math/auto-libm-test-out: Regenerated.
32246
32247         [BZ #16339]
32248         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
32249         (__log1p): Force underflow exception for results with small
32250         absolute value.
32251         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
32252         (__log1pf): Force underflow exception for results with small
32253         absolute value.
32254         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
32255         (__log1p): Force underflow exception for results with small
32256         absolute value.
32257         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
32258         (__log1pf): Force underflow exception for results with small
32259         absolute value.
32260         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
32261         (__log1pl): Force underflow exception for results with small
32262         absolute value.
32263         * math/auto-libm-test-in: Do not allow missing underflow
32264         exceptions from log1p.
32265         * math/auto-libm-test-out: Regenerated.
32266
32267 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
32268             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32269
32270         [BZ #16704]
32271         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
32272
32273 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
32274
32275         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
32276         (libmvec): New variable.
32277         * configure.ac: Added option for mathvec build.
32278         * configure: Regenerated.
32279         * mathvec/Depend: New file.
32280         * mathvec/Makefile: New file.
32281         * shlib-versions: Added libmvec.
32282         * math/Makefile: Added rule for libm.so installation.
32283
32284         * bits/math-vector.h: New file.
32285         * bits/libm-simd-decl-stubs.h: New header.
32286         * math/Makefile (headers): Added new header
32287         libm-simd-decl-stubs.h.
32288         * math/math.h (__MATHCALL_VEC): New macro.
32289
32290         * math/gen-libm-have-vector-test.sh: Script generates series of macros
32291         for conditions in testing functions.
32292         * math/Makefile: Added call of libm-have-vector-test.sh.
32293         * math/libm-test.inc (HAVE_VECTOR): New macros.
32294
32295         * math/libm-test.inc: START refactored.
32296         * math/test-double.c (TEST_MATHVEC): Add define.
32297         * math/test-float.c: Likewise.
32298         * math/test-idouble.c: Likewise.
32299         * math/test-ifloat.c: Likewise.
32300         * math/test-ildoubl.c: Likewise.
32301         * math/test-ldouble.c: Likewise.
32302         * sysdeps/generic/math-tests-arch.h
32303         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
32304         architecture check.
32305
32306         * math/test-double.c (FUNC_TEST): New macro.
32307         * math/test-float.c: Likewise.
32308         * math/test-idouble.c: Likewise.
32309         * math/test-ifloat.c: Likewise.
32310         * math/test-ildoubl.c: Likewise.
32311         * math/test-ldouble.c: Likewise.
32312         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
32313
32314 2015-05-13  Roland McGrath  <roland@hack.frob.com>
32315
32316         * sysdeps/nacl/fdopendir.c: New file.
32317
32318         * dirent/scandir-tail.c: New file.
32319         * dirent/scandir64-tail.c: New file.
32320         * dirent/Makefile (routines): Add them.
32321         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
32322         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
32323         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
32324         [!SCANDIR] (SCANDIR_TAIL): New macro.
32325         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
32326         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
32327         (SCANDIRAT): Macro removed.
32328         (SCANDIR_TAIL): New macro.
32329         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
32330         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
32331         (SCANDIRAT): Just call __opendirat and __scandir_tail.
32332         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
32333         (READDIR): Macro removed.
32334         (SCANDIR_TAIL): New macro.
32335         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
32336         (SCANDIR_TAIL): New macro.
32337
32338         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
32339         * dirent/scandir-cancel.c: ... to this new file.
32340         * dirent/Makefile (routines): Add it.
32341         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
32342         * sysdeps/unix/sysv/linux/i386/scandir64.c
32343         (SKIP_SCANDIR_CANCEL): Macro removed.
32344         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
32345
32346         * dirent/tst-scandir.c: New file.
32347         * dirent/tst-scandir64.c: New file.
32348         * dirent/Makefile (tests): Add them.
32349
32350 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
32351
32352         [BZ #18409]
32353         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
32354
32355 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32356
32357         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
32358         list.
32359
32360 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
32361
32362         * benchtests/bench-strcoll.c: New benchmark.
32363         * benchtests/Makefile: Generate locales and run benchmark.
32364         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
32365         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
32366         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
32367         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
32368         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
32369         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
32370         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
32371         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
32372         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
32373         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
32374         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
32375         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
32376         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
32377         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
32378         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
32379         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
32380         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
32381         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
32382         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
32383         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
32384         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
32385         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
32386         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
32387         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
32388
32389 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
32390
32391         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
32392         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
32393
32394 2015-05-12  Roland McGrath  <roland@hack.frob.com>
32395
32396         * posix/uname-values.h: New file.
32397         * posix/uname.c: Include that instead of <config-name.h>.
32398         * sysdeps/nacl/uname-values.h: New file.
32399         * sysdeps/arm/nacl/uname-values.h: New file.
32400
32401 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
32402
32403         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
32404         splitting into fields.
32405
32406 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
32407
32408         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
32409         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
32410         * locale/localeinfo.h: Add enum collation_encoding_type.
32411         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
32412         * programs/ld-collate.c (collate_output): Add encoding type info.
32413         * string/strcoll_l.c (STRDIFF): New function.
32414         * (STRCOLL): Use STRDIFF to skip over equal prefix.
32415         * wcsmbs/wcscoll_l.c: Define STRDIFF.
32416
32417 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
32418
32419         [BZ #18397]
32420         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
32421         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
32422         <fpu_control.h> instead of <math/fpu_control.c>.
32423         * sysdeps/mips/mips32/fpu/Makefile: New file.
32424
32425 2015-05-11  Andreas Schwab  <schwab@suse.de>
32426
32427         [BZ #18007]
32428         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
32429         nss_endgrent.
32430         (_nss_compat_endgrent): Call nss_endgrent.
32431         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
32432         nss_endpwent.
32433         (_nss_compat_endpwent): Call nss_endpwent.
32434         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
32435         needent, call nss_setspent only if non-zero.
32436         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
32437         (internal_endspent): Don't call nss_endspent.
32438         (_nss_compat_endspent): Call nss_endspent.
32439         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
32440         Remove.  All uses removed.
32441         (internal_setent): Remove parameter stayopen, add parameter
32442         stream.  Use it instead of global variable.
32443         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
32444         (internal_endent, internal_getent): Add parameter stream.  Use it
32445         instead of global variable.
32446         (CONCAT(_nss_files_end,ENTNAME))
32447         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
32448         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
32449         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
32450         uses removed.
32451         (internal_setent, internal_endent): Add parameter stream.  Use it
32452         instead of global variable.
32453         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
32454         stream.
32455         (get_next_alias): Add parameter stream.
32456         (_nss_files_getaliasent_r): Pass global stream.
32457         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
32458         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
32459         (_nss_files_gethostbyname4_r): Pass local stream to
32460         internal_setent, internal_getent and internal_endent.  Remove
32461         locking.
32462
32463 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
32464
32465         * tst-strfmon1.c (tests): Update expected currency symbol.
32466
32467 2015-05-08  Roland McGrath  <roland@hack.frob.com>
32468
32469         * sysdeps/nacl/gethostname.c: New file.
32470
32471 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
32472
32473         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
32474         and sinh.
32475         * math/auto-libm-test-out: Regenerated.
32476         * sysdeps/i386/fpu/libm-test-ulps: Update.
32477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32478
32479 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
32480
32481         [BZ #18125]
32482         * stdlib/tst-setcontext3.c: New file.
32483         * stdlib/tst-setcontext3.sh: New file.
32484         * stdlib/Makefile (tests): Add tst-setcontext3.
32485         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
32486         to verify test program created output file.
32487         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
32488         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
32489         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
32490         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
32491
32492 2015-05-06  Roland McGrath  <roland@hack.frob.com>
32493
32494         [BZ #18383]
32495         * elf/tst-tlsalign.c: New file.
32496         * elf/tst-tlsalign-static.c: New file.
32497         * elf/tst-tlsalign-lib.c: New file.
32498         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
32499         (tests-static): Add tst-tlsalign-static.
32500         (modules-names): Add tst-tlsalign-lib.
32501         (test-xfail-tst-tlsalign): New variable.
32502         (test-xfail-tst-tlsalign-static): New variable.
32503
32504         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
32505         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
32506
32507 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
32508
32509         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
32510         csqrt, erfc, sin and sincos.
32511         * math/auto-libm-test-out: Regenerated.
32512         * sysdeps/i386/fpu/libm-test-ulps: Update.
32513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32514
32515 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32516
32517         * sysdeps/aarch64/libm-test-ulps: Update.
32518
32519 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
32520
32521         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
32522         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
32523         * math/auto-libm-test-out: Regenerated.
32524         * sysdeps/i386/fpu/libm-test-ulps: Update.
32525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32526
32527 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
32528
32529         [BZ #18265]
32530         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
32531         (wcsncpy): Likewise.
32532
32533 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32534
32535         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
32536         Assume __ASSUME_FALLOCATE is always true.
32537         * sysdeps/unix/sysv/linux/posix_fallocate64.c
32538         (__posix_fallocate64_l64): Likewise.
32539         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
32540         (posix_fallocate): Likewise.
32541         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
32542         (__posix_fallocate64_l64): Likewise.
32543         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32544         [!__ASSUME_FALLOCATE]: Add comment.
32545
32546 2015-05-05  Florian Weimer  <fweimer@redhat.com>
32547
32548         * sysdeps/unix/sysv/linux/i386/Makefile
32549         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
32550         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
32551         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
32552         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32553         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32554         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
32555         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
32556
32557 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
32558
32559         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
32560         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
32561         tgamma.
32562         * math/auto-libm-test-out: Regenerated.
32563         * sysdeps/i386/fpu/libm-test-ulps: Update.
32564         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32565
32566 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32567
32568         * math/auto-libm-test-in: Add more tests of tgamma.
32569         * math/auto-libm-test-out: Regenerated.
32570         * sysdeps/i386/fpu/libm-test-ulps: Update.
32571         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32572
32573         * math/auto-libm-test-in: Add more tests of tanh.
32574         * math/auto-libm-test-out: Regenerated.
32575         * sysdeps/i386/fpu/libm-test-ulps: Update.
32576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32577
32578         * math/auto-libm-test-in: Add more tests of tan.
32579         * math/auto-libm-test-out: Regenerated.
32580         * sysdeps/i386/fpu/libm-test-ulps: Update.
32581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32582
32583         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
32584         * math/auto-libm-test-out: Regenerated.
32585         * sysdeps/i386/fpu/libm-test-ulps: Update.
32586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32587
32588         * math/auto-libm-test-in: Add another test of pow.
32589         * math/auto-libm-test-out: Regenerated.
32590         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32591
32592         * math/auto-libm-test-in: Add more tests of lgamma.
32593         * math/auto-libm-test-out: Regenerated.
32594         * sysdeps/i386/fpu/libm-test-ulps: Update.
32595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32596
32597         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
32598         log1p.
32599         * math/auto-libm-test-out: Regenerated.
32600         * sysdeps/i386/fpu/libm-test-ulps: Update.
32601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32602
32603 2015-05-01  Mark Wielaard  <mjw@redhat.com>
32604
32605         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
32606         Elf64_Chdr structs and ELFCOMPRESS constants.
32607
32608 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
32609
32610         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
32611         expm1.
32612         * math/auto-libm-test-out: Regenerated.
32613         * sysdeps/i386/fpu/libm-test-ulps: Update.
32614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32615
32616         * math/auto-libm-test-in: Add more tests of erf and erfc.
32617         * math/auto-libm-test-out: Regenerated.
32618         * sysdeps/i386/fpu/libm-test-ulps: Update.
32619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32620
32621 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32622
32623         * config.h.in (HAVE_AARCH64_BE): Add.
32624
32625 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
32626
32627         * math/auto-libm-test-in: Add more tests of csqrt.
32628         * math/auto-libm-test-out: Regenerated.
32629         * sysdeps/i386/fpu/libm-test-ulps: Update.
32630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32631
32632         * math/auto-libm-test-in: Add more tests of cosh and sinh.
32633         * math/auto-libm-test-out: Regenerated.
32634         * sysdeps/i386/fpu/libm-test-ulps: Update.
32635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32636
32637         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
32638
32639 2015-04-29  Roland McGrath  <roland@hack.frob.com>
32640
32641         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
32642         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
32643
32644         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
32645         (euidaccess, eaccess): Define as weak aliases.
32646
32647         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
32648         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
32649         but __suseconds_t is often 'long int' so some sources assume that
32650         type is being used (e.g. they use %ld to print tv_usec).
32651
32652 2015-04-29  Florian Weimer  <fweimer@redhat.com>
32653
32654         [BZ #18007]
32655         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
32656         (CVE-2014-8121)
32657         * nss/tst-nss-getpwent.c: New file.
32658         * nss/Makefile (tests): Add new test.
32659
32660 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
32661
32662         [BZ #18346]
32663         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
32664         exponents less than 48 as cases where high part of mantissa needs
32665         examining to determine whether argument is integral.
32666         * math/libm-test.inc (round_test_data): Add more tests.
32667
32668 2015-04-28  Mark Wielaard  <mjw@redhat.com>
32669
32670         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
32671
32672 2015-04-27  David S. Miller  <davem@davemloft.net>
32673
32674         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
32675         __tls_get_addr.
32676         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
32677
32678 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
32679
32680         [BZ #18333]
32681         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
32682
32683 2015-04-27  Florian Weimer  <fweimer@redhat.com>
32684
32685         [BZ #18333]
32686         * time/tzset.c (parse_tzname): Return error on memory allocation
32687         failure.
32688         * test-skeleton.c (struct temp_name_list): Change type of name
32689         member to non-const.
32690         (add_temp_file): Create a copy of the file name.
32691         (delete_temp_files): Deallocate memory.
32692         (create_temp_file): Add comment.
32693
32694 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32695
32696         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
32697         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
32698
32699 2015-04-24  Roland McGrath  <roland@hack.frob.com>
32700
32701         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
32702         * sysdeps/arm/configure: Regenerated.
32703
32704 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32705
32706         [BZ #17715]
32707         * time/tzfile.c (__tzfile_read): Check for large values of
32708         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
32709         * time/tzset.c (__tzstring_len): New function, based on the old
32710         __tzstring function.
32711         (__tzstring): Call __tzstring_len.
32712         (parse_tzname): New helper function extracted from
32713         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
32714         the input string.
32715         (parse_offset): New helper function extracted from
32716         __tzset_parse_tz.  Replace switch with fallthrough with
32717         initialization before sscanf.
32718         (parse_rule): Likewise.
32719         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
32720         new-style function definition.
32721         * timezone/Makefile (tests): Add tst-tzset.
32722         (tst-tzset.out): Dependencies on time zone files.
32723         (tst-tzset-ENV): Set TZDIR.
32724         (testdata/XT%): Copy crafted time zone files.
32725         * timezone/README: Mention crafted time zone files.
32726         * timezone/testdata/XT1, timezone/testdata/XT2,
32727         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
32728         files.
32729         * timezone/tst-tzset.c: New test.
32730
32731 2015-04-24  Florian Weimer  <fweimer@redhat.com>
32732
32733         * Makeconfig (+gccwarn): Remove -Winline.
32734
32735 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32736
32737         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
32738
32739 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
32740
32741         * NEWS: Mention sysconf() cache information support for s390.
32742         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
32743
32744 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
32745
32746         * math/k_casinh.c (__kernel_casinh): Use __copysign.
32747         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
32748         (__nearbyint): Likewise.
32749         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
32750         (copysignl): Likewise.
32751
32752 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
32753
32754         [BZ #18287]
32755         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
32756         based on padding.  (CVE-2015-1781)
32757
32758 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32759
32760         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
32761         libc-vdso.h.
32762         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
32763         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
32764         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
32765         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
32766         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
32767         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
32768         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
32769         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32770         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
32771         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
32772         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
32773         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
32774         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
32775         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
32776         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
32777         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
32778         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
32779         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
32780         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
32781         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
32782         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
32783         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
32784         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
32785
32786 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
32787
32788         * stdlib/setenv.c (__add_to_environ):
32789         Dump core quickly if setenv (..., NULL, ...) is called.
32790         This time, do it the right way, and pacify GCC with a pragma.
32791
32792 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32793
32794         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
32795         IMAP->l_prev cannot be null, and #if out the code for the contrary
32796         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
32797         believe that NS (&_dl_ns[NSID]) could point outside the array.
32798
32799         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
32800         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
32801         before using NSID as an index.
32802
32803 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
32804
32805         [BZ #17825]
32806         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
32807         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
32808         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
32809
32810 2015-04-17  Roland McGrath  <roland@hack.frob.com>
32811
32812         Add preliminary port to Google Native Client on ARM.
32813         * abi-tags (.*-.*-nacl.*): New entry.
32814         * sysdeps/arm/nacl: New directory.
32815         * sysdeps/nacl: New directory.
32816
32817 2015-04-16  David S. Miller  <davem@davemloft.net>
32818
32819         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
32820         lowlevellock-futex.h
32821
32822 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
32823
32824         * sysdeps/tile/configure.ac: New file.
32825         * sysdeps/tile/configure: Regenerated.
32826
32827 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
32828
32829         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
32830         conditionals for weak_alias and libc_hidden_weak.
32831         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
32832         libc_hidden_weak and weak_alias.
32833         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
32834         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
32835         and weak_alias for static one.
32836
32837 2015-04-15  David S. Miller  <davem@davemloft.net>
32838
32839         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
32840
32841 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32842
32843         [BZ #18206]
32844         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
32845           Use signed comparision instead of substraction to avoid
32846           overflow bug.
32847         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
32848           Take the sign of ret.
32849         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
32850           Do not expect precise return values. Only the sign matters.
32851         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
32852         * wcsmbs/test-wcsncmp.c: New File.
32853         * string/test-strncmp.c: Add wcsncmp support.
32854
32855 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
32856
32857         [BZ #6792]
32858         * math/w_log1p.c: New file.
32859         * math/w_log1pf.c: Likewise.
32860         * math/w_log1pl.c: Likewise.
32861         * math/Makefile (libm-calls): Add w_log1p.
32862         * math/s_log1pl.c (log1pl): Remove weak_alias.
32863         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
32864         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
32865         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
32866         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
32867         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
32868         [NO_LONG_DOUBLE] (log1pl): Likewise.
32869         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
32870         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
32871         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
32872         (log1p): Remove long_double_symbol.
32873         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
32874         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
32875         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
32876         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
32877         remove weak_alias for corresponding log1p function.
32878         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
32879         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
32880         * sysdeps/ia64/fpu/w_log1p.c: New file.
32881         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
32882         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
32883         * math/libm-test.inc (log1p_test_data): Add errno expectations.
32884
32885 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
32886
32887         [BZ #18247]
32888         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
32889         decimal exponent by 1.
32890         * stdlib/tst-strtod-round-data: Add more tests.
32891         * stdlib/tst-strtod-round.c (tests): Regenerated.
32892
32893 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
32894
32895         * math/auto-libm-test-in: Add more tests of clog and clog10.
32896         * math/auto-libm-test-out: Regenerated.
32897         * sysdeps/i386/fpu/libm-test-ulps: Update.
32898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32899
32900 2015-04-09  Roland McGrath  <roland@hack.frob.com>
32901
32902         * Makeconfig (module-cppflags): Exclude all .v.i files.
32903         (skip-module-cppflags): Variable removed.
32904
32905         * configure.ac (libc_config_ok): Initialize before reading
32906         preconfigure scripts, not after.
32907         * configure: Regenerated.
32908
32909         * test-skeleton.c (TIMEOUT): Move #define to top level.
32910         (main): Grok environment variable TEST_DIRECT.  If set, print
32911         test expectation details into that file and then behave as if
32912         given --direct.
32913
32914 2015-04-09  Florian Weimer  <fweimer@redhat.com>
32915
32916         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
32917         warning on 32-bit.
32918
32919 2015-04-08  David S. Miller  <davem@davemloft.net>
32920
32921         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32922
32923 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32924
32925         * math/auto-libm-test-in: Add more tests of atanh.
32926         * math/auto-libm-test-out: Regenerated.
32927         * sysdeps/i386/fpu/libm-test-ulps: Update.
32928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32929
32930         * math/auto-libm-test-in: Add more tests of atan.
32931         * math/auto-libm-test-out: Regenerated.
32932         * sysdeps/i386/fpu/libm-test-ulps: Update.
32933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32934
32935 2015-04-08  Florian Weimer  <fweimer@redhat.com>
32936
32937         * elf/pldd.c (main): Rewrite to use struct
32938         scratch_buffer instead of extend_alloca.
32939         * elf/pldd-xx.c (find_maps): Likewise.
32940         * grp/initgroups.c: Include <scratch_buffer.h> instead of
32941         <alloca.h>.
32942         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
32943         scratch_buffer instead of extend_alloca.
32944         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
32945         grp/compat-initgroups.c.
32946         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
32947         Rewrite to use struct scratch_buffer instead of extend_alloca.
32948         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
32949         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32950
32951 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
32952
32953         * math/auto-libm-test-in: Add more tests of cbrt.
32954         * math/auto-libm-test-out: Regenerated.
32955         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32956
32957         * math/auto-libm-test-in: Add more tests of cabs.
32958         * math/auto-libm-test-out: Regenerated.
32959         * sysdeps/i386/fpu/libm-test-ulps: Update.
32960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32961
32962         [BZ #18210]
32963         [BZ #18211]
32964         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
32965         (__ieee754_atan2): Set FE_TONEAREST mode for internal
32966         computations.
32967         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
32968         clog10.
32969         * math/auto-libm-test-out: Regenerated.
32970         * sysdeps/i386/fpu/libm-test-ulps: Update.
32971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32972
32973         [BZ #18197]
32974         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
32975         (atan): Set FE_TONEAREST mode for internal computations.
32976         * math/auto-libm-test-in: Add more tests of atan.
32977         * math/auto-libm-test-out: Regenerated.
32978
32979 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
32980
32981         [BZ #17930]
32982         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
32983
32984 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32985
32986         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
32987
32988 2015-04-07  Florian Weimer  <fweimer@redhat.com>
32989
32990         * include/scratch_buffer.h: New file.
32991         * malloc/scratch_buffer_grow.c: Likewise.
32992         * malloc/scratch_buffer_grow_preserve.c: Likewise.
32993         * malloc/scratch_buffer_set_array_size.c: Likewise.
32994         * malloc/tst-scratch_buffer.c: Likewise.
32995         * malloc/Makefile (routines): Add scratch_buffer_grow.
32996         (tests): Add test case.
32997         * malloc/Versions (GLIBC_PRIVATE): Export
32998         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
32999         __libc_scratch_buffer_set_array_size.
33000
33001 2015-04-06  Richard Henderson  <rth@redhat.com>
33002
33003         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
33004         * sysdeps/alpha/fpu/libm-test-ulps: Update.
33005
33006         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
33007         unsigned int before printing.
33008
33009 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
33010
33011         [BZ #17596]
33012         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
33013         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
33014
33015 2015-04-02  Florian Weimer  <fweimer@redhat.com>
33016
33017         * include/libc-internal.h (libc_max_align_t): Define.
33018
33019 2015-04-02  Andreas Schwab  <schwab@suse.de>
33020
33021         [BZ #16850]
33022         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
33023
33024 2015-04-02  Mel Gorman  <mgorman@suse.de>
33025
33026         [BZ #17195]
33027         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
33028         as well as the main arena.
33029
33030 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
33031
33032         [BZ #18185]
33033         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
33034         sharing L2 cache to 2 for Silvermont/Knights Landing.
33035
33036 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
33037
33038         [BZ #17711]
33039         * config.make.in (have-protected-data): New.
33040         * configure.ac: Check linker support for protected data symbol.
33041         * configure: Regenerated.
33042         * elf/Makefile (modules-names): Add tst-protected1moda and
33043         tst-protected1modb if $(have-protected-data) is yes.
33044         (tests): Add tst-protected1a and tst-protected1b if
33045         $(have-protected-data) is yes.
33046         ($(objpfx)tst-protected1a): New.
33047         ($(objpfx)tst-protected1b): Likewise.
33048         (tst-protected1modb.so-no-z-defs): Likewise.
33049         * elf/tst-protected1a.c: New file.
33050         * elf/tst-protected1b.c: Likewise.
33051         * elf/tst-protected1mod.h: Likewise.
33052         * elf/tst-protected1moda.c: Likewise.
33053         * elf/tst-protected1modb.c: Likewise.
33054
33055 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
33056
33057         [BZ #17711]
33058         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
33059         indicates it is called from do_lookup_x on relocation against
33060         protected data, skip the data definion in the executable from
33061         copy reloc.
33062         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
33063         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
33064         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
33065         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
33066         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
33067         otherwise to 0.
33068         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
33069         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
33070         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
33071         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
33072         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
33073         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
33074
33075 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
33076
33077         * sysdeps/nptl/pthread.h: Remove duplicate definition of
33078         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
33079
33080 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
33081
33082         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
33083         THREAD_SETMEM_NC.
33084         * sysdeps/x86_64/nptl/tls.h: Ditto.
33085
33086 2015-03-27  Roland McGrath  <roland@hack.frob.com>
33087
33088         * dlfcn/tststatic.c (main): Converted to ...
33089         (do_test): ... this.
33090         (TEST_FUNCTION): New macro.
33091         Include test-skeleton.c.
33092
33093 2015-03-26  Alan Modra  <amodra@gmail.com>
33094
33095         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
33096         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
33097         zero for undefined weak.
33098         (elf_machine_plt_conflict): Similarly.
33099
33100 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
33101
33102         * math/auto-libm-test-in: Add more tests of acosh, asinh and
33103         atanh.
33104         * math/auto-libm-test-out: Regenerated.
33105         * sysdeps/i386/fpu/libm-test-ulps: Update.
33106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33107
33108         * math/auto-libm-test-in: Add another test of asin.
33109         * math/auto-libm-test-out: Regenerated.
33110         * sysdeps/i386/fpu/libm-test-ulps: Update.
33111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33112
33113         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
33114         Remove macro.
33115         (LLL_EBX_REG): Likewise.
33116         (LLL_ENTER_KERNEL): Likewise.
33117
33118         * math/auto-libm-test-in: Add more tests of asin.
33119         * math/auto-libm-test-out: Regenerated.
33120         * sysdeps/i386/fpu/libm-test-ulps: Update.
33121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33122
33123         [BZ #18138]
33124         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
33125         libc_do_syscall_args): New structure.
33126         (INTERNAL_SYSCALL_MAIN_0): New macro.
33127         (INTERNAL_SYSCALL_MAIN_1): Likewise.
33128         (INTERNAL_SYSCALL_MAIN_2): Likewise.
33129         (INTERNAL_SYSCALL_MAIN_3): Likewise.
33130         (INTERNAL_SYSCALL_MAIN_4): Likewise.
33131         (INTERNAL_SYSCALL_MAIN_5): Likewise.
33132         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
33133         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
33134         Replace conditional definitions by conditional definitions of ....
33135         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
33136         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
33137         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
33138         (libpthread-sysdep_routines): Add libc-do-syscall.
33139         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
33140         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
33141         to __NR_futex not 240.
33142
33143 2015-03-25  Alan Modra  <amodra@gmail.com>
33144
33145         * NEWS: Advertise TLS optimization.
33146         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
33147         (DT_PPC_NUM): Increment.
33148         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
33149         (CHECK_STATIC_TLS): Use here.
33150         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
33151         TLS descriptors.
33152         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
33153         * sysdeps/powerpc/dl-tls.c: New file.
33154         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
33155         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
33156         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
33157         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
33158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
33159         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
33160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
33161
33162 2015-03-25  Alan Modra  <amodra@gmail.com>
33163
33164         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
33165         for overlapping .opd entries" to "support...".
33166         * sysdeps/powerpc/powerpc64/configure: Regenerate
33167
33168 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
33169
33170         * math/auto-libm-test-in: Add more tests of acos.
33171         * math/auto-libm-test-out: Regenerated.
33172         * sysdeps/i386/fpu/libm-test-ulps: Update.
33173         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33174
33175         * math/auto-libm-test-in: Add more tests of expm1.
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 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
33181
33182         * math/auto-libm-test-in: Add more tests of cosh and sinh.
33183         * math/auto-libm-test-out: Regenerated.
33184         * sysdeps/i386/fpu/libm-test-ulps: Update.
33185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33186
33187         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
33188         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33189
33190         * math/auto-libm-test-in: Add more tests of log2.
33191         * math/auto-libm-test-out: Regenerated.
33192         * sysdeps/i386/fpu/libm-test-ulps: Update.
33193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33194
33195 2015-03-23  Roland McGrath  <roland@hack.frob.com>
33196
33197         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
33198         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
33199         _IO_IS_APPENDING bit in READ_WRITE instead.
33200
33201 2015-03-23  Florian Weimer  <fweimer@redhat.com>
33202
33203         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
33204         (__determine_cpumask_size): Replace extend_alloca with a
33205         variable-length array.  Do not treat res == 0 as an error.
33206
33207 2015-03-23  Florian Weimer  <fweimer@redhat.com>
33208
33209         [BZ #18100]
33210         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
33211         and integer overflow.
33212         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
33213         (main): Add integer overflow tests.
33214         * manual/pattern.texi (Calling Wordexp): Document additional use
33215         for WRDE_SYNTAX.
33216
33217 2015-03-23  Alan Modra  <amodra@gmail.com>
33218
33219         * config.h.in: Remove HAVE_ASM_PPC_REL16.
33220         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
33221         and false branch of conditional.
33222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
33223         Likewise.
33224
33225 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
33226
33227         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
33228         libc-modules.h
33229         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
33230         unused declaration of _hurd_intr_rpc_msg_in_trap.
33231         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
33232         defined instead of whether it is non-zero.
33233         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
33234         input constraint instead of both input and output constraint.  Use ecx
33235         clobber instead of %ecx.
33236         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
33237         mutex_unlock): Use a statement expression instead of an expression list.
33238         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
33239         type to vm_size_t instead of vm_address_t.
33240         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
33241         defined instead of whether it is non-zero.
33242         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
33243         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
33244         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
33245         comparisons with mapaddr.
33246         * nscd/nscd-client.h: Include <time.h>.
33247         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
33248         9th parameter to __vm_region instead of int.
33249         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
33250         * scripts/check-local-headers.sh (exclude): Add device/,
33251         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
33252         cthreads.h.
33253
33254 2015-03-19  Roland McGrath  <roland@hack.frob.com>
33255
33256         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
33257         to account for alignment padding.
33258         * sysdeps/arm/memmove.S: Likewise.
33259
33260 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
33261
33262         * sysdeps/unix/sysv/linux/generic/README: New file.
33263
33264 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
33265
33266         [BZ #18138]
33267         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
33268         (futex_abstimed_wait)
33269         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
33270         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
33271         of lll_futex_timed_wait.
33272
33273 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
33274
33275         [BZ #17542]
33276         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
33277
33278 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
33279
33280         [BZ #17090]
33281         [BZ #17620]
33282         [BZ #17621]
33283         [BZ #17628]
33284         * NEWS: Update.
33285         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
33286         entries with Static TLS too.  Skip entries past the end of the
33287         allocated DTV, from Alan Modra.
33288         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
33289         Static TLS DTV entry set up from...
33290         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
33291         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
33292         * nptl/allocatestack.c (init_one_static_tls): ... and here...
33293         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
33294         for Static TLS.
33295         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
33296         that the slot we find is associated with the given map before
33297         using its generation count.
33298         * nptl_db/db_info.c: Include ldsodefs.h.
33299         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
33300         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
33301         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
33302         (link_map::l_tls_offset): New struct field.
33303         (dtv_t::counter): Likewise.
33304         (rtld_global): New struct.
33305         (_rtld_global): New rtld variable.
33306         (dl_tls_dtv_slotinfo_list): New rtld global field.
33307         (dtv_slotinfo_list): New struct.
33308         (dtv_slotinfo): Likewise.
33309         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
33310         (td_lookup): Rename to...
33311         (td_mod_lookup): ... this.  Use new mod parameter instead of
33312         LIBPTHREAD_SO.
33313         * nptl_db/td_thr_tlsbase.c: Include link.h.
33314         (dtv_slotinfo_list, dtv_slotinfo): New functions.
33315         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
33316         addresses even if the DTV is out of date or missing them.
33317         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
33318         index zero-length arrays.
33319         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
33320         (td_lookup): Make it a macro implemented in terms of...
33321         (td_mod_lookup): ... this declaration.
33322         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
33323         (DB_MAIN_VARIABLE): Likewise.
33324
33325 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
33326
33327         [BZ #18134]
33328         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
33329
33330 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33331
33332         * stdlib/setenv.c (__add_to_environ): Revert previous change.
33333
33334 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
33335
33336         [BZ #18128]
33337         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
33338         (atomic_add, atomic_increment_and_test)
33339         (atomic_decrement_and_test): Fix 64-bit arithmetic.
33340
33341 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
33342
33343         * stdlib/setenv.c (__add_to_environ):
33344         Dump core quickly if setenv (..., NULL, ...) is called.
33345
33346 2015-03-13  Roland McGrath  <roland@hack.frob.com>
33347
33348         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
33349         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
33350         all the necessary asm magic in one place.
33351         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
33352         using those.
33353
33354 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
33355
33356         [BZ #14906]
33357         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
33358         traced file mtime. Use consistent log message.
33359         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
33360         (register_traced_file): Call install_watches. Always set mtime.
33361         (invalidate_cache): Iterate over all trace files. Call install_watches.
33362         (inotify_check_files): Don't inline. Handle watching parent
33363         directories and configuration file movement in and out.
33364         (handle_inotify_events): New function.
33365         (main_loop_poll): Call handle_inotify_events.
33366         (main_loop_epoll): Likewise.
33367         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
33368         (struct traced_file): Use array of inotify fds. Add parent directory,
33369         and basename.
33370         (struct database_dyn): Remove unused file_mtime.
33371         (init_traced_file): New inline function.
33372         (define_traced_file): New macro.
33373         * nss/nss_db/db-init.c: Use define_traced_file.
33374         (_nss_db_init): Use init_traced_file.
33375         * nss/nss_files/files-init.c: Use define_traced_file.
33376         (_nss_files_init): Use init_traced_file.
33377
33378 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
33379
33380         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
33381         [_LIBC]: Do not include <stdlib.h>.
33382         [!_LIBC] (abort): Remove declaration.
33383         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
33384         _FP_STATIC_ASSERT instead of conditionally calling abort.
33385         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
33386         (_FP_EXTEND_CNAN): Likewise.
33387         (FP_TRUNC): Likewise.
33388         (__FP_CLZ): Likewise.
33389         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
33390
33391 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
33392
33393         * manual/string.texi (XPG basename): Fix prototype.
33394
33395 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33396
33397         [BZ #18080]
33398         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
33399         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33400         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
33401         (__setcontext): Likewise.
33402         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
33403         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
33404         Call rt_sigprocmask syscall one time to set new signal mask
33405         and retrieve the current signal mask instead of two calls.
33406         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
33407         (__swapcontext): Likewise.
33408         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
33409         * stdlib/tst-setcontext2.c: New file.
33410
33411 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
33412
33413         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
33414
33415 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
33416
33417         [BZ #18093]
33418         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
33419         the wrong size.
33420
33421 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
33422
33423         [BZ #18043]
33424         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
33425
33426 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33427
33428         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
33429         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
33430         Remove define.
33431         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
33432         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
33433         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
33434         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
33435         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
33436         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
33437         define.
33438         * nptl_db/td_symbol_list.c (td_lookup): Remove
33439         HAVE_ASM_GLOBAL_DOT_NAME code.
33440         * sysdeps/powerpc/powerpc64/configure.ac: Remove
33441         HAVE_ASM_GLOBAL_DOT_NAME check.
33442         * sysdeps/powerpc/powerpc64/configure: Regenerate.
33443         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
33444         (DOT_LABEL): Remove define.
33445         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
33446         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
33447         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
33448         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
33449         (__TLS_GET_ADDR): Likewise.
33450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
33451         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
33452
33453 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
33454
33455         [BZ #18111]
33456         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
33457         (_FPU_SETCW): Initialize cw from fpsr before storing.
33458         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
33459         (fesetexceptflag): Rewrite using fpu_control.h.
33460         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
33461
33462 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
33463
33464         [BZ #18110]
33465         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
33466         asms.
33467         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
33468
33469 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
33470
33471         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
33472         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
33473         abort.
33474         (_FP_FMA): Likewise.
33475         (_FP_DIV): Likewise.
33476
33477 2015-03-10  Roland McGrath  <roland@hack.frob.com>
33478
33479         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
33480         with 0 in that case.
33481         * Makefile (summarize-tests): New canned sequence, factored out of
33482         commands for targets tests and xtests.  Display summary lines that
33483         don't start with PASS: or XFAIL: rather than ones that do start with
33484         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
33485         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
33486         do start with ERROR: or FAIL:.
33487         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
33488         (except for [$(build-shared) = yes]).
33489         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
33490         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
33491         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
33492         * nptl/Makefile: Revert 2015-03-04 changes.
33493         [$(CXX) empty] (tests-unsupported): New variable.
33494         * debug/Makefile: Likewise.
33495
33496         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
33497         gnulib file.  Replace __attribute with __attribute__ throughout.
33498
33499 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
33500
33501         * sysdeps/hppa/fpu/libm-test-ulps: Update.
33502
33503 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33504
33505         [BZ #18104]
33506         * math/auto-libm-test-in: Add another test of pow.
33507         * math/auto-libm-test-out: Regenerated.
33508
33509 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33510
33511         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
33512         $(config-cflags-nofma).
33513
33514 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
33515
33516         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
33517         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
33518         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
33519         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
33520         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
33521         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
33522         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
33523         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
33524         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
33525         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
33526         Add comment on closing #endif.
33527
33528 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33529
33530         * posix/wordexp.c (CHAR_IN_SET): New macro.
33531         (parse_param): Use it.
33532
33533 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33534
33535         * sysdeps/powerpc/fpu/libm-test-ulps: update.
33536
33537 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33538
33539         [BZ #18043]
33540         * posix/wordexp.c (parse_param): Fix buffer overflow.
33541         * posix/wordexp-test.c (test_case): Add test case.
33542
33543 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33544
33545         [BZ #18042]
33546         * posix/wordexp.c (parse_backtick): Fix off-by-one.
33547         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
33548
33549 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
33550
33551         [BZ #18043]
33552         * posix/wordexp-test.c (test_case): Add test for BZ #18043
33553         (do_bz18043): Delete.
33554         (at_page_end): New.
33555         (testit): Refactor to have words at the edge of unreadable page.
33556
33557 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
33558
33559         [BZ #16734]
33560         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
33561         Cleanup read-only streams as well.
33562         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
33563
33564 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33565
33566         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
33567         <bits/libc-lockP.h>
33568
33569 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
33570
33571         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
33572         on [__KERNEL__].
33573         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
33574         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
33575         * soft-fp/op-common.h (_FP_DECL): Likewise.
33576
33577 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
33578
33579         * elf/ifuncdep2.c (global): Replace
33580         __attribute__((visibility("protected"))) with
33581         asm (".protected global").
33582         * elf/ifuncmod1.c (global): Likewise.
33583         * elf/ifuncmod5.c (global): Likewise.
33584
33585 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
33586
33587         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
33588         <asm/sfp-machine.h> instead of <sfp-machine.h>.
33589
33590 2015-03-06  Roland McGrath  <roland@hack.frob.com>
33591
33592         * manual/install.texi (Configuring and compiling):
33593         Document test-wrapper-env-only.
33594         * INSTALL: Regenerated.
33595
33596 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33597
33598         [BZ #18043]
33599         * posix/wordexp.c (parse_param): Fix buffer overflow.
33600         * posix/wordexp-test.c (do_bz18043): Add test case.
33601
33602 2015-03-06  Vincent Bernat  <vincent@bernat.im>
33603
33604         * time/tst-strptime2.c (do_test): Ensure failing tests are
33605         reported correctly.
33606         * time/tst-strptime3.c (do_test): Likewise.
33607
33608 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
33609
33610         Fix aio_error thread-safety.
33611         * sysdeps/pthread/aio_error.c: New file
33612         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
33613         synchronization.
33614
33615 2015-03-06  Florian Weimer  <fweimer@redhat.com>
33616
33617         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
33618         (group_number, vfprintf): Use it.
33619         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
33620         (JUMP, REF): Use it.
33621         (WORK_BUFFER_SIZE): New enum constant.
33622         (process_arg, vfprintf): Use it.
33623
33624 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
33625
33626         * manual/errno.texi (Error Messages): Complete example function
33627         by adding missing #define.
33628         (program_invocation_name): Add statement indicating GNU
33629         extension and reference which header file declares the variable.
33630         (program_invocation_short_name): Likewise.
33631
33632 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
33633
33634         * manual/errno.texi (Error Messages): Delete strerror ISO C89
33635         compatibility note.
33636
33637 2015-03-05  Roland McGrath  <roland@hack.frob.com>
33638
33639         * Makeconfig (test-wrapper-env-only): New variable.
33640         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
33641         then use that with $(test-wrapper-env-only) rather than using
33642         $(test-wrapper-env) $(run-program-env) $($*-ENV).
33643
33644 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
33645
33646         [BZ #18082]
33647         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
33648         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
33649         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
33650         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
33651         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
33652         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
33653         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
33654         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
33655         Likewise.
33656         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
33657         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
33658         Likewise.
33659         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
33660         Likewise.
33661         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
33662         Likewise.
33663         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
33664         Likewise.
33665         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
33666         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
33667         Likewise.
33668         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
33669         Likewise.
33670         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
33671         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
33672
33673 2015-03-04  Roland McGrath  <roland@hack.frob.com>
33674
33675         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
33676         (ETH_ALEN): New macro.
33677         (struct ether_addr): Use it for length of ether_addr_octet.
33678
33679         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
33680         (setdb): Don't call __nss_configure_lookup for "rpc".
33681         (do_test): Don't call test_rpc.
33682         (output_rpcent, test_rpc): Functions moved ...
33683         * sunrpc/test-rpcent.c: ... to this new file.
33684         * sunrpc/Makefile (tests): Add it.
33685
33686         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
33687         __xpg_sigpause.
33688         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
33689         * nptl/tst-signal6.c: Likewise.
33690         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
33691         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
33692
33693         * configure.ac (libc_cv_cxx_link_ok): New check.
33694         Reset CXX to empty if it fails to link.
33695         * configure: Regenerated.
33696         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
33697         bug-atexit3-lib only if $(CXX) is nonempty.
33698         * nptl/Makefile (tests): Likewise for tst-cancel24.
33699         (tests, tests-static): Likewise for tst-cancel24-static.
33700         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
33701         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
33702         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
33703         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
33704
33705 2015-03-04  Andreas Schwab  <schwab@suse.de>
33706
33707         [BZ #17631]
33708         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
33709         for non-GCC compilers.
33710         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
33711         Likewise.
33712
33713 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
33714
33715         [BZ #17776]
33716         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
33717         integer before bitwise and assembly operations.
33718         (feclearexcept): Likewise.
33719         * math/test-fenvinline.c: New file.
33720         * math/Makefile: Add test-fenvinline test.
33721
33722 2015-03-03  Alan Modra  <amodra@gmail.com>
33723
33724         [BZ #16512]
33725         * scripts/localplt.awk: Strip off symbol version.
33726         * NEWS: Mention bug fix.
33727
33728 2015-03-02  Roland McGrath  <roland@hack.frob.com>
33729
33730         * sysdeps/pthread/timer_routines.c
33731         (timer_free_list, thread_free_list, thread_active_list): Make static.
33732
33733 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
33734
33735         [BZ #17779]
33736         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33737         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33738         Undefine.
33739         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33740         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33741         Likewise.
33742         * sysdeps/unix/sysv/linux/sh/kernel-features.h
33743         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
33744         Likewise.
33745
33746 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33747
33748         [BZ #18036]
33749         * posix/fnmatch_loop.c (END): Detect invalid pattern.
33750         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
33751
33752 2015-03-02  Andreas Schwab  <schwab@suse.de>
33753
33754         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
33755         variable name.
33756
33757 2015-03-02  Florian Weimer  <fweimer@redhat.com>
33758
33759         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
33760         Return error status.
33761
33762 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
33763
33764         [BZ #15969]
33765         * locale/findlocale.c (_nl_find_locale): Introduce const
33766         version of loc_name and drop unsafe type casts.
33767
33768 2015-02-27  Roland McGrath  <roland@hack.frob.com>
33769
33770         * dlfcn/tststatic2.c (main): Converted to ...
33771         (do_test): ... this.
33772         (TEST_FUNCTION): New macro.
33773         Include test-skeleton.c.
33774
33775 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
33776
33777         [BZ #17711]
33778         * elf/Makefile (tests): Add vismain only if PIE is enabled.
33779         (tests-pie): Add vismain.
33780         (CFLAGS-vismain.c): New.
33781         * elf/vismain.c: Add comments for PIE requirement.
33782
33783 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33784
33785         [BZ #18046]
33786         [BZ #18047]
33787         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
33788         0x1p-56L as threshold for just returning the argument.
33789         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
33790         0x1p-32L as threshold for just returning the argument.
33791         * math/auto-libm-test-in: Add more tests of atanh.
33792         * math/auto-libm-test-out: Regenerated.
33793         * sysdeps/i386/fpu/libm-test-ulps: Update.
33794         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
33795
33796 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33797
33798         * string/bcopy.c (bcopy): Call memmove for performance.
33799
33800 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
33801
33802         * string/bzero.c (__bzero): Call memset for performance.
33803
33804 2015-02-27  John David Anglin  <dave.anglin@bell.net>
33805
33806         [BZ #18068]
33807         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
33808         to 00100000.
33809
33810 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
33811
33812         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
33813
33814 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33815
33816         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
33817         (__kernel_standard): Use CSTR macro when setting exc.name.
33818         * sysdeps/ieee754/Makefile [$(subdir) = math]
33819         (CFLAGS-k_standard.c): Remove variable.
33820
33821         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
33822         setting p and q from "else if" to "else".
33823         (qzero): Likewise.
33824         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
33825         (qone): Likewise.
33826         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
33827         (qzerof): Likewise.
33828         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
33829         (qonef): Likewise.
33830         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
33831         (qzero): Likewise.
33832         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
33833         (qone): Likewise.
33834
33835         [BZ #18038]
33836         [BZ #18039]
33837         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
33838         return pi/2 for arguments below 0x1p-113L.
33839         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
33840         return pi/2 for arguments below 0x1p-106L.
33841         * math/auto-libm-test-in: Add more tests of acos.
33842         * math/auto-libm-test-out: Regenerated.
33843
33844         [BZ #16351]
33845         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
33846         (MO): New macro.
33847         (__ieee754_asin): Force underflow exception for results with small
33848         absolute value.
33849         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
33850         (MO): New macro.
33851         (__ieee754_asinf): Force underflow exception for results with
33852         small absolute value.
33853         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
33854         (__ieee754_asin): Force underflow exception for results with small
33855         absolute value.
33856         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
33857         (__ieee754_asinf): Force underflow exception for results with
33858         small absolute value.
33859         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
33860         (__ieee754_asinl): Force underflow exception for results with
33861         small absolute value.
33862         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
33863         (__ieee754_asinl): Force underflow exception for results with
33864         small absolute value.
33865         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
33866         (__ieee754_asinl): Force underflow exception for results with
33867         small absolute value.
33868         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
33869         Include <math.h>.
33870         * math/auto-libm-test-in: Do not mark underflow exceptions as
33871         possibly missing for bug 16351.
33872         * math/auto-libm-test-out: Regenerated.
33873
33874         [BZ #18030]
33875         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
33876         of power of 2 down when low part has opposite sign.
33877         * math/libm-test.inc (logb_test_data): Add more tests.
33878
33879 2015-02-26  Andreas Schwab  <schwab@suse.de>
33880
33881         [BZ #18032]
33882         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
33883         over collating symbol inside a bracket expression.  Minor cleanup.
33884         * posix/tst-fnmatch3.c (do_test): Add test case.
33885
33886 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
33887
33888         [BZ #18029]
33889         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
33890         Adjust exponent of power of 2 down when low part has opposite
33891         sign.
33892         * math/libm-test.inc (ilogb_test_data): Add more tests.
33893
33894 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
33895
33896         [BZ #15969]
33897         * locale/findlocale.c (_nl_find_locale): Fix constness error in
33898         the previous change.
33899
33900         [BZ #15969]
33901         * locale/findlocale.c (_nl_find_locale): Retry archive search
33902         after alias expansion.
33903
33904 2015-02-25  Roland McGrath  <roland@hack.frob.com>
33905
33906         * iconv/tst-iconv3.c (main): Converted to ...
33907         (do_test): ... this.
33908         (TEST_FUNCTION): New macro.
33909         Include test-skeleton.c.
33910
33911         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
33912         (convert): Make function static.
33913         (test_unalign): Likewise.  Add const to argument pointee types.
33914         (main): Replace with static function do_test.
33915         Print "Succeeded." only if RET is zero.
33916         (TEST_FUNCTION): New macro.
33917         Include test-skeleton.c.
33918
33919         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
33920         returns a null pointer.
33921
33922 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33923
33924         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
33925         to __memcpy_ppc only for static builds.
33926
33927 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
33928
33929         [BZ #18020]
33930         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
33931         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
33932         * math/auto-libm-test-in: Add more tests of asinh.
33933         * math/auto-libm-test-out: Regenerated.
33934         * sysdeps/i386/fpu/libm-test-ulps: Update.
33935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33936
33937 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
33938
33939         [BZ #15850]
33940         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
33941         and ip6_mtuinfo definitions here.
33942         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
33943         in this define too.  Update comment.
33944
33945 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
33946
33947         * elf/sprof.c (load_shobj): Tweak error message to match others.
33948
33949 2015-02-24  Kevin Easton  <kevin@guarana.org>
33950
33951         [BZ #16145] (partial fix)
33952         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
33953         to reduce lock contention.
33954
33955 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
33956
33957         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
33958         (struct timex): Update time comment.
33959         (ADJ_SETOFFSET): Define.
33960
33961 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33962
33963         [BZ #18019]
33964         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
33965         2**56 not 2**28 as threshold for log (2x) formula.
33966         * math/auto-libm-test-in: Add more tests of acosh.
33967         * math/auto-libm-test-out: Regenerated.
33968         * sysdeps/i386/fpu/libm-test-ulps: Update.
33969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33970
33971 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
33972
33973         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
33974         parenthesis around the buf assignment.
33975         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
33976
33977 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
33978
33979         [BZ #16783]
33980         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
33981         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
33982         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
33983         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33984         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
33985         * math/libm-test.inc (scalb_test_data): Add more tests.
33986
33987 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
33988
33989         [BZ #17916]
33990         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
33991         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
33992
33993 2015-02-24  Eric Rannaud  <e@nanocritical.com>
33994
33995         [BZ #17523]
33996         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
33997         * io/bits/fcntl2.h (open): Use it.
33998         (openat): Likewise.
33999         * io/open.c (__libc_open): Likewise.
34000         * io/open64.c (__libc_open64): Likewise.
34001         * io/open64_2.c (__open64_2): Likewise.
34002         * io/open_2.c (__open_2): Likewise.
34003         * io/openat.c (__openat): Likewise.
34004         * io/openat64.c (__openat64): Likewise.
34005         * io/openat64_2.c (__openat64_2): Likewise.
34006         * io/openat_2.c (__openat_2): Likewise.
34007         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
34008         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
34009         * sysdeps/posix/open64.c (__libc_open64): Likewise.
34010         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
34011         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
34012         (__open_nocancel): Likewise.
34013         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
34014         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
34015         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
34016
34017 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34018
34019         [BZ #14841]
34020         * resolv/gethnamaddr.c (getanswer): Skip logging if
34021         RES_USE_DNSSEC is set.
34022         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
34023
34024 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
34025
34026         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
34027
34028 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
34029
34030         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
34031         201304L, for Unicode 7.
34032
34033 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
34034
34035         [BZ #17836]
34036         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
34037         shared library.  Add gmon-start.os otherwise.
34038         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
34039         $(objpfx)gmon-start.os if builing shared library.
34040         ($(objpfx)g$(static-start-installed-name)): Likewise.
34041
34042 2015-02-23  Andreas Schwab  <schwab@suse.de>
34043
34044         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
34045
34046 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
34047
34048         [BZ #17269]
34049         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
34050         (enlarge_userbuf): Likewise.
34051
34052 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
34053
34054         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
34055         * math/atest-exp.c (TIMEOUT): Adjust to 200.
34056         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
34057         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
34058
34059 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
34060
34061         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
34062         expression inside statement expression.
34063
34064 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
34065
34066         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
34067         <sysdeps/nptl/lowlevellock.h> and remove macros and
34068         functions that are now defined there.
34069         (SYS_futex): Remove.
34070         (lll_compare_and_swap): Remove.
34071         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
34072
34073 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
34074
34075         [BZ #17999]
34076         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
34077         instead of scandirat.
34078         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
34079         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
34080         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
34081         __scandirat.
34082         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
34083         (__scandirat): Declare.  Use libc_hidden_proto.
34084         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
34085         Remove variable.
34086         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
34087
34088 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
34089
34090         [BZ #15319]
34091         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
34092         (MO): New macro.
34093         (__ieee754_atan2): For results with small absolute value, force
34094         underflow exception and remove excess range and precision from
34095         return value.
34096         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
34097         (MO): New macro.
34098         (__ieee754_atan2f): For results with small absolute value, force
34099         underflow exception and remove excess range and precision from
34100         return value.
34101         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
34102         (MO): New macro.
34103         (__atan): For results with small absolute value, force underflow
34104         exception and remove excess range and precision from return value.
34105         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
34106         (MO): New macro.
34107         (__atanf): For results with small absolute value, force underflow
34108         exception and remove excess range and precision from return value.
34109         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
34110         <math.h>.
34111         (__ieee754_atan2): Force underflow exception for results with
34112         small absolute value.
34113         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
34114         <math_private.h>.
34115         (atan): Force underflow exception for results with small absolute
34116         value.
34117         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
34118         (__atanf): Force underflow exception for results with small
34119         absolute value.
34120         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
34121         <math.h>.
34122         (__atanl): Force underflow exception for results with small
34123         absolute value.
34124         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
34125         (__atanl): Force underflow exception for results with small
34126         absolute value.
34127         * sysdeps/x86/fpu/bits/mathinline.h
34128         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
34129         (__ieee754_atan2): Only define inline for long double.
34130         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
34131         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
34132         * math/auto-libm-test-in: Do not mark underflow exceptions as
34133         possibly missing for bug 15319.  Add more tests of atan2.
34134         * math/auto-libm-test-out: Regenerated.
34135         * math/libm-test.inc (casin_test_data): Do not mark underflow
34136         exceptions as possibly missing for bug 15319.
34137         (casinh_test_data): Likewise.
34138         * sysdeps/i386/fpu/libm-test-ulps: Update.
34139
34140 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
34141
34142         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
34143         * sysdeps/mips/bits/endian.h: Fix comments.
34144
34145 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
34146
34147         [BZ #17996]
34148         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
34149         (hdestroy_r): Likewise.
34150         (hsearch_r): Likewise.
34151         (__hcreate_r): Declare and use libc_hidden_proto.
34152         (__hdestroy_r): Likewise.
34153         (__hsearch_r): Likewise.
34154         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
34155         (hcreate): Call __hcreate_r instead of hcreate_r.
34156         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
34157         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
34158         as weak alias of __hcreate_r.
34159         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
34160         __hdestroy_r.
34161         (hsearch_r): Rename to __hsearch_r and define as weak alias of
34162         __hsearch_r.
34163         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
34164         Remove variable.
34165         (test-xfail-XPG4/search.h/linknamespace): Likewise.
34166         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
34167         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
34168         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
34169
34170 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
34171
34172         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
34173         arena_lock into a single arena_get.
34174
34175 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
34176
34177         * dl-reloc.c: Inlucde libc-internal.h.
34178         (_dl_try_allocate_static_tls): Call ALIGN_UP.
34179         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
34180         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
34181         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
34182         (grow_heap): Likewise.
34183         * malloc/malloc.c: Include libc-internal.h.
34184         (do_check_malloc): Call powerof2.
34185         (sysmalloc): Use pagesize. Call ALIGN_UP.
34186         (systrim): Use pagesize.
34187         (mremap_chunk): Use pagesize. Call ALIGN_UP.
34188         (__libc_valloc): Use pagesize.
34189         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
34190
34191 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
34192
34193         [BZ #17991]
34194         * include/sys/resource.h (__getrlimit64): Declare.  Use
34195         libc_hidden_proto.
34196         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
34197         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
34198         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
34199         getrlimit64.
34200         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
34201         __getrlimit64.
34202         [!getrlimit64] (getrlimit64): Define as weak alias of
34203         __getrlimit64.  Use libc_hidden_weak.
34204         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
34205         using __getrlimit64 not __new_getrlimit64.
34206         (__GI_getrlimit64): Likewise.
34207         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
34208         Likewise.
34209         (__GI_getrlimit64): Likewise.
34210         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
34211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
34212         (getrlimit): Add __getrlimit64 alias.
34213         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
34214         Likewise.
34215         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
34216         Remove variable.
34217         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
34218         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
34219
34220 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
34221
34222         * libio/fileops.c: Add missing sys/mman.h
34223         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
34224
34225 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
34226
34227         * manual/math.texi (Errors in Math Functions): Clarify goals
34228         regarding inexact and underflow exceptions.
34229
34230 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
34231
34232         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
34233         * sysdeps/mips/memset.S: Ditto.
34234
34235 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
34236
34237         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
34238
34239 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
34240
34241         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
34242         (__v1longjmp): Remove versioned symbol.
34243         (__v1siglongjmp): Remove alias and versioned symbol.
34244         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
34245         (__v2siglongjmp): Likewise.
34246
34247 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34248
34249         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
34250
34251 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
34252
34253         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
34254
34255 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
34256
34257         [BZ #17987]
34258         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
34259         zero result does not depend on the sign resulting from
34260         subtraction.
34261         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34262         Likewise.
34263         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34264         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34265         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34266         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34267         * math/libm-test.inc (remquo_test_data): Add more tests.
34268
34269 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
34270
34271         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
34272         Problem reported by J William Piggott.
34273
34274 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
34275
34276         [BZ #17978]
34277         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
34278         products 4 * y and 2 * y where those would overflow.
34279         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34280         Likewise.
34281         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34282         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34283         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34284         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34285         * math/libm-test.inc (remquo_test_data): Add more tests.
34286
34287         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
34288
34289         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
34290         [defined _COMPILING_NEWLIB].
34291         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
34292         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
34293
34294         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
34295         [!defined __mips_isa_rev || __mips_isa_rev < 6].
34296
34297 2015-02-16  Torvald Riegel  <triegel@redhat.com>
34298
34299         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
34300         acquired.
34301
34302 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
34303
34304         [BZ #17792]
34305         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
34306         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
34307         HOST_STACK_END_ADDR): Likewise.
34308
34309 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
34310
34311         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
34312         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
34313         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
34314
34315 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34316
34317         * sysdeps/generic/c++-types.data: New file.
34318         * sysdeps/generic/ld.abilist: New file.
34319         * sysdeps/generic/libBrokenLocale.abilist: New file.
34320         * sysdeps/generic/libanl.abilist: New file.
34321         * sysdeps/generic/libc.abilist: New file.
34322         * sysdeps/generic/libcrypt.abilist: New file.
34323         * sysdeps/generic/libdl.abilist: New file.
34324         * sysdeps/generic/libm.abilist: New file.
34325         * sysdeps/generic/libpthread.abilist: New file.
34326         * sysdeps/generic/libresolv.abilist: New file.
34327         * sysdeps/generic/librt.abilist: New file.
34328
34329 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34330
34331         [BZ #17569]
34332         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
34333         Compute absolute value of x as modified by fmod, not original
34334         value of x.
34335         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
34336         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
34337         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
34338         RUN_TEST_ffI_f1_mod8.
34339         (remquo_test_data): Add more tests.
34340
34341 2015-02-13  Roland McGrath  <roland@hack.frob.com>
34342
34343         * sysdeps/init_array/pt-crti.S: New file.
34344
34345 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
34346
34347         [BZ #17967]
34348         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
34349         __builtin_fmaf instead of relying on contraction of a * b + c.
34350
34351 2015-02-12  J William Piggott  <elseifthen@gmx.com>
34352
34353         [BZ #17969]
34354         * manual/time.texi: correct the zoneinfo path in the TZ Variable
34355         node.
34356
34357 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34358
34359         [BZ #17964]
34360         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
34361         __builtin_fma instead of relying on contraction of a * b + c.
34362
34363 2015-02-12  Roland McGrath  <roland@hack.frob.com>
34364
34365         * Makeconfig (ASFLAGS): Add -Werror=undef.
34366         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
34367         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
34368         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
34369
34370         * Makeconfig (after-link): New variable.
34371         (+link-pie, +link-pie-tests): Use it.
34372         (+link-static, +link-static-tests): Likewise.
34373         (+link, +link-tests): Likewise.
34374         * Makerules (build-module, build-module-asneeded): Likewise.
34375         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
34376         Likewise.
34377         * elf/Makefile ($(objpfx)ld.so): Likewise.
34378
34379 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
34380
34381         [BZ #17965]
34382         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
34383         both struct timeval and struct timespec.
34384
34385 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
34386
34387         [BZ #16560]
34388         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
34389         and redefine.
34390         (__ieee754_exp2l): Do not multiply small fractional parts by
34391         M_LN2l.
34392         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
34393         small argument.
34394         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
34395         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
34396         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
34397         * math/auto-libm-test-in: Add more tests of exp2.
34398         * math/auto-libm-test-out: Regenerated.
34399
34400 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
34401
34402         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
34403         unaligned path.
34404
34405 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34406
34407         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
34408         little endian.
34409
34410 2015-02-12  Andreas Schwab  <schwab@suse.de>
34411
34412         [BZ #15790]
34413         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
34414         Filter out elision flags from value returned in kind.
34415         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
34416         * nptl/tst-pthread-mutexattr.c: New file.
34417
34418 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34419
34420         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
34421         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
34422         into gnu-gnu, and update comment to refer to abi-tags.
34423
34424 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
34425
34426         [BZ #15467]
34427         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
34428         (__sincos): Set errno to EDOM for infinite argument.
34429         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
34430         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
34431         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
34432         (__sincosl): Set errno to EDOM for infinite argument.
34433         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
34434         (__sincosl): Set errno to EDOM for infinite argument.
34435         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
34436         (__sincosl): Set errno to EDOM for infinite argument.
34437         * math/libm-test.inc (sincos_test_data): Test errno setting.
34438
34439 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
34440
34441         * string/strxfrm_l.c: Remove #define STRCMP.
34442         * string/strcoll_l.c: Remove #define STRLEN.
34443         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
34444         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
34445
34446 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
34447
34448         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
34449         * sysdeps/mips/mips32/sfp-machine.h: ... here.
34450         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
34451         * sysdeps/mips/mips64/Makefile: ... here.
34452         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
34453         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
34454         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
34455         * sysdeps/mips/mips64/sfp-machine.h: ... here.
34456         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
34457         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
34458         * sysdeps/mips/mips64/n64/Implies: Likewise.
34459
34460 2015-02-10  Roland McGrath  <roland@hack.frob.com>
34461
34462         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
34463         <sys/time.h>, <string.h>, and <errno.h>.
34464         (dest_offset, dest_address, value, zero): Remove unused variables.
34465         (ldouble): Remove typedef.
34466         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
34467         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
34468         1).  Fix code style.
34469         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
34470         (check): Function removed.
34471         (CHECK): New macro.
34472         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
34473         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
34474         Don't call set_sigaction_FP and remove_sigaction_FP here.
34475         (ldouble_test): Just use 'long double' as macro argument, no need for
34476         the 'ldouble' typedef.
34477         (do_test): Set up SIGFPE handler at start, using plain signal rather
34478         than sigaction.  Fix code style.
34479
34480 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
34481
34482         [BZ #17949]
34483         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
34484         jump label.
34485
34486 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34487
34488         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
34489         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34490
34491         * sysdeps/powerpc/configure.ac: Remove file.
34492         * sysdeps/powerpc/configure: Likewise.
34493
34494         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34495         [sysdep_routines]: Remove wordcopy-power6 object.
34496         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
34497         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
34498         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
34499         (__memmove_ppc32): Likewise.
34500         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
34501         file.
34502         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
34503         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
34504         Remove preprocessor.
34505
34506         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
34507         [sysdep_routines]: Remove wide chars objects.
34508         [wcsmbs]: New rule for wide char objects.
34509
34510         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34511         Remove wordcopy-power6 obejct.
34512         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
34513         Use local call for wordcopy and memcpy symbols.
34514         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
34515         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
34516         implementation for loader.
34517         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
34518
34519         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34520         Remove wordcopy-power7 object.
34521         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
34522         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
34523         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
34524         (_wordcopy_fwd_dest_aligned): Likewise.
34525         (_wordcopy_bwd_aligned): Likewise.
34526         (_wordcopy_bwd_dest_aligned): Likewise.
34527
34528         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
34529         Rewrite to call __memmove_ppc instead of include default
34530         implementation.
34531
34532         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
34533         Remove wide chars objects.
34534         [wcsmbs]: New rule for wide char objects.
34535
34536 2015-02-09  Andreas Schwab  <schwab@suse.de>
34537
34538         [BZ #17912]
34539         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
34540         in terms of __O_DIRECTORY.
34541
34542 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34543
34544         * time/getdate.c: Include <stdbool.h>.
34545         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
34546         call PTR_MANGLE.
34547         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
34548         PTR_DEMANGLE.
34549
34550 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34551
34552         Add ersatz _Static_assert on older C hosts
34553         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
34554         pre-C11 C platform that is not known to support _Static_assert.
34555
34556 2015-02-07  Richard Braun  <rbraun@sceen.net>
34557
34558         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
34559         sigstate.
34560         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
34561
34562 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34563
34564         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
34565         priority against unexistent AIO_PRIO_DELTA_MAX.
34566         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
34567         instead of int.
34568         * misc/fchflags.c (fchflags): Likewise.
34569         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
34570         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
34571         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
34572         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
34573         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
34574         Declare macros.
34575         [__USE_MISC] (chflags, fchflags): Declare functions.
34576         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
34577         EINVAL when nfds is greater than FD_SETSIZE.
34578         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
34579         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
34580         45.
34581         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
34582         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
34583         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
34584         MACH_RCV_TIMED_OUT.
34585         * hurd/hurd/signal.h (_hurd_self_sigstate,
34586         _hurd_critical_section_lock, _hurd_critical_section_unlock):
34587         Explicit casts from void *.
34588         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
34589         * abi-tags: Rename gnu-gnu os into gnu.
34590
34591         [BZ #4719]
34592         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
34593         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
34594         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
34595         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
34596         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
34597         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
34598
34599         [BZ #17944]
34600         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
34601         duplicates ADDR->sun_path with sockaddr LEN limitation.
34602         * sysdeps/mach/hurd/connect.c: Include <string.h>
34603         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
34604         * sysdeps/mach/hurd/sendmsg.c: Likewise.
34605         * sysdeps/mach/hurd/sendto.c: Likewise.
34606         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
34607         implementing it by hand.
34608
34609 2015-02-06  Roland McGrath  <roland@hack.frob.com>
34610
34611         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
34612         Use sfi_breg on ldr.
34613         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
34614         Likewise.
34615
34616         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
34617         it's defined.
34618         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
34619         Test SIGSETXID only if it's defined.
34620
34621         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
34622
34623         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
34624         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
34625
34626         * nptl/tst-align2.c: Moved ...
34627         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
34628         * nptl/Makefile (tests): Remove tst-align2.
34629         * sysdeps/unix/sysv/linux/Makefile
34630         [$(subdir) = nptl] (tests): Add tst-align-clone.
34631         * nptl/tst-getpid1.c: Moved ...
34632         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
34633         * nptl/tst-getpid2.c: Moved ...
34634         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
34635         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
34636         * sysdeps/unix/sysv/linux/Makefile
34637         [$(subdir) = nptl] (tests): ... here.
34638         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
34639         * sysdeps/unix/sysv/linux/Makefile
34640         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
34641
34642         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
34643         Drop trailing \n from perror argument.  Use return rather than exit.
34644
34645         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
34646         on [SA_SIGINFO].
34647         * nptl/tst-cancel21.c (do_test): Likewise.
34648         * debug/tst-backtrace6.c: Include <signal.h> first thing.
34649         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
34650         [!SA_SIGINFO]: Make it a stub test.
34651
34652         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
34653         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
34654
34655         * posix/tst-getlogin.c: Move to ...
34656         * login/tst-getlogin.c: ... here.
34657         * posix/Makefile (tests): Move tst-getlogin to ...
34658         * login/Makefile (tests): ... here.
34659
34660         * libio/tst-atime.c (do_test): Move local variables SV and E
34661         inside [ST_NOATIME] conditional.
34662
34663         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
34664
34665         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
34666
34667         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
34668         (wait_code): New function replaces macro.
34669         Call nanosleep rather than syscall.
34670
34671         * nptl/pt-system.c: Rewritten.  Put everything under
34672         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34673         Use IFUNC to redirect when possible.
34674
34675         * nptl/pt-longjmp.c: Rewritten.  Put everything under
34676         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34677         Use IFUNC to redirect when possible.
34678
34679         * nptl/pt-fork.c: Rewritten.  Put everything under
34680         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
34681         Use IFUNC to redirect when possible.
34682         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
34683
34684         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
34685         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
34686         unconditionally nowadays.  This included the only reference to
34687         __vdso_clock_gettime that appears outside libc proper.
34688         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
34689         Remove version set (containing only __vdso_clock_gettime).
34690         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
34691         Add attribute_hidden.
34692         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
34693         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
34694         libc_hidden_data_def.
34695         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34696         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34697
34698         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
34699         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
34700         setrpcent, and getrpcport to ...
34701         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
34702         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
34703         getrpcbynumber_r, and getrpcent_r to ...
34704         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
34705         * inet/getrpcbyname.c: Moved ...
34706         * sunrpc/getrpcbyname.c: ... here.
34707         * inet/getrpcbyname_r.c: Moved ...
34708         * sunrpc/getrpcbyname_r.c: ... here.
34709         * inet/getrpcbynumber.c: Moved ...
34710         * sunrpc/getrpcbynumber.c: ... here.
34711         * inet/getrpcbynumber_r.c: Moved ...
34712         * sunrpc/getrpcbynumber_r.c: ... here.
34713         * inet/getrpcent.c: Moved ...
34714         * sunrpc/getrpcent.c: ... here.
34715         * inet/getrpcent_r.c: Moved ...
34716         * sunrpc/getrpcent_r.c: ... here.
34717         * inet/Makefile (routines): Move those to ...
34718         * sunrpc/Makefile (routines): ... here.
34719         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
34720         the $(subdirs) list.
34721         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
34722         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
34723         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
34724         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
34725
34726         * elf/Makefile (routines): Include $(all-dl-routines), not just
34727         $(dl-routines).
34728         (rtld-routines): Likewise.  Use = rather than :=.
34729         * sysdeps/aarch64/Makefile [$(subdir) = elf]
34730         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
34731         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
34732         * sysdeps/arm/Makefile: Likewise.
34733         * sysdeps/i386/Makefile: Likewise.
34734         * sysdeps/x86_64/Makefile: Likewise.
34735         * sysdeps/hppa/Makefile [$(subdir) = elf]
34736         (sysdep_routines, sysdep-rtld-routines): Don't add
34737         $(sysdep-dl-routines) to these.
34738         * sysdeps/ia64/Makefile: Likewise.
34739         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
34740         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
34741         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
34742         Don't add dl-static to these; sysdep-dl-routines alone is enough.
34743         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
34744         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
34745         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
34746         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
34747         * sysdeps/powerpc/Makefile [$(subdir) = elf]
34748         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
34749         these; sysdep-dl-routines alone is enough.
34750
34751 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
34752
34753         [BZ #17932]
34754         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
34755         where multiplication results in zero and third argument is finite
34756         and nonzero.
34757         * math/auto-libm-test-in: Add more tests of fma.
34758         * math/auto-libm-test-out: Regenerated.
34759
34760         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
34761         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
34762         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
34763         (_FP_CMP_EQ): Likewise.
34764         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
34765
34766         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
34767         extra argument CHECK_NAN.  Redefine as wrapper around
34768         _FP_EXTEND_CNAN.
34769
34770 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
34771
34772         * version.h (RELEASE): Set to "stable".
34773         (VERSION): Set to "2.21"
34774         * include/features.h (__GLIBC_MINOR__): Set to 21.
34775
34776         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
34777
34778 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
34779             Paul Eggert  <eggert@cs.ucla.edu>
34780
34781         [BZ #16618]
34782         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
34783         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
34784         size in bytes. Store needed elements in wpmax. Use needed size
34785         in bytes for extend_alloca.
34786
34787 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
34788
34789         * manual/install.texi: Latest tested versions are GCC 4.9.2,
34790         binutls 2.25, and texinfo 5.2.
34791         * INSTALL: Regenerate.
34792         * sysdeps/nios2/configure: Regenerate.
34793         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
34794         * manual/contrib.texi: Update.
34795         * po/be.po: Update.
34796         * po/bg.po: Update.
34797         * po/ca.po: Update.
34798         * po/cs.po: Update.
34799         * po/da.po: Update.
34800         * po/de.po: Update.
34801         * po/el.po: Update.
34802         * po/eo.po: Update.
34803         * po/es.po: Update.
34804         * po/fi.po: Update.
34805         * po/fr.po: Update.
34806         * po/gl.po: Update.
34807         * po/hr.po: Update.
34808         * po/hu.po: Update.
34809         * po/ia.po: Update.
34810         * po/id.po: Update.
34811         * po/it.po: Update.
34812         * po/ja.po: Update.
34813         * po/ko.po: Update.
34814         * po/lt.po: Update.
34815         * po/nb.po: Update.
34816         * po/nl.po: Update.
34817         * po/pl.po: Update.
34818         * po/pt_BR.po: Update.
34819         * po/ru.po: Update.
34820         * po/rw.po: Update.
34821         * po/sk.po: Update.
34822         * po/sl.po: Update.
34823         * po/sv.po: Update.
34824         * po/tr.po: Update.
34825         * po/uk.po: Update.
34826         * po/vi.po: Update.
34827         * po/zh_CN.po: Update.
34828         * po/zh_TW.po: Update.
34829
34830         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
34831         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
34832         * sysdeps/hppa/dl-irel.h: Remove #warning.
34833         * sysdeps/hppa/entry.h: Provide prototype for
34834         __canonicalize_funcptr_for_compare and cast argument.
34835         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
34836         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
34837         * sysdeps/hppa/sotruss-lib.c: New file.
34838         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
34839         (atomic_compare_and_exchange_val_acq): Use __typeof__.
34840         (atomic_compare_and_exchange_bool_acq): Likewise.
34841         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
34842         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
34843
34844         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
34845         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
34846         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
34847
34848 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
34849
34850         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
34851         called function in non-PIC case.
34852
34853 2015-01-31  David S. Miller  <davem@davemloft.net>
34854
34855         * sysdeps/sparc/sparc32/bits/atomic.h
34856         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
34857         unlock not after it.
34858         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
34859         volatile register usage warnings from the compiler.
34860
34861         * sysdeps/sparc/nptl/sem_init.c: Delete.
34862         * sysdeps/sparc/nptl/sem_post.c: Delete.
34863         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
34864         * sysdeps/sparc/nptl/sem_wait.c: Delete.
34865         * sysdeps/sparc/sparc32/sem_init.c: New file.
34866         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
34867         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
34868         padding explicitly initialized.
34869         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
34870         padding for in-semaphore spinlock.
34871         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
34872         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
34873         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
34874         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
34875         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
34876         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
34877         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
34878         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
34879         version.
34880         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
34881         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
34882
34883 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
34884
34885         [BZ #17801]
34886         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34887         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
34888         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
34889         New.
34890         (index_AVX_Fast_Unaligned_Load): Likewise.
34891         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
34892         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
34893         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
34894         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
34895         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
34896         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
34897         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
34898         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
34899         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
34900
34901 2015-01-29  Andreas Schwab  <schwab@suse.de>
34902
34903         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
34904
34905 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
34906
34907         [BZ #17892]
34908         * nscd/nscd_stat.c (send_stats): Initialize DATA.
34909
34910 2015-01-28  Martin Sebor  <msebor@redhat.com>
34911
34912         * math/README.libm-test: Clarify. Add "How to read the test output."
34913
34914 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
34915
34916         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
34917         Define to 0.
34918
34919 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
34920
34921         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
34922         (__HAVE_64B_ATOMICS): Define to 0.
34923
34924 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34925
34926         [BZ #17885]
34927         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
34928         value to set as new flag.
34929
34930         [BZ #16576]
34931         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
34932         and use _ARCH_PPCSQ instead.
34933         (__ieee754_sqrt): Likewise.
34934         (__ieee754_sqrtf): Likewise.
34935         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
34936         _ARCH_PPCSQ is defined.
34937         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
34938         fsqrt instruction.
34939         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
34940         _ARCH_PPCSQ is defined.
34941         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
34942         fsqrts instruction.
34943         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
34944
34945 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34946
34947         * iconv/loop.c: Suppress array out of bound warning caused by GCC
34948         bug (GCC BZ #64739).
34949
34950 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
34951
34952         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
34953         Mark _retval as used.
34954         (lll_futex_wake_unlock): Likewise.
34955         (lll_futex_timed_wait_requeue_pi): Likewise.
34956
34957         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
34958         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
34959         register variables.
34960
34961         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
34962         libm_hidden_def.
34963
34964         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
34965         (__bswap_64): Mark as __always_inline.
34966
34967 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
34968
34969         [BZ #15378]
34970         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
34971         when none of the search directories exist.
34972
34973 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
34974
34975         [BZ #17869]
34976         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
34977         power8 in .machine directive.
34978
34979         [BZ #17868]
34980         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
34981         set dependency from opd value.
34982
34983 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34984
34985         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34986         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
34987         architecture.
34988
34989 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34990
34991         [BZ #17870]
34992         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
34993         with uint64_t.
34994         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
34995         (uint64_t) 1.
34996         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
34997         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
34998         Replace 1UL with (uint64_t) 1.
34999         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
35000         int with uint64_t.
35001
35002 2015-01-23  Roland McGrath  <roland@hack.frob.com>
35003
35004         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
35005         (if_freenameindex): Likewise.
35006
35007         * resource/getrlimit64.c: Add missing libc_hidden_def.
35008
35009 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
35010
35011         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
35012         __label__.
35013         (_FP_FMA): Likewise.
35014         (_FP_TO_INT_ROUND): Likewise.
35015         (_FP_FROM_INT): Likewise.
35016
35017 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35018
35019         [BZ #16418]
35020         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
35021         Make code racy and cancel safe.
35022
35023 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
35024
35025         * sysdeps/arm/unwind-resume.h: Fix copyright year.
35026         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
35027         attribution.
35028
35029         * pwd/tst-getpw.c: Rewrite.
35030
35031         [BZ #17702]
35032         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
35033         (modules-names): Add moddummy1 and moddummy2.
35034         ($(objpfx)tst-rec-dlopen): Define.
35035         * dlfcn/moddummy1.c: New file.
35036         * dlfcn/moddummy2.c: New file.
35037         * dlfcn/tst-rec-dlopen.c: New file.
35038         * elf/dl-cache.c (_dl_load_cache_lookup):
35039         Return char*. Copy result with alloca/strcpy/strdup.
35040         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
35041         returns char*. Free cached. If not saving realname
35042         free cached.
35043         * elf/dl-open.c (dl_open_worker): Do not assert that
35044         _r_debug->r_state is RT_CONSISTENT.
35045         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
35046         returns char*.
35047
35048 2015-01-21  Torvald Riegel  <triegel@redhat.com>
35049             Carlos O'Donell  <carlos@redhat.com>
35050
35051         [BZ #12674]
35052         * nptl/sem_waitcommon.c: New file.
35053         * nptl/sem_wait.c: Include sem_waitcommon.c.
35054         (__sem_wait_cleanup, do_futex_wait): Remove.
35055         (__new_sem_wait): Adapt.
35056         (__new_sem_trywait): New function.
35057         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
35058         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
35059         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
35060         (sem_timedwait): Adapt.
35061         * nptl/sem_post.c (__new_sem_post): Adapt.
35062         (futex_wake): New function.
35063         (__old_sem_post): Add release MO fence.
35064         * nptl/sem_open.c (sem_open): Adapt.
35065         * nptl/sem_init.c (__new_sem_init): Adapt.
35066         (futex_private_if_supported): New function.
35067         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
35068         (__old_sem_getvalue): Add using previous code.
35069         * sysdeps/nptl/internaltypes.h: Adapt.
35070         * nptl/tst-sem13.c (do_test): Adapt.
35071         * nptl/tst-sem11.c (main): Adapt.
35072         * nptl/sem_trywait.c: Remove.
35073         * nptl/DESIGN-sem.txt: Remove.
35074         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
35075         (gen-as-const-headers): Remove structsem.sym.
35076         * nptl/structsem.sym: Remove.
35077         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
35078         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
35079         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
35080         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
35081         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
35082         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
35083         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
35084         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
35085         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
35086         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
35087         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
35088         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
35089         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
35090         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
35091         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
35092         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
35093         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
35094         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
35095         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
35096         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
35097         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
35098         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
35099
35100 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
35101
35102         * INSTALL: Regenerated.
35103
35104         * po/libc.pot: Regenerated.
35105
35106 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
35107             Sandra Loosemore  <sandra@codesourcery.com>
35108             Andrew Jenner  <andrew@codesourcery.com>
35109             Joseph Myers  <joseph@codesourcery.com>
35110             Nathan Sidwell  <nathan@codesourcery.com>
35111
35112         * NEWS: Mention new Nios II port.
35113         * sysdeps/nios2/Implies: New file.
35114         * sysdeps/nios2/Makefile: New file.
35115         * sysdeps/nios2/Subdirs: New file.
35116         * sysdeps/nios2/Versions: New file.
35117         * sysdeps/nios2/__longjmp.S: New file.
35118         * sysdeps/nios2/abort-instr.h: New file.
35119         * sysdeps/nios2/backtrace.c: New file.
35120         * sysdeps/nios2/bits/endian.h: New file.
35121         * sysdeps/nios2/bits/fenv.h: New file.
35122         * sysdeps/nios2/bits/link.h: New file.
35123         * sysdeps/nios2/bits/setjmp.h: New file.
35124         * sysdeps/nios2/bsd-_setjmp.S: New file.
35125         * sysdeps/nios2/bsd-setjmp.S: New file.
35126         * sysdeps/nios2/configure: New generated file.
35127         * sysdeps/nios2/configure.ac: New file.
35128         * sysdeps/nios2/crti.S: New file.
35129         * sysdeps/nios2/crtn.S: New file.
35130         * sysdeps/nios2/dl-init.c: New file.
35131         * sysdeps/nios2/dl-machine.h: New file.
35132         * sysdeps/nios2/dl-sysdep.h: New file.
35133         * sysdeps/nios2/dl-tls.h: New file.
35134         * sysdeps/nios2/dl-trampoline.S: New file.
35135         * sysdeps/nios2/gccframe.h: New file.
35136         * sysdeps/nios2/gmp-mparam.h: New file.
35137         * sysdeps/nios2/jmpbuf-offsets.h: New file.
35138         * sysdeps/nios2/jmpbuf-unwind.h: New file.
35139         * sysdeps/nios2/ldsodefs.h: New file.
35140         * sysdeps/nios2/libc-tls.c: New file.
35141         * sysdeps/nios2/libm-test-ulps: New file.
35142         * sysdeps/nios2/machine-gmon.h: New file.
35143         * sysdeps/nios2/math-tests.h: New file.
35144         * sysdeps/nios2/math_private.h: New file.
35145         * sysdeps/nios2/memusage.h: New file.
35146         * sysdeps/nios2/nptl/Makefile: New file.
35147         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
35148         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
35149         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
35150         * sysdeps/nios2/nptl/pthreaddef.h: New file.
35151         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
35152         * sysdeps/nios2/nptl/tls.h: New file.
35153         * sysdeps/nios2/preconfigure: New file.
35154         * sysdeps/nios2/s_fma.c: New file.
35155         * sysdeps/nios2/s_fmaf.c: New file.
35156         * sysdeps/nios2/setjmp.S: New file.
35157         * sysdeps/nios2/sfp-machine.h: New file.
35158         * sysdeps/nios2/sotruss-lib.c: New file.
35159         * sysdeps/nios2/stackguard-macros.h: New file.
35160         * sysdeps/nios2/stackinfo.h: New file.
35161         * sysdeps/nios2/start.S: New file.
35162         * sysdeps/nios2/sysdep.h: New file.
35163         * sysdeps/nios2/tls-macros.h: New file.
35164         * sysdeps/nios2/tst-audit.h: New file.
35165         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
35166         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
35167         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
35168         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
35169         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
35170         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
35171         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
35172         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
35173         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
35174         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
35175         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
35176         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
35177         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
35178         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
35179         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
35180         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
35181         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
35182         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
35183         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
35184         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
35185         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
35186         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
35187         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
35188         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
35189         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
35190         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
35191         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
35192         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
35193         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
35194         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
35195         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
35196         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
35197         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
35198         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
35199         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
35200         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
35201         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
35202         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
35203         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
35204         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
35205         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
35206         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
35207         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
35208         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
35209
35210 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
35211
35212         [BZ #17844]
35213         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
35214         (getutent): Use weak_alias in non SHARED case
35215         and default_symbol_version in SHARED case.
35216         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
35217         (getutent_r, pututline): Likewise.
35218         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
35219         (getutid): Likewise.
35220         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
35221         (getutid_r): Likewise.
35222         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
35223         (getutline): Likewise.
35224         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
35225         (getutline_r): Likewise.
35226         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
35227         (updwtmp): Likewise.
35228
35229 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
35230
35231         [BZ #17848]
35232         * sysdeps/s390/s390-32/memcmp.S
35233         (memcmp_g5): Rename to __memcmp_g5.
35234         * sysdeps/s390/s390-32/memcpy.S
35235         (memcpy_g5): Rename to __memcpy_g5.
35236         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35237         (memcpy_mvcle) Rename to __memcpy_mvcle.
35238         * sysdeps/s390/s390-32/memset.S
35239         (memset_g5): Rename to __memset_g5.
35240         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
35241         (IFUNC_RESOLVE): Prefix ifunc-resolve function
35242         and use prefixed functions.
35243         * sysdeps/s390/s390-32/multiarch/memcmp.S
35244         (memcmp_z196): Rename to __memcmp_z196.
35245         (memcmp_z10): Rename to __memcmp_z10.
35246         (memcmp): Set alias to __memcmp_g5.
35247         (bcmp): Set alias to __memcmp_g5.
35248         * sysdeps/s390/s390-32/multiarch/memcpy.S
35249         (memcpy_z196): Rename to __memcpy_z196.
35250         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35251         (memcpy_z10): Rename to __memcpy_z10.
35252         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35253         (memcpy): Set alias to __memcpy_g5.
35254         * sysdeps/s390/s390-32/multiarch/memset.S
35255         (memset_z196): Rename to __memset_z196.
35256         Jump to __memset_mvcle instead of memset_mvcle.
35257         (memset_z10): Rename to __memset_z10.
35258         Jump to __memset_mvcle instead of memset_mvcle.
35259         (memset_mvcle) Rename to __memset_mvcle.
35260         (memset): Set alias to __memset_g5.
35261         * sysdeps/s390/s390-64/memcmp.S
35262         (memcmp_z900): Rename to __memcmp_z900.
35263         * sysdeps/s390/s390-64/memcpy.S
35264         (memcpy_z900): Rename to __memcpy_z900.
35265         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35266         (memcpy_mvcle) Rename to __memcpy_mvcle.
35267         * sysdeps/s390/s390-64/memset.S
35268         (memset_z900): Rename to __memset_z900.
35269         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
35270         (IFUNC_RESOLVE): Prefix ifunc-resolve function
35271         and use prefixed functions.
35272         * sysdeps/s390/s390-64/multiarch/memcmp.S
35273         (memcmp_z196): Rename to __memcmp_z196.
35274         (memcmp_z10): Rename to __memcmp_z10.
35275         (memcmp): Set alias to __memcmp_z900.
35276         (bcmp): Set alias to __memcmp_z900.
35277         * sysdeps/s390/s390-64/multiarch/memcpy.S
35278         (memcpy_z196): Rename to __memcpy_z196.
35279         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35280         (memcpy_z10): Rename to __memcpy_z10.
35281         Jump to __memcpy_mvcle instead of memcpy_mvcle.
35282         (memcpy): Set alias to __memcpy_z900.
35283         * sysdeps/s390/s390-64/multiarch/memset.S
35284         (memset_z196): Rename to __memset_z196.
35285         Jump to __memset_mvcle instead of memset_mvcle.
35286         (memset_z10): Rename to __memset_z10.
35287         Jump to __memset_mvcle instead of memset_mvcle.
35288         (memset_mvcle) Rename to __memset_mvcle.
35289         (memset): Set alias to __memset_z900.
35290
35291 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
35292
35293         [BZ #17748]
35294         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
35295         __fesetenv instead of fesetenv.
35296
35297 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
35298
35299         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
35300         macro.
35301
35302 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35303
35304         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
35305         regression on LE.
35306
35307         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
35308         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
35309         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35310         strncmp-power8 object.
35311         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35312         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
35313         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
35314         * NEWS: Update.
35315
35316 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
35317             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35318
35319         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
35320         trailing byte check.
35321
35322 2015-01-13  David S. Miller  <davem@davemloft.net>
35323
35324         * include/signal.h (__sigreturn): Guard with __USE_MISC.
35325
35326 2015-01-13  Roland McGrath  <roland@hack.frob.com>
35327
35328         * login/logout.c (logout): Use memset rather than bzero.
35329         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
35330         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
35331         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
35332         (_gethtbyaddr): Likewise.
35333         * locale/programs/simple-hash.c (bcopy): Macro removed.
35334
35335 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35336
35337         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35338         Add strcmp-power8 object.
35339         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35340         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
35341         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
35342         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
35343         __strcmp_power8 implementation.
35344         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
35345         * NEWS: Update.
35346
35347         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
35348         Add strncpy-power8 and stpncpy-power8 objects.
35349         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35350         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
35351         implementations.
35352         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
35353         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
35354         __stpncpy_power8 implementation.
35355         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
35356         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
35357         __strncpy_power8 implementation.
35358         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
35359         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
35360         * NEWS: Update.
35361
35362         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
35363         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
35364         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
35365
35366         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35367         strncat-power8 object.
35368         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
35369         __strcat_power8 implementation.
35370         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35371         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
35372         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
35373         optimized strcat for power8.
35374
35375         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
35376         strcpy-power8 and stpcpy-power8 objects.
35377         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35378         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
35379         implementations.
35380         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
35381         multiarch stpcpy implementation for POWER8.
35382         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
35383         multiarch strcpy implementation for POWER8.
35384         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
35385         __strcpy_power8 function.
35386         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
35387         stpcpy for POWER8.
35388         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
35389         strcpy for POWER8.
35390         * NEWS: Update.
35391
35392 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
35393
35394         [BZ #16009]
35395         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
35396         weights and rules. Use do_xfrm_cached if data fits in cache,
35397         do_xfrm otherwise.  Moved former main loop to...
35398         * (do_xfrm_cached): New function.
35399         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
35400         find_idx, find_position and stack_push.
35401         * (find_idx): New function.
35402         * (find_position): Likewise.
35403         * localedata/sort-test.sh: Added test run for do_xfrm.
35404         * localedata/xfrm-test.c (main): Added command line option
35405         -nocache to run the test with strings that are too large for
35406         the STRXFRM cache.
35407
35408 2015-01-13  Torvald Riegel  <triegel@redhat.com>
35409
35410         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
35411         variable to lll_futex_wake call, not the value itself.
35412
35413 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
35414
35415         [BZ #17803]
35416         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
35417         twom64.  Adjust value to 0x1p-64L.
35418         (__scalblnl): Only return standard underflowing result for K <=
35419         -64 not K <= -63; adjust exponent for underflowing result by 64
35420         not 63.
35421         * math/libm-test.inc (scalbn_test_data): Add more tests.
35422         (scalbln_test_data): Likewise.
35423
35424         [BZ #17834]
35425         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
35426         0x1p63L.
35427         (__scalblnl): Get new exponent of adjusted subnormal value from ES
35428         not HX.
35429         * math/libm-test.inc (scalbn_test_data): Add more tests.
35430         (scalbln_test_data): Likewise.
35431
35432 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35433             Stefani Seibold  <stefani@seibold.net>
35434
35435         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
35436         (sysdep_routines): Add dl-vdso here, ...
35437         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
35438         (sysdep_routines): ... not here.
35439         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
35440         fallback when vDSO is not presented.
35441         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
35442         Define with libc_hidden_proto/libc_hidden_data_def definitions.
35443         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
35444         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
35445         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
35446         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
35447         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
35448         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
35449         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
35450         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
35451         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
35452         fallback configurable symbol when vDSO is not available.
35453         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
35454         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
35455         be able to redefine fallback symbol when vDSO is not available.
35456         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
35457         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
35458
35459 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35460
35461         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
35462         (TLS_INIT_TP): Add tm_capable initialization.
35463         (TLS_DEFINE_INIT_TP): Likewise.
35464         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
35465         TCB.
35466         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
35467         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
35468         calculation.
35469         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
35470         transactoion is lock elision is built and TCB tm_capable is set.
35471         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
35472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
35473         (INTERNAL_SYSCALL_NCS): Likewise.
35474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
35475         (INTERNAL_SYSCALL_NCS): Likewise.
35476         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
35477
35478         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
35479         for powerpc.
35480         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35481         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
35482         and remove it for 32 bits case.
35483         [pthread_rwlock_t] (__rwelision): New field for lock elision.
35484         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
35485         initialization.
35486         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
35487         Disable lock elision with rdlocks if elision is not available.
35488
35489         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
35490         (sysdep_routines): Add lock elision objects.
35491         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
35492         [pthread_mutex_t] (__spins): Rework to add lock elision field.
35493         [pthread_mutex_t] (__elision): Add field.
35494         [__PTHREAD_SPINS]: Adjust to init lock elision field.
35495         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
35496         elision definitions for powerpc.
35497         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
35498         implementation of lock elision for powerpc.
35499         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
35500         implementation of timed lock elision for powerpc.
35501         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
35502         implementation of trylock with lock elision for powerpc.
35503         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
35504         implementaion of unlock for lock elision for powerpc.
35505         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
35506         automatic enable lock elision for mutexes.
35507         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
35508         transaction execution definitions for powerpc.
35509         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
35510         definitions.
35511         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
35512         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
35513         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
35514         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
35515         * NEWS: Update.
35516
35517 2015-01-09  Roland McGrath  <roland@hack.frob.com>
35518
35519         * sysdeps/posix/shm-directory.c: Use <> rather than ""
35520         for #include of <shm-directory.h>.
35521
35522 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
35523
35524         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
35525         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
35526
35527 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
35528
35529         [BZ #17791]
35530         * NEWS: Mention bug fix.
35531         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
35532         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
35533         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
35534
35535 2015-01-09  Torvald Riegel <triegel@redhat.com>
35536
35537         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
35538
35539 2015-01-09  Torvald Riegel <triegel@redhat.com>
35540
35541         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
35542
35543 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35544
35545         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
35546         pointer and cast to uintptr_t.
35547
35548 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35549
35550         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
35551         removed.
35552         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
35553
35554 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
35555
35556         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
35557         of 0.
35558
35559 2015-01-08  Roland McGrath  <roland@hack.frob.com>
35560
35561         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
35562         <nptl/pthreadP.h> instead.
35563         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
35564
35565         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
35566         already defined.
35567         [__SIGRTMIN] (init): Function removed.
35568         [__SIGRTMIN] (initialized): Variable removed.
35569         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
35570         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
35571         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
35572         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
35573         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
35574         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
35575         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
35576         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
35577         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
35578         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
35579         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
35580         * sysdeps/nptl/allocrtsig.c: New file.
35581         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
35582         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
35583         * sysdeps/generic/testrtsig.h: File removed.
35584
35585         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
35586         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
35587
35588         * nptl/nptl-init.c (pthread_functions): Conditionalize
35589         .ptr__nptl_setxid initialization on [SIGSETXID].
35590
35591         * sysdeps/nptl/sys/procfs.h: New file.
35592         * nptl_db/Makefile (headers): Add it.
35593         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
35594
35595         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
35596         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
35597         * nptl/pthread_attr_setaffinity.c: Include it.
35598         * nptl/pthread_setattr_default_np.c: Likewise.
35599         * nptl/check-cpuset.h: New file.
35600
35601 2015-01-08  Richard Henderson  <rth@redhat.com>
35602
35603         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
35604         (CFLAGS-tst-execstack-prog.c): Likewise.
35605         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
35606
35607 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
35608             Sandra Loosemore  <sandra@codesourcery.com>
35609             Andrew Jenner  <andrew@codesourcery.com>
35610             Joseph Myers  <joseph@codesourcery.com>
35611             Nathan Sidwell  <nathan@codesourcery.com>
35612
35613         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
35614         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
35615         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
35616         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
35617         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
35618         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
35619         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
35620         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
35621         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
35622         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
35623         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
35624         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
35625         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
35626         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
35627         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
35628         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
35629         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
35630
35631 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35632
35633         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
35634         timespec struct member in syscall macro.
35635         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
35636         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
35637         first timeval struct member in syscall macro.
35638         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
35639
35640 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
35641
35642         [BZ #17748]
35643         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
35644         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
35645         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
35646         __feupdateenv and define as weak alias of __feupdateenv.  Use
35647         libm_hidden_weak.
35648         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
35649         libm_hidden_def.
35650         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
35651         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
35652         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35653         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
35654         libm_hidden_def.
35655         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
35656         __feupdateenv and define as weak alias of __feupdateenv.  Use
35657         libm_hidden_weak.
35658         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
35659         libm_hidden_def.
35660         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
35661         __feupdateenv and define as weak alias of __feupdateenv.  Use
35662         libm_hidden_weak.
35663         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
35664         libm_hidden_def.
35665         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35666         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35667         (__feupdateenv): Likewise.
35668         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
35669         __feupdateenv and define as weak alias of __feupdateenv.  Use
35670         libm_hidden_weak.
35671         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35672         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
35673         libm_hidden_def.
35674         * sysdeps/tile/math_private.h (__feupdateenv): New inline
35675         function.
35676         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
35677         libm_hidden_def.
35678         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
35679         __feupdateenv instead of feupdateenv.
35680         (default_libc_feupdateenv_test): Likewise.
35681         (libc_feresetround_ctx): Likewise.
35682
35683 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35684
35685         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
35686         prototype.
35687
35688 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
35689
35690         * posix/regcomp.c (parse_bracket_exp): Initialize type to
35691         COLL_SYM in a couple of places to avoid uninitialized variable
35692         wanings on tilegx gcc 4.8.2.
35693
35694 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35695
35696         * sysdeps/aarch64/strcpy.S: New file.
35697         * sysdeps/aarch64/stpcpy.S: New file.
35698         * NEWS: Updated.
35699
35700 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
35701
35702         * sysdeps/aarch64/strrchr.S: New file.
35703         * NEWS: Updated.
35704
35705 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
35706
35707         [BZ #17658]
35708         * stdlib/setenv.c: Fix memory leak when setting large,
35709         duplicate string.
35710
35711 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
35712
35713         [BZ #17273]
35714         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
35715         and tabs from buffer before parsing fstab entry.
35716         * misc/tst-mntent.c (main): Add test for mount entry with
35717         trailing spaces and tabs.
35718
35719 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
35720
35721         [BZ #17748]
35722         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
35723         * math/fesetround.c (fesetround): Rename to __fesetround and
35724         define as weak alias of __fesetround.  Use libm_hidden_weak.
35725         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
35726         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
35727         * sysdeps/arm/fesetround.c (fesetround): Likewise.
35728         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
35729         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
35730         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
35731         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
35732         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
35733         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
35734         __fesetround_inline.
35735         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
35736         __fesetround_inline instead of __fesetround.
35737         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
35738         __fesetround and define as weak alias of __fesetround.  Use
35739         libm_hidden_weak.  Call __fesetround_inline instead of
35740         __fesetround.
35741         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
35742         __fesetround and define as weak alias of __fesetround.  Use
35743         libm_hidden_weak.
35744         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
35745         Likewise.
35746         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
35747         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
35748         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
35749         * sysdeps/tile/math_private.h (__fesetround): New inline function.
35750         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
35751         __fesetround and define as weak alias of __fesetround.  Use
35752         libm_hidden_weak.
35753         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
35754         __fesetround instead of fesetround.
35755         (default_libc_feholdexcept_setround): Likewise.
35756         (libc_feholdsetround_ctx): Likewise.
35757         (libc_feholdsetround_noex_ctx): Likewise.
35758
35759         [BZ #17748]
35760         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
35761         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
35762         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35763         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35764         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35765         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
35766         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35767         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
35768         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35769         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35770         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35771         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35772         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35773         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35774         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
35775         libm_hidden_def.
35776         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
35777         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
35778         Likewise.
35779         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
35780         define as weak alias of __fesetenv.  Use libm_hidden_weak.
35781         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
35782         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
35783         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
35784         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
35785         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
35786         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
35787         __fesetenv instead of fesetenv.
35788         (libc_feresetround_noex_ctx): Likewise.
35789         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
35790         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
35791         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
35792         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
35793         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
35794         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
35795         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
35796         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
35797         (__feupdateenv): Likewise.
35798         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
35799         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
35800         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
35801         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
35802
35803 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35804
35805         [BZ #17806]
35806         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
35807         addresses have been freed.
35808
35809 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
35810
35811         * resolv/res_init.c (__res_vinit): Improve comments about nserv
35812         and nservall.
35813
35814 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
35815
35816         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
35817         Clean up check_pf allocation pattern. addresses
35818
35819 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35820
35821         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
35822         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
35823         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
35824         * nptl/pthread_exit.c (__pthread_exit): Likewise.
35825         * nptl/pthread_join.c (pthread_join): Likewise.
35826         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
35827         * sysdeps/posix/waitid.c (__waitid): Likewise.
35828         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
35829         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
35830         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
35831         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
35832         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
35833         Likewise.
35834         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
35835         (__libc_pread64): Likewise.
35836         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
35837         (__libc_pwrite): Likewise.
35838         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
35839         (__libc_pwrite64): Likewsie.
35840         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
35841         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
35842         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
35843         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
35844         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
35845         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
35846         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
35847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
35848         Likewise.
35849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
35850         (__libc_pread64): Likewise.
35851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
35852         Likewise.
35853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
35854         (__libc_pwrite64): Likewise.
35855         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
35856         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
35857         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
35858         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
35859         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
35860         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
35861         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
35862         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
35863         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
35864         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
35865         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
35866         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
35867         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
35868         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
35869         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
35870         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
35871         Likewise.
35872
35873 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
35874
35875         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
35876         (CFLAGS-test-double.c): Likewise.
35877         (CFLAGS-test-ldouble.c): Likewise.
35878         (CPPFLAGS-test-ifloat.c): Likewise.
35879         (CPPFLAGS-test-idouble.c): Likewise.
35880         (CPPFLAGS-test-ildoubl.c): Likewise.
35881         (CFLAGS-test-test-fenv.c): Remove variable.
35882         (CFLAGS-test-misc.c): Likewise.
35883
35884 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
35885
35886         [BZ #17797]
35887         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
35888         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
35889         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
35890         CLOCKS_PER_SEC == 1000000.
35891         * time/clocktest.c (main): Replace %ld with %jd and cast to
35892         intmax_t.
35893
35894 2015-01-05  Roland McGrath  <roland@hack.frob.com>
35895
35896         * sysdeps/generic/unwind-resume.h: New file.
35897         * sysdeps/gnu/unwind-resume.c: Include it.
35898         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
35899         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
35900         argument list.
35901         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
35902         global rather than static.
35903         (_Unwind_Resume): Update user.
35904         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
35905         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
35906         rather than static.  Add __attribute__ ((cold)).
35907         (_Unwind_Resume, __gcc_personality_v0): Update callers.
35908         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
35909         * sysdeps/arm/arm-unwind-resume.S: New file.
35910         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
35911         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
35912         * sysdeps/arm/Makefile [$(subdir) = csu]
35913         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
35914         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
35915         Add rt-arm-unwind-resume.
35916         [$(subdir) = nptl]
35917         (libpthread-sysdep_routines, libpthread-shared-only-routines):
35918         Add pt-arm-unwind-resume.
35919         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
35920         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
35921
35922 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35923
35924         [BZ #17748]
35925         * include/fenv.h (__feholdexcept): Declare.  Use
35926         libm_hidden_proto.
35927         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
35928         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
35929         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35930         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
35931         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
35932         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
35933         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
35934         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35935         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
35936         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
35937         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35938         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
35939         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
35940         (feholdexcept): Likewise.
35941         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
35942         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
35943         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
35944         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35945         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
35946         __feholdexcept instead of feholdexcept.
35947         (default_libc_feholdexcept_setround): Likewise.
35948
35949 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35950
35951         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
35952         to avoid using stl/str to align destination.
35953
35954 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35955
35956         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
35957
35958 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35959
35960         [BZ #17796]
35961         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
35962         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
35963         Define as weak alias not strong alias.
35964
35965 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
35966
35967         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
35968         bltzal with addiupc.
35969         (RTLD_START): Ditto.
35970
35971 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
35972
35973         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
35974         for __vdso_* functions in declarations.
35975         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
35976         definitions.
35977         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
35978         INTERNAL_VSYSCALL): Use struct return types to check for error.
35979
35980         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
35981         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
35982         function with cast from llround().
35983         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
35984         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
35985         Define.
35986
35987 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
35988
35989         [BZ #17793]
35990         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
35991         Define as weak alias not strong alias.
35992
35993         [BZ #17635]
35994         * ctype/ctype-c99.c: New file.  isblank implementation moved from
35995         ...
35996         * ctype/ctype-extn.c: ... here.
35997         (__isblank_l): Move to ...
35998         * ctype/ctype-c99_l.c: ... here.  New file.
35999         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
36000         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
36001         Remove variable.
36002         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
36003         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
36004         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
36005         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
36006         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
36007
36008         [BZ #17777]
36009         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
36010         (posix_fadvise64): Define as weak alias not strong alias.
36011         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
36012         (posix_fallocate64): Likewise.
36013         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
36014         Remove variable.
36015         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
36016         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
36017         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
36018         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
36019         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
36020
36021 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
36022
36023         [BZ #16191]
36024         * NEWS: Mention bug fix.
36025         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
36026         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
36027         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
36028         (HOST_STACK_END_ADDR): Likewise.
36029
36030 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
36031
36032         [BZ #17748]
36033         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
36034         * math/fegetround.c (fegetround): Rename to __fegetround and
36035         define as weak alias of __fegetround.  Use libm_hidden_weak.
36036         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
36037         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
36038         * sysdeps/arm/fegetround.c (fegetround): Likewise.
36039         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
36040         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
36041         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
36042         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
36043         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
36044         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
36045         Undefine after rather than before function definition; use
36046         parentheses around function name in definition.
36047         (__fegetround): Also undefine macro after function definition.
36048         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
36049         __fegetround and define as weak alias of __fegetround.  Use
36050         libm_hidden_weak.  Do not undefine as macro.
36051         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
36052         Likewise.
36053         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
36054         __fegetround and define as weak alias of __fegetround.  Use
36055         libm_hidden_weak.
36056         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
36057         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
36058         * sysdeps/tile/math_private.h (__fegetround): New inline function.
36059         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
36060         __fegetround and define as weak alias of __fegetround.  Use
36061         libm_hidden_weak.
36062         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
36063         __fegetround instead of fegetround.
36064
36065         [BZ #17782]
36066         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
36067         Condition macro definition on [__USE_MISC].
36068
36069         [BZ #17781]
36070         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
36071         (struct sigaction): Change type of sa_flags field to int.
36072
36073         [BZ #17780]
36074         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
36075         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
36076         __glibc_reserved0.
36077
36078         * nptl/version.c (banner): Use single year in copyright notice.
36079
36080         * NEWS: Update copyright dates.
36081         * catgets/gencat.c (print_version): Likewise.
36082         * csu/version.c (banner): Likewise.
36083         * debug/catchsegv.sh: Likewise.
36084         * debug/pcprofiledump.c (print_version): Likewise.
36085         * debug/xtrace.sh (do_version): Likewise.
36086         * elf/ldconfig.c (print_version): Likewise.
36087         * elf/ldd.bash.in: Likewise.
36088         * elf/pldd.c (print_version): Likewise.
36089         * elf/sotruss.sh: Likewise.
36090         * elf/sprof.c (print_version): Likewise.
36091         * iconv/iconv_prog.c (print_version): Likewise.
36092         * iconv/iconvconfig.c (print_version): Likewise.
36093         * locale/programs/locale.c (print_version): Likewise.
36094         * locale/programs/localedef.c (print_version): Likewise.
36095         * login/programs/pt_chown.c (print_version): Likewise.
36096         * malloc/memusage.sh (do_version): Likewise.
36097         * malloc/memusagestat.c (print_version): Likewise.
36098         * malloc/mtrace.pl: Likewise.
36099         * manual/libc.texinfo: Likewise.
36100         * nptl/version.c (banner): Likewise.
36101         * nscd/nscd.c (print_version): Likewise.
36102         * nss/getent.c (print_version): Likewise.
36103         * nss/makedb.c (print_version): Likewise.
36104         * posix/getconf.c (main): Likewise.
36105         * scripts/test-installation.pl: Likewise.
36106         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
36107
36108 2015-01-02  Will Newton  <will.newton@linaro.org>
36109
36110         * sysdeps/arm/armv7/configure: Removed.
36111         * sysdeps/arm/armv7/configure.ac: Likewise.
36112
36113 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
36114
36115         * All files with FSF copyright notices: Update copyright dates
36116         using scripts/update-copyrights.
36117         * intl/plural.c: Regenerated.
36118         * locale/programs/charmap-kw.h: Likewise.
36119         * locale/programs/locfile-kw.h: Likewise.
36120
36121 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
36122
36123         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
36124
36125 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
36126
36127         [BZ #17748]
36128         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
36129         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
36130         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
36131         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
36132         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36133         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
36134         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36135         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
36136         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36137         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
36138         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36139         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36140         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
36141         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36142         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
36143         libm_hidden_def.
36144         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
36145         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
36146         Likewise.
36147         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
36148         define as weak alias of __fegetenv.  Use libm_hidden_weak.
36149         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
36150         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
36151         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
36152         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
36153         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
36154         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
36155         __fegetenv instead of fegetenv.
36156         (libc_feholdsetround_noex_ctx): Likewise.
36157
36158 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
36159
36160         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
36161         (Elf_MIPS_ABIFlags_v0): New structure.
36162         (EF_MIPS_FP64): Define.
36163         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
36164         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
36165         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
36166         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
36167         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
36168         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
36169         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
36170         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
36171         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
36172         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
36173         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
36174         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
36175         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
36176         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
36177         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
36178         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
36179         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
36180         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
36181         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
36182         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
36183         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
36184         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
36185         field.
36186         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
36187         EF_MIPS_FP64.
36188         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
36189         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
36190         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
36191         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
36192         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
36193         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
36194         * sysdeps/mips/tst-abi-interlink.c: Likewise.
36195         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
36196         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
36197         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
36198         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
36199         record the current FP ABI extension.
36200         (mips-mode-switch): Define to show if kernel headers support mode
36201         switching.
36202         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
36203         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
36204         supported SYSV ABI version to 3.
36205         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
36206         feature.
36207
36208 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
36209             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36210
36211         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
36212         path.
36213         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
36214
36215 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
36216
36217         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
36218         __fegetround and redefine to call __fegetround.  Remove condition
36219         on [!__NO_MATH_INLINES].
36220         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
36221         function.
36222         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
36223         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
36224         Remove macro.
36225         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
36226         instead of <fenv_libc.h>.
36227         (__llrintl): Call fegetround instead of __fegetround.
36228         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
36229         instead of <fenv_libc.h>.
36230         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
36231         (__lrintl): Call fegetround instead of __fegetround.
36232         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
36233         instead of <fenv_libc.h>.
36234         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
36235         (__rintl): Call fegetround instead of __fegetround.
36236
36237 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36238
36239         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
36240         arrays.
36241
36242 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36243
36244         [BZ #17775]
36245         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
36246         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
36247         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
36248
36249 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36250
36251         * sysdeps/i386/tls-macros.h: Include <features.h>.
36252         (TLS_LE): Use non-PIC version for GCC >= 5.0.
36253         (TLS_IE): Likewise.
36254         (TLS_LD): Likewise.
36255         (TLS_GD): Likewise.
36256         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
36257         define for GCC >= 5.0.
36258
36259 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
36260
36261         * math/test-fenv.c (test_single_exception, set_single_exc,
36262         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
36263         feexcp_mask_test, feenable_test, fe_single_test): Add
36264         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
36265         case where they are not used.
36266         * math/libm-test.inc: Likewise.
36267         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
36268         unused in the absence of FP rounding/exception support.
36269         * stdio-common/tst-printf-round.c: Likewise.
36270         * stdlib/tst-strtod-round.c: Likewise.
36271         * stdlib/tst-strtod-underflow.c: Likewise.
36272
36273 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
36274
36275         [BZ #17723]
36276         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
36277         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
36278         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36279         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36280         libm_hidden_weak.
36281         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
36282         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36283         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
36284         libm_hidden_def.
36285         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36286         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36287         libm_hidden_weak.
36288         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
36289         Likewise.
36290         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
36291         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36292         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36293         libm_hidden_weak.
36294         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36295         libm_hidden_def.
36296         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
36297         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
36298         (__feraiseexcept): Likewise.
36299         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
36300         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
36301         libm_hidden_weak.
36302         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
36303         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
36304         libm_hidden_def.
36305         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
36306         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
36307         Use libm_hidden_def.
36308         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
36309         libm_hidden_def.
36310         (feraiseexcept): Define as weak not strong alias.  Use
36311         libm_hidden_weak.
36312         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
36313         New inline function.  Factored out of ...
36314         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
36315         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
36316         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
36317         feraiseexcept.
36318         * math/w_acos.c (__acos): Likewise.
36319         * math/w_asin.c (__asin): Likewise.
36320         * math/w_ilogb.c (__ilogb): Likewise.
36321         * math/w_j0.c (y0): Likewise.
36322         * math/w_j1.c (y1): Likewise.
36323         * math/w_jn.c (yn): Likewise.
36324         * math/w_log.c (__log): Likewise.
36325         * math/w_log10.c (__log10): Likewise.
36326         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
36327         * sysdeps/aarch64/fpu/math_private.h
36328         (libc_feupdateenv_test_aarch64): Likewise.
36329         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
36330         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
36331         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
36332         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
36333         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
36334         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
36335         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
36336         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
36337         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
36338         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
36339
36340 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
36341
36342         [BZ #17732]
36343         * io/test-utime.c (main): Replace %ld with %jd and cast to
36344         intmax_t.
36345         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
36346         * nptl/tst-mutex5.c: Include <stdint.h>.
36347         (do_test): Replace %ld with %jd and cast to intmax_t.
36348         * posix/tst-regex.c (run_test): Likewise.
36349         (run_test_backwards): Likewise.
36350         * rt/tst-clock.c: Include <stdint.h>.
36351         (clock_test): Replace %ld with %jd and cast to intmax_t.
36352         * rt/tst-cpuclock1.c: Include <stdint.h>.
36353         (do_test): Replace %lu with %ju and cast to uintmax_t.
36354         * rt/tst-cpuclock2.c: Include <stdint.h>.
36355         (do_test): Replace %lu with %ju and cast to uintmax_t.
36356         * rt/tst-mqueue1.c: Include <stdint.h>.
36357         (check_attrs): Replace %ld with %jd and cast to intmax_t.
36358         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
36359         intmax_t.
36360         * rt/tst-mqueue4.c (do_test): Likewise.
36361         * rt/tst-timer4.c: Include <stdint.h>.
36362         (check_ts): Replace %ld with %jd and cast to intmax_t.
36363         (do_test): Likewise.
36364         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
36365         and cast to intmax_t.
36366         * sysdeps/pthread/tst-timer.c (main): Likewise.
36367         * time/clocktest.c (main): Likewise.
36368         * time/tst-posixtz.c (do_test): Likewise.
36369         * timezone/tst-timezone.c (main): Likewise.
36370
36371 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
36372             H.J. Lu  <hongjiu.lu@intel.com>
36373
36374         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
36375         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
36376         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
36377         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
36378         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
36379         version if bit_Fast_Unaligned_Load is set.
36380         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
36381         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
36382         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
36383         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
36384         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
36385         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
36386         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
36387         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
36388         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
36389         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
36390         to 4.
36391         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
36392         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
36393         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
36394         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
36395
36396 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
36397
36398         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
36399         instead of #if to avoid a Wundef warning.
36400         * stdlib/tst-limits.c (do_test): Likewise.
36401
36402         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
36403         parallel other exception macros.
36404         (fegetenv): Convert from macro to extern inline so that it applies
36405         retroactively to inline functions already seen by the compiler.
36406         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
36407
36408         * posix/Makefile (before-compile): Use $(objpfx) for
36409         posix-conf-vars-def.h.
36410
36411 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
36412
36413         * posix/getconf.c (main): Use size_t for type of I.
36414         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
36415         NSPEC.
36416
36417         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
36418         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
36419         * posix/posix-envs.def: Likewise.
36420         * sysdeps/posix/sysconf.c: Likewise.
36421         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
36422         (specs): Remove array.
36423         * scripts/gen-posix-conf-vars.awk: Support generation of specs
36424         array.
36425
36426         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
36427         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
36428         (__sysconf): Use CONF_IS_* macros.
36429
36430         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
36431         ($(objpfx)posix-conf-vars-def.h): New target.
36432         * posix/posix-conf-vars.list: New file.
36433         * posix/posix-conf-vars.h: New file.
36434         * posix/confstr.c: Include posix-conf-vars.h.
36435         (confstr): Use CONF_IS_* macros.
36436         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
36437         CONF_IS_* macros.
36438         * scripts/gen-posix-conf-vars.awk: New file.
36439
36440 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
36441
36442         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
36443         fegetround): Add no-op macros to avoid linknamespace issues.
36444
36445         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
36446         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
36447
36448         * sysdeps/unix/sysv/linux/tile/sysdep.h
36449         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
36450         assembly-specific section to avoid a redefinition warning.
36451
36452         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
36453         long before casting to pointer to avoid a cast warning.
36454
36455 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
36456
36457         * sysdeps/tile/tilegx/Implies: New file.
36458
36459 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
36460
36461         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
36462
36463 2014-12-23  Florian Weimer  <fweimer@redhat.com>
36464
36465         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
36466
36467 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36468
36469         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
36470         not define.
36471         * sysdeps/unix/sysv/linux/utimes.c: Do not include
36472         <kernel-features.h>.
36473         (__utimes) [__NR_utimes]: Make code unconditional.
36474         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
36475         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36476         (__ASSUME_UTIMES): Do not undefine.
36477         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36478         (__ASSUME_UTIMES): Likewise.
36479         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
36480         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
36481         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
36482         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
36483
36484 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36485
36486         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
36487
36488 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
36489
36490         [BZ #17747]
36491         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
36492         alias to weak alias for j0l, y0l.
36493         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
36494         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
36495
36496         [BZ #17746]
36497         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
36498         conversion.
36499
36500 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
36501
36502         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
36503         to zero if not already defined.
36504
36505 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36506
36507         [BZ #17724]
36508         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
36509         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
36510         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
36511         (char *) casts added.
36512         * sysdeps/ieee754/k_standardf.c: New file.
36513         * sysdeps/ieee754/k_standardl.c: Likewise.
36514         * math/Makefile (libm-support): Remove k_standard.
36515         (libm-calls): Add k_standard.
36516
36517 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36518
36519         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
36520         Optimize to avoid an unnecessary FPCR read.
36521
36522 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36523
36524         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
36525         Optimize to reduce FPCR/FPSR accesses.
36526
36527 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36528
36529         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
36530         Call libc_fetestexcept_aarch64.
36531
36532 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
36533
36534         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
36535         Call libc_fesetround_aarch64.
36536
36537 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
36538
36539         [BZ #17733]
36540         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
36541         (__bind): Do not define as weak alias.
36542         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
36543         define.
36544         (__getsockname): Do not define as weak alias.
36545
36546 2014-12-22  Will Newton  <will.newton@linaro.org>
36547
36548         * manual/install.texi: Document that we require bison 2.7
36549         or above.
36550         * INSTALL: Regenerate.
36551         * configure.ac: Use AC_CHECK_PROG_VER instead of
36552         AC_PATH_PROG when checking for bison and check for
36553         version 2.7 or above.
36554         * configure: Regenerate.
36555
36556 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
36557
36558         [BZ #17745]
36559         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
36560         * sysdeps/tile/ffsll.c (ffsll): To here.
36561
36562         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
36563
36564 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36565
36566         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
36567         if not defined.
36568         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
36569         definition.
36570         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36571         hidden ___tls_get_addr.
36572         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
36573         hidden __tls_get_addr.
36574         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
36575         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
36576         Likewise.
36577
36578 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
36579
36580         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
36581         _dl_init call.
36582
36583 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
36584
36585         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
36586         from "call _dl_init@PLT".
36587         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
36588
36589 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
36590
36591         * manual/search.texi: (Array Sort Function): Clarify stable sorting
36592         guarantees.
36593
36594 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
36595
36596         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
36597
36598 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36599
36600         [BZ #17744]
36601         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
36602         strnlen.
36603
36604 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36605
36606         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
36607         of multu on MIPSr6.
36608         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
36609         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
36610         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
36611         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
36612         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
36613
36614 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
36615
36616         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
36617         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
36618         (PTR_SUBU): Use subu for mips32r6/mips64r6.
36619         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
36620         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
36621         mips32r6/mips64r6.
36622         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
36623
36624 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
36625
36626         * string/strncat.c (STRNCAT): Simplify implementation.
36627
36628 2014-12-19  David S. Miller  <davem@davemloft.net>
36629
36630         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
36631         access the quad as both a long double and as a series of 4 words.
36632
36633         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
36634         link_map->l_info array access.
36635
36636 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
36637
36638         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
36639
36640         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
36641         * math/atest-exp2.c (TIMEOUT): Likewise.
36642         * math/atest-sincos.c (TIMEOUT): Likewise.
36643
36644 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36645
36646         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
36647         -Wno-error with -fno-builtin-lround.
36648
36649 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36650
36651         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
36652         Contains futex constants and functions moved over from ...
36653         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
36654         <lowlevellock-futex.h>.
36655         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36656         (lll_timedwait_tid): Add comments and parentheses around macro
36657         arguments.
36658
36659 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36660
36661         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
36662         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
36663         (__lll_private_flag): Remove.
36664         (lll_futex_wait): Likewise.
36665         (lll_futex_timed_wait): Likewise.
36666         (lll_futex_wake): Likewise.
36667         (lll_futex_requeue): Likewise.
36668         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
36669         (__lll_timedwait_tid): Spell out argument names.
36670         (lll_timedwait_tid): Add comments and parentheses around macro
36671         arguments.
36672         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
36673         LLL_SHARED and LLL_PRIVATE usable from assembly code.
36674
36675 2014-12-19  Torvald Riegel  <triegel@redhat.com>
36676
36677         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
36678         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
36679         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
36680         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
36681         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
36682         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
36683         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
36684         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
36685         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
36686         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
36687         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
36688         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
36689         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
36690         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
36691         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
36692         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
36693         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
36694         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
36695         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
36696
36697 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36698
36699         * sysdeps/x86_64/x32/Makefile: New file.
36700
36701 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
36702
36703         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
36704         1L with (mp_limb_t) 1.
36705
36706 2014-12-17  Roland McGrath  <roland@hack.frob.com>
36707
36708         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
36709         * nptl/libc_pthread_init.c: ... here.
36710         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
36711         * nptl/register-atfork.c: ... here.
36712
36713         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
36714         Use pthread_sigmask rather than INTERNAL_SYSCALL.
36715         Use assert_perror to check its return value.
36716         (__gai_create_helper_thread): Likewise.
36717
36718         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
36719
36720         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
36721
36722 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
36723
36724         [BZ #17725]
36725         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
36726         __profil_counter.
36727         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
36728         Likewise.
36729         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
36730         Likewise.
36731         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
36732         Likewise.
36733         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
36734         (profil_counter): Likewise.
36735         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
36736         (profil_counter): Likewise.
36737         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
36738         Likewise.
36739         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
36740         Likewise.
36741         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
36742         (profil_counter): Likewise.
36743         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
36744         Likewise.
36745         [!__profil_counter] (profil_counter): Define as weak alias of
36746         __profil_counter.
36747         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
36748         (profil_counter): Rename to __profil_counter.
36749         [!__profil_counter] (profil_counter): Define as weak alias of
36750         __profil_counter.
36751         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
36752         (profil_counter): Rename to __profil_counter.
36753         [!__profil_counter] (profil_counter): Define as weak alias of
36754         __profil_counter.
36755         * sysdeps/posix/profil.c: Update comment referring to
36756         profil_counter.
36757         (__profil): Use __profil_counter instead of profil_counter.
36758         * sysdeps/posix/sprofil.c (profil_counter): Rename to
36759         __profil_counter.  Use __profil_counter_ushort and
36760         __profil_counter_uint in definitions.
36761         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
36762         instead of profil_counter_uint and profil_counter_ushort.
36763
36764         [BZ #17722]
36765         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
36766         define as weak alias of __inet_makeaddr.
36767         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
36768         as weak alias of __inet_addr.
36769         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
36770         as weak alias of __inet_pton.  Use libc_hidden_weak.
36771         * include/arpa/inet.h (__inet_pton): Declare.  Use
36772         libc_hidden_proto.
36773         (inet_makeaddr): Don't use libc_hidden_proto.
36774         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
36775         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
36776         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
36777         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
36778         Remove variable.
36779         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
36780         (test-xfail-POSIX/time.h/linknamespace): Likewise.
36781
36782 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
36783
36784         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
36785
36786 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36787
36788         * stdio-common/bug-vfprintf-nargs.c (do_test):
36789         Cast value to intptr_t to avoid format warning
36790         for usage with PRIdPTR printing macro.
36791
36792 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
36793
36794         * libio/tst-widetext.c (do_test):
36795         Use format type %td instead of %Zd for ptrdiff_t
36796         in order to avoid format warning.
36797
36798 2014-12-17  Andreas Schwab  <schwab@suse.de>
36799
36800         * nscd/mem.c (gc): Add size_t cast to match printf format.
36801
36802 2014-12-16  Roland McGrath  <roland@hack.frob.com>
36803
36804         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
36805         (init): Apply PTR_MANGLE to pointers before storing them.
36806         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
36807         before using them.
36808
36809 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
36810
36811         [BZ #17719]
36812         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
36813         define as weak alias of __memrchr.
36814         (__memrchr): Do not define as strong alias of memrchr.
36815         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
36816         Remove variable.
36817         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
36818         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
36819         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
36820
36821         [BZ #17717]
36822         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
36823         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
36824         (if_indextoname): Rename to __if_indextoname and define as weak
36825         alias of __if_indextoname.  Use libc_hidden_weak.
36826         (if_freenameindex): Rename to __if_freenameindex and define as
36827         weak alias of __if_freenameindex.
36828         (if_nameindex): Rename to __if_nameindex and define as weak alias
36829         of __if_nameindex.
36830         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
36831         __if_nametoindex and define as weak alias of __if_nametoindex.
36832         Use libc_hidden_weak.
36833         (if_freenameindex): Rename to __if_freenameindex and define as
36834         weak alias of __if_freenameindex.
36835         (if_nameindex): Rename to __if_nameindex and define as weak alias
36836         of __if_nameindex.
36837         (if_indextoname): Rename to __if_indextoname and define as weak
36838         alias of __if_indextoname.  Use libc_hidden_weak.
36839         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
36840         __if_nametoindex and define as weak alias of __if_nametoindex.
36841         Use libc_hidden_weak.
36842         (if_freenameindex): Rename to __if_freenameindex and define as
36843         weak alias of __if_freenameindex.  Use libc_hidden_weak.
36844         (if_nameindex_netlink): Use __if_freenameindex instead of
36845         if_freenameindex.
36846         (if_nameindex): Rename to __if_nameindex and define as weak alias
36847         of __if_nameindex.  Use libc_hidden_weak.
36848         (if_indextoname): Rename to __if_indextoname and define as weak
36849         alias of __if_indextoname.  Use libc_hidden_weak.
36850         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
36851         libc_hidden_proto.
36852         [!_ISOMAC] (__if_freenameindex): Likewise.
36853         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
36854         if_nametoindex.
36855         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
36856         variable.
36857         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
36858         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
36859         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
36860         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
36861         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
36862         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
36863         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
36864
36865         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
36866         Remove variable.
36867         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
36868         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
36869
36870 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
36871
36872         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
36873         subscript above bounds'
36874
36875         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
36876         bounds.
36877
36878 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
36879
36880         * libio/tst-fopenloc.c: Use test-skeleton.c.
36881
36882         * stdlib/tst-bsearch.c: Use test-skeleton.c.
36883         (entry): Rename to ITEM.
36884         (do_test, comp): Adjust.
36885
36886         * stdio-common/tst-fseek.c: Use test-skeleton.c.
36887
36888 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36889
36890         * string/tester.c: Include <libc-internal.h>.
36891         (test_memset): Ignore -Wmemset-transposed-args.
36892
36893 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36894
36895         * misc/tst-mntent2.c (do_test): Fix warning.
36896
36897 2014-12-16  Torvald Riegel  <triegel@redhat.com>
36898
36899         * elf/tst-unique4lib.cc(a): Mark as used.
36900
36901 2014-12-16  Florian Weimer  <fweimer@redhat.com>
36902
36903         [BZ #17630]
36904         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
36905         names.
36906
36907 2014-12-16  Allan McRae  <allan@archlinux.org>
36908
36909         * stdio-common/Makefile (tests): Re-add bug26.
36910
36911 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
36912
36913         [BZ #17657]
36914         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
36915         static array.
36916
36917 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
36918
36919         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
36920         (__lll_lock_wait): Likewise.
36921         (__lll_timedlock_wait): Likewise.
36922         (__lll_timedwait_tid): Likewise.
36923         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
36924         (__lll_robust_timedlock_wait): Likewise.
36925         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
36926         (lll_cond_trylock): Likewise.
36927         (__lll_lock): Likewise.
36928         (__lll_robust_lock): Likewise.
36929         (__lll_cond_lock): Likewise.
36930         (lll_robust_cond_lock): Likewise.
36931         (__lll_timedlock): Likewise.
36932         (__lll_robust_timedlock): Likewise.
36933         (__lll_unlock): Likewise.
36934         (__lll_robust_unlock): Likewise.
36935         (lll_wait_tid): Likewise.
36936         (lll_timedwait_tid): Likewise.
36937
36938 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36939
36940         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
36941
36942 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36943
36944         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
36945
36946 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
36947
36948         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
36949         * stdio-common/tst-sprintf.c: Likewise.
36950
36951 2014-12-15  Torvald Riegel  <triegel@redhat.com>
36952
36953         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
36954
36955 2014-12-15  Jeff Law  <law@redhat.com>
36956
36957         [BZ #16617]
36958         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
36959         on the heap.  (CVE-2012-3406)
36960         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
36961         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
36962         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
36963
36964 2014-12-15  Will Newton  <will.newton@linaro.org>
36965
36966         * manual/install.texi: Bump required version of texinfo
36967         to 4.7 from 4.5.
36968         * INSTALL: Regenerated.
36969         * configure.ac: Check for makeinfo version 4.7 and above.
36970         * configure: Regenerated.
36971
36972 2014-12-12  Roland McGrath  <roland@hack.frob.com>
36973
36974         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
36975         PREFIX, string constant to insert between directory and name.
36976         * sysdeps/posix/shm_open.c: Update caller.
36977         * sysdeps/posix/shm_unlink.c: Likewise.
36978         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
36979         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
36980         (SEM_SHM_PREFIX): New macro.
36981         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
36982         [$(have-thread-library) = no].
36983         * nptl/Makefile (libpthread-routines): Add shm-directory.
36984         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
36985         * sysdeps/nptl/shm-directory.h: New file.
36986         * sysdeps/posix/shm-directory.c
36987         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
36988         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
36989         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
36990         INTERNAL_SYSCALL.
36991         (__where_is_shmfs): Function removed.
36992         (mountpoint, defaultmount, defaultdir, __namedsem_once):
36993         Variables removed.
36994         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
36995         Use SHM_GET_NAME.
36996         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
36997
36998         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
36999         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
37000         unconditional for use inside libpthread.
37001         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
37002
37003 2014-12-12  Roland McGrath  <roland@hack.frob.com>
37004
37005         * nptl/pthread_getaffinity.c: New file.
37006         * nptl/pthread_setaffinity.c: New file.
37007         * nptl/pthread_getname.c: New file.
37008         * nptl/pthread_setname.c: New file.
37009
37010         * nptl/pthread_create.c (START_THREAD_DEFN)
37011         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
37012
37013 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37014             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37015
37016         * resolv/res_send.c (send_vc): Disable warning resplen may
37017         be used uninitialized.
37018
37019 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
37020
37021         * nptl/tst-mutex6.c
37022         (ATTR_NULL): New define checks ATTR against NULL.
37023         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
37024         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
37025
37026 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
37027
37028         [BZ #17581]
37029         * malloc/hooks.c
37030         (mem2mem_check): Revert my previous change.
37031         (malloc_check_get_size): Revert my previous change.
37032         (mem2chunk_check): Revert my previous change.
37033
37034 2014-12-11  Roland McGrath  <roland@hack.frob.com>
37035
37036         * sysdeps/posix/shm-directory.c: New file.
37037         * sysdeps/posix/shm-directory.h: New file.
37038         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
37039         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
37040         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
37041         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
37042         Transmute EPERM to EACCES.
37043         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
37044         from ...
37045         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
37046         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
37047
37048 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
37049
37050         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
37051         pointer and cast to uintptr_t.
37052         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
37053         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
37054         Add cast to avoid warning.
37055         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
37056
37057 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
37058
37059         * nptl/semaphore.h: Move to ...
37060         * sysdeps/pthread/semaphore.h: ... here.
37061         * Makefile (installed-headers): Change nptl/semaphore.h to
37062         sysdeps/pthread/semaphore.h.
37063
37064 2014-12-11  Roland McGrath  <roland@hack.frob.com>
37065
37066         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
37067         generated error format strings.
37068
37069         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
37070         -Wformat-extra-args warnings for scanf formats.
37071         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
37072         test of zero-length format (duh).
37073         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
37074         corner-case scanf format test.
37075         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
37076         generated fprintf format string.
37077         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
37078         corner-case sprintf format tests.
37079         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
37080         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
37081         -Wformat-extra-args warnings throughout.
37082         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
37083         (CFLAGS-scanf4.c): Likewise.
37084         (CFLAGS-scanf7.c): Likewise.
37085         (CFLAGS-tst-sprintf.c): Likewise.
37086         (CFLAGS-tst-printf.c): Likewise.
37087         (CFLAGS-tst-printfsz.c): Likewise.
37088
37089 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
37090
37091         * include/cpio.h: New file.
37092         * include/fmtmsg.h: Likewise.
37093
37094         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
37095         corresponding format argument to size_t.
37096         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
37097         arguments.
37098         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
37099         corresponding format argument to size_t.
37100         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
37101         arguments.
37102         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
37103         corresponding format argument to size_t.
37104         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
37105         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
37106         (CFLAGS-tst-mbswcs2.c): Likewise.
37107         (CFLAGS-tst-mbswcs3.c): Likewise.
37108         (CFLAGS-tst-mbswcs4.c): Likewise.
37109         (CFLAGS-tst-mbswcs5.c): Likewise.
37110         (CFLAGS-tst-trans.c): Likewise.
37111
37112 2014-12-11  Roland McGrath  <roland@hack.frob.com>
37113
37114         * posix/regexbug1.c (main): Use "%s" format with regerror results,
37115         rather than assuming they won't contain any '%'s.
37116
37117 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
37118
37119         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
37120         inhibit_loop_to_libcall to avoid recursive calls.
37121         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
37122         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
37123
37124 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
37125
37126         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
37127         prototype.
37128
37129 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
37130
37131         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
37132         integer value instead of boolean.
37133
37134 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
37135
37136         * malloc/malloc.c: Fix powerof2 check.
37137
37138 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37139
37140         * locale/programs/locfile.h (maybe_swap_uint32):
37141         Remove inline and add unused attribute.
37142
37143 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37144
37145         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
37146         Truncating assembler expression to a .long expression.
37147
37148 2014-12-11  Andreas Schwab  <schwab@suse.de>
37149
37150         * elf/rtld.c (struct map_args): Constify str member.
37151         (do_preload): Constify fname argument.
37152
37153 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37154
37155         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
37156         constants definition.
37157
37158 2014-12-11  Andreas Schwab  <schwab@suse.de>
37159
37160         [BZ #16657]
37161         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
37162         FORCE_ELISION instead of DO_ELISION.
37163         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
37164         Remove.
37165         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
37166         Likewise.
37167
37168         * iconvdata/gconv-modules: Remove duplicate entry.
37169
37170 2014-12-11  Will Newton  <will.newton@linaro.org>
37171
37172         Merge gettext 0.19.3 into intl/.
37173
37174         This involves a number of cosmetic changes to comments
37175         and ANSI function definitions and prototypes throughout
37176         all the files. The gettext copyright header is used but
37177         with the date ranges taken from the glibc copy.
37178
37179         * NEWS: Add gettext merge to 2.21.
37180         * intl/bindtextdom.c: Switch to gettext copyright.
37181         Use ANSI definitions and prototypes.
37182         Use gl_* locking primitives rather than __libc_* ones.
37183         Use __builtin_expect rather than __glibc_likely/unlikely.
37184         * intl/dcgettext.c: Switch to gettext copyright.
37185         Use ANSI definitions and prototypes.
37186         * intl/dcigettext.c: Switch to gettext copyright.
37187         Use ANSI definitions and prototypes.
37188         (INTDIV0_RAISES_SIGFPE): New define.
37189         Use gl_* locking primitives rather than __libc_* ones.
37190         Include eval-plural.h instead of plural-eval.c.
37191         Use __builtin_expect rather than __glibc_likely/unlikely.
37192         * intl/dcngettext.c: Switch to gettext copyright.
37193         Use ANSI definitions and prototypes.
37194         * intl/dgettext.c: Likewise.
37195         * intl/dngettext.c: Likewise.
37196         * intl/plural-eval.c: Renamed to...
37197         * intl/eval-plural.h: ...this.
37198         * intl/explodename.c: Switch to gettext copyright.
37199         Use ANSI definitions and prototypes.
37200         (_nl_explode_name): Use strchr instead of __rawmemchr.
37201         * intl/finddomain.c: Switch to gettext copyright.
37202         Use ANSI definitions and prototypes.
37203         Use gl_* locking primitives rather than __libc_* ones.
37204         (_nl_find_domain): Use malloc rather than alloca for
37205         allocation of temporary locale name.
37206         * intl/gettext.c: Switch to gettext copyright.
37207         Use ANSI definitions and prototypes.
37208         * intl/gettextP.h: Switch to gettext copyright.
37209         Use ANSI definitions and prototypes.
37210         Use gl_* locking primitives rather than __libc_* ones.
37211         * intl/gmo.h: Switch to gettext copyright.
37212         (struct sysdep_string): Move struct segment_pair outside of
37213         struct definition.
37214         * intl/hash-string.c: Use ANSI definitions and prototypes.
37215         * intl/hash-string.h: Switch to gettext copyright.
37216         Use ANSI definitions and prototypes.
37217         * intl/l10nflist.c: Switch to gettext copyright.
37218         Use ANSI definitions and prototypes.
37219         (_nl_normalize_codeset): Avoid integer overflow.
37220         * intl/loadinfo.h: Switch to gettext copyright.
37221         Use ANSI definitions and prototypes.
37222         (LIBINTL_DLL_EXPORTED): New define.
37223         (PATH_SEPARATOR): New define.
37224         * intl/loadmsgcat.c: Switch to gettext copyright.
37225         * intl/localealias.c: Switch to gettext copyright.
37226         Use ANSI definitions and prototypes.
37227         (_nl_expand_alias): Use PATH_SEPARATOR.
37228         * intl/ngettext.c: Switch to gettext copyright.
37229         Use ANSI definitions and prototypes.
37230         * intl/plural-exp.c: Likewise.
37231         * intl/plural-exp.h: Switch to gettext copyright.
37232         Use ANSI definitions and prototypes.
37233         (struct expression): Move definition of enum operator outside
37234         of struct definition.
37235         * intl/plural.c: Regenerate.
37236         * intl/plural.y: Switch to gettext copyright.
37237         Use ANSI definitions and prototypes.
37238         Port to bison 3.0.
37239         * intl/textdomain.c: Switch to gettext copyright.
37240         Use ANSI definitions and prototypes.
37241         Use gl_* locking primitives rather than __libc_* ones.
37242
37243 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
37244
37245         * debug/warning-nop.c: Add used atrribute.
37246
37247 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37248
37249         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
37250
37251         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
37252         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
37253         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
37254
37255 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37256             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37257
37258         [BZ #17634]
37259         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
37260         Undefine after defining function.  Define as weak alias of
37261         __wcschr.  Use libc_hidden_weak.
37262         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
37263         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
37264         (libc_hidden_def): Also define __GI___wcschr alias.
37265         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
37266         __wcschr and define as weak alias of __wcschr.
37267         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
37268         __wcschr.
37269         [!WCSCHR] (DEFAULT_WCSCHR): Define.
37270         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
37271         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
37272         libc_hidden_weak.  Do not use libc_hidden_def.
37273         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
37274         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
37275         __GI___wcschr alias.
37276         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
37277         [IS_IN (libc)] (wcschr): Define as macro expanding to
37278         __redirect_wcschr.
37279         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
37280         [IS_IN (libc)] (__wcschr_power6): Likewise.
37281         [IS_IN (libc)] (__wcschr_power7): Likewise.
37282         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
37283         instead of wcschr.
37284         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
37285         __libc_wcschr.
37286         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
37287         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
37288         __wcschr and define as weak alias of __wcschr.  Use
37289         libc_hidden_builtin_def.
37290         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
37291         as weak alias of __wcschr.  Use libc_hidden_weak.
37292         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
37293         wcschr.
37294         * time/era.c (_nl_init_era_entries): Likewise.
37295         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
37296         variable.
37297         (test-xfail-XPG3/time.h/linknamespace): Likewise.
37298         (test-xfail-XPG4/time.h/linknamespace): Likewise.
37299
37300 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37301
37302         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
37303         format for long int variable.
37304
37305 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
37306
37307         [BZ #10672]
37308         * manual/search.texi: (Array Sort Function): Remove claim how to make
37309         qsort stable.
37310
37311 2014-12-10  Andreas Schwab  <schwab@suse.de>
37312
37313         [BZ #12847]
37314         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
37315         user-controlled locks.
37316
37317 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
37318
37319         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
37320         register.
37321
37322 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
37323
37324         * configure.ac (--disable-werror): New configure option.
37325         (enable_werror): New AC_SUBST.
37326         * configure: Regenerated.
37327         * config.make.in (enable-werror): New variable.
37328         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
37329         -Wno-error=undef.
37330         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
37331         * manual/install.texi (Configuring and compiling): Document
37332         --disable-werror.
37333         * INSTALL: Regenerated.
37334         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
37335         (CFLAGS-tst-chk2.c): Likewise.
37336         (CFLAGS-tst-chk3.c): Likewise.
37337         (CFLAGS-tst-chk4.cc): Likewise.
37338         (CFLAGS-tst-chk5.cc): Likewise.
37339         (CFLAGS-tst-chk6.cc): Likewise.
37340         (CFLAGS-tst-lfschk1.c): Likewise.
37341         (CFLAGS-tst-lfschk2.c): Likewise.
37342         (CFLAGS-tst-lfschk3.c): Likewise.
37343         (CFLAGS-tst-lfschk4.cc): Likewise.
37344         (CFLAGS-tst-lfschk5.cc): Likewise.
37345         (CFLAGS-tst-lfschk6.cc): Likewise.
37346
37347         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
37348         (main): Disable -Wdeprecated-declarations around calls to
37349         register_printf_function.
37350
37351         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
37352         (do_test): Disable -Wdiv-by-zero around some calls to
37353         fwrite_unlocked and fread_unlocked.
37354
37355         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
37356         (DIAG_POP_NEEDS_COMMENT): Likewise.
37357         (_DIAG_STR1): Likewise.
37358         (_DIAG_STR): Likewise.
37359         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
37360         * stdio-common/bug21.c: Include <libc-internal.h>.
37361         (do_test): Disable -Wformat around call to sscanf.
37362         * stdio-common/scanf14.c: Include <libc-internal.h>.
37363         (main): Disable -Wformat around some calls to scanf functions.
37364
37365 2014-12-09  Torvald Riegel  <triegel@redhat.com>
37366
37367         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
37368
37369 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37370
37371         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
37372         stack variable alignment.
37373
37374 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
37375
37376         [BZ #17682]
37377         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
37378         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
37379         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
37380         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
37381         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
37382         __getrlimit instead of getrlimit.
37383         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
37384         __gettimeofday instead of gettimeofday.
37385         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
37386         Likewise.
37387         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
37388         Likewise.
37389         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37390         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
37391         Remove variable.
37392         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
37393         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
37394
37395 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37396
37397         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
37398         for wide-character tests.
37399
37400 2014-12-04  Roland McGrath  <roland@hack.frob.com>
37401
37402         * io/openat64.c: #include <libc-internal.h>
37403         (__openat64): Prototypify.  Use ignore_value on MODE.
37404         * io/openat.c: Likewise.
37405         * misc/reboot.c: #include <libc-internal.h>
37406         (reboot): Prototypify.  Use ignore_value on HOWTO.
37407         * misc/ptrace.c: #include <libc-internal.h>
37408         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
37409
37410 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
37411
37412         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
37413         XPG4, UNIX98 and XOPEN2K.
37414         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
37415         Remove variable.
37416         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
37417
37418 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37419
37420         * libio/fileops.c: Use ISO C style for function definitions.
37421         * libio/iofopen.c: Likewise.
37422         * libio/wfileops.c: Likewise.
37423
37424         [BZ #17653]
37425         * libio/fileops.c (_IO_new_file_underflow): Unset cached
37426         offset on EOF.
37427         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
37428         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
37429         (fgets_func): Function pointer to fgets and fgetws.
37430         (do_ftell_test): Add test to verify ftell value after read
37431         EOF.
37432         (do_test): Set fgets_func.
37433
37434         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
37435         O_TRUNC flag for w and w+ modes.
37436         (do_rewind_test): Likewise.
37437         (do_ftell_test): Likewise.
37438         (do_write_test): Likewise.
37439
37440         [BZ #17647]
37441         * libio/fileops.c (do_ftell): Seek only when there are
37442         unflushed writes.
37443         * libio/wfileops.c (do_ftell_wide): Likewise.
37444         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
37445         test case.
37446         (do_one_test): Call it.
37447
37448 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
37449
37450         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
37451         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
37452         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
37453         Remove variable.
37454         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
37455         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
37456         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
37457
37458 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37459
37460         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
37461         Remove variable.
37462         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
37463
37464         [BZ #17668]
37465         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
37466         as weak alias of __getifaddrs.  Use libc_hidden_weak.
37467         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37468         __freeifaddrs.  Use libc_hidden_weak.
37469         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
37470         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
37471         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37472         __freeifaddrs.  Use libc_hidden_weak.
37473         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
37474         __getifaddrs and define as weak alias of __getifaddrs.  Use
37475         libc_hidden_weak.
37476         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
37477         __freeifaddrs.  Use libc_hidden_weak.
37478         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
37479         Remove variable.
37480         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
37481         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
37482
37483 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
37484
37485         [BZ #17601]
37486         * sysdeps/mips/start.S (__start): Use indirect jump to call
37487         __libc_start_main.
37488
37489 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
37490
37491         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
37492
37493         * nptl/tst-mutex1.c: Include <stdbool.h>.
37494         [!ATTR] (ATTR_NULL): New macro.
37495         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
37496         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
37497         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
37498
37499         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
37500         to char *.
37501
37502         [BZ #17665]
37503         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
37504         Change conditional to [__USE_MISC].
37505
37506         [BZ #17664]
37507         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
37508         fgets_unlocked.
37509         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
37510         __fgets_unlocked.
37511         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
37512         fgets_unlocked.
37513         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
37514         Remove variable.
37515         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
37516         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
37517         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
37518         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
37519         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
37520         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
37521         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
37522         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
37523         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
37524
37525         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
37526
37527 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37528
37529         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37530         Remove strpbrk objects.
37531         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37532         (__libc_ifunc_impl_list): Remove strpbrk implementation.
37533         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
37534         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
37535         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
37536         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
37537
37538         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37539         Remove strcspn objects.
37540         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37541         (__libc_ifunc_impl_list): Remove strcspn implementation.
37542         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
37543         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
37544         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
37545         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
37546
37547         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
37548         Remove strspn objetcs.
37549         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
37550         (__libc_ifunc_impl_list): Remove strspn implementation.
37551         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
37552         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
37553         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
37554         * sysdeps/powerpc/powerpc64/strspn.S: New file.
37555
37556 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
37557
37558         [BZ #17581]
37559         * malloc/hooks.c
37560         (mem2mem_check): Add a terminator to the chain of checking blocks.
37561         (malloc_check_get_size): Use it here.
37562         (mem2chunk_check): Ditto.
37563
37564 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
37565
37566         * sysdeps/powerpc/powerpc64/strtok.S: New file.
37567         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
37568
37569 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
37570
37571         * bits/ioctl-types.h: Indent preprocessor directives correctly.
37572
37573         * nptl/nptl-init.c: Include libc-internal.h.
37574         (__pthread_initialize_minimal_internal): Use ROUND_UP.
37575
37576         * elf/ldconfig.c (search_dir): Expand comment.
37577
37578 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
37579
37580         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
37581         variable.
37582         (linknamespace-symlist-stdlibs-tests): Likewise.
37583         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
37584         instead of $(objpfx)symlist-stdlibs.
37585         (linknamespace-libs-isoc): New variable.
37586         (linknamespace-libs): Use $(linknamespace-libs-isoc).
37587         (linknamespace-libs-ISO): New variable.
37588         (linknamespace-libs-ISO99): Likewise.
37589         (linknamespace-libs-ISO11): Likewise.
37590         (linknamespace-libs-XPG3): Likewise.
37591         (linknamespace-libs-XPG4): Likewise.
37592         (linknamespace-libs-POSIX): Likewise.
37593         (linknamespace-libs-UNIX98): Likewise.
37594         (linknamespace-libs-XOPEN2K): Likewise.
37595         (linknamespace-libs-POSIX2008): Likewise.
37596         (linknamespace-libs-XOPEN2K8): Likewise.
37597         ($(objpfx)symlist-stdlibs): Replace by
37598         $(linknamespace-symlist-stdlibs-tests).  Use
37599         $(linknamespace-libs-$*) as set of libraries.
37600         ($(linknamespace-header-tests)): Update dependencies.  Use
37601         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
37602         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
37603         * conform/linknamespace.pl: Remove comment about considering
37604         definitions of symbols from irrelevant libraries.
37605
37606 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
37607
37608         [BZ #13862]
37609         * elf/dl-tls.c: Include <atomic.h>.
37610         (oom): Remove #ifdef SHARED/#endif.
37611         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
37612         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
37613         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
37614         big enough.
37615         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
37616         * nptl/Makefile (tests): Add tst-stack4.
37617         (modules-names): Add tst-stack4mod.
37618         ($(objpfx)tst-stack4): New.
37619         (tst-stack4mod.sos): Likewise.
37620         ($(objpfx)tst-stack4.out): Likewise.
37621         ($(tst-stack4mod.sos)): Likewise.
37622         (clean): Likewise.
37623         * nptl/tst-stack4.c: New file.
37624         * nptl/tst-stack4mod.c: Likewise.
37625
37626 2014-11-27  J. Brown  <jb999@gmx.de>
37627
37628         * sysdeps/x86/bits/string.h: Add recent CPUs.
37629
37630 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37631
37632         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
37633         sigblock.
37634
37635         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
37636         feof.
37637
37638         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
37639         variable.
37640
37641 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
37642
37643         * nscd/connections.c: Include libc-internal.h because of macro
37644         usage ignore_value.
37645
37646 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37647
37648         * string/bits/string3.h (__warn_memset_zero_len): Don't
37649         declare for gcc newer than 5.0.
37650         (memset): Don't test for zero-length __LEN for gcc newer than
37651         5.0.
37652
37653 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
37654
37655         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
37656         size_t for %zu format.
37657
37658         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
37659         difference, not %ju.
37660
37661 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37662
37663         * include/libc-internal.h (ignore_value): New macro.
37664         * nscd/connections.c (restart): Wrap calls to setuid and setgid
37665         with ignore_value.
37666
37667         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
37668         definition.
37669
37670         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
37671         pthread_cleanup_push to void *.
37672
37673         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
37674         Undefine.
37675
37676         [BZ #16619]
37677         [BZ #16740]
37678         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
37679         instead of 1L << 52.
37680
37681         * libio/bug-rewind.c (do_test): Check fwscanf return values.
37682         * libio/bug-rewind2.c (do_test): Likewise.
37683
37684         * debug/test-stpcpy_chk-ifunc.c: Remove file.
37685         * debug/test-strcpy_chk-ifunc.c: Likewise.
37686         * wcsmbs/test-wcschr-ifunc.c: Likewise.
37687         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
37688         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
37689         * wcsmbs/test-wcslen-ifunc.c: Likewise.
37690         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
37691         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
37692         * Rules [$(multi-arch) = no] (tests): Do not filter out
37693         $(tests-ifunc).
37694         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
37695         * debug/Makefile (tests-ifunc): Remove variable.
37696         (tests): Do not add $(tests-ifunc).
37697         * wcsmbs/Makefile (tests-ifunc): Remove variable.
37698         (tests): Do not add $(tests-ifunc).
37699         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
37700         [TEST_IFUNC]: Remove conditionals.
37701         * string/test-string.h (TEST_IFUNC): Remove macro.
37702         [TEST_IFUNC]: Remove conditionals.
37703
37704         * string/test-strchr.c [!WIDE] (L): New macro.
37705         [WIDE] (L): Likewise.
37706         (check1): Use CHAR instead of char.  Use L on string and character
37707         constants.
37708
37709 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
37710
37711         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
37712         tests.
37713         * sysdeps/powerpc/bits/atomic.h
37714         (__arch_atomic_exchange_and_add_32_acq): Add definition.
37715         (__arch_atomic_exchange_and_add_32_rel): Likewise.
37716         (atomic_exchange_and_add_acq): Likewise.
37717         (atomic_exchange_and_add_rel): Likewise.
37718         * sysdeps/powerpc/powerpc32/bits/atomic.h
37719         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37720         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37721         * sysdeps/powerpc/powerpc64/bits/atomic.h
37722         (__arch_atomic_exchange_and_add_64_acq): Add definition.
37723         (__arch_atomic_exchange_and_add_64_rel): Likewise.
37724
37725 2014-11-26  Torvald Riegel  <triegel@redhat.com>
37726
37727         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
37728         Change synchronization of __sched_fifo_min_prio and
37729         __sched_fifo_max_prio.
37730         * nptl/pthread_mutexattr_getprioceiling.c
37731         (pthread_mutexattr_getprioceiling): Likewise.
37732         * nptl/pthread_mutexattr_setprioceiling.c
37733         (pthread_mutexattr_setprioceiling): Likewise.
37734         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
37735         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
37736         Likewise.
37737
37738 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
37739
37740         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
37741         void.
37742
37743 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37744
37745         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
37746         third argument const.
37747
37748 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37749
37750         fnmatch: work around GCC compiler warning bug with uninit var
37751         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
37752         This works around a bug with x86-64 GCC 4.9.2 and earlier
37753         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
37754         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
37755         used uninitialized in this function [-Wmaybe-uninitialized]".
37756
37757 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
37758
37759         * posix/bug-regex31.c (main): Return RES not 0.
37760
37761 2014-11-25  Anton Blanchard <anton@samba.org>
37762
37763         * sysdeps/powerpc/bits/atomic.h
37764         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
37765
37766 2014-11-24  Sterling Augustine  <saugustine@google.com>
37767
37768         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
37769
37770 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
37771
37772         [BZ #17608]
37773         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
37774
37775 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
37776
37777         [BZ #17633]
37778         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
37779         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
37780         variable.
37781         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
37782         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
37783
37784 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37785
37786         * string/strncpy.c (strncpy): Improve performance by using memset.
37787
37788 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
37789
37790         * string/strcpy.c (strcpy):
37791         Improve performance by using strlen and memcpy.
37792
37793 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
37794
37795         * string/strcoll_l.c (get_next_seq): __always_inline.
37796         * string/strcoll_l.c (do_compare): __always_inline.
37797
37798 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
37799
37800         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
37801         defined.
37802         * include/mqueue.h: Likewise.
37803         * include/stdlib.h: Likewise.
37804
37805         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
37806         (get_null_defines): Adjust.
37807         * sunrpc/Makefile: Adjust comment.
37808         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
37809         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
37810         (CFLAGS-interp.c): Likewise.
37811         (CFLAGS-ldconfig.c): Likewise.
37812         (CPPFLAGS-.os): Likewise.
37813         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
37814         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
37815         * extra-modules.mk (extra-modules.mk): Likewise.
37816         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
37817         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
37818         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
37819         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
37820         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
37821         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
37822         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
37823         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
37824         * iconvdata/Makefile (CPPFLAGS): Likewise.
37825         (cpp-srcs-left): Add libof for all iconvdata routines.
37826         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
37827         * include/assert.h: Likewise.
37828         * include/ctype.h: Likewise.
37829         * include/errno.h: Likewise.
37830         * include/libc-symbols.h: Likewise.
37831         * include/math.h: Likewise.
37832         * include/netdb.h: Likewise.
37833         * include/resolv.h: Likewise.
37834         * include/stdio.h: Likewise.
37835         * include/stdlib.h: Likewise.
37836         * include/string.h: Likewise.
37837         * include/sys/stat.h: Likewise.
37838         * include/wctype.h: Likewise.
37839         * intl/l10nflist.c: Likewise.
37840         * libidn/idn-stub.c: Likewise.
37841         * libio/libioP.h: Likewise.
37842         * nptl/libc_multiple_threads.c: Likewise.
37843         * nptl/pthreadP.h: Likewise.
37844         * posix/regex_internal.h: Likewise.
37845         * resolv/res_hconf.c: Likewise.
37846         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
37847         * sysdeps/arm/memmove.S: Likewise.
37848         * sysdeps/arm/sysdep.h: Likewise.
37849         * sysdeps/generic/_itoa.h: Likewise.
37850         * sysdeps/generic/symbol-hacks.h: Likewise.
37851         * sysdeps/gnu/errlist.awk: Likewise.
37852         * sysdeps/gnu/errlist.c: Likewise.
37853         * sysdeps/i386/i586/memcpy.S: Likewise.
37854         * sysdeps/i386/i586/memset.S: Likewise.
37855         * sysdeps/i386/i686/memcpy.S: Likewise.
37856         * sysdeps/i386/i686/memmove.S: Likewise.
37857         * sysdeps/i386/i686/mempcpy.S: Likewise.
37858         * sysdeps/i386/i686/memset.S: Likewise.
37859         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
37860         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
37861         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
37862         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
37863         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
37864         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
37865         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
37866         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
37867         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
37868         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
37869         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
37870         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
37871         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
37872         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
37873         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
37874         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
37875         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
37876         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
37877         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
37878         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
37879         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
37880         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
37881         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
37882         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
37883         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
37884         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
37885         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
37886         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
37887         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
37888         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
37889         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
37890         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
37891         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
37892         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
37893         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
37894         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
37895         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
37896         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
37897         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
37898         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
37899         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
37900         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
37901         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
37902         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
37903         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
37904         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
37905         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
37906         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
37907         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
37908         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
37909         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
37910         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
37911         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
37912         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
37913         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
37914         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
37915         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
37916         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
37917         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
37918         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
37919         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
37920         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
37921         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
37922         * sysdeps/nptl/bits/libc-lock.h: Likewise.
37923         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
37924         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
37925         * sysdeps/posix/closedir.c: Likewise.
37926         * sysdeps/posix/opendir.c: Likewise.
37927         * sysdeps/posix/readdir.c: Likewise.
37928         * sysdeps/posix/rewinddir.c: Likewise.
37929         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
37930         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
37931         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
37932         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
37933         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
37934         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
37935         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
37936         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
37937         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
37938         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
37939         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
37940         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
37941         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
37942         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
37943         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
37944         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
37945         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
37946         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
37947         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
37948         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
37949         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
37950         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
37951         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
37952         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
37953         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
37954         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
37955         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
37956         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
37957         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
37958         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
37959         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
37960         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
37961         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
37962         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
37963         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
37964         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
37965         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
37966         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
37967         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
37968         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
37969         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
37970         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
37971         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
37972         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
37973         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
37974         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
37975         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
37976         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
37977         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
37978         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
37979         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
37980         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
37981         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
37982         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
37983         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
37984         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
37985         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
37986         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
37987         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
37988         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
37989         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
37990         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
37991         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
37992         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
37993         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
37994         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
37995         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
37996         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
37997         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
37998         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
37999         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
38000         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
38001         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
38002         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
38003         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
38004         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
38005         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
38006         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
38007         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
38008         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
38009         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
38010         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
38011         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
38012         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
38013         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
38014         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
38015         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
38016         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
38017         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
38018         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
38019         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
38020         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
38021         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
38022         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
38023         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
38024         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
38025         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
38026         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38027         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
38028         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
38029         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38030         * sysdeps/unix/alpha/sysdep.S: Likewise.
38031         * sysdeps/unix/alpha/sysdep.h: Likewise.
38032         * sysdeps/unix/make-syscalls.sh: Likewise.
38033         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38034         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38035         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38036         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
38037         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38038         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
38039         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
38040         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
38041         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38042         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
38043         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
38044         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38045         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38046         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
38047         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38048         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
38049         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38050         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
38051         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
38052         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38053         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
38054         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
38055         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38056         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38057         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38058         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38059         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
38060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
38061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
38062         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
38063         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
38064         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38065         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
38066         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38067         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
38068         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38069         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
38070         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38071         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
38072         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
38073         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
38074         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38075         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
38076         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
38077         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
38078         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38079         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38080         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38081         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38082         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38083         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
38084         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38085         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38086         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38087         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
38088         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
38089         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38090         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38091         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
38092         * sysdeps/x86_64/memcpy.S: Likewise.
38093         * sysdeps/x86_64/memmove.c: Likewise.
38094         * sysdeps/x86_64/memset.S: Likewise.
38095         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
38096         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
38097         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
38098         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
38099         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
38100         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
38101         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38102         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
38103         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
38104         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
38105         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
38106         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
38107         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
38108         * sysdeps/x86_64/multiarch/memset.S: Likewise.
38109         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
38110         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
38111         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
38112         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
38113         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
38114         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
38115         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
38116         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
38117         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
38118         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
38119         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
38120         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
38121         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
38122         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
38123         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
38124         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
38125         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
38126         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
38127         * sysdeps/x86_64/strcmp.S: Likewise.
38128
38129         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
38130
38131         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
38132         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
38133         * elf/rtld-Rules: Likewise.
38134         * elf/setup-vdso.h: Likewise.
38135         * include/assert.h: Likewise.
38136         * include/bits/stdlib-float.h: Likewise.
38137         * include/errno.h: Likewise.
38138         * include/sys/stat.h: Likewise.
38139         * include/unistd.h: Likewise.
38140         * sysdeps/aarch64/setjmp.S: Likewise.
38141         * sysdeps/alpha/setjmp.S: Likewise.
38142         * sysdeps/arm/__longjmp.S: Likewise.
38143         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
38144         * sysdeps/arm/setjmp.S: Likewise.
38145         * sysdeps/arm/sysdep.h: Likewise.
38146         * sysdeps/generic/_itoa.h: Likewise.
38147         * sysdeps/generic/dl-sysdep.h: Likewise.
38148         * sysdeps/generic/ldsodefs.h: Likewise.
38149         * sysdeps/i386/dl-tls.h: Likewise.
38150         * sysdeps/i386/setjmp.S: Likewise.
38151         * sysdeps/m68k/setjmp.c: Likewise.
38152         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
38153         * sysdeps/mach/hurd/opendir.c: Likewise.
38154         * sysdeps/posix/getcwd.c: Likewise.
38155         * sysdeps/posix/opendir.c: Likewise.
38156         * sysdeps/posix/profil.c: Likewise.
38157         * sysdeps/powerpc/dl-procinfo.h: Likewise.
38158         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
38159         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
38160         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
38161         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
38162         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
38163         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
38164         * sysdeps/s390/dl-tls.h: Likewise.
38165         * sysdeps/s390/s390-32/setjmp.S: Likewise.
38166         * sysdeps/s390/s390-64/setjmp.S: Likewise.
38167         * sysdeps/sh/sh3/setjmp.S: Likewise.
38168         * sysdeps/sh/sh4/setjmp.S: Likewise.
38169         * sysdeps/unix/alpha/sysdep.h: Likewise.
38170         * sysdeps/unix/arm/sysdep.S: Likewise.
38171         * sysdeps/unix/i386/sysdep.S: Likewise.
38172         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38173         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
38174         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
38175         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
38176         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38177         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
38178         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
38179         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38180         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
38181         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
38182         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
38183         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
38184         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
38185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
38186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
38187         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
38188         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38189         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38190         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
38191         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
38192         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
38193         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38194         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38195         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
38196         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38197         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
38198         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38199         * sysdeps/unix/x86_64/sysdep.S: Likewise.
38200         * sysdeps/x86_64/setjmp.S: Likewise.
38201
38202         * include/math.h: Use IS_IN instead of IS_IN_libm.
38203         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
38204         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
38205         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
38206         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
38207         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
38208         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
38209         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
38210         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38211         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38212         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
38213         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
38214         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
38215         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
38216         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
38217         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
38218         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
38219         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
38220         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
38221         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
38222         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
38223         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
38224         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
38225         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
38226         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
38227         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
38228         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
38229         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
38230         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
38231         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
38232         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
38233         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
38234         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
38235         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
38236         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
38237         Likewise.
38238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
38239         Likewise.
38240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
38241         Likewise.
38242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
38243         Likewise.
38244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
38245         Likewise.
38246         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
38247         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
38248         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
38249         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
38250         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
38251         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
38252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
38253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
38254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
38255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
38256         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
38257         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
38258         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
38259         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
38260         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
38261         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
38262         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
38263         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
38264         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
38265         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
38266         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
38267         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
38268         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
38269         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
38270         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
38271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
38272         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
38273
38274         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
38275         * nptl/pthreadP.h: Likewise.
38276         * nptl_db/structs.def: Likewise.
38277         * sysdeps/arm/sysdep.h: Likewise.
38278         * sysdeps/nptl/bits/libc-lock.h: Likewise.
38279         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
38280         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
38281         * sysdeps/unix/alpha/sysdep.h: Likewise.
38282         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38283         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
38284         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38285         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38286         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38287         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38288         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38289         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38290         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38291         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38292         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38293         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38294         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38295         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
38297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
38298         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38299         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38300         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38301         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38302         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38303         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38304         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
38305         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38306         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
38307         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38308
38309         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
38310         * nptl/pthreadP.h: Likewise.
38311         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
38312         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
38313         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
38314         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
38315         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
38316         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
38317         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
38318         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
38319         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
38320         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
38321         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
38322         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
38323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
38324         Likewise.
38325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
38326         Likewise.
38327         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
38328         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
38329         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
38330         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
38331         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
38332         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
38333         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
38334         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
38335
38336         * dlfcn/dladdr.c: Use IS_IN.
38337         * dlfcn/dladdr1.c: Likewise.
38338         * dlfcn/dlclose.c: Likewise.
38339         * dlfcn/dlerror.c: Likewise.
38340         * dlfcn/dlinfo.c: Likewise.
38341         * dlfcn/dlmopen.c: Likewise.
38342         * dlfcn/dlopen.c: Likewise.
38343         * dlfcn/dlsym.c: Likewise.
38344         * dlfcn/dlvsym.c: Likewise.
38345
38346         * include/ifaddrs.h: Use IS_IN.
38347         * inet/check_pf.c: Likewise.
38348         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
38349         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
38350
38351         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
38352         IS_IN_ldconfig.
38353         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
38354         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
38355
38356         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
38357         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
38358         IS_IN (libc).
38359
38360         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
38361
38362         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
38363         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38364         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
38365         * include/libc-symbols.h (IS_IN_LIB): New macro.
38366         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
38367         * include/netdb.h: Likewise.
38368         * include/stap-probe.h: Remove all uses of IN_LIB.
38369
38370         * Makeconfig (module-cppflags-real): Define MODULE_NAME
38371         instead of IN_MODULE.
38372         * include/libc-symbols.h (IN_MODULE): Define using
38373         MODULE_NAME.
38374         (PASTE_NAME, PASTE_NAME1): New macros.
38375         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
38376         of IN_LIB.
38377         (STAP_PROBE_ASM): Likewise.
38378
38379 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38380
38381         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
38382         __mach_init in dlopened libc.
38383
38384 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
38385
38386         * sysdeps/arm/preconfigure.ac: Delete EABI check.
38387         * sysdeps/arm/preconfigure: Regenerate.
38388
38389 2014-11-21  Roland McGrath  <roland@hack.frob.com>
38390
38391         * nptl/pthread_create.c (__pthread_create_2_1): Set
38392         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
38393         when copying values from IATTR into PD.
38394
38395 2014-11-21  Will Newton  <will.newton@linaro.org>
38396             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
38397
38398         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
38399         Refactor inline-asm.  Also add comment.
38400
38401         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
38402         ElfW macro instead of hardcoded Elf64 types.
38403         (la_aarch64_gnu_pltenter): Likewise.
38404         * sysdeps/aarch64/dl-machine.h
38405         (elf_machine_runtime_setup): Use ElfW(Addr).
38406
38407         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
38408         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
38409         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
38410         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
38411         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
38412         (R_AARCH64_TLS_DTPMOD64): Rename to ..
38413         (R_AARCH64_TLS_DTPMOD): This.
38414         (R_AARCH64_TLS_DTPREL64): Rename to ...
38415         (R_AARCH64_TLS_DTPREL): This.
38416         (R_AARCH64_TLS_TPREL64): Rename to ...
38417         (R_AARCH64_TLS_TPREL): This.
38418         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
38419         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
38420         R_AARCH64_TLS_TPREL64.
38421         (elf_machine_rela): Likewise.
38422
38423 2014-11-21  Torvald Riegel  <triegel@redhat.com>
38424
38425         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
38426         by setting it to 0.  64b atomics are not supported currently.
38427
38428 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38429
38430         [BZ #16469]
38431         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
38432         search domain names.
38433
38434 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38435
38436         [BZ #16469]
38437         * NEWS: Update.
38438         * resolv/res_query.c (__libc_res_nquerydomain): Retain
38439         trailing dot.
38440         * posix/tst-getaddrinfo5.c: New.
38441         * posix/Makefile (tests): Add it.
38442
38443 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38444
38445         [BZ #14498]
38446         * NEWS: Fixed.
38447         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
38448         after parsing line but before break_if_match.
38449         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
38450         if there is a protocol mismatch.
38451
38452 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
38453
38454         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
38455         because the potential race is on the user-supplied stream.
38456
38457 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38458
38459         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
38460         string literal if not passed a buffer.
38461         * manual/job.texi (ctermid): Update reasoning, note deviation
38462         from posix, suggest mtasurace when not passed a buffer, for
38463         future non-preliminary safety notes.
38464
38465 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38466
38467         * manual/users.texi (cuserid): Fix MT-Safety note for the case
38468         of not passing it a buffer.
38469         Reported by Peng Haitao.
38470
38471 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
38472
38473         * manual/Makefile ($(objpfx)stamp-summary): Require
38474         check-safety.sh to pass.
38475         * manual/check-safety.sh: Wish for verification that every
38476         @deftypefn and @deftypefun is followed by a @safety remark.
38477
38478 2014-11-20  Roland McGrath  <roland@hack.frob.com>
38479
38480         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
38481
38482         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
38483         PTHREAD_CANCEL_ASYNCHRONOUS.
38484         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
38485         send SIGCANCEL.
38486
38487         * nptl/default-sched.h: New file.
38488         * sysdeps/unix/sysv/linux/default-sched.h: New file.
38489         * nptl/pthread_create.c: Include it.
38490         (__pthread_create_2_1): Use collect_default_sched instead of making
38491         Linux syscalls here directly.
38492
38493 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38494
38495         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
38496         __pthread_once): Use C11 atomics.
38497
38498 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38499
38500         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
38501
38502 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38503
38504         * include/atomic.h (__atomic_link_error, __atomic_check_size,
38505         atomic_thread_fence_acquire, atomic_thread_fence_release,
38506         atomic_thread_fence_seq_cst, atomic_load_relaxed,
38507         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
38508         atomic_compare_exchange_weak_relaxed,
38509         atomic_compare_exchange_weak_acquire,
38510         atomic_compare_exchange_weak_release,
38511         atomic_exchange_acquire, atomic_exchange_release,
38512         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
38513         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
38514         atomic_fetch_and_acquire,
38515         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
38516
38517 2014-11-20  Torvald Riegel  <triegel@redhat.com>
38518
38519         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
38520         USE_ATOMIC_COMPILER_BUILTINS): Define.
38521         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
38522         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38523         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
38524         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38525         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
38526         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38527         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
38528         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38529         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
38530         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38531         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
38532         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38533         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
38534         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38535         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
38536         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38537         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38538         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38539         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38540         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38541         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
38542         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38543         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
38544         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38545         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
38546         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38547         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
38548         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38549         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
38550         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38551         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
38552         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38553         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
38554         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38555         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
38556         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38557         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
38558         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38559         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
38560         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
38561
38562 2014-11-19  Roland McGrath  <roland@hack.frob.com>
38563
38564         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
38565         the sched_priority value here.  It was already checked when the user
38566         called pthread_attr_setschedparam.
38567
38568         * nptl/tst-bad-schedattr.c: New file.
38569         * nptl/Makefile (tests): Add it.
38570
38571 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
38572             Florian Weimer  <fweimer@redhat.com>
38573             Joseph Myers  <joseph@codesourcery.com>
38574             Adam Conrad  <adconrad@0c3.net>
38575             Andreas Schwab  <schwab@suse.de>
38576             Brooks  <bmoses@google.com>
38577
38578         [BZ #17625]
38579         * wordexp-test.c (__dso_handle): Add prototype.
38580         (__register_atfork): Likewise.
38581         (__app_register_atfork): New function.
38582         (registered_forks): New global.
38583         (register_fork): New function.
38584         (test_case): Add 3 new tests for WRDE_CMDSUB.
38585         (main): Call __app_register_atfork.
38586         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
38587         fork count is non-zero fail the test.
38588         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
38589         is set.
38590         (parse_dollars): Remove check for WRDE_NOCMD.
38591         (parse_dquote): Likewise.
38592
38593 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
38594
38595         * Makeconfig (built-modules): List non-library modules to be
38596         built.
38597         (module-cppflags): Include libc-modules.h for
38598         everything except shlib-versions.v.i.
38599         (CPPFLAGS): Use it.
38600         (before-compile): Add libc-modules.h.
38601         ($(common-objpfx)libc-modules.h,
38602         $(common-objpfx)libc-modules.stmp): New targets.
38603         (common-generated): Add libc-modules.h and libc-modules.stmp.
38604         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
38605         * include/libc-symbols.h: Don't include libc-modules.h.
38606         * include/libc-modules.h: Remove file.
38607         * scripts/gen-libc-modules.awk: New script to generate
38608         libc-modules.h.
38609         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
38610         Depend on libc-modules.stmp.
38611
38612         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
38613
38614         * Makeconfig (in-module): Get value of libof set for the
38615         translation unit.
38616         (CPPFLAGS): Use $(in-module).
38617         * Makerules: Don't suffix routine names for nonlib.
38618         * include/libc-modules.h: New file.
38619         * include/libc-symbols.h: Include libc-modules.h
38620         (IS_IN): New macro to replace IS_IN_* macros.
38621         * elf/Makefile: Set libof-* for each routine.
38622         * elf/rtld-Rules: Likewise.
38623         * extra-modules.mk: Likewise.
38624         * iconv/Makefile: Likewise.
38625         * iconvdata/Makefile: Likewise.
38626         * locale/Makefile: Likewise.
38627         * malloc/Makefile: Likewise.
38628         * nss/Makefile: Likewise.
38629         * sysdeps/gnu/Makefile: Likewise.
38630         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
38631         * sysdeps/unix/sysv/linux/Makefile: Likewise.
38632         * sysdeps/s390/s390-64/Makefile: Likewise.
38633         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
38634         CPPFLAGS for nscd instead of nonlib.
38635
38636 2014-11-18  Roland McGrath  <roland@hack.frob.com>
38637
38638         * nptl/createthread.c: New file.
38639
38640         * nptl/createthread.c: Moved ...
38641         * sysdeps/unix/sysv/linux/createthread.c: ... here.
38642
38643         * nptl/createthread.c: Add proper top-line comment.
38644         (do_clone): Folded into ...
38645         (create_thread): ... here.  Take new arguments STOPPED_START and
38646         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
38647         increment __nptl_threads, do event-reporting logic, do
38648         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
38649         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
38650         resource cleanup if sched_setaffinity or sched_setscheduler fails,
38651         just send SIGCANCEL.
38652         * nptl/pthread_create.c: Forward-declare create_thread before
38653         including createthread.c.
38654         (start_thread): Use new macro START_THREAD_DEFN to replace defining
38655         declaration, and new macro START_THREAD_SELF to replace argument.
38656         Remove return statement.
38657         (report_thread_creation): New function.
38658         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
38659         synchronization logic, and __nptl_nthreads increment here, around
38660         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
38661         PD->parent_cancelhandling here, before create_thread.  When
38662         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
38663         __deallocate_stack, and ENOMEM translation here.
38664
38665 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
38666
38667         [BZ #17616]
38668         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
38669         (mptwo): Rename to __mptwo.
38670         (__inv): Use __mptwo instead of mptwo.
38671         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
38672         (mptwo): Rename to __mptwo.
38673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
38674         of mpone and __mptwo instead of mptwo.
38675         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
38676         instead of mpone.
38677         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
38678         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
38679         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
38680         of mpone and __mptwo instead of mptwo.
38681         (__mpranred): Use __mpone instead of mpone.
38682         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
38683         variable.
38684         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38685         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38686         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38687         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38688         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38689         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38690         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38691         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38692         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38693         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38694         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38695         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38696         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38697         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38698         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38699         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
38700         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
38701         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
38702         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
38703
38704 2014-11-18  Tom de Vries  <tom@codesoucery.com>
38705
38706         * manual/signal.texi (Primitives Interrupted by Signals): In section,
38707         replace BSD Handler xref with BSD Signal Handling.
38708
38709 2014-11-17  Richard Henderson  <rth@redhat.com>
38710
38711         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
38712         (_FP_PACK_RAW_2): Remove.
38713         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
38714         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
38715         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
38716         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
38717         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
38718         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
38719         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
38720         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
38721         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
38722         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
38723         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
38724         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
38725         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
38726         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
38727         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
38728         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
38729
38730 2014-11-14  Roland McGrath  <roland@hack.frob.com>
38731
38732         * signal/signal.h [__USE_MISC]
38733         (struct sigvec): Remove type.
38734         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
38735         (sigvec): Remove declaration.
38736         * sysdeps/posix/sigvec.c: Moved ...
38737         * signal/sigvec.c: ... here, replacing old file.
38738         (struct sigvec): New type, copied from old signal.h definition.
38739         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
38740         (__sigvec): Convert definition to prototype.
38741         (sigvec): Replace weak_alias with compat_symbol.
38742         * signal/Versions (libc: GLIBC_2.21): New version set.
38743         * include/signal.h: Remove __sigvec declaration.
38744         * sysdeps/unix/bsd/sigvec.c: Remove file.
38745         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
38746         * manual/signal.texi (BSD Handler): Remove subsection.
38747         Move siginterrupt up to ...
38748         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
38749         (Blocking in BSD): Fold subsection into its parent.
38750         * NEWS: Mention sigvec removal.
38751
38752 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38753
38754         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
38755         (DLA_FMS): Make definition conditional only on [__FMA4__].
38756         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
38757         definition.
38758
38759         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
38760         Make definition conditional only on [PROF].
38761         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
38762         definition.
38763         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
38764         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
38765
38766         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
38767         !__GNUC__].
38768         * include/signal.h (__sigpause): Move declaration above call to
38769         libc_hidden_proto.
38770         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
38771         variable.
38772         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38773         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38774
38775 2014-11-14  David S. Miller  <davem@davemloft.net>
38776
38777         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
38778         Define before including <string/memcpy.c> and <string/mempcpy.c>.
38779
38780 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
38781
38782         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
38783         * configure: Regenerated.
38784         * manual/install.texi (Tools for Compilation): Document a
38785         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
38786         compiler verified to work.
38787         * INSTALL: Regenerated.
38788
38789         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
38790         redeclare with asm name.
38791         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
38792         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
38793         including <string.h>.
38794         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38795         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
38796         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38797         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
38798         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38799         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
38800         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
38801
38802 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
38803
38804         * stdlib/strtol.c (__strtol): Use prototype definition.
38805
38806         [BZ #17594]
38807         * stdlib/strtol.c (SYM__): New macro.
38808         (SYM__1): Likewise.
38809         (__strtol): Likewise.
38810         (strtol): Rename to __strtol and define as weak alias of
38811         __strtol.  Use libc_hidden_weak.
38812
38813 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38814
38815         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
38816         Use numbered labels in inline assembly.
38817
38818 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38819
38820         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
38821         Add setjmp LIBC_PROBE.
38822         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
38823         Likewise.
38824         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
38825         Add longjmp, longjmp_target LIBC_PROBE.
38826         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
38827         Likewise.
38828
38829 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38830
38831         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
38832         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
38833         to get rid of unused variable warning.
38834
38835 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
38836
38837         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
38838         Check for unwind_backtrace ==  NULL only in SHARED case.
38839         (__backchain_backtrace): Compile only in SHARED case.
38840         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
38841         Likewise.
38842         (__backchain_backtrace): Declare as static.
38843
38844 2014-11-12  Roland McGrath  <roland@hack.frob.com>
38845
38846         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
38847         (__libc_multiple_threads_ptr): Variable moved ...
38848         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
38849
38850 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
38851
38852         * conform/GlibcConform.pm: New file.
38853         * conform/conformtest.pl: Use GlibcConform module.
38854         * conform/linknamespace.pl: New file.
38855         * conform/list-header-symbols.pl: Likewise.
38856         * conform/Makefile (linknamespace-symlists-base): New variable.
38857         (linknamespace-symlists-tests): Likewise.
38858         (linknamespace-header-base): Likewise.
38859         (linknamespace-header-tests): Likewise.
38860         (tests-special): Add new tests.
38861         ($(linknamespace-symlists-tests)): New rule.
38862         (linknamespace-libs): New variable.
38863         ($(objpfx)symlist-stdlibs): New rule.
38864         ($(linknamespace-header-tests)): Likewise.
38865         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
38866         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
38867         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
38868         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
38869         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
38870         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
38871         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
38872         (test-xfail-ISO/math.h/linknamespace): Likewise.
38873         (test-xfail-ISO/signal.h/linknamespace): Likewise.
38874         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
38875         (test-xfail-ISO/time.h/linknamespace): Likewise.
38876         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
38877         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
38878         (test-xfail-ISO99/math.h/linknamespace): Likewise.
38879         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
38880         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
38881         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
38882         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
38883         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
38884         (test-xfail-ISO11/math.h/linknamespace): Likewise.
38885         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
38886         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
38887         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
38888         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
38889         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
38890         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
38891         (test-xfail-XPG3/math.h/linknamespace): Likewise.
38892         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
38893         (test-xfail-XPG3/search.h/linknamespace): Likewise.
38894         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
38895         (test-xfail-XPG3/time.h/linknamespace): Likewise.
38896         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
38897         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
38898         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
38899         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
38900         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
38901         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
38902         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
38903         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
38904         (test-xfail-XPG4/math.h/linknamespace): Likewise.
38905         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
38906         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
38907         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
38908         (test-xfail-XPG4/search.h/linknamespace): Likewise.
38909         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
38910         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
38911         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
38912         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
38913         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
38914         (test-xfail-XPG4/time.h/linknamespace): Likewise.
38915         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
38916         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
38917         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
38918         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
38919         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
38920         (test-xfail-POSIX/math.h/linknamespace): Likewise.
38921         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
38922         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
38923         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
38924         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
38925         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
38926         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
38927         (test-xfail-POSIX/time.h/linknamespace): Likewise.
38928         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
38929         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
38930         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
38931         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
38932         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
38933         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
38934         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
38935         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
38936         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
38937         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
38938         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
38939         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
38940         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
38941         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
38942         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
38943         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
38944         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
38945         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
38946         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
38947         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
38948         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
38949         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
38950         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
38951         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
38952         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
38953         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
38954         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
38955         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
38956         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
38957         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
38958         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
38959         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
38960         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
38961         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
38962         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
38963         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
38964         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
38965         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
38966         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
38967         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
38968         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
38969         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
38970         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
38971         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
38972         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
38973         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
38974         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
38975         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
38976         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
38977         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
38978         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
38979         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
38980         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
38981         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
38982         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
38983         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
38984         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
38985         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
38986         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
38987         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
38988         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
38989         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
38990         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
38991         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
38992         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
38993         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
38994         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
38995         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
38996         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
38997         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
38998         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
38999         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
39000         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
39001         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
39002         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
39003         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
39004         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
39005         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
39006         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
39007         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
39008         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
39009         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
39010         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
39011         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
39012         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
39013         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
39014         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
39015         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
39016         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
39017         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
39018         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
39019         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
39020         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
39021         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
39022         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
39023         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
39024         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
39025         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
39026
39027         [BZ #17589]
39028         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
39029         of fgets_unlocked.
39030
39031         [BZ #17585]
39032         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
39033         (memmem): Rename to __memmem and define as weak alias of
39034         __memmem.  Use libc_hidden_weak.
39035         (__memmem): Use libc_hidden_def.
39036         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
39037         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
39038         memmem.
39039
39040         [BZ #17582]
39041         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
39042         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
39043         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
39044         and define as weak alias of __fgets_unlocked.  Use
39045         libc_hidden_weak.
39046         (__fgets_unlocked): Use libc_hidden_def.
39047         * include/stdio.h (__fgets_unlocked): Declare.  Use
39048         libc_hidden_proto.
39049         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
39050         __fgets_unlocked instead of fgets_unlocked.
39051         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
39052         (GET_NPROCS_CONF_PARSER): Likewise.
39053         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
39054         (GET_NPROCS_CONF_PARSER): Likewise.
39055
39056         [BZ #17574]
39057         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
39058         weak alias of __wmemset.  Use libc_hidden_weak.
39059         (__wmemset): Use libc_hidden_def.
39060         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
39061         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
39062         of wmemset.
39063
39064         [BZ #17573]
39065         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
39066         with asm name __mempcpy.
39067         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
39068
39069         [BZ #17572]
39070         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
39071         and define as weak alias of __rawmemchr.
39072         (__rawmemchr): Do not define as strong alias of rawmemchr.
39073
39074         [BZ #17571]
39075         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
39076         alias of __qsort_r.
39077         (qsort): Call __qsort_r instead of qsort_r.
39078         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
39079         (__qsort_r): Declare.  Call libc_hidden_proto.
39080         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
39081         instead of qsort_r.
39082         * nscd/gai.c (__qsort_r): Define to qsort_r.
39083         * posix/tst-rfc3484.c (__qsort_r): Likewise.
39084         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
39085         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
39086
39087         [BZ #17570]
39088         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
39089         define as weak alias of __malloc_info.
39090
39091         [BZ #17584]
39092         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
39093         as weak alias of __rewinddir.  Don't use libc_hidden_def.
39094         (__rewinddir): Use libc_hidden_def.
39095         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
39096         as weak alias of __rewinddir.  Don't use libc_hidden_def.
39097         (__rewinddir): Use libc_hidden_def.
39098         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
39099         weak alias of __rewinddir.  Don't use libc_hidden_def.
39100         (__rewinddir): Use libc_hidden_def.
39101         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
39102         (__rewinddir): Use libc_hidden_proto.
39103         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
39104         rewinddir.
39105         (__getcwd): Use __rewinddir instead of rewinddir.
39106
39107         [BZ #17583]
39108         * libio/fileno.c (fileno): Rename to __fileno and define as weak
39109         alias of __fileno.  Use libc_hidden_weak.
39110         (__fileno): Use libc_hidden_def.
39111         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
39112         * libio/ftello.c (ftello): Rename to __ftello and define as weak
39113         alias of __ftello.
39114         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
39115         __ftello.
39116         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
39117         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
39118         libc_hidden_def.
39119         (fread_unlocked): Don't use libc_hidden_ver.
39120         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
39121         and define as weak alias of __fread_unlocked.  Don't use
39122         libc_hidden_def.
39123         (__fread_unlocked): Use libc_hidden_def.
39124         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
39125         (ftello): Don't use libc_hidden_proto.
39126         (__ftello): Declare.  Use libc_hidden_proto.
39127         (fread_unlocked): Don't use libc_hidden_proto.
39128         (__fread_unlocked): Declare.  Use libc_hidden_proto.
39129         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
39130         and __ftello instead of fileno, fread_unlocked and ftello.
39131
39132 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
39133
39134         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
39135         GOT12.
39136         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
39137         Likewise.
39138         (_dl_start_user): Likewise.
39139         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
39140
39141 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
39142             Siddhesh Poyarekar  <siddhesh@redhat.com>
39143
39144         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
39145         Move argv and envp down instead of moving argc up.
39146         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
39147
39148 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
39149
39150         [BZ #17506]
39151         * test-skeleton.c (main): Return successful if one of
39152         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
39153         * string/tst-strcoll-overflow.c: Define expected status.
39154
39155 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
39156
39157         [BZ #17475]
39158         * locale/iso-639.def: Define Bhili and Tulu language codes.
39159
39160 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
39161
39162         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
39163
39164 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
39165
39166         [BZ #17555]
39167         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
39168
39169 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
39170
39171         * configure.ac: Updated check of minimal required version to
39172         2.22.
39173         * manual/install.texi (Tools for Compilation): Updated version
39174         number.
39175         * configure: Regenerated.
39176         * INSTALL: Likewise.
39177
39178 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
39179
39180         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
39181         __tls_get_addr.
39182
39183 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
39184
39185         * include/sys/wait.h (__libc_waitpid): Remove declaration.
39186         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
39187         (__waitpid): Don't define as alias.  Use libc_hidden_def not
39188         libc_hidden_weak.
39189         (waitpid): Define as alias of __waitpid.
39190         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
39191         __waitpid.
39192         (__waitpid): Don't define as alias.  Use libc_hidden_def not
39193         libc_hidden_weak.
39194         (waitpid): Define as alias of __waitpid.
39195         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
39196         __libc_waitpid alias.
39197         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
39198         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
39199         Likewise.
39200         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
39201         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
39202         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
39203         alias.
39204         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
39205         __waitpid.
39206         (__waitpid): Don't define as alias.  Use libc_hidden_def not
39207         libc_hidden_weak.
39208         (waitpid): Define as alias of __waitpid.
39209
39210 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
39211
39212         * manual/llio.texi: Add comment that write safety has been
39213         fixed in Linux.
39214
39215         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
39216         (localplt-build-dso): Add elf/ld.so.
39217         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
39218         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
39219         and free for ld.so.
39220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
39221         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
39222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
39223         Likewise.
39224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
39225         Likewise.
39226         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
39227         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
39228         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
39229         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
39230         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
39231         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
39232         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
39233         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
39234         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
39235         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
39236         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
39237
39238 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
39239
39240         [BZ #14132]
39241         * include/libc-symbols.h (INTUSE): Remove macro.
39242         (INTDEF): Likewise.
39243         (INTVARDEF): Likewise.
39244         (_INTVARDEF): Likewise.
39245         (INTDEF2): Likewise.
39246         (INTVARDEF2): Likewise.
39247         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
39248         rtld_hidden_def instead of INTVARDEF.
39249         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
39250         (_dl_starting_up_internal): Remove declaration.
39251         (_dl_starting_up): Use rtld_hidden_proto.
39252         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
39253         declaration.
39254         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
39255         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
39256         _dl_starting_up.
39257         * elf/dl-writev.h (_dl_writev): Likewise.
39258         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
39259         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
39260         _dl_starting_up_internal.
39261
39262 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39263
39264         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
39265         test-skeleton.c.
39266
39267 2014-11-05  Will Newton  <will.newton@linaro.org>
39268
39269         * benchtests/Makefile: (bench-malloc): Add malloc thread
39270         scalability benchmark.
39271         * benchtests/bench-malloc-threads.c: New file.
39272
39273 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
39274
39275         * sysdeps/aarch64/strchrnul.S: New file.
39276
39277 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39278
39279         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
39280         definition.
39281         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
39282         Likewise.
39283         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
39284         Likewise.
39285         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
39286         Likewise.
39287         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
39288         Likewise.
39289         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
39290         Likewise.
39291
39292 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
39293
39294         * catgets/test-gencat.c: Use test-skeleton.c.
39295         * catgets/tst-catgets.c: Likewise.
39296         * csu/tst-empty.c: Likewise.
39297         * elf/tst-audit2.c: Likewise.
39298         * elf/tst-global1.c: Likewise.
39299         * elf/tst-pathopt.c: Likewise.
39300         * elf/tst-piemod1.c: Likewise.
39301         * elf/tst-tls10.c: Likewise.
39302         * elf/tst-tls11.c: Likewise.
39303         * elf/tst-tls12.c: Likewise.
39304         * gnulib/tst-gcc.c: Likewise.
39305         * iconvdata/tst-e2big.c: Likewise.
39306         * iconvdata/tst-loading.c: Likewise.
39307         * iconv/tst-iconv1.c: Likewise.
39308         * iconv/tst-iconv2.c: Likewise.
39309         * inet/test-inet6_opt.c: Likewise.
39310         * inet/tst-gethnm.c: Likewise.
39311         * inet/tst-network.c: Likewise.
39312         * inet/tst-ntoa.c: Likewise.
39313         * intl/tst-codeset.c: Likewise.
39314         * intl/tst-gettext2.c: Likewise.
39315         * intl/tst-gettext3.c: Likewise.
39316         * intl/tst-ngettext.c: Likewise.
39317         * intl/tst-translit.c: Likewise.
39318         * io/test-stat.c: Likewise.
39319         * libio/test-fmemopen.c: Likewise.
39320         * libio/tst-freopen.c: Likewise.
39321         * libio/tst-sscanf.c: Likewise.
39322         * libio/tst-ungetwc1.c: Likewise.
39323         * libio/tst-ungetwc2.c: Likewise.
39324         * libio/tst-widetext.c: Likewise.
39325         * localedata/tst-ctype.c: Likewise.
39326         * localedata/tst-digits.c: Likewise.
39327         * localedata/tst-leaks.c: Likewise.
39328         * localedata/tst-mbswcs1.c: Likewise.
39329         * localedata/tst-mbswcs2.c: Likewise.
39330         * localedata/tst-mbswcs3.c: Likewise.
39331         * localedata/tst-mbswcs4.c: Likewise.
39332         * localedata/tst-mbswcs5.c: Likewise.
39333         * localedata/tst-setlocale.c: Likewise.
39334         * localedata/tst-trans.c: Likewise.
39335         * localedata/tst-wctype.c: Likewise.
39336         * localedata/tst-xlocale1.c: Likewise.
39337         * login/tst-grantpt.c: Likewise.
39338         * malloc/tst-calloc.c: Likewise.
39339         * malloc/tst-malloc.c: Likewise.
39340         * malloc/tst-mallocstate.c: Likewise.
39341         * malloc/tst-mcheck.c: Likewise.
39342         * malloc/tst-mtrace.c: Likewise.
39343         * malloc/tst-obstack.c: Likewise.
39344         * math/atest-exp2.c: Likewise.
39345         * math/atest-exp.c: Likewise.
39346         * math/atest-sincos.c: Likewise.
39347         * math/test-matherr.c: Likewise.
39348         * math/test-misc.c: Likewise.
39349         * math/test-powl.c: Likewise.
39350         * math/tst-definitions.c: Likewise.
39351         * misc/tst-dirname.c: Likewise.
39352         * misc/tst-efgcvt.c: Likewise.
39353         * misc/tst-fdset.c: Likewise.
39354         * misc/tst-hsearch.c: Likewise.
39355         * misc/tst-mntent2.c: Likewise.
39356         * nptl/tst-sem7.c: Likewise.
39357         * nptl/tst-sem8.c: Likewise.
39358         * nptl/tst-sem9.c: Likewise.
39359         * nss/test-netdb.c: Likewise.
39360         * posix/tst-fnmatch.c: Likewise.
39361         * posix/tst-getlogin.c: Likewise.
39362         * posix/tst-gnuglob.c: Likewise.
39363         * posix/tst-mmap.c: Likewise.
39364         * pwd/tst-getpw.c: Likewise.
39365         * resolv/tst-inet_ntop.c: Likewise.
39366         * rt/tst-timer.c: Likewise.
39367         * stdio-common/test-fseek.c: Likewise.
39368         * stdio-common/test-popen.c: Likewise.
39369         * stdio-common/test-vfprintf.c: Likewise.
39370         * stdio-common/tst-cookie.c: Likewise.
39371         * stdio-common/tst-fileno.c: Likewise.
39372         * stdio-common/tst-gets.c: Likewise.
39373         * stdio-common/tst-obprintf.c: Likewise.
39374         * stdio-common/tst-perror.c: Likewise.
39375         * stdio-common/tst-sprintf2.c: Likewise.
39376         * stdio-common/tst-sprintf3.c: Likewise.
39377         * stdio-common/tst-sprintf.c: Likewise.
39378         * stdio-common/tst-swprintf.c: Likewise.
39379         * stdio-common/tst-tmpnam.c: Likewise.
39380         * stdio-common/tst-unbputc.c: Likewise.
39381         * stdio-common/tst-wc-printf.c: Likewise.
39382         * stdlib/tst-environ.c: Likewise.
39383         * stdlib/tst-fmtmsg.c: Likewise.
39384         * stdlib/tst-limits.c: Likewise.
39385         * stdlib/tst-rand48-2.c: Likewise.
39386         * stdlib/tst-rand48.c: Likewise.
39387         * stdlib/tst-random2.c: Likewise.
39388         * stdlib/tst-random.c: Likewise.
39389         * stdlib/tst-strtol.c: Likewise.
39390         * stdlib/tst-strtoll.c: Likewise.
39391         * stdlib/tst-tls-atexit.c: Likewise.
39392         * stdlib/tst-xpg-basename.c: Likewise.
39393         * string/test-ffs.c: Likewise.
39394         * string/tst-bswap.c: Likewise.
39395         * string/tst-inlcall.c: Likewise.
39396         * string/tst-strtok.c: Likewise.
39397         * string/tst-strxfrm.c: Likewise.
39398         * sysdeps/x86_64/tst-audit10.c: Likewise.
39399         * sysdeps/x86_64/tst-audit3.c: Likewise.
39400         * sysdeps/x86_64/tst-audit4.c: Likewise.
39401         * sysdeps/x86_64/tst-audit5.c: Likewise.
39402         * time/tst-ftime_l.c: Likewise.
39403         * time/tst-getdate.c: Likewise.
39404         * time/tst-mktime3.c: Likewise.
39405         * time/tst-mktime.c: Likewise.
39406         * time/tst-posixtz.c: Likewise.
39407         * time/tst-strptime2.c: Likewise.
39408         * time/tst-strptime3.c: Likewise.
39409         * wcsmbs/tst-btowc.c: Likewise.
39410         * wcsmbs/tst-mbrtowc.c: Likewise.
39411         * wcsmbs/tst-mbsrtowcs.c: Likewise.
39412         * wcsmbs/tst-wchar-h.c: Likewise.
39413         * wcsmbs/tst-wcpncpy.c: Likewise.
39414         * wcsmbs/tst-wcrtomb.c: Likewise.
39415         * wcsmbs/tst-wcsnlen.c: Likewise.
39416         * wcsmbs/tst-wcstof.c: Likewise.
39417
39418 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
39419
39420         [BZ #14132]
39421         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
39422         INTDEF.
39423         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
39424         declaration.
39425         (_dl_mcount): Use rtld_hidden_proto.
39426         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
39427         _dl_mcount.
39428         * elf/rtld.c (_rtld_global_ro): Likewise.
39429
39430         [BZ #14132]
39431         * elf/dl-init.c (_dl_init): Don't use INTDEF.
39432         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
39433         of _dl_init_internal.
39434         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
39435         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
39436         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
39437         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
39438         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
39439         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
39440         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
39441         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
39442         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
39443         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
39444         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
39445         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
39446         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39447         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39448         * sysdeps/tile/dl-start.S (_start): Likewise.
39449         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
39450         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
39451
39452         [BZ #14132]
39453         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
39454         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
39455         (rtld_progname): Make macro definition unconditional.
39456         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
39457         INTDEF.
39458         (dlmopen_doit): Do not use INTUSE with _dl_argv.
39459         (dl_main): Likewise.
39460         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
39461         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
39462         instead of _dl_argv_internal.
39463         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
39464         __GI__dl_argv instead of INTUSE(_dl_argv).
39465         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
39466         __GI__dl_argv instead of _dl_argv_internal.
39467
39468         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
39469         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
39470         macro.
39471         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
39472         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
39473         New macro.
39474         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
39475         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
39476         macro.
39477         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
39478         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
39479
39480 2014-11-04  Andreas Schwab  <schwab@suse.de>
39481
39482         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
39483
39484 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39485
39486         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
39487         mtvsrd instruction in binary form.
39488
39489 2014-11-03  Andreas Schwab  <schwab@suse.de>
39490
39491         [BZ #17522]
39492         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
39493         for less than MB_LEN_MAX use a local buffer of that size.
39494         * libio/tst-fputws.c: New file.
39495         * libio/Makefile (tests): Add tst-fputws.
39496
39497 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
39498
39499         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
39500         the size of the fpu_fr.fpu_dregs[] array.
39501
39502 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
39503
39504         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
39505         (__nanosleep): Do not define as alias.
39506         (nanosleep): Define as alias of __nanosleep.
39507         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
39508         __libc_nanosleep name.
39509
39510 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39511
39512         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
39513         install.texi in comment.
39514
39515 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39516
39517         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
39518         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
39519         ... add here and use lwsync or sync ...
39520         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
39521         ... and add here using lwsync.
39522
39523 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
39524
39525         * elf/dl-machine-reject-phdr.h: New file.
39526         * elf/dl-load.c: #include that.
39527         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
39528         if that returned true.
39529
39530 2014-10-31  Roland McGrath  <roland@hack.frob.com>
39531
39532         [BZ #17496]
39533         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
39534         gen-as-const-headers chunk.  Add a big scare comment after the last
39535         safe place to touch before-compile.
39536
39537 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
39538
39539         * manual/install.texi (Tools for Compilation): Update autoconf
39540         version requirements.
39541         * INSTALL: Regenerated.
39542
39543         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
39544         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
39545         (__libc_pselect): Likewise.
39546
39547         [BZ #14138]
39548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
39549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
39550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
39551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
39552
39553 2014-10-31  Torvald Riegel  <triegel@redhat.com>
39554
39555         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
39556         correct barrier instruction.
39557         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
39558         Likewise.
39559         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
39560         Likewise.
39561
39562 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39563
39564         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
39565         after defining inlines.  Instead, just use parens to defeat macro
39566         expansion of __isctype in its declaration.
39567
39568 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39569
39570         * include/sys/uio.h (__libc_readv): Remove declaration.
39571         (__libc_writev): Likewise.
39572         * misc/readv.c (__libc_readv): Rename to __readv.
39573         (__readv): Do not define as alias.
39574         (readv): Define as alias of __readv.
39575         * misc/writev.c (__libc_writev): Rename to __writev.
39576         (__writev): Do not define as alias.
39577         (writev): Define as alias of __writev.
39578         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
39579         (__readv): Do not define as alias.
39580         (readv): Define unconditionally as alias of __readv.
39581         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
39582         (__writev): Do not define as alias.
39583         (writev): Define unconditionally as alias of __writev.
39584         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
39585         name.
39586         (writev): Do not define __libc_writev name.
39587
39588 2014-10-30  Roland McGrath  <roland@hack.frob.com>
39589
39590         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
39591         (convert_charseq): New function, broken out of ...
39592         (use_from_charmap): ... here.  Call it.
39593         (use_to_charmap): Use convert_charseq and free instead of duplicating
39594         its code with a variable-length stack struct.
39595
39596 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
39597
39598         * include/fcntl.h (__libc_creat): Remove declaration.
39599         * io/creat.c (__libc_creat): Rename to creat.
39600         (creat): Do not define as alias.
39601         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
39602         of creat instead of __libc_creat.
39603         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
39604         to creat.
39605         (creat): Do not define as alias.
39606         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
39607         __libc_creat.
39608         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
39609         __libc_creat name.
39610         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
39611         Likewise.
39612
39613 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
39614
39615         * manual/llio.texi: Add comments discussing why write() may be
39616         considered MT-unsafe on Linux.
39617
39618 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
39619
39620         * dl-load.c (local_strdup): Remove.
39621         (expand_dynamic_string_token): Use __strdup.
39622         (decompose_rpath): Likewise.
39623         (_dl_map_object): Likewise.
39624
39625 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
39626
39627         [BZ #14132]
39628         * sysdeps/generic/unwind-dw2-fde.c
39629         (__register_frame_info_bases_internal): Do not declare.
39630         (__register_frame_info_table_bases_internal): Likewise.
39631         (__deregister_frame_info_bases_internal): Likewise.
39632         (__register_frame_info_bases): Declare and use hidden_proto before
39633         definition.  Use hidden_def instead of INTDEF.
39634         (__register_frame_info_table_bases): Likewise.
39635         (__deregister_frame_info_bases): Likewise.
39636         (__register_frame_info): Do not use INTUSE.
39637         (__register_frame): Likewise.
39638         (__register_frame_info_table): Likewise.
39639         (__register_frame_table): Likewise.
39640         (__deregister_frame_info): Likewise.
39641         (__deregister_frame): Likewise.
39642
39643 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
39644
39645         * sysdeps/unix/sysv/linux/arm/kernel-features.h
39646         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
39647         not undefine.
39648         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
39649         Likewise.
39650         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
39651         Likewise.
39652
39653 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
39654
39655         [BZ #14138]
39656         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
39657         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
39658         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
39659         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
39660         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
39661         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
39662         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
39663         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
39664         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
39665         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
39666         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
39667         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
39668         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
39669         syscall.
39670         (setfsuid): Likewise.
39671         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
39672         (setfsuid): Likewise.
39673         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
39674         (setfsuid): Likewise.
39675         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
39676         Likewise.
39677         (setfsuid): Likewise.
39678         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
39679         (setfsuid): Likewise.
39680         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
39681         Likewise.
39682         (setfsuid): Likewise.
39683
39684 2014-10-27  Andreas Schwab  <schwab@suse.de>
39685
39686         [BZ #17501]
39687         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
39688         check for Slow_SSE4_2 feature bit.
39689         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
39690         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
39691         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
39692         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
39693
39694 2014-10-24  Roland McGrath  <roland@hack.frob.com>
39695
39696         * configure.ac: Validate compiler version with a empirical test of
39697         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
39698         $CC -v output.
39699         * configure: Regenerated.
39700
39701         * inet/htons.c (htons): Prototypify.
39702         * inet/htonl.c (htonl): Likewise.
39703
39704 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39705
39706         * string/strncat.c (strncat): Improve performance by using strlen.
39707
39708 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39709
39710         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
39711
39712 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39713
39714         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
39715         Call libc_fetestexcept_aarch64.
39716
39717 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39718
39719         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
39720         Call libc_feholdexcept_aarch64.
39721
39722 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39723
39724         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
39725         Call get_rounding_mode.
39726
39727 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39728
39729         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
39730         Simplify logic.
39731
39732 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
39733
39734         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
39735         Simplify logic.
39736
39737 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
39738
39739         [BZ #14138]
39740         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
39741         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
39742         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
39743         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
39744         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
39745         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
39746         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
39747         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
39748         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
39749         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
39750         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
39751         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
39752         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
39753         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
39754         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
39755         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
39756         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
39757         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
39758         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
39759         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
39760         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
39761         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
39762         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
39763         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
39764         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
39765         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
39766         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
39767         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
39768         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
39769         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
39770         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
39771         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
39772         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
39773         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
39774         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
39775         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
39776         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
39777         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
39778         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
39779         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
39780         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
39781         syscall.
39782         (geteuid): Likewise.
39783         (getgid): Likewise.
39784         (getuid): Likewise.
39785         (getresgid): Likewise.
39786         (getresuid): Likewise.
39787         (getgroups): Likewise.
39788         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
39789         (geteuid): Likewise.
39790         (getgid): Likewise.
39791         (getuid): Likewise.
39792         (getresgid): Likewise.
39793         (getresuid): Likewise.
39794         (getgroups): Likewise.
39795         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
39796         (geteuid): Likewise.
39797         (getgid): Likewise.
39798         (getuid): Likewise.
39799         (getresgid): Likewise.
39800         (getresuid): Likewise.
39801         (getgroups): Likewise.
39802         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
39803         Likewise.
39804         (geteuid): Likewise.
39805         (getgid): Likewise.
39806         (getuid): Likewise.
39807         (getresgid): Likewise.
39808         (getresuid): Likewise.
39809         (getgroups): Likewise.
39810         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
39811         (geteuid): Likewise.
39812         (getgid): Likewise.
39813         (getuid): Likewise.
39814         (getresgid): Likewise.
39815         (getresuid): Likewise.
39816         (getgroups): Likewise.
39817         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
39818         Likewise.
39819         (geteuid): Likewise.
39820         (getgid): Likewise.
39821         (getuid): Likewise.
39822         (getgroups): Likewise.
39823
39824         [BZ #14138]
39825         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
39826         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
39827         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
39828         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
39829         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
39830         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
39831         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
39832         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
39833         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
39834         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
39835         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
39836         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
39837         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
39838         __chown.
39839         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
39840         (lchown): Likewise.
39841         (fchown): Likewise.
39842         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
39843         Likewise.
39844         (lchown): Likewise.
39845         (fchown): Likewise.
39846         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
39847         (lchown): Likewise.
39848         (fchown): Likewise.
39849         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
39850         Likewise.
39851         (lchown): Likewise.
39852         (fchown): Likewise.
39853
39854 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39855
39856         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
39857         Simplify logic.
39858
39859 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39860
39861         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39862         Cleanup logic.
39863
39864 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39865
39866         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
39867         Remove unused include.
39868
39869 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
39870
39871         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
39872         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
39873         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
39874         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
39875
39876 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
39877             Helge Deller <deller@gmx.de>
39878
39879         [BZ #17508]
39880         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
39881         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
39882         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
39883
39884 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
39885
39886         [BZ #14132]
39887         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
39888         Remove macro definition.
39889         (__ashrdi3_v_glibc20): Likewise.
39890         (__lshrdi3_v_glibc20): Likewise.
39891         (__cmpdi2_v_glibc20): Likewise.
39892         (__ucmpdi2_v_glibc20): Likewise.
39893         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
39894         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39895         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39896         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39897         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39898         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
39899
39900 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39901
39902         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
39903         old GNU extension [0] syntax.
39904         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
39905         alloca rather than an array member with variable length.
39906         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
39907         * nscd/nscd.c (invalidate_db): New function, broken out of ...
39908         (parse_opt): ... here.  Likewise use alloca there.
39909         Validate the -i argument before checking for rootness.
39910         (send_shutdown): New function, broken out of ...
39911         (parse_opt): ... here.
39912
39913 2014-10-22  Roland McGrath  <roland@hack.frob.com>
39914
39915         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
39916         macro to get at the _rt_local_ro field.
39917         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
39918         ([PIC] case) or _dl_hwcap ([!PIC] case).
39919         * sysdeps/arm/setjmp.S: Likewise.
39920
39921         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
39922         * sysdeps/arm/configure.ac: New check to define it.
39923         * sysdeps/arm/configure: Regenerated.
39924         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
39925         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
39926         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
39927         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
39928         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
39929         Use move/movt pair instead of a load.
39930         (LDST_GLOBAL): Macro removed.
39931         (LDR_GLOBAL): New macro replaces it.
39932         (LDR_HIDDEN): New macro.
39933         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
39934         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
39935
39936         * setjmp/tst-setjmp-static.c: New file.
39937         * setjmp/Makefile (tests): Add it.
39938         (tests-static): New variable.
39939
39940 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
39941
39942         [BZ #17485]
39943         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
39944
39945 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
39946
39947         [BZ #14132]
39948         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
39949
39950 2014-10-21  Roland McGrath  <roland@hack.frob.com>
39951
39952         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
39953
39954 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39955
39956         * io/fts.c (dirent_not_directory): New function.
39957         (fts_build): Call it.
39958
39959 2014-10-20  Roland McGrath  <roland@hack.frob.com>
39960
39961         * nptl/version.c (__nptl_main): Use normal __write rather than
39962         INTERNAL_SYSCALL.
39963         (banner): Update copyright years.
39964
39965         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
39966         gettimeofday.
39967         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
39968         * nptl/pthread_cond_timedwait.c: Likewise.
39969         * nptl/pthread_mutex_timedlock.c: Likewise.
39970         * nptl/sem_timedwait.c: Likewise.
39971
39972         * sysdeps/nptl/bits/libc-lock.h
39973         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
39974         (__libc_lock_init_recursive): Return void, not 0.
39975         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
39976         (__libc_rwlock_init): Likewise.
39977         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
39978
39979 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39980
39981         [BZ #15215]
39982         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
39983         (__pthread_once_slow): ... here.
39984         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
39985         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
39986
39987 2014-10-20  Torvald Riegel  <triegel@redhat.com>
39988
39989         [BZ #15215]
39990         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
39991         __PTHREAD_ONCE_FORK_GEN_INCR): New.
39992         * sysdeps/nptl/fork.c (__libc_fork): Use them.
39993         * nptl/pthread_once.c (__pthread_once): Likewise.
39994         Update comments.
39995
39996 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
39997
39998         [BZ #14138]
39999         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
40000         name.
40001         (writev): Use __libc_writev as strong name.
40002         * sysdeps/unix/sysv/linux/readv.c: Remove file.
40003         * sysdeps/unix/sysv/linux/writev.c: Likewise.
40004
40005 2014-10-17  Roland McGrath  <roland@hack.frob.com>
40006
40007         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
40008
40009         * sysdeps/i386/nptl/tls.h
40010         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
40011         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
40012         New macros.
40013         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
40014         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
40015         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
40016         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
40017         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
40018         Call CHECK_THREAD_SYSINFO instead of doing an assert.
40019
40020         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
40021         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
40022         on [__NR_futex].
40023         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
40024         broken out of ...
40025         (__pthread_mutex_init): ... here.  Call it.
40026         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
40027         Conditionalize PI cases on [__NR_futex].
40028         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
40029         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
40030         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
40031
40032         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
40033         conditional on [SIGSETXID].
40034         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
40035         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
40036         is defined.  Likewise for SIGSETXID.
40037         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
40038         Conditionalize definitions on [SIGSETXID].
40039         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
40040         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
40041         unblocking on [SIGCANCEL].
40042
40043         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
40044         [__NR_set_robust_list].
40045
40046 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
40047
40048         * string/strcoll_l.c (get_next_seq): Fix up formatting.
40049         (do_compare): Likewise.
40050
40051 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
40052
40053         [BZ #15884]
40054         * string/strcoll_l.c: Don't include stdio.h.
40055         (coll_seq): Remove members idxarr and rulearr.
40056         (get_next_seq_cached): Remove function.
40057         (get_next_seq): Likewise.
40058         (get_next_seq_nocache): Rename to get_next_seq.
40059         (do_compare): Remove function.
40060         (do_compare_nocache): Rename to do_compare.
40061         (STRCOLL): Remove weight and rules cache.
40062
40063 2014-10-16  Roland McGrath  <roland@hack.frob.com>
40064
40065         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
40066         * sysdeps/arm/sfp-machine.h: ... to here.
40067         * sysdeps/arm/Implies: Remove arm/soft-fp.
40068
40069 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
40070
40071         * conform/data/sys/utsname.h-data (*_t): Allow.
40072         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
40073         [POSIX] (WEXITED): Do not expect constant.
40074         [POSIX] (WSTOPPED): Likewise.
40075         [POSIX] (WNOHANG): Likewise.
40076         [POSIX] (WNOWAIT): Likewise.
40077         [POSIX] (siginfo_t): Do not expect type or elements.
40078         [POSIX] (pid_t): Do not expect type.
40079         [POSIX] (signal.h): Do not allow header.
40080         [POSIX] (sys/resource.h): Likewise.
40081         [POSIX] (si_*): Do not allow pattern.
40082         [POSIX] (W*): Likewise.
40083         [POSIX] (P_*): Likewise.
40084         [POSIX] (BUS_*): Likewise.
40085         [POSIX] (CLD_*): Likewise.
40086         [POSIX] (FPE_*): Likewise.
40087         [POSIX] (ILL_*): Likewise.
40088         [POSIX] (POLL_*): Likewise.
40089         [POSIX] (SEGV_*): Likewise.
40090         [POSIX] (SI_*): Likewise.
40091         [POSIX] (TRAP_*): Likewise.
40092         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
40093         variable.
40094
40095 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
40096
40097         [BZ #12926]
40098         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
40099         infinite loop when __recvmsg returns 0.
40100
40101 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
40102
40103         * CANCEL-FCT-WAIVE: Remove file.
40104         * CANCEL-FILE-WAIVE: Likewise.
40105
40106         [BZ #14132]
40107         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
40108         instead of INTVARDEF.
40109         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
40110         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
40111         rtld_hidden_data_def instead of INTVARDEF.
40112         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
40113         * elf/dl-deps.c (expand_dst): Likewise.
40114         * elf/dl-load.c (_dl_dst_count): Likewise.
40115         (_dl_dst_substitute): Likewise.
40116         (decompose_rpath): Likewise.
40117         (_dl_init_paths): Likewise.
40118         (open_path): Likewise.
40119         (_dl_map_object): Likewise.
40120         * elf/rtld.c (dl_main): Likewise.
40121         (process_dl_audit): Likewise.
40122         (process_envvars): Likewise.
40123         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
40124         Remove declaration.
40125         (__libc_enable_secure): Use rtld_hidden_proto.
40126
40127 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40128
40129         * elf/dl-load.c
40130         (add_path): New function broken out of _dl_rtld_di_serinfo.
40131         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
40132
40133 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
40134
40135         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
40136         parentheses around macro arguments.
40137         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
40138         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
40139         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
40140         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
40141         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
40142         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
40143         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
40144         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
40145         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
40146         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
40147         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
40148         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
40149         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
40150         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
40151         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
40152         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
40153         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
40154         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
40155         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
40156         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
40157         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
40158         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
40159         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
40160         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
40161         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
40162         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
40163         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
40164         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
40165         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
40166         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
40167         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
40168         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
40169         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
40170         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
40171         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
40172         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
40173         Likewise.
40174         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
40175         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
40176         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
40177         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
40178         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
40179         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
40180         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
40181         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
40182         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
40183         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
40184         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
40185         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
40186         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
40187         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
40188         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
40189         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
40190         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
40191         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
40192         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
40193         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
40194         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
40195         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
40196         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
40197         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
40198         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
40199         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
40200         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
40201         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
40202         (_FP_FRAC_SRS_1): Likewise.
40203         (_FP_FRAC_CLZ_1): Likewise.
40204         (_FP_MUL_MEAT_1_imm): Likewise.
40205         (_FP_MUL_MEAT_1_wide): Likewise.
40206         (_FP_MUL_MEAT_1_hard): Likewise.
40207         (_FP_SQRT_MEAT_1): Likewise.
40208         (_FP_FRAC_ASSEMBLE_1): Likewise.
40209         (_FP_FRAC_DISASSEMBLE_1): Likewise.
40210         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
40211         (__FP_CLZ_2): Likewise.
40212         (_FP_MUL_MEAT_2_wide): Likewise.
40213         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
40214         (_FP_MUL_MEAT_2_gmp): Likewise.
40215         (_FP_MUL_MEAT_2_120_240_double): Likewise.
40216         (_FP_SQRT_MEAT_2): Likewise.
40217         (_FP_FRAC_ASSEMBLE_2): Likewise.
40218         (_FP_FRAC_DISASSEMBLE_2): Likewise.
40219         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
40220         (_FP_FRAC_CLZ_4): Likewise.
40221         (_FP_MUL_MEAT_4_wide): Likewise.
40222         (_FP_MUL_MEAT_4_gmp): Likewise.
40223         (_FP_SQRT_MEAT_4): Likewise.
40224         (_FP_FRAC_ASSEMBLE_4): Likewise.
40225         (_FP_FRAC_DISASSEMBLE_4): Likewise.
40226         * soft-fp/op-common.h (_FP_CMP): Likewise.
40227         (_FP_CMP_EQ): Likewise.
40228         (_FP_CMP_UNORD): Likewise.
40229         (_FP_TO_INT): Likewise.
40230         (_FP_FROM_INT): Likewise.
40231         [!__FP_CLZ] (__FP_CLZ): Likewise.
40232         (_FP_DIV_HELP_imm): Likewise.
40233         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
40234         Likewise.
40235         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
40236         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
40237         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
40238         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
40239         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
40240         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
40241         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
40242         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
40243         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
40244         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
40245         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
40246         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
40247         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
40248         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
40249         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
40250         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
40251         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
40252         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
40253         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
40254         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
40255         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
40256         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
40257         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
40258         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
40259         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
40260         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
40261         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
40262         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
40263         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
40264         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
40265         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
40266         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
40267         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
40268         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
40269         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
40270         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
40271         (FP_UNPACK_RAW_SP): Likewise.
40272         (FP_PACK_RAW_S): Likewise.
40273         (FP_PACK_RAW_SP): Likewise.
40274         (FP_UNPACK_S): Likewise.
40275         (FP_UNPACK_SP): Likewise.
40276         (FP_UNPACK_SEMIRAW_S): Likewise.
40277         (FP_UNPACK_SEMIRAW_SP): Likewise.
40278         (FP_PACK_S): Likewise.
40279         (FP_PACK_SP): Likewise.
40280         (FP_PACK_SEMIRAW_S): Likewise.
40281         (FP_PACK_SEMIRAW_SP): Likewise.
40282         (_FP_SQRT_MEAT_S): Likewise.
40283         (FP_CMP_S): Likewise.
40284         (FP_CMP_EQ_S): Likewise.
40285         (FP_CMP_UNORD_S): Likewise.
40286         (FP_TO_INT_S): Likewise.
40287         (FP_FROM_INT_S): Likewise.
40288
40289         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
40290
40291         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
40292         (FP_EX_INVALID_IMZ): Likewise.
40293         (FP_EX_INVALID_IMZ_FMA): Likewise.
40294         (FP_EX_INVALID_ISI): Likewise.
40295         (FP_EX_INVALID_ZDZ): Likewise.
40296         (FP_EX_INVALID_IDI): Likewise.
40297         (FP_EX_INVALID_SQRT): Likewise.
40298         (FP_EX_INVALID_CVI): Likewise.
40299         (FP_EX_INVALID_VC): Likewise.
40300         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
40301         "invalid" exceptions.
40302         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
40303         (_FP_ADD_INTERNAL): Likewise.
40304         (_FP_MUL): Likewise.
40305         (_FP_FMA): Likewise.
40306         (_FP_DIV): Likewise.
40307         (_FP_CMP_CHECK_NAN): Likewise.
40308         (_FP_SQRT): Likewise.
40309         (_FP_TO_INT): Likewise.
40310         (FP_EXTEND): Likewise.
40311
40312 2014-10-09  Allan McRae  <allan@archlinux.org>
40313
40314         * po/fr.po: Update French translation from translation project.
40315
40316 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
40317
40318         [BZ #14132]
40319         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
40320         of INTDEF.
40321         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
40322         (__cxa_atexit): Use libc_hidden_proto.
40323         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
40324
40325         [BZ #14132]
40326         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
40327         declaration.
40328         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
40329         [!_ISOMAC] (__iswspace_l_internal): Likewise.
40330         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
40331         [!_ISOMAC] (__iswctype_internal): Likewise.
40332         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
40333         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
40334         alias.
40335         (fcntl): Remove __fcntl_internal alias.
40336         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
40337         __connect_internal alias.
40338         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
40339         Likewise.
40340
40341         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
40342         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
40343         FP_DENORM_ZERO.
40344         (_FP_CHECK_FLUSH_ZERO): New macro.
40345         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
40346         (_FP_CMP): Likewise.
40347         (_FP_CMP_EQ): Likewise.
40348         (_FP_TO_INT): Do not set inexact for subnormal arguments if
40349         FP_DENORM_ZERO.
40350         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
40351         (FP_TRUNC): Likewise.
40352
40353         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
40354         treated as invalid conversion, not as normal exponent.
40355
40356         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
40357         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
40358         (_FP_CMP_EQ): Likewise.
40359         (_FP_CMP_UNORD): Likewise.
40360         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
40361         (FP_CMP_EQ_D): Likewise.
40362         (FP_CMP_UNORD_D): Likewise.
40363         * soft-fp/extended.h (FP_CMP_E): Likewise.
40364         (FP_CMP_EQ_E): Likewise.
40365         (FP_CMP_UNORD_E): Likewise.
40366         * soft-fp/quad.h (FP_CMP_Q): Likewise.
40367         (FP_CMP_EQ_Q): Likewise.
40368         (FP_CMP_UNORD_Q): Likewise.
40369         * soft-fp/single.h (FP_CMP_S): Likewise.
40370         (FP_CMP_EQ_S): Likewise.
40371         (FP_CMP_UNORD_S): Likewise.
40372         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
40373         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
40374         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
40375         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
40376         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
40377         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
40378         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
40379         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
40380         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
40381         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
40382         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
40383         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
40384         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
40385         to FP_CMP_Q.
40386         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
40387         FP_CMP_Q.
40388         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
40389         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
40390         FP_CMP_EQ_Q.
40391         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
40392         FP_CMP_Q.
40393         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
40394         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
40395         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
40396         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
40397         FP_CMP_EQ_Q.
40398         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
40399         FP_CMP_Q.
40400         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
40401         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
40402         FP_CMP_EQ_Q.
40403         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
40404         FP_CMP_Q.
40405         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
40406         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
40407         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
40408         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
40409         FP_CMP_EQ_Q.
40410
40411         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
40412         a subnormal result, set the underflow exception if trapping on
40413         underflow is enabled.
40414         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
40415         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
40416         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
40417         redefine to 0.
40418         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
40419         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40420         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
40421         * soft-fp/extendxftf2.c (__extendxftf2): Use
40422         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
40423
40424         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
40425         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
40426         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40427         FP_HANDLE_EXCEPTIONS.
40428         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
40429         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40430         FP_HANDLE_EXCEPTIONS.
40431         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
40432         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40433         FP_HANDLE_EXCEPTIONS.
40434         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
40435         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
40436         FP_HANDLE_EXCEPTIONS.
40437
40438 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
40439
40440         [BZ #14132]
40441         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
40442         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
40443         use INTUSE.
40444         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
40445         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
40446         Remove alias.
40447         (__adjtimex): Define using libc_hidden_ver.
40448         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
40449         Remove declaration.
40450         (ntp_gettime): Call __adjtimex directly.
40451         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
40452         Remove declaration.
40453         (ntp_gettimex): Call __adjtimex directly.
40454         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
40455         __adjtimex_internal alias.
40456
40457 2014-10-08  Roland McGrath  <roland@hack.frob.com>
40458
40459         [BZ #17460]
40460         * nscd/nscd.c (more_help): Rewrite list of tables collection
40461         using xstrdup and asprintf.
40462
40463         * nscd/nscd_conf.c: Remove local xstrdup declaration.
40464
40465 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40466             Roland McGrath  <roland@hack.frob.com>
40467
40468         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
40469         (do_lookup_unique): ... local function 'enter' here; update callers.
40470
40471 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
40472
40473         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
40474         compat_symbol calls on [SHARED].
40475         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
40476         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
40477         Remove.
40478         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40479         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
40480         (oldsetrlimit): Remove.
40481         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40483         (lchown): New syscall entry.
40484         (oldsetrlimit): Remove.
40485         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40486         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
40487         (oldsetrlimit): Remove.
40488         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
40489
40490         [BZ #14138]
40491         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
40492         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
40493         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
40494         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
40495         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
40496         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
40497         (fchown): Likewise.
40498         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
40499         (fchown): Likewise.
40500         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
40501         Likewise.
40502
40503 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40504
40505         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
40506         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
40507         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
40508         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
40509         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
40510         Likewise.
40511         (__old_sem_post): Likewise.
40512
40513 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
40514
40515         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
40516         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
40517         HAVE_CLOCK_GETTIME_VSYSCALL macros.
40518         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
40519         Use INLINE_VSYSCALL macro.
40520         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
40521         __vdso_clock_gettime.
40522         * sysdeps/unix/sysv/linux/tile/init-first.c
40523         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
40524         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
40525         __vdso_clock_gettime.
40526
40527         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
40528         to set up frame more cleanly.
40529
40530         * sysdeps/tile/memcmp.c: New file.
40531
40532         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
40533
40534         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
40535         * sysdeps/tile/tilegx/strcasestr.c: New file.
40536         * sysdeps/tile/tilegx/strnlen.c: New file.
40537         * sysdeps/tile/tilegx/strstr.c: New file.
40538
40539         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
40540
40541 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
40542
40543         * nptl/tst-setuid3.c: Write errors to stdout.
40544
40545 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40546
40547         * elf/dl-deps.c
40548         (preload): New functions broken out of _dl_map_object_deps.
40549         (_dl_map_object_deps):  Remove a nested function. Update call sites.
40550
40551 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
40552
40553         [BZ #14138]
40554         * sysdeps/unix/sysv/linux/execve.c: Remove file.
40555         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
40556
40557 2014-10-01  Steve Ellcey  <sellcey@mips.com>
40558
40559         * sysdeps/mips/strcmp.S: New.
40560
40561 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
40562
40563         [BZ #14138]
40564         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
40565         (linkat): Likewise.
40566         (mkdirat): Likewise.
40567         (readlinkat): Likewise.
40568         (renameat): Likewise.
40569         (symlinkat): Likewise.
40570         (unlinkat): Likewise.
40571         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
40572         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
40573         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
40574         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
40575         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
40576         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
40577         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
40578
40579 2014-09-30  Will Newton  <will.newton@linaro.org>
40580
40581         * math/math.h: Define long double math functions if
40582         _LIBC_TEST is defined.
40583         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
40584
40585         * localedata/Makefile: Move assignment to tests-special
40586         into an ifdef testing run-built-tests.
40587         * timezone/Makefile: Likewise.
40588
40589 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
40590
40591         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
40592         with $(BASH) not $(SHELL).
40593
40594 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
40595             Matthew LeGendre  <legendre1@llnl.gov>
40596
40597         [BZ #17411]
40598         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
40599         l_reloc_result.
40600
40601 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40602
40603         * stdio-common/printf_fp.c
40604         (hack_digit): New function, broken out of ...
40605         (__printf_fp): ... local function here.  Update call sites.
40606         hack_digit now takes an additional parameter that is a pointer
40607         to a struct of the referenced locals.  Those locals moved inside
40608         the struct and references updated.
40609
40610 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
40611
40612         * aclocal.m4: Require autoconf 2.69.
40613         * configure: Regenerated.
40614         * sysdeps/aarch64/configure: Likewise.
40615         * sysdeps/alpha/configure: Likewise.
40616         * sysdeps/arm/armv7/configure: Likewise.
40617         * sysdeps/arm/configure: Likewise.
40618         * sysdeps/ia64/configure: Likewise.
40619         * sysdeps/mach/configure: Likewise.
40620         * sysdeps/mips/configure: Likewise.
40621         * sysdeps/s390/configure: Likewise.
40622         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
40623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
40624
40625         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
40626         file.
40627         * sysdeps/ia64/configure.ac: Likewise.
40628
40629 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
40630
40631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
40632         specify symbol version for ld.so.  Do not include entry for
40633         libpthread.
40634         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40635         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40636         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40637
40638         [BZ #14171]
40639         * Makeconfig [$(build-shared) = yes]
40640         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
40641         makefiles.
40642         [$(build-shared) = yes && $(soversions.mk-done) = t]
40643         ($(common-objpfx)gnu/lib-names.h): Remove rule.
40644         [$(build-shared) = yes && $(soversions.mk-done) = t]
40645         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
40646         to Makerules.
40647         [$(build-shared) = yes && $(soversions.mk-done) = t]
40648         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
40649         here.
40650         [$(build-shared) = yes && $(soversions.mk-done) = t]
40651         (common-generated): Don't append gnu/lib-names.h and
40652         gnu/lib-names.stmp here.
40653         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
40654         (lib-names-h-abi): New variable.
40655         [$(build-shared) = yes && $(soversions.mk-done) = t]
40656         (lib-names-stmp-abi): Likewise.
40657         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40658         abi-variants] (before-compile): Append
40659         $(common-objpfx)$(lib-names-h-abi).
40660         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40661         abi-variants] (common-generated): Append gnu/lib-names.h.
40662         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40663         abi-variants] (install-others-nosubdir): Depend on
40664         $(inst_includedir)/$(lib-names-h-abi).
40665         [$(build-shared) = yes && $(soversions.mk-done) = t &&
40666         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
40667         [$(build-shared) = yes && $(soversions.mk-done) = t]
40668         ($(common-objpfx)$(lib-names-h-abi)): New rule.
40669         [$(build-shared) = yes && $(soversions.mk-done) = t]
40670         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
40671         [$(build-shared) = yes && $(soversions.mk-done) = t]
40672         (common-generated): Append $(lib-names-h-abi) and
40673         $(lib-names-stmp-abi).
40674         * scripts/lib-names.awk: Do not handle multi being set.
40675         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
40676         Remove variable.
40677         (abi-lp64_be-ld-soname): Likewise.
40678         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
40679         Likewise.
40680         (abi-hard-ld-soname): Likewise.
40681         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
40682         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
40683         Remove variable.
40684         (abi-o32_hard-ld-soname): Likewise.
40685         (abi-o32_soft_2008-ld-soname): Likewise.
40686         (abi-o32_hard_2008-ld-soname): Likewise.
40687         (abi-n32_soft-ld-soname): Likewise.
40688         (abi-n32_hard-ld-soname): Likewise.
40689         (abi-n32_soft_2008-ld-soname): Likewise.
40690         (abi-n32_hard_2008-ld-soname): Likewise.
40691         (abi-n64_soft-ld-soname): Likewise.
40692         (abi-n64_hard-ld-soname): Likewise.
40693         (abi-n64_soft_2008-ld-soname): Likewise.
40694         (abi-n64_hard_2008-ld-soname): Likewise.
40695         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
40696         Likewise.
40697         (abi-64-v2-ld-soname): Likewise.
40698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
40699         ld.so entries.
40700         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
40701         variable.
40702         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
40703         entry.
40704         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
40705         variable.
40706         (abi-64-ld-soname): Likewise.
40707         (abi-x32-ld-soname): Likewise.
40708         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
40709         entry.
40710         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40711
40712 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
40713
40714         [BZ #14138]
40715         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
40716         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
40717         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
40718         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
40719         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
40720         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
40721         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
40722         syscall entry for GLIBC_2.2 symbol version.
40723         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
40724         Likewise.
40725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
40726         (setrlimit): Likewise.
40727         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
40728         Likewise.
40729
40730 2014-09-23  Will Newton  <will.newton@linaro.org>
40731
40732         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
40733         _LINUX_ARM_SYSDEP_H include guard too.
40734         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
40735         define.
40736
40737 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
40738
40739         * sysdeps/unix/sysv/linux/eventfd.c:
40740         Make first argument unsigned.
40741         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
40742         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
40743
40744 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
40745
40746         [BZ #16852]
40747         * socket/recvmmsg.c (recvmmsg): Drop const argument.
40748         * socket/sys/socket.h: Likewise.
40749         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
40750
40751 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40752
40753         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
40754
40755 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
40756
40757         * time/tst-ftime.c: New test.
40758         * time/Makefile (tests): Add tst-ftime.
40759
40760 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
40761
40762         * soft-fp/extended.h: Fix comment formatting.
40763         * soft-fp/op-1.h: Likewise.
40764         * soft-fp/op-2.h: Likewise.
40765         * soft-fp/op-4.h: Likewise.
40766         * soft-fp/op-8.h: Likewise.
40767         * soft-fp/op-common.h: Likewise.
40768         * soft-fp/soft-fp.h: Likewise.
40769
40770         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
40771
40772 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
40773
40774         [BZ #6652]
40775         * Makeconfig (soversions-default-setname): Remove variable.
40776         ($(common-objpfx)soversions.i): Don't pass default_setname to
40777         soversions.awk.
40778         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
40779         oldest_abi to abi-versions.awk.
40780         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
40781         * config.make.in (oldest-abi): Remove variable.
40782         * configure.ac (--enable-oldest-abi): Remove configure option.
40783         * configure: Regenerated.
40784         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
40785         text.
40786         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
40787         * scripts/soversions.awk: Do not handle default_setname variable.
40788         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
40789         variable.
40790         * sysdeps/mach/hurd/configure: Regenerated.
40791         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
40792         variable.
40793         * sysdeps/unix/sysv/linux/configure: Regenerated.
40794
40795 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40796
40797         * elf/Makefile (CFLAGS-interp.c): Remove.
40798         ($(elf-objpfx)runtime-linker.h): Generate header with linker
40799         path string.
40800         * elf/interp.c: Include generated runtime-linker.h
40801
40802         * Makerules (lib%.so): Don't include $(+interp) in
40803         prerequisites.
40804         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
40805         * dlfcn/eval.c: Remove file.
40806
40807         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
40808         macros.
40809
40810         [BZ #17266]
40811         * misc/sys/cdefs.h: Define __extern_always_inline for clang
40812         4.2 and newer.
40813
40814         [BZ #17370]
40815         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
40816
40817 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
40818             Jakub Jelinek  <jakub@redhat.com>
40819
40820         [BZ #17266]
40821         * libio/stdio.h: Check definition of __fortify_function
40822         instead of __extern_always_inline to include bits/stdio2.h.
40823         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
40824         check if __extern_always_inline is defined.
40825         [__USE_MISC || __USE_XOPEN]: Likewise.
40826         [__USE_ISOC99] Likewise.
40827         * misc/sys/cdefs.h (__fortify_function): Define only if
40828         __extern_always_inline is defined.
40829         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
40830         __extern_always_inline and __extern_inline only for g++-4.3
40831         and newer or a compatible gcc.
40832
40833 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
40834
40835         [BZ #17371]
40836         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
40837         last change to handle zero prefix length.
40838
40839 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
40840
40841         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
40842         _SC_REGEX_VERSION.
40843
40844         * posix/getconf.c (vars): Add _POSIX_IPV6 and
40845         _POSIX_RAW_SOCKETS.
40846
40847 2014-09-13  Allan McRae  <allan@archlinux.org>
40848
40849         * po/ru.po: Update Russian translation from translation project.
40850
40851 2014-09-12  Roland McGrath  <roland@hack.frob.com>
40852
40853         * locale/programs/locale.c (show_locale_vars): Inline local function
40854         into its sole call site.  Clean up some style nits.
40855         (print_item): New function, broken out of ...
40856         (show_info): ... local function here.  Clean up style nits.
40857
40858         * locale/programs/ld-ctype.c (set_one_default): New function, broken
40859         out of ...
40860         (set_class_defaults): ... local function set_default here.
40861         Define set_default as a macro locally to pass constant parameters.
40862         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
40863         rather than a shared local.
40864
40865         * stdlib/rpmatch.c (try): New function, broken out of ...
40866         (rpmatch): ... local function here.  Also, prototypify definition.
40867
40868 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
40869
40870         * scripts/soversions.awk: Do not handle configuration names.
40871         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
40872         vendor and os variables to soversions.awk.
40873         * configure.ac: Do not modify gnu-* host_os.
40874         * configure: Regenerated
40875         * shlib-versions: Remove first column with configuration names.
40876         * nptl/shlib-versions: Likewise.
40877         * nptl_db/shlib-versions: Likewise.
40878         * sysdeps/hppa/shlib-versions: Likewise.
40879         * sysdeps/m68k/shlib-versions: Likewise.
40880         * sysdeps/mach/hurd/shlib-versions: Likewise.
40881         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
40882         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
40883         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
40884         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
40885         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
40886         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
40887         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
40888         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
40889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40890         Likewise.
40891         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40892         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40893         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40894         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40895         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40896         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
40897         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
40898         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
40899
40900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
40901         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
40902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
40903         Regenerated.
40904         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
40905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
40906         Condition symbol version definitions on [HAVE_ELFV2_ABI].
40907
40908         * shlib-versions: Remove OS-specific entries.  Moved to files in
40909         sysdeps.
40910         * sysdeps/mach/hurd/shlib-versions: New file.
40911         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
40912
40913         * nptl/shlib-versions: Remove architecture-specific entries.
40914         Moved to files in sysdeps.
40915         * shlib-versions: Likewise.
40916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
40917         file.
40918         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
40919         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
40920         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
40921         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
40922
40923         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
40924         (UDP_NO_CHECK6_RX): Likewise.
40925
40926 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40927
40928         * sysdeps/posix/sysconf.c (__sysconf): Spell
40929         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
40930
40931 2014-08-12  Florian Weimer  <fweimer@redhat.com>
40932
40933         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
40934         loading.
40935         * iconv/Versions (__gconv_transliterate): Export for use from
40936         gconv modules.
40937         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
40938         (struct __gconv_trans_data, __gconv_trans_fct,
40939         __gconv_trans_context_fct, __gconv_trans_query_fct,
40940         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
40941         definitions.
40942         (struct __gconv_step_data): Remove __trans member.
40943         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
40944         longer hidden.  Remove unused trans_data argument.
40945         * iconv/gconv_int.h (struct trans_struct): Remove definition.
40946         (__gconv_translit_find): Remove declaration.
40947         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
40948         prototype.
40949         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
40950         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
40951         trans_data argument.  Add hidden definition.
40952         (__gconv_translit_find): Remove.
40953         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
40954         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
40955         * iconv/skeleton.c: Remove transliteration initialization.
40956         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
40957         __gconv_step_data initialization.
40958         * libio/iofwide.c (__libio_translit_): Remove.
40959         (_IO_fwide): Adjust struct __gconv_step_data initialization.
40960         * wcsmbs/btowc.c (__btowc): Likewise.
40961         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
40962         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
40963         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
40964         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
40965         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
40966         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
40967         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
40968         * wcsmbs/wctob.c (wctob): Likewise.
40969
40970 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40971
40972         [BZ #16194]
40973         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
40974         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
40975         register usage.
40976         * sysdeps/x86/Makefile: Adjust.
40977
40978 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
40979             Roland McGrath  <roland@hack.frob.com>
40980
40981         * locale/weight.h: Add include guard.
40982         (findidx): Make static rather than auto; take new parameters
40983         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
40984         * locale/weightwc.h: Likewise.
40985         * posix/fnmatch_loop.c
40986         (FCT): Change type of EXTRA from int32_t to wint_t.
40987         Don't include either header inside the function.
40988         Call FINDIDX rather than findidx, and pass new arguments.
40989         #undef FINDIDX at the end of the file.
40990         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
40991         FINDIDX before including fnmatch_loop.c for the non-wide version.
40992         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
40993         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
40994         for the wide version.
40995         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
40996         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
40997         Pass new arguments to findidx.
40998         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
40999         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
41000         Don't #include it inside the function.  Pass new arguments to findidx.
41001         * posix/regex_internal.h
41002         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
41003         (re_string_elem_size_at): Don't #include it inside the function.
41004         Pass new arguments to findidx.
41005         * string/strcoll_l.c: #include WEIGHT_H at top level.
41006         (get_next_seq): Don't #include it inside the function.
41007         Pass new arguments to findidx.
41008         (get_next_seq_nocache): Likewise.
41009         * string/strxfrm_l.c: #include WEIGHT_H at top level.
41010         (STRXFRM): Don't #include it inside the function.
41011         Pass new arguments to findidx.
41012
41013 2014-09-11  Florian Weimer  <fweimer@redhat.com>
41014
41015         [BZ #17344]
41016         * malloc/malloc.c (unlink): Turn asserts into a call to
41017         malloc_printerr.
41018
41019 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
41020
41021         [BZ #17370]
41022         * libio/wfileops (do_ftell_wide): Free OUT.
41023
41024 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
41025
41026         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
41027
41028 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41029
41030         [BZ #17363]
41031         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
41032         group if the current group is empty.
41033
41034 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41035
41036         * benchtests/bench-memset.c (test_main): Add more test from size
41037         from 32 to 512 bytes.
41038         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
41039         Add POWER8 memset object.
41040         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
41041         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
41042         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
41043         implementation.
41044         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
41045         Likewise.
41046         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
41047         multiarch POWER8 memset optimization.
41048         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
41049         POWER8 memset optimization.
41050
41051         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
41052         Remove bzero multiarch objects.
41053         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
41054         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
41055         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
41056         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
41057         Remove define.
41058         [__bzero]: Redefine to specific name.
41059         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
41060         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
41061         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
41062         define.
41063         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
41064         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
41065
41066 2014-09-10  Florian Weimer  <fweimer@redhat.com>
41067
41068         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
41069         warnings into errors.
41070
41071         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
41072         __cxa_thread_atexit_impl prototype.
41073
41074 2014-09-09  Steve Ellcey  <sellcey@mips.com>
41075
41076         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
41077         Fix capitalization of error message.
41078
41079 2014-09-09  Steve Ellcey  <sellcey@mips.com>
41080
41081         * sysdeps/mips/preconfigure: Modify ABI tests.
41082
41083 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
41084
41085         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
41086
41087 2014-09-07  Roland McGrath  <roland@hack.frob.com>
41088             Carlos O'Donell  <carlos@systemhalted.org>
41089
41090         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
41091         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
41092         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
41093         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
41094         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
41095         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
41096         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
41097         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
41098         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
41099         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
41100         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
41101         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
41102         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
41103         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
41104         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
41105         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
41106         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
41107         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
41108         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
41109         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
41110         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
41111         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
41112         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
41113         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
41114         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
41115         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
41116         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
41117         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
41118         Deconditionalize the code that was previously under [RESET_PID].
41119         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
41120         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
41121         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
41122         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
41123         include sysdep.h.
41124
41125 2014-09-08  Allan McRae  <allan@archlinux.org>
41126
41127         * version.h (RELEASE): Set to "development".
41128         (VERSION): Set to "2.20.90"
41129
41130 2014-09-07  Allan McRae  <allan@archlinux.org
41131
41132         * version.h (RELEASE): Set to "stable".
41133         (VERSION): Set to "2.20"
41134         * include/features.h (__GLIBC_MINOR__): Set to 20.
41135
41136         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
41137         Liebler.
41138
41139         * po/ko.po: Update Korean translation from translation project.
41140
41141 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
41142
41143         [BZ #17354]
41144         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
41145         macro for handling signed relocations.
41146
41147 2014-09-03  Florian Weimer  <fweimer@redhat.com>
41148
41149         [BZ #17325]
41150         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
41151         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
41152         assert.
41153         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
41154         * iconvdata/ibm935.c (BODY): Likewise.
41155         * iconvdata/ibm937.c (BODY): Likewise.
41156         * iconvdata/ibm939.c (BODY): Likewise.
41157         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
41158         assert.
41159         * iconvdata/Makefile (iconv-test.out): Pass module list to test
41160         script.
41161         * iconvdata/run-iconv-test.sh: New test loop for checking for
41162         decoder crashers.
41163
41164 2014-09-02  Khem Raj  <raj.khem@gmail.com>
41165
41166         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
41167         libm_hidden_ver.
41168
41169 2014-09-01  Allan McRae  <allan@archlinux.org>
41170
41171         * po/eo.po: Update Esperanto translation from translation project.
41172
41173         * po/ca.po: Update Catalan translation from translation project.
41174
41175 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41176
41177         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
41178         __proc_dostop call.
41179
41180 2014-08-27  Mark Wielaard  <mjw@redhat.com>
41181
41182         [BZ #17319]
41183         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
41184         to call set_thread_area instead of hand written asm.
41185         (__NR_set_thread_area): Removed define.
41186         (TLS_FLAG_WRITABLE): Likewise.
41187         (__ASSUME_SET_THREAD_AREA): Remove check.
41188         (TLS_EBX_ARG): Remove define.
41189         (TLS_LOAD_EBX): Likewise.
41190
41191 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41192
41193         Simplify atomicity of socket creation in bind.
41194
41195         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
41196         looking up the name after linking the file.
41197
41198 2014-08-27  Allan McRae  <allan@archlinux.org>
41199
41200         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
41201
41202 2014-08-26  Florian Weimer  <fweimer@redhat.com>
41203
41204         [BZ #17187]
41205         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
41206         trans_compare, open_translit, __gconv_translit_find):
41207         Remove module loading code.
41208
41209 2014-08-26  Allan McRae  <allan@archlinux.org>
41210
41211         * po/vi.po: Update Vietnamese translation from translation project.
41212
41213         * po/uk.po: Update Ukrainian translation from translation project.
41214
41215         * po/fr.po: Update French translation from translation project.
41216
41217         * po/ru.po: Update Russian translation from translation project.
41218
41219         * po/pl.po: Update Polish translation from translation project.
41220
41221         * po/cs.po: Update Czech translation from translation project.
41222
41223         * po/de.po: Update German translation from translation project.
41224
41225         * po/bg.po: Update Bulgarian translation from translation project.
41226
41227         * po/sv.po: Update Sweedish translation from translation project.
41228
41229         * po/nl.po: Update Dutch translation from translation project.
41230
41231         * po/es.po: Update Spanish translation from translation project.
41232
41233 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
41234
41235         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
41236
41237         * catgets/Makefile (CPPFLAGS-gencat): Remove.
41238         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
41239         (CPPFLAGS-iconvconfig): Likewise.
41240         * timezone/Makefile (CPPFLAGS-zic): Likewise.
41241
41242         * include/libc-symbols.h: Remove unnecessary check for
41243         NOT_IN_libc.
41244         * nptl/pthreadP.h: Likewise.
41245         * sysdeps/aarch64/setjmp.S: Likewise.
41246         * sysdeps/alpha/setjmp.S: Likewise.
41247         * sysdeps/arm/sysdep.h: Likewise.
41248         * sysdeps/i386/setjmp.S: Likewise.
41249         * sysdeps/m68k/setjmp.c: Likewise.
41250         * sysdeps/posix/getcwd.c: Likewise.
41251         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41252         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
41253         * sysdeps/s390/s390-32/setjmp.S: Likewise.
41254         * sysdeps/s390/s390-64/setjmp.S: Likewise.
41255         * sysdeps/sh/sh3/setjmp.S: Likewise.
41256         * sysdeps/sh/sh4/setjmp.S: Likewise.
41257         * sysdeps/unix/alpha/sysdep.h: Likewise.
41258         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
41259         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41260         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
41261         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
41262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
41263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
41264         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41265         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41266         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
41267         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
41268         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
41269         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
41270         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41271         * sysdeps/x86_64/setjmp.S: Likewise.
41272
41273 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
41274
41275         [BZ #17263]
41276         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
41277         <stdint.h>.
41278         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
41279         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
41280
41281 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
41282
41283         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
41284
41285         [BZ #17262]
41286         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
41287         and __x86_64__ when disabling x87 inline functions.
41288
41289 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
41290
41291         [BZ #17259]
41292         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
41293         asm statement with __cpuid_count.
41294
41295 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
41296
41297         * configure.ac: Change __ehdr_start code to dereference the struct.
41298         Run readelf on the output to look for relocations.
41299         * configure: Regenerated.
41300
41301 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
41302
41303         [BZ #17261]
41304         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
41305         value to 0.
41306         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
41307
41308 2014-08-12  Roland McGrath  <roland@hack.frob.com>
41309
41310         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
41311
41312 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
41313
41314         [BZ #16892]
41315         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
41316         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
41317
41318 2014-08-12  Sean Anderson  <seanga2@gmail.com>
41319
41320         * malloc/malloc.c: Fix typo in comment.
41321
41322 2014-08-09  Allan McRae  <allan@archlinux.org>
41323
41324         * Regenerate libc.po.
41325
41326 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
41327
41328         * intl/tst-gettext2.sh: Check every lang file for creation.
41329
41330 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41331
41332         * sysdeps/aarch64/fpu/math_private.h
41333         (libc_feholdsetround_noex_aarch64_ctx): New function.
41334
41335 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
41336
41337         * sysdeps/arm/armv6/strcpy.S (strcpy):
41338         Fix performance issue in misaligned cases.
41339
41340 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41341
41342         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
41343         Move definition from termios.h.
41344         (struct termio): Likewise.
41345         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41346         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41347         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41348         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41349         Likewise.
41350         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
41351         Move definition to ioctl-types.h
41352         (struct termio): Likewise.
41353         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
41354         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
41355         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
41356         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
41357         Likewise.
41358
41359 2014-08-05  Richard Henderson  <rth@redhat.com>
41360
41361         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
41362         exceptions.
41363         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
41364         Add fraiseexcpt.
41365         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
41366         Use __feraiseexcept.
41367         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
41368         Protect libm symbols with IS_IN_libm.
41369
41370         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
41371
41372 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
41373
41374         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
41375
41376 2014-08-04  Will Newton  <will.newton@linaro.org>
41377
41378         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
41379         file.
41380
41381 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
41382
41383         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
41384         variants for each function.
41385
41386 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41387
41388         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
41389         appended ...
41390         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
41391         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
41392         appended ...
41393         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
41394         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
41395         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
41396         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
41397         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
41398         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
41399         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
41400         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
41401         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
41402         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
41403         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
41404         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
41405         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
41406         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
41407         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
41408         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
41409         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
41410         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
41411         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
41412         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
41413         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
41414         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
41415         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
41416         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
41417         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
41418         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
41419         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
41420         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
41421         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
41422         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
41423         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
41424         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
41425         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
41426         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
41427         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
41428         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
41429         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
41430         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
41431         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
41432         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
41433         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
41434         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
41435         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
41436         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
41437         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
41438         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
41439         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
41440         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
41441         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
41442         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
41443         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
41444         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
41445         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
41446         Update #include.
41447         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
41448         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
41449
41450 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41451
41452         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
41453         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
41454         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
41455         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
41456         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
41457         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
41458
41459 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41460
41461         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
41462         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
41463         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
41464         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
41465
41466 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41467
41468         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
41469         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
41470         (__libc_vfork): Define function under this name.
41471         (__vfork): Define as an alias.
41472         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
41473         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
41474
41475 2014-08-04  Roland McGrath  <roland@hack.frob.com>
41476
41477         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
41478         that was previously under [RESET_PID].
41479         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
41480
41481 2014-08-04  Andreas Schwab  <schwab@suse.de>
41482
41483         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
41484
41485 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
41486
41487         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
41488         (main): Likewise.
41489
41490 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41491
41492         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
41493
41494 2014-08-01  Richard Henderon  <rth@redhat.com>
41495
41496         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
41497         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
41498         typo in exact zero test.
41499         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
41500         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
41501         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
41502
41503 2014-08-01  Roland McGrath  <roland@hack.frob.com>
41504
41505         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
41506         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
41507         * sysdeps/arm/sysdep.h: ... here.
41508         [!__ASSEMBLER__]: Include <stdint.h>.
41509
41510 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
41511
41512         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
41513         (HAVE_WCTYPE_H): Likewise.
41514         (HAVE_ISWCTYPE): Likewise.
41515         (ENABLE_NLS): Likewise.
41516         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
41517         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
41518
41519         * posix/regex_internal.c: Check if DEBUG is defined and is
41520         set.
41521
41522         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
41523         (HAVE_MBSRTOWCS): Likewise.
41524         * posix/fnmatch.c: Include string.h unconditionally.
41525
41526 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
41527
41528         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
41529         reversal.
41530
41531 2014-07-31  Roland McGrath  <roland@hack.frob.com>
41532
41533         * sysdeps/generic/safe-fatal.h: New file.
41534         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
41535         * nptl/forward.c: Include it.
41536         (__pthread_unwind): Use __safe_fatal as default action, rather
41537         than a bogus use of INTERNAL_SYSCALL that could never work.
41538
41539         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
41540         * configure.ac (libc_cv_builtin_trap): New test.
41541         * configure: Regenerated.
41542         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
41543         (ABORT_INSTRUCTION): Define using __builtin_trap.
41544
41545         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
41546         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
41547         * sysdeps/nptl/nptl-signals.h: New file.
41548         * nptl/pthreadP.h: Include <nptl-signals.h>.
41549
41550 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41551
41552         * sysdeps/s390/s390-64/utf16-utf32-z9.c
41553         (ONE_DIRECTION): Define.
41554         * sysdeps/s390/s390-64/utf8-utf16-z9.c
41555         (ONE_DIRECTION): Define.
41556         * sysdeps/s390/s390-64/utf8-utf32-z9.c
41557         (ONE_DIRECTION): Define.
41558
41559 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
41560
41561         * sysdeps/s390/Makefile: Delete file.
41562         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
41563         * sysdeps/s390/__longjmp.c: Delete file.
41564         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
41565         Remove fields __flags and __reserved.
41566         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
41567         and add versioning.
41568         * sysdeps/s390/rtld-__longjmp.c: Delete file.
41569         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
41570         * sysdeps/s390/rtld-setjmp.S: Likewise.
41571         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
41572         * sysdeps/s390/s390-32/__longjmp.c: ... here.
41573         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
41574         * sysdeps/s390/s390-32/setjmp.S: ... here.
41575         Add versioning.
41576         (__sigsetjmp): Remove setting __flags field.
41577         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
41578         * sysdeps/s390/s390-64/__longjmp.c: ... here.
41579         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
41580         * sysdeps/s390/s390-64/setjmp.S: ... here.
41581         Add versioning.
41582         (__sigsetjmp): Remove setting __flags field.
41583         * sysdeps/s390/setjmp.S: Delete file.
41584         * sysdeps/s390/sigjmp.c: Likewise.
41585         * sysdeps/s390/v1-longjmp.c: Likewise.
41586         * sysdeps/s390/v1-setjmp.h: Likewise.
41587         * sysdeps/s390/v1-sigjmp.c: Likewise.
41588         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
41589         Remove v1-longjmp_chk.
41590         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
41591         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
41592         Include debug/longjmp_chk.c and add versioning.
41593         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
41594         Include nptl/pt-longjmp.c and add versioning.
41595         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
41596         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
41597         Include __longjmp.c.
41598         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
41599         Move to ...
41600         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
41601         (__getcontext): Remove setting __flags field.
41602         Add versioning.
41603         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
41604         Don't restore upper high grps.
41605         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
41606         Likewise.
41607         (__swapcontext): Remove setting uc_flags field.
41608         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
41609         Delete file.
41610         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
41611         Include __longjmp.c.
41612         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
41613         Move to ...
41614         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
41615         (__getcontext): Remove setting __flags field.
41616         Add versioning.
41617         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
41618         (__swapcontext): Remove setting uc_flags field.
41619         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
41620         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
41621         Remove fields uc_high_gprs and __reserved.
41622         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
41623         New file with reverted content.
41624         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
41625         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
41626         Regenerated.
41627         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
41628         Regenerated.
41629
41630 2014-07-31  Andreas Schwab  <schwab@suse.de>
41631
41632         * config.h.in (HAVE_IFUNC): Define to 0.
41633         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
41634         definedness.
41635
41636 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
41637
41638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41639         memmove-avx-unaligned, memcpy-avx-unaligned and
41640         mempcpy-avx-unaligned.
41641         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41642         Add tests for AVX memcpy functions.
41643         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
41644         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
41645         memcpy_chk.
41646         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
41647         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
41648         memmove_chk.
41649         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
41650         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
41651         mempcpy_chk.
41652         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
41653         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
41654         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
41655
41656 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41657
41658         [BZ #17213]
41659         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
41660         powerpc64le.
41661
41662 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
41663
41664         [BZ #16839]
41665         * manual/llio.texi: Add section about open file description locks.
41666         * manual/examples/ofdlocks.c: Example of open file description
41667         lock usage.
41668         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
41669         F_OFD_SETLK, and F_OFD_SETLKW.
41670
41671 2014-07-23  Allan McRae  <allan@archlinux.org>
41672
41673         * po/es.po: Update Spanish translation from translation project.
41674
41675 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
41676
41677         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
41678
41679 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
41680
41681         [BZ #17078]
41682         * sysdeps/arm/dl-machine.h (elf_machine_rela)
41683         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
41684         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
41685
41686 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
41687
41688         [BZ #17088]
41689         * math/fesetenv.c (__fesetenv)
41690         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
41691         * math/feupdateenv.c (__feupdateenv)
41692         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
41693
41694         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
41695         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
41696         (__ASSUME_SOCKETCALL): Do not define.
41697
41698         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
41699         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
41700         (__ASSUME_SOCKETCALL): Do not define.
41701         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
41702         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41703         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41704         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
41705         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41706         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
41707         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41708         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41709
41710         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
41711         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
41712         (__ASSUME_SOCKETCALL): Do not define.
41713         (__ASSUME_IPC64): Define unconditionally.
41714         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41715         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41716         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
41717         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41718         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
41719         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41720         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
41721         Likewise.
41722
41723         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
41724         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
41725         (__ASSUME_SOCKETCALL): Do not define.
41726         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
41727         (__ASSUME_FUTEX_LOCK_PI): Likewise.
41728         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41729         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
41730         (__ASSUME_REQUEUE_PI): Define unconditionally.
41731         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
41732         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
41733         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41734         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
41735         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41736         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41737
41738         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
41739         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
41740         (__ASSUME_SOCKETCALL): Do not define.
41741         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
41742         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41743         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41744         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
41745         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41746         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
41747
41748         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
41749         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
41750         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
41751         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
41752         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
41753         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
41754         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
41755         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
41756         (__ASSUME_GETCPU_SYSCALL): Likewise.
41757
41758         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
41759         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
41760         cases for individual architectures.
41761         * sysdeps/gnu/configure: Regenerated.
41762         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
41763         LIBC_SLIBDIR_RTLDDIR.
41764         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
41765         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
41766         LIBC_SLIBDIR_RTLDDIR.
41767         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
41768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
41769         LIBC_SLIBDIR_RTLDDIR.
41770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
41771         Regenerated.
41772         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
41773         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
41774         file.
41775         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
41776         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
41777         file.
41778         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
41779         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
41780         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
41781         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
41782
41783         * sysdeps/aarch64/shlib-versions: Move to ...
41784         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
41785         * sysdeps/alpha/shlib-versions: Move to ...
41786         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
41787         * sysdeps/arm/shlib-versions: Move to ...
41788         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
41789         * sysdeps/hppa/shlib-versions: Move all contents except for
41790         libgcc_s entry to ...
41791         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
41792         entry from ...
41793         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
41794         * sysdeps/ia64/shlib-versions: Move to ...
41795         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
41796         entry from ...
41797         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
41798         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
41799         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
41800         * sysdeps/microblaze/shlib-versions: Move to ...
41801         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
41802         * sysdeps/mips/shlib-versions: Move to ...
41803         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
41804         entry from ...
41805         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
41806         * sysdeps/tile/shlib-versions: Move to ...
41807         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
41808         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
41809         from ...
41810         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
41811         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
41812         entry from ...
41813         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
41814
41815 2014-07-17  Will Newton  <will.newton@linaro.org>
41816
41817         * sysdeps/arm/bits/atomic.h
41818         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
41819         (__arch_compare_and_exchange_bool_16_int): Likewise.
41820         (__arch_compare_and_exchange_bool_64_int): Likewise.
41821
41822         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
41823         into an #else block.
41824
41825 2014-07-16  Roland McGrath  <roland@hack.frob.com>
41826
41827         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
41828         just Linux configurations.  Test empirically that the compiler sets
41829         __ARM_EABI__, rather than using the tuple to decide.
41830         * sysdeps/arm/preconfigure: Regenerated.
41831         * sysdeps/unix/sysv/linux/arm/configure: File removed.
41832         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
41833         contents appended ...
41834         * sysdeps/arm/configure.ac: ... here.
41835         * sysdeps/arm/configure: Regenerated.
41836
41837 2014-07-15  Roland McGrath  <roland@hack.frob.com>
41838
41839         * nptl/pthread_kill.c: New file.
41840         * nptl/pthread_sigmask.c: New file.
41841         * nptl/pthread_sigqueue.c: New file.
41842
41843         * sysdeps/nptl/lowlevellock.h: New file.
41844         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
41845         * sysdeps/nptl/lowlevellock-futex.h: New file.
41846
41847         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
41848         Remove dead declarations.
41849
41850 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
41851
41852         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
41853         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
41854         config-cflags-avx2.
41855         * sysdeps/x86_64/configure.ac: Likewise.
41856         * sysdeps/i386/configure: Regenerated.
41857         * sysdeps/x86_64/configure: Likewise.
41858         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41859         memset-avx2 only if config-cflags-avx2 is yes.
41860         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
41861         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
41862         defined.
41863         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
41864         only if HAVE_AVX2_SUPPORT is defined.
41865         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
41866
41867 2014-07-14  Alan Modra  <amodra@gmail.com>
41868
41869         [BZ #17153]
41870         * elf/elf.h (DT_PPC64_NUM): Correct value.
41871         * NEWS: Add to fixed bug list.
41872
41873 2014-07-13  Jim Meyering  <meyering@fb.com>
41874
41875         [BZ 17150]
41876         regex: don't deref NULL upon heap allocation failure
41877         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
41878         failure in one more place.
41879         To trigger the segfault, configure grep -with-included-regex,
41880         build it, and run these commands:
41881         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
41882
41883 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
41884
41885         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
41886
41887 2014-07-11  Richard Henderson  <rth@redhat.com>
41888
41889         * sysdeps/aarch64/libm-test-ulps: Update.
41890
41891 2014-07-10  Florian Weimer  <fweimer@redhat.com>
41892
41893         [BZ #17135]
41894         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
41895         * nptl/allocatestack.c (__nptl_setxid_error): New function.
41896         (__nptl_setxid): Initialize error member.  Call
41897         __nptl_setxid_error.
41898         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
41899         * nptl/descr.h (struct xid_command): Add error member.
41900         * nptl/tst-setuid3.c: New file.
41901         * nptl/Makefile (tests): Add it.
41902
41903 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41904
41905         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
41906         New define.
41907         (__lll_trylock): Use __lll_base_trylock.
41908         (__lll_cond_trylock): Likewise.
41909
41910 2014-07-10  Roland McGrath  <roland@hack.frob.com>
41911
41912         * nptl/pthread_create.c (start_thread): Use atomic_or and
41913         lll_futex_wake directly rather than lll_robust_dead.
41914         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41915         (lll_robust_dead): Macro removed.
41916         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
41917         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41918         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41919         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41920         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41921         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41922         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41923         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41924         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41925         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41926         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41927         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41928         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41929         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41930         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41931
41932         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
41933         Use atomic_compare_and_exchange_val_acq directly rather than
41934         lll_robust_trylock.
41935         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
41936         (__lll_robust_trylock, lll_robust_trylock): Removed.
41937         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
41938         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
41939         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
41940         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
41941         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
41942         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
41943         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
41944         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
41945         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
41946         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
41947         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
41948         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
41949         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
41950         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
41951
41952 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41953
41954         * manual/locale.texi (Locale Names): New section documenting
41955         locale name syntax.  Adjust menu and node chaining accordingly.
41956         (Choosing Locale): Reference Locale Names, Locale Categories.
41957         Mention setting LC_ALL=C.  Reflect that name syntax is now
41958         documented.
41959         (Locale Categories): New section title.  Reference Locale Names.
41960         LC_ALL is an environment variable, but not a category.
41961         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
41962         description, now in Locale Name.  Reference that section.  Locale
41963         name syntax is now documented.
41964
41965 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41966
41967         [BZ #17137]
41968         * locale/findlocale.c (name_present, valid_locale_name): New
41969         functions.
41970         (_nl_find_locale): Use the loc_name variable to store name
41971         candidates.  Call name_present and valid_locale_name to check and
41972         validate locale names.  Return an error if the locale is invalid.
41973
41974 2014-07-02  Florian Weimer  <fweimer@redhat.com>
41975
41976         * locale/setlocale.c (setlocale): Use strdup for allocating
41977         composite name copy.
41978
41979 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
41980
41981         Sync up with gnulib.
41982         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
41983         [!_LIBC && ENABLE_NLS]: Include gettext.h.
41984         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
41985         and _GL_ARG_NONNULL.
41986         [USE_UNLOCKED_IO]: Include unlocked-io.h.
41987         [!_LIBC]: Include code for Windows and Cygwin.
41988         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
41989         Include prototype for int strerror_r.
41990         [!_LIBC] (is_open): New function.
41991         (flush_stdout): New function.
41992         (print_errno_message): Use it.
41993         (error): Likewise.
41994         (error_at_line): Likewise.
41995         (error_tail) Add function attribute macros.  Use
41996         __builtin_expect.
41997
41998         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
41999
42000         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
42001
42002         * io/ftw.c: Include sys/param.h unconditionally.
42003
42004         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
42005
42006         [BZ #17125]
42007         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
42008         libc_freeres_ptr.
42009         (freecache): New function to free CACHE on exit.
42010
42011         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
42012         initialization.
42013
42014 2014-07-09  David S. Miller  <davem@davemloft.net>
42015
42016         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42017
42018         * sysdeps/sparc/nptl/internaltypes.h: Delete.
42019         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
42020         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
42021         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
42022         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
42023         * sysdeps/sparc/nptl/sem_init.c: Likewise.
42024         * sysdeps/sparc/nptl/sem_post.c: Likewise.
42025         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
42026         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
42027         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
42028         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
42029         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
42030         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
42031
42032 2014-07-09  Andreas Schwab  <schwab@suse.de>
42033
42034         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
42035         output.
42036         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
42037         (do_test): Likewise.
42038
42039         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
42040
42041 2014-07-09  Will Newton  <will.newton@linaro.org>
42042
42043         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
42044         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
42045         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
42046         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
42047         * sysdeps/hppa/start.S (_start): Likewise.
42048
42049 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
42050
42051         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
42052
42053         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
42054         defined.
42055
42056 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42057
42058         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
42059         after checking that it is non-NULL.
42060
42061         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
42062
42063 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42064
42065         * sysdeps/powerpc/memmove.c: Remove file.
42066         * sysdeps/powerpc/powerpc32/power4/memcopy.h
42067         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
42068         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
42069         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
42070         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
42071         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
42072         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
42073         string memmove instead of removed powerpc one.
42074
42075         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
42076         [weak_alias]: Fix compiler warning due trailing data.
42077         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
42078         [weak_alias]: Likewise.
42079         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
42080         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
42081
42082         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
42083         (__libc_ifunc_impl_list): Add memmove functions.
42084
42085 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
42086
42087         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
42088         Remove code.
42089         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
42090         Likewise.
42091         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
42092         Likewise.
42093         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
42094         Likewise.
42095         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
42096         Likewise.
42097         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
42098         Likewise.
42099         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
42100         Likewise.
42101         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
42102         Likewise.
42103         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
42104         Likewise.
42105         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
42106         Likewise.
42107         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
42108         Likewise.
42109         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
42110         Likewise.
42111         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
42112         Likewise.
42113         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
42114         Likewise.
42115         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
42116         Likewise.
42117         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
42118         Likewise.
42119         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
42120         Likewise.
42121
42122 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42123
42124         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
42125         to avoid alignment traps in non-cacheable memory.
42126         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
42127
42128         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
42129         multiarch objects.
42130         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
42131         file: multiarch power7 memmove.
42132         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
42133         multiarch default memmove.
42134         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
42135         multiarch memove for powerpc32/power4.
42136
42137         * string/bcopy.c: Use full path to include memmove.c.
42138         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
42139         multiarch objects.
42140         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
42141         bcopy for powerpc64.
42142         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
42143         bcopy for powerpc64.
42144         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
42145         and memmove implementations.
42146         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
42147         optimized multiarch memmove for POWER7/powerpc64.
42148         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
42149         default multiarch memmove for powerpc64.
42150         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
42151         multiarch for powerpc64.
42152         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
42153         for POWER7/powerpc64.
42154         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
42155         memmove for POWER7/powerpc64.
42156
42157         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
42158         glibc default one.
42159
42160         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
42161         __ELF_NATIVE_CLASS equal to 64.
42162
42163 2014-07-07  Roland McGrath  <roland@hack.frob.com>
42164
42165         * sysdeps/nptl/lowlevellock.h: File removed.
42166
42167         * NEWS: NPTL is no longer an add-on!
42168         * nptl/internaltypes.h: Moved ...
42169         * sysdeps/nptl/internaltypes.h: ... here.
42170         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
42171         * sysdeps/nptl/fork.c: Likewise.
42172         * sysdeps/nptl/gai_misc.h: Likewise.
42173         * sysdeps/nptl/librt-cancellation.c: Likewise.
42174         * sysdeps/nptl/jmp-unwind.c: Likewise.
42175         * sysdeps/nptl/setxid.h: Likewise.
42176         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
42177         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
42178         * sysdeps/unix/sysv/linux/arm/Implies: New file.
42179         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
42180         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
42181         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
42182         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
42183         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
42184         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
42185         * sysdeps/unix/sysv/linux/mips/Implies: New file.
42186         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
42187         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
42188         * sysdeps/unix/sysv/linux/sh/Implies: New file.
42189         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
42190         * sysdeps/unix/sysv/linux/tile/Implies: New file.
42191         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
42192         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
42193         * nptl/Makeconfig: Moved ...
42194         * sysdeps/nptl/Makeconfig: ... here.
42195         * nptl/configure: File removed.
42196         * nptl/ANNOUNCE: File removed.
42197         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
42198         * sysdeps/unix/sysv/linux/configure: Regenerated.
42199
42200         * nptl/Makefile (routines): Add libc_pthread_init,
42201         libc_multiple_threads, register-atfork and unregister-atfork.
42202         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
42203         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
42204         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
42205         pthread-pi-defines.sym, structsem.sym.
42206         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
42207         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
42208         [$(subdir) = nptl] (tests): Add tst-setgetname.
42209         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
42210         * sysdeps/unix/sysv/linux/sigaction.c: Just include
42211         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
42212         [!LIBC_SIGACTION]: Remove aliases.
42213         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
42214         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
42215         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
42216         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
42217         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
42218         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
42219         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
42220         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
42221         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
42222         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
42223         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
42224         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
42225         __libc_allocate_rtsig_private.
42226         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
42227         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
42228         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
42229         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
42230         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
42231         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
42232         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
42233         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
42234         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
42235         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
42236         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
42237         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
42238         * nptl/internaltypes.h: ... here.
42239         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
42240         * sysdeps/nptl/jmp-unwind.c: ... here.
42241         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
42242         * nptl/libc-lowlevellock.c: ... here.
42243         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
42244         * nptl/libc_multiple_threads.c: ... here.
42245         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
42246         * nptl/libc_pthread_init.c: ... here.
42247         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
42248         * nptl/lowlevelbarrier.sym: ... here.
42249         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
42250         * nptl/lowlevelcond.sym: ... here.
42251         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
42252         * nptl/lowlevellock.c: ... here.
42253         * nptl/lowlevellock.h: Moved ...
42254         * sysdeps/nptl/lowlevellock.h: ... here.
42255         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
42256         * nptl/lowlevelrobustlock.c: ... here.
42257         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
42258         * nptl/lowlevelrobustlock.sym: ... here.
42259         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
42260         * nptl/lowlevelrwlock.sym: ... here.
42261         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
42262         * nptl/pt-fork.c: ... here.
42263         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
42264         * nptl/pthread-pi-defines.sym: ... here.
42265         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
42266         * nptl/pthread_attr_getaffinity.c: ... here.
42267         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
42268         * nptl/pthread_attr_setaffinity.c: ... here.
42269         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
42270         * nptl/pthread_mutex_cond_lock.c: ... here.
42271         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
42272         Update #include.
42273         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
42274         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
42275         * nptl/pthread_once.c: ... here, replacing old file.
42276         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
42277         * nptl/pthread_yield.c: ... here.
42278         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
42279         * nptl/register-atfork.c: ... here.
42280         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
42281         * nptl/sem_post.c: ... here.
42282         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
42283         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
42284         * nptl/sem_timedwait.c: ... here.
42285         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
42286         * nptl/sem_trywait.c: ... here.
42287         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
42288         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
42289         * nptl/sem_wait.c: ... here.
42290         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
42291         * nptl/structsem.sym: ... here.
42292         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
42293         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
42294         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
42295         * nptl/unregister-atfork.c: ... here.
42296         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
42297         * nptl/unwindbuf.sym: ... here.
42298         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
42299         * sysdeps/nptl/fork.c: ... here.
42300         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
42301         * sysdeps/nptl/fork.h: ... here.
42302         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
42303         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
42304         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
42305         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
42306         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
42307         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
42308         * sysdeps/unix/sysv/linux/getpid.c: ... here.
42309         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
42310         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
42311         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
42312         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
42313         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
42314         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
42315         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
42316         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
42317         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
42318         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
42319         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
42320         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
42321         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
42322         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
42323         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
42324         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
42325         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
42326         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
42327         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
42328         * sysdeps/unix/sysv/linux/raise.c: ... here.
42329         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
42330         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
42331         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
42332         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
42333         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
42334         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
42335         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
42336         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
42337         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
42338         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
42339         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
42340         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
42341         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
42342         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
42343         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
42344
42345 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
42346
42347         * sysdeps/generic/memcopy.h: Add comment for
42348         MEMCPY_OK_FOR_FWD_MEMMOVE.
42349
42350 2014-07-04  Will Newton  <will.newton@linaro.org>
42351
42352         * string/memchr.c: Merge from gnulib.
42353         [_LIBC]: Remove conditionals.
42354         (__ptr_t): Remove define.
42355         (LONG_MAX_32_BITS): Likewise.
42356         (LONG_MAX): Likewise.
42357         (MEMCHR): Use ANSI prototype and optimize algorithm.
42358
42359         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
42360
42361 2014-07-03  Roland McGrath  <roland@hack.frob.com>
42362
42363         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
42364         (lll_futex_timed_wait_bitset): Fix syscall argument count.
42365
42366         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
42367         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
42368         in a bare environment with no <stdlib.h> installed.
42369         * sysdeps/nptl/configure: Regenerated.
42370
42371         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
42372
42373         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
42374         AC_EGREP_CPP for kernel header checks, so they only succeed if
42375         including <linux/version.h> actually works right.
42376         * sysdeps/unix/sysv/linux/configure: Regenerated.
42377
42378         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
42379         value so it's not diagnosed as unused.
42380
42381         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
42382         thing) with "ifeq ($(subdir),rt)".
42383
42384 2014-07-03  Richard Henderson  <rth@redhat.com>
42385
42386         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
42387         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
42388         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
42389
42390         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
42391         (math_force_eval): New.
42392
42393         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
42394         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
42395
42396         * sysdeps/alpha/fpu/s_round.c: Remove file.
42397         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
42398
42399         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
42400         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
42401         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
42402         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
42403         (_dl_start, print_statistics): Likewise.
42404         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
42405         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
42406
42407         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42408         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42409         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42410         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42411         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42412         (HP_SMALL_TIMING_AVAIL): Define.
42413         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42414         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42415         (HP_SMALL_TIMING_AVAIL): Define.
42416         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42417         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
42418
42419         * sysdeps/aarch64/hp-timing.h: New file.
42420
42421         * sysdeps/generic/hp-timing.h: Remove dead comment.
42422         * sysdeps/generic/hp-timing-common.h: New file.
42423         * sysdeps/alpha/hp-timing.h: Include it.
42424         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
42425         * sysdeps/i386/i686/hp-timing.h: Likewise.
42426         * sysdeps/ia64/hp-timing.h: Likewise.
42427         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
42428         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
42429         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
42430         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
42431         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
42432         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
42433         (hp_timing_t): New.
42434
42435         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
42436         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
42437         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
42438         * elf/rtld.c (_dl_start_final): Likewise.
42439         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
42440         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42441         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42442         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42443         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42444         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42445         (HP_TIMING_DIFF_INIT): Remove.
42446         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42447         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
42448         (HP_TIMING_DIFF_INIT): Remove.
42449         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
42450         * sysdeps/i386/i686/hp-timing.c: Remove file.
42451         * sysdeps/x86_64/hp-timing.c: Remove file.
42452         * sysdeps/ia64/hp-timing.c: Remove file.
42453         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
42454         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
42455         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
42456         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
42457
42458         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
42459         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
42460         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
42461         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42462         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
42463         (HP_TIMING_ACCUM): Remove.
42464         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42465         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
42466         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
42467
42468         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
42469         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
42470         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
42471         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
42472         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
42473         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42474         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
42475         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
42476
42477         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
42478
42479 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
42480
42481         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
42482
42483 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42484
42485         Sync up with gettext.
42486         * intl/loadmsgcat.c: Define O_BINARY if not defined.
42487         [_MSC_VER]: Include malloc.h
42488         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
42489         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
42490         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
42491         TEMP_FAILURE_RETRY.  Cast return of alloca.
42492         [!_LIBC] Call gl_rwlock_init.
42493         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
42494
42495 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42496
42497         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
42498         before checking its value.
42499
42500 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42501
42502         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
42503
42504         * debug/memcpy_chk.c: Don't include pagecopy.h.
42505         * debug/mempcpy_chk.c: Likewise.
42506         * string/memcpy.c: Likewise.
42507         * string/memmove.c: Likewise.
42508         * sysdeps/powerpc/memmove.c: Likewise.
42509         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
42510         definition of PAGE_COPY_FWD_MAYBE here...
42511         * sysdeps/generic/pagecopy.h: ... from here.
42512         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
42513
42514 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
42515             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42516
42517         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
42518         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
42519         optimizations.
42520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
42521         (__libc_ifunc_impl_list): Likewise.
42522         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
42523         multiarch strcat for PPC64.
42524         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
42525         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
42526
42527 2014-07-02  Roland McGrath  <roland@hack.frob.com>
42528
42529         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
42530
42531 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42532
42533         * intl/loadmsgcat.c: Remove declaration of
42534         get_sysdep_segment_value.
42535         (get_sysdep_segment_value): Use ISO C style.
42536         (_nl_load_domain): Use ISO C style.  Get rid of redundant
42537         semicolon.  Fix typo and formatting in comment.
42538         (_nl_unload_domain): Use ISO C style.
42539
42540         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
42541
42542 2014-07-02  Will Newton  <will.newton@linaro.org>
42543
42544         * malloc/obstack.c: Merge from gnulib master.
42545         [HAVE_CONFIG_H]: Remove conditional code.
42546         [!_LIBC]: Include config.h.
42547         [!ELIDE_CODE]: Don't include inttypes.h, include
42548         stdint.h unconditionally.
42549         (print_and_abort): Mark as _Noreturn.
42550         (_obstack_allocated_p): Mark as __attribute_pure__.
42551         (obstack_free): Rename to __obstack_free.
42552         [!__attribute__]: Remove conditional code.
42553         * malloc/obstack.h: Merge from gnulib master.
42554         [__cplusplus]: Move conditional down.
42555         [!__attribute_pure__]: Define __attribute_pure__ here
42556         if it is not already defined.
42557         (_obstack_memory_used): Mark as __attribute_pure__.
42558         [!__obstack_free]: Define as obstack_free.
42559         [__GNUC__]: Remove check for ancient NeXT gcc.
42560
42561 2014-07-02  Will Newton  <will.newton@linaro.org>
42562             Paul Eggert  <eggert@cs.ucla.edu>
42563
42564         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
42565
42566 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
42567
42568         * resolv/gethnamaddr.c: Add comment warning that the file is
42569         not maintained.
42570
42571 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
42572
42573         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
42574         entries.
42575
42576         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
42577         entry for aio_cancel and aio_cancel64.
42578         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
42579         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
42580         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
42581         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
42582         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
42583         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
42584         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
42585         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
42586         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
42587         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
42588         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
42589         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
42590         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
42591
42592 2014-07-01  Roland McGrath  <roland@hack.frob.com>
42593
42594         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
42595         * nptl/pthread_mutex_lock.c: Likewise.
42596         * nptl/pthread_mutex_timedlock.c: Likewise.
42597         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
42598
42599 2014-07-01  Richard henderson  <rth@redhat.com>
42600
42601         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
42602         (__isnan, __isnanl): Remove.
42603         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
42604
42605         * sysdeps/alpha/fpu/libm-test-ulps: Update.
42606
42607 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
42608
42609         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
42610
42611 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
42612
42613         * resolv/nss_dns/dns-host.c (getanswer_r)
42614         [MULTI_PTRS_ARE_ALIASES]: Remove code.
42615
42616 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
42617
42618         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
42619         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
42620         undefine.
42621         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
42622         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
42623
42624 2014-07-01  Roland McGrath <roland@hack.frob.com>
42625
42626         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
42627         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
42628
42629         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
42630         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
42631
42632         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
42633         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
42634         ... here.
42635         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
42636         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
42637
42638         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
42639         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
42640         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
42641         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
42642
42643         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
42644         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
42645         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
42646         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
42647         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
42648         Moved ...
42649         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
42650         ... here.
42651         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
42652         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
42653         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
42654         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
42655         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
42656         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
42657         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
42658         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
42659         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
42660         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
42661         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
42662         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
42663         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
42664         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
42665         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
42666         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
42667         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
42668         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
42669         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
42670         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
42671         ... here.
42672         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
42673         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
42674         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
42675         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
42676         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
42677         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
42678         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
42679         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
42680
42681 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
42682
42683         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
42684         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
42685         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
42686         Add sysdep.
42687
42688 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42689
42690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
42691
42692 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42693
42694         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
42695         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
42696
42697         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
42698
42699         * sysdeps/arm/libm-test-ulps: Regenerated.
42700
42701 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42702             Roland McGrath <roland@hack.frob.com>
42703
42704         * test-skeleton.c (signal_handler): Kill the whole process group
42705         before killing the child individually.
42706         (main): Report any failure on `setpgid'.
42707
42708 2014-06-30  Roland McGrath  <roland@hack.frob.com>
42709
42710         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
42711         from _TLS_H to _ARM_NPTL_TLS_H.
42712         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
42713         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
42714
42715 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
42716
42717         [BZ #16539]
42718         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
42719         (__expm1l): Return argument unchanged when small but not
42720         subnormal.
42721
42722         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
42723         include macro name.
42724         (_FP_UNPACK_RAW_1_P): Likewise.
42725         (_FP_PACK_RAW_1): Likewise.
42726         (_FP_PACK_RAW_1_P): Likewise.
42727         (_FP_MUL_MEAT_1_wide): Likewise.
42728         (_FP_MUL_MEAT_DW_1_hard): Likewise.
42729         (_FP_MUL_MEAT_1_hard): Likewise.
42730         (_FP_DIV_MEAT_1_imm): Likewise.
42731         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
42732         (_FP_DIV_MEAT_1_udiv): Likewise.
42733         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
42734         (_FP_UNPACK_RAW_2): Likewise.
42735         (_FP_UNPACK_RAW_2_P): Likewise.
42736         (_FP_PACK_RAW_2): Likewise.
42737         (_FP_PACK_RAW_2_P): Likewise.
42738         (_FP_MUL_MEAT_DW_2_wide): Likewise.
42739         (_FP_MUL_MEAT_2_wide): Likewise.
42740         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
42741         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
42742         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
42743         (_FP_MUL_MEAT_2_gmp): Likewise.
42744         (_FP_DIV_MEAT_2_udiv): Likewise.
42745         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
42746         (_FP_FRAC_SRL_4): Likewise.
42747         (_FP_FRAC_SRST_4): Likewise.
42748         (_FP_FRAC_SRS_4): Likewise.
42749         (_FP_UNPACK_RAW_4): Likewise.
42750         (_FP_UNPACK_RAW_4_P): Likewise.
42751         (_FP_PACK_RAW_4): Likewise.
42752         (_FP_PACK_RAW_4_P): Likewise.
42753         (_FP_MUL_MEAT_DW_4_wide): Likewise.
42754         (_FP_MUL_MEAT_4_wide): Likewise.
42755         (_FP_MUL_MEAT_4_gmp): Likewise.
42756         (umul_ppppmnnn): Likewise.
42757         (_FP_DIV_MEAT_4_udiv): Likewise.
42758         (__FP_FRAC_ADD_4): Likewise.
42759         (__FP_FRAC_SUB_3): Likewise.
42760         (__FP_FRAC_SUB_4): Likewise.
42761         (__FP_FRAC_DEC_3): Likewise.
42762         (__FP_FRAC_DEC_4): Likewise.
42763         (__FP_FRAC_ADDI_4): Likewise.
42764         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
42765         (_FP_FRAC_SRL_8): Likewise.
42766         (_FP_FRAC_SRS_8): Likewise.
42767
42768         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
42769         include macro name.
42770         (FP_UNPACK_RAW_EP): Likewise.
42771         (FP_PACK_RAW_E): Likewise.
42772         (FP_PACK_RAW_EP): Likewise.
42773         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
42774         (_FP_ISSIGNAN): Likewise.
42775         (_FP_ADD_INTERNAL): Likewise.
42776         (_FP_FMA): Likewise.
42777         (_FP_CMP): Likewise.
42778         (_FP_SQRT): Likewise.
42779         (_FP_TO_INT): Likewise.
42780         (_FP_FROM_INT): Likewise.
42781         (FP_EXTEND): Likewise.
42782         (_FP_DIV_MEAT_N_loop): Likewise.
42783
42784 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
42785
42786         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
42787         throughout.
42788
42789 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
42790
42791         [BZ #17097]
42792         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
42793         result with correct sign in case of exponents that produce
42794         overflow except for X very close to 1.
42795
42796 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
42797
42798         mktime: merge #if/#ifdef usage from glibc
42799         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
42800         as that works with both Glibc's and Gnulib's style.
42801         See thread starting at Siddhesh Poyarekar's bug report at:
42802         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
42803
42804 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42805
42806         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
42807         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
42808         * sysdeps/tile/tilegx/memmove.c: Remove file.
42809
42810 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42811
42812         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
42813         abi-name definition.
42814         * scripts/soversions.awk: Do not handle or generate ABI lines.
42815         * shlib-versions: Remove ABI entries.
42816         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
42817         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
42818
42819 2014-06-27  Roland McGrath  <roland@hack.frob.com>
42820
42821         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
42822         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
42823         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
42824         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
42825         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
42826         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
42827         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
42828         Moved ...
42829         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
42830         ... here.
42831         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
42832         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
42833         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
42834         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
42835         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
42836         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
42837         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
42838         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
42839         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
42840         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
42841         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
42842         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
42843         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
42844         Moved ...
42845         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
42846         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
42847         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
42848         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
42849         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
42850         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
42851         Moved ...
42852         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
42853         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
42854         Moved ...
42855         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
42856         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
42857         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
42858         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
42859         Moved ...
42860         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
42861         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
42862         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
42863         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
42864         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
42865         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
42866         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
42867         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
42868         Moved ...
42869         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
42870         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
42871         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
42872         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
42873         Moved ...
42874         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
42875         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
42876         Moved ...
42877         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
42878         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
42879         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
42880         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
42881         Moved ...
42882         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
42883         ... here.
42884         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
42885         Identical file removed.
42886         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
42887         Moved ...
42888         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
42889         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
42890         Identical file removed.
42891         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
42892         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
42893         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
42894         Moved ...
42895         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
42896         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
42897         Identical file removed.
42898         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
42899         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
42900         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
42901         Identical file removed.
42902         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
42903         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
42904         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
42905         Identical file removed.
42906         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
42907         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
42908         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
42909         Identical file removed.
42910         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
42911         Moved ...
42912         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
42913         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
42914         Identical file removed.
42915         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
42916         Moved ...
42917         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
42918         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
42919         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
42920         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
42921         Identical file removed.
42922         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
42923         Moved ...
42924         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
42925         ... here.
42926         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
42927         Identical file removed.
42928         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
42929         Moved ...
42930         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
42931         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
42932         Identical file removed.
42933         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
42934         Moved ...
42935         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
42936         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
42937         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
42938         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
42939         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
42940         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
42941         Moved ...
42942         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
42943         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
42944         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
42945
42946         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
42947         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
42948         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
42949         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
42950         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
42951
42952 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
42953
42954         [BZ #17092]
42955         * nscd/nscd.c (monitor_child): Return exit status of child
42956         instead of return value from wait syscall.
42957
42958 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
42959
42960         * configure.ac (libc_commonpagesize): Remove variable.
42961         (libc_relro_required): Likewise.
42962         (libc_cv_z_relro): Remove configure test.
42963         * configure: Regenerated.
42964         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
42965         variable.
42966         (libc_relro_required): Likewise.
42967         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
42968         (libc_relro_required): Likewise.
42969         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
42970         (libc_relro_required): Likewise.
42971         * sysdeps/arm/preconfigure: Regenerated.
42972         * sysdeps/ia64/preconfigure: Remove file.
42973         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
42974         variable.
42975         (libc_relro_required): Likewise.
42976
42977         [BZ #16561]
42978         [BZ #16562]
42979         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
42980         (__ieee754_yn): Set FE_TONEAREST mode internally and then
42981         recompute overflowing results in original rounding mode.
42982         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
42983         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
42984         recompute overflowing results in original rounding mode.
42985         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
42986         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42987         recompute overflowing results in original rounding mode.
42988         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
42989         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42990         recompute overflowing results in original rounding mode.
42991         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
42992         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
42993         recompute overflowing results in original rounding mode.
42994         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
42995         (libc_feholdsetround_ctx): New macro.
42996         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
42997         * sysdeps/i386/fpu/libm-test-ulps: Update.
42998         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
42999
43000 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43001
43002         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
43003         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
43004         corresponding .cpsetup call.
43005
43006 2014-06-26  Roland McGrath  <roland@hack.frob.com>
43007
43008         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
43009         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
43010         * sysdeps/arm/Makefile [$(subdir) = csu]
43011         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
43012         (static-only-routines): Add aeabi_read_tp here.
43013         (shared-only-routines): Add libc-aeabi_read_tp here.
43014         (CFLAGS-libc-start.c): Add -fexceptions here.
43015         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
43016         (sysdep_routines, static-only-routines, shared-only-routines):
43017         Don't add to these here.
43018         (CFLAGS-libc-start.c): Likewise.
43019
43020         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
43021         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
43022         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
43023         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
43024         * sysdeps/arm/Makefile [$(subdir) = rt]
43025         (librt-sysdep_routines, librt-shared-only-routines):
43026         Append rt-aeabi_unwind_cpp_pr1 here.
43027         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
43028         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
43029         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
43030         (libpthread-sysdep_routines, libpthread-shared-only-routines):
43031         Append nptl-aeabi_unwind_cpp_pr1 here.
43032         (tests): Filter out tst-cleanupx4 here.
43033         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
43034         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
43035         Don't do those here.
43036
43037 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43038
43039         * scripts/list-sources.sh: Do not handle ports specially.
43040
43041 2014-06-26  Roland McGrath  <roland@hack.frob.com>
43042
43043         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
43044         * sysdeps/arm/feupdateenv.c: Likewise.
43045
43046         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
43047
43048 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43049
43050         * manual/texinfo.tex: Update to version 2014-05-05.10 with
43051         trailing whitespace removed.
43052         * scripts/config.guess: Update to version 2014-03-23.
43053         * scripts/config.sub: Update to version 2014-05-01
43054         * scripts/install-sh: Update to version 2013-12-25.23.
43055         * scripts/move-if-change: Update from gnulib.
43056
43057 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
43058
43059         * debug/memmove_chk.c: Remove pagecopy.h include.
43060
43061 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
43062
43063         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
43064         identical to gnulib mktime.
43065
43066 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
43067
43068         * configure.ac: Do not test for machine being rs6000.  Do not test
43069         for powerpc*-*soft.
43070         * configure: Regenerated.
43071
43072         [BZ #11505]
43073         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
43074         test.
43075         * configure: Regenerated.
43076         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
43077         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
43078         Remove configure test.
43079         * sysdeps/arm/configure: Regenerated.
43080         * sysdeps/nptl/configure.ac: Do not check
43081         libc_cv_asm_cfi_directives.
43082         * sysdeps/nptl/configure: Regenerated.
43083         * sysdeps/x86_64/nptl/configure.ac: Remove file.
43084         * sysdeps/x86_64/nptl/configure: Remove generated file.
43085         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
43086         unconditional.
43087         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
43088
43089 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
43090
43091         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
43092         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
43093         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
43094         it is defined.
43095
43096         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
43097         instead of whether it is defined.
43098         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
43099         * sysdeps/hppa/dl-machine.h: Likewise.
43100         * sysdeps/ia64/dl-machine.h: Likewise.
43101         * sysdeps/m68k/dl-machine.h: Likewise.
43102         * sysdeps/microblaze/dl-machine.h: Likewise.
43103         * sysdeps/mips/dl-machine.: Likewise.
43104         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
43105         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
43106         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
43107         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
43108         * sysdeps/sh/dl-machine.h: Likewise.
43109         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
43110         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
43111         * sysdeps/tile/dl-machine.h: Likewise.
43112         * sysdeps/x86_64/dl-machine.h: Likewise.
43113
43114         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
43115         code.
43116         (verify_persistent_db): Likewise.
43117
43118 2014-06-26  Roland McGrath  <roland@hack.frob.com>
43119
43120         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
43121         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
43122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
43123         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
43124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
43125         Moved ...
43126         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
43127         ... here.
43128         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
43129         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
43130         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
43131         Identical file removed.
43132         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
43133         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
43134         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
43135         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
43136         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
43137         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
43138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
43139         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
43140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
43141         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
43142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
43143         Moved ...
43144         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
43145         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
43146         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
43147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
43148         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
43149         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
43150         Moved ...
43151         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
43152         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
43153         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
43154         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
43155         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
43156         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
43157         Identical file removed.
43158         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
43159         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
43160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
43161         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
43162         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
43163         Moved ...
43164         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
43165         ... here.
43166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
43167         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
43168         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
43169         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
43170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
43171         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
43172         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
43173         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
43174         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
43175         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
43176         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
43177         Moved ...
43178         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
43179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
43180         Moved ...
43181         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
43182         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
43183         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
43184         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
43185         Moved ...
43186         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
43187         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
43188         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
43189
43190         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
43191         folded into ...
43192         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
43193         * sysdeps/unix/sysv/linux/s390/Versions
43194         (libpthread: GLIBC_2.19): New version set.
43195         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
43196         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
43197         (librt: GLIBC_2.3.3): New version set.
43198         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
43199         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
43200         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
43201         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
43202         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
43203         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
43204         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
43205         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
43206         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
43207         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
43208         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
43209         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
43210         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
43211         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
43212         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
43213         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
43214         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
43215         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
43216         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
43217         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
43218         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
43219         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
43220         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
43221         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
43222         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
43223         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
43224         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
43225         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
43226         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
43227         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
43228         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
43229         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
43230         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
43231         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
43232         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
43233         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
43234         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
43235         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
43236         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
43237         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
43238         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
43239         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
43240         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
43241         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
43242         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
43243
43244         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
43245         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
43246         (__libc_vfork): Define the function under this name.
43247         [!NOT_IN_libc] (__vfork): Make this an alias.
43248         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
43249         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
43250         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
43251         (__libc_vfork): Define the function under this name.
43252         [!NOT_IN_libc] (__vfork): Make this an alias.
43253         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
43254         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
43255         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
43256         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
43257         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
43258         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
43259
43260         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
43261         code that was previously under [RESET_PID].
43262         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
43263         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
43264         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
43265
43266         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
43267         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
43268         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
43269         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
43270         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
43271         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
43272         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
43273         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
43274         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
43275         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
43276         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
43277         Moved ...
43278         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
43279         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
43280         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
43281         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
43282         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
43283         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
43284         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
43285         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
43286         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
43287         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
43288         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
43289         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
43290         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
43291         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
43292         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
43293         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
43294         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
43295         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
43296         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
43297         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
43298         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
43299         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
43300         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
43301         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
43302         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
43303         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
43304         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
43305         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
43306         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
43307
43308 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43309
43310         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
43311         that was previously under [RESET_PID].
43312         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
43313
43314 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43315
43316         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
43317         not undefine and redefine.
43318         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
43319         [O_CLOEXEC]: Make code unconditional.
43320         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
43321         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
43322         <kernel-features.h>.
43323         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
43324         conditional variable definition.
43325         (shm_open) [O_CLOEXEC]: Make code unconditional.
43326         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
43327         code.
43328
43329         * configure.ac (USE_REGPARMS): Don't define here.
43330         * configure: Regenerated.
43331         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
43332         * sysdeps/i386/configure: Regenerated.
43333
43334         * nptl/createthread.c: Don't include kernel-features.h.
43335         * nptl/pthread_cancel.c: Likewise.
43336         * nptl/pthread_condattr_setclock.c: Likewise.
43337         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
43338         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
43339         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
43340         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
43341         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
43342         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
43343         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
43344         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
43345         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
43346         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
43347         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
43348         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
43349         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
43350         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
43351         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
43352         * nscd/gai.c: Likewise.
43353         * nss/nss_db/db-open.c: Likewise.
43354         * sysdeps/generic/ldsodefs.h: Likewise.
43355         * sysdeps/sh/nptl/tls.h: Likewise.
43356         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
43357         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
43358         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
43359         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
43360         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
43361         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
43362         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
43363         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
43364         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
43365         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
43366         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
43367         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
43368         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
43369         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
43370         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
43371         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
43372         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
43373         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
43374         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
43375         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
43376         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
43377         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
43378         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
43379         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
43380         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
43381         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
43382         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
43383         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
43384         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
43385         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
43386         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
43387         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
43388         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
43389         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
43390         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
43391         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
43392         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
43393         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
43394         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
43395         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
43396         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
43397         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
43398         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
43399         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
43400         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
43401         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
43402         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
43403         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
43404         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
43405         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
43406         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
43407         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
43408         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
43409         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
43410         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
43411         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
43412         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
43413         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
43414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
43415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
43416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
43417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
43418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
43419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
43420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
43421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
43422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
43423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
43424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
43425         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
43426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
43427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
43428         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
43430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
43431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
43432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
43433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
43434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
43435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
43436         * sysdeps/unix/sysv/linux/pread.c: Likewise.
43437         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
43438         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
43439         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
43440         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
43441         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
43442         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
43443         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
43444         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
43445         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
43446         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
43447         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
43448         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
43449         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
43450         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
43451         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
43452         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
43453         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
43454         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
43455         * sysdeps/unix/sysv/linux/system.c: Likewise.
43456         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
43457         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
43458         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
43459         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
43460         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
43461         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
43462         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
43463
43464         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
43465         * configure: Regenerated.
43466         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
43467
43468         * configure.ac (base_machine): Do not set specially for particular
43469         machines here.
43470         * configure: Regenerated.
43471         * sysdeps/powerpc/preconfigure: Move machine and base_machine
43472         settings from configure.ac.
43473         * sysdeps/i386/preconfigure: New file.
43474         * sysdeps/s390/preconfigure: Likewise.
43475         * sysdeps/sh/preconfigure: Likewise.
43476         * sysdeps/sparc/preconfigure: Likewise.
43477
43478 2014-06-25  Roland McGrath  <roland@hack.frob.com>
43479
43480         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
43481         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
43482         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
43483         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
43484         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
43485         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
43486         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
43487         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
43488         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
43489         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
43490         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
43491         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
43492         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
43493         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
43494         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
43495         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
43496         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
43497         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
43498         * sysdeps/sparc/sparc64/Makefile: ... appended here.
43499
43500         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
43501         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
43502         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
43503         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
43504         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
43505         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
43506         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
43507         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
43508         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
43509         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
43510         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
43511         * sysdeps/sparc/sparc32/sem_post.c: ... here.
43512         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
43513         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
43514         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
43515         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
43516         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
43517         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
43518         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
43519         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
43520         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
43521         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
43522         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
43523         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
43524         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
43525         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
43526         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
43527         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
43528         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
43529         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
43530         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
43531         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
43532         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
43533         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
43534         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
43535         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
43536         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
43537         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
43538
43539         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
43540         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
43541         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
43542         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
43543         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
43544         Moved ...
43545         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
43546         ... here.
43547         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
43548         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
43549         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
43550         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
43551         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
43552         Moved ...
43553         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
43554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
43555         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
43556         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
43557         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
43558         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
43559         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
43560         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
43561         Moved ...
43562         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
43563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
43564         Moved ...
43565         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
43566         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
43567         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
43568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
43569         Moved ...
43570         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
43571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
43572         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
43573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
43574         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
43575         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
43576         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
43577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
43578         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
43579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
43580         Moved ...
43581         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
43582         ... here.
43583         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
43584         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
43585         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
43586         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
43587         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
43588         Moved ...
43589         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
43590         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
43591         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
43592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
43593         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
43594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
43595         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
43596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
43597         Moved ...
43598         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
43599         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
43600         Moved ...
43601         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
43602         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
43603         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
43604         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
43605         Moved ...
43606         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
43607         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
43608         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
43609         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
43610         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
43611
43612 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43613
43614         * timezone/checktab.awk: Update from tzcode 2014e.
43615         * timezone/private.h: Likewise.
43616         * timezone/tzfile.h: Likewise.
43617         * timezone/zdump.c: Likewise.
43618         * timezone/zic.c: Likewise.
43619
43620         * sysdeps/unix/sysv/linux/kernel-features.h
43621         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
43622         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
43623         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
43624         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
43625         Remove conditional code.
43626
43627 2014-06-25  Will Newton  <will.newton@linaro.org>
43628
43629         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
43630         (_dl_arm_cap_flags): Add HWCAP2 values.
43631         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
43632         (_DL_HWCAP_COUNT): Increase to 37.
43633         (_DL_HWCAP_LAST): New define.
43634         (_DL_HWCAP2_LAST): New define.
43635         (_dl_procinfo): Add support for printing
43636         AT_HWCAP2 entries.
43637         (_dl_string_hwcap): Use _dl_hwcap_string.
43638
43639 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43640
43641         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43642
43643 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
43644
43645         * README: Do not mention ports directory.
43646
43647         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
43648         Remove macro.
43649         * sysdeps/unix/sysv/linux/futimes.c: Do not include
43650         <kernel-features.h>.
43651         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
43652         conditional variable definition.
43653         (__futimes): Update comment.
43654         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
43655         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
43656
43657         [BZ #16560]
43658         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
43659         arguments close to 0.
43660         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
43661         Likewise.
43662         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
43663         Likewise.
43664         * math/auto-libm-test-in: Add more tests of exp10.
43665         * math/auto-libm-test-out: Regenerated.
43666         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43667
43668         * sysdeps/unix/sysv/linux/kernel-features.h
43669         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
43670         * sysdeps/unix/sysv/linux/readv.c: Do not include
43671         <kernel-features.h>.
43672         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43673         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43674         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43675         unconditional.
43676         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43677         conditional code.
43678         * sysdeps/unix/sysv/linux/writev.c: Do not include
43679         <kernel-features.h>.
43680         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
43681         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
43682         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
43683         unconditional.
43684         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
43685         conditional code.
43686
43687 2014-06-25  Will Newton  <will.newton@linaro.org>
43688
43689         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
43690         comment changes throughout the file.  Remove checks
43691         for HAVE_*_H definitions that are not required.
43692         (__gen_tempname): Call abort if an unknown kind value is
43693         passed.
43694
43695 2014-06-25  Andreas Schwab  <schwab@suse.de>
43696
43697         [BZ #17086]
43698         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
43699         scalbln, scalblnf, scalblnl in libc.
43700
43701 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
43702
43703         [BZ #17086]
43704         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
43705         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
43706         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
43707
43708 2014-06-24  Roland McGrath  <roland@hack.frob.com>
43709
43710         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
43711         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
43712         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
43713         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
43714         Update #include.
43715         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
43716         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
43717         Update #include.
43718         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
43719         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
43720         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
43721         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
43722         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
43723         * sysdeps/x86/bits/pthreadtypes.h: ... here.
43724         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
43725         * sysdeps/x86/bits/semaphore.h: ... here.
43726         * sysdeps/x86/nptl/elide.h: Moved ...
43727         * sysdeps/x86/elide.h: ... here.
43728         * sysdeps/x86_64/nptl/Implies: File removed.
43729         * sysdeps/i386/nptl/Implies: File removed.
43730
43731 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
43732
43733         [BZ #16539]
43734         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
43735         return the argument for normal arguments with exponent below -64.
43736         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
43737         Likewise.
43738         * math/auto-libm-test-in: Add another test of expm1.
43739         * math/auto-libm-test-out: Regenerated.
43740
43741         [BZ #16287]
43742         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
43743         calling __erfcl for arguments at least 16.
43744         * math/auto-libm-test-in: Add more tests of erf.
43745         * math/auto-libm-test-out: Regenerated.
43746
43747         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
43748         individual architectures.
43749         * sysdeps/unix/sysv/linux/configure: Regenerated.
43750         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
43751         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
43752         * sysdeps/unix/sysv/linux/powerpc/configure.ac
43753         (ldd_rewrite_script): Define variable.
43754         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
43755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
43756         file.
43757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
43758         generated file.
43759         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
43760         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
43761         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
43762         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
43763         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
43764         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
43765         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
43766         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
43767
43768 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43769
43770         [BZ #17084]
43771         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
43772         Rename member __data.d to __data.__elision_data.
43773
43774 2014-06-24  Wilco  <wdijkstr@arm.com>
43775
43776         * NEWS: Add 16918 to fixed bug list.
43777
43778 2014-06-24  Wilco  <wdijkstr@arm.com>
43779
43780         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
43781
43782 2014-06-24  Wilco  <wdijkstr@arm.com>
43783
43784         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
43785         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
43786         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
43787         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
43788         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
43789         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
43790         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
43791         Use _FPU_MASK_RM.
43792
43793 2014-06-24  Wilco  <wdijkstr@arm.com>
43794
43795         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
43796
43797 2014-06-24  Wilco  <wdijkstr@arm.com>
43798
43799         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
43800         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
43801         * sysdeps/arm/fesetround.c (fesetround): Remove space.
43802         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
43803
43804 2014-06-24  Wilco  <wdijkstr@arm.com>
43805
43806         [BZ #16918]
43807         * sysdeps/arm/feupdateenv.c (feupdateenv):
43808         Rewrite to reduce FPSCR accesses and fix return value.
43809
43810 2014-06-24  Wilco  <wdijkstr@arm.com>
43811
43812         * sysdeps/arm/fclrexcpt.c (feclearexcept):
43813         Optimize to avoid unnecessary FPSCR writes.
43814         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
43815         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
43816         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
43817         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
43818
43819 2014-06-24  Wilco  <wdijkstr@arm.com>
43820
43821         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
43822         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
43823         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
43824         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
43825         Call libc_fetestexcept_vfp.
43826         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
43827         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
43828         __SOFTFP__ ifdef so that they can be built for softfp.
43829
43830 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
43831
43832         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
43833         argument type signed char.
43834
43835         * Makerules (check-abi): Dump diff of symlist if the test
43836         fails.
43837
43838 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43839
43840         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
43841         using abort.
43842
43843         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
43844         Remove unused variable ST.
43845
43846 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
43847
43848         [BZ #16354]
43849         [BZ #17061]
43850         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
43851         small arguments before calling __expm1.
43852         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
43853         small arguments before calling __expm1f.
43854         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
43855         small arguments before calling __expm1l.
43856         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
43857         Likewise.
43858         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
43859         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
43860         spurious underflow for some cosh tests.
43861         * math/auto-libm-test-out: Regenerated.
43862         * sysdeps/i386/fpu/libm-test-ulps: Update.
43863
43864         [BZ #17050]
43865         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
43866         (__ieee754_y1): Set errno if return value overflows.
43867         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
43868         (__ieee754_y1f): Set errno if return value overflows.
43869         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
43870         (__ieee754_y1l): Set errno if return value overflows.
43871         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
43872         (__ieee754_y1l): Set errno if return value overflows.
43873         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
43874         * math/auto-libm-test-out: Regenerated.
43875
43876         * math/gen-auto-libm-tests.c: Document use of
43877         ignore-zero-inf-sign.
43878         (input_flag_type): Add value flag_ignore_zero_inf_sign.
43879         (input_flags): Add ignore-zero-inf-sign.
43880         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
43881         * math/gen-libm-test.pl (generate_testfile): Handle
43882         ignore-zero-inf-sign.
43883         * math/auto-libm-test-in: Mark some cpow tests with
43884         ignore-zero-inf-sign and some with xfail-rounding.
43885         * math/auto-libm-test-out: Regenerated.
43886         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
43887         * sysdeps/i386/fpu/libm-test-ulps: Update.
43888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43889
43890         [BZ #16315]
43891         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
43892         overflowing or underflowing operations take place with sign of
43893         result.
43894         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
43895         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
43896         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
43897         (__ieee754_pow): Recompute overflowing and underflowing results in
43898         original rounding mode.
43899         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
43900         (__powl_helper): Allow negative argument X and scale negated value
43901         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
43902         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
43903         overflowing or underflowing operations take place with sign of
43904         result.
43905         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
43906         Include <math.h>.
43907         * math/auto-libm-test-in: Add more tests of pow.
43908         * math/auto-libm-test-out: Regenerated.
43909         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
43910         (pow_tonearest_test_data): Remove.
43911         (pow_test_tonearest): Likewise.
43912         (pow_towardzero_test_data): Likewise.
43913         (pow_test_towardzero): Likewise.
43914         (pow_downward_test_data): Likewise.
43915         (pow_test_downward): Likewise.
43916         (pow_upward_test_data): Likewise.
43917         (pow_test_upward): Likewise.
43918         (main): Don't call removed functions.
43919         * sysdeps/i386/fpu/libm-test-ulps: Update.
43920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43921
43922 2014-06-23  Roland McGrath  <roland@hack.frob.com>
43923
43924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
43925         Moved ...
43926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
43927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
43928         Moved ...
43929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
43930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
43931         Moved ...
43932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
43933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
43934         Moved ...
43935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
43936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
43937         File removed.
43938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
43939         File removed.
43940         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
43941         File removed.
43942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
43943         File removed.
43944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
43945         File removed.
43946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
43947         File removed.
43948         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
43949         File removed.
43950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
43951         File removed.
43952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
43953         File removed.
43954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
43955         File removed.
43956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
43957         File removed.
43958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
43959         File removed.
43960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
43961         Moved ...
43962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
43963         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
43964         Moved ...
43965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
43966         ... here.
43967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
43968         Moved ...
43969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
43970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
43971         Moved ...
43972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
43973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
43974         Moved ...
43975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
43976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
43977         Moved ...
43978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
43979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
43980         Moved ...
43981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
43982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
43983         Moved ...
43984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
43985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
43986         Moved ...
43987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
43988         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
43989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
43990         ... here.
43991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
43992         Moved ...
43993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
43994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
43995         Moved ...
43996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
43997         ... here.
43998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
43999         Moved ...
44000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
44001         ... here.
44002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
44003         Moved ...
44004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
44005         ... here.
44006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
44007         Moved ...
44008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
44009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
44010         Moved ...
44011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
44012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
44013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
44014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
44015         Moved ...
44016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
44017         ... here.
44018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
44019         Moved ...
44020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
44021         ... here.
44022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
44023         Moved ...
44024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
44025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
44026         Moved ...
44027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
44028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
44029         Moved ...
44030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
44031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
44032         Moved ...
44033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
44034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
44035         Moved ...
44036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
44037         ... here.
44038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
44039         Moved ...
44040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
44041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
44042         Moved ...
44043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
44044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
44045         Moved ...
44046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
44047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
44048         Moved ...
44049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
44050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
44051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
44052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
44053         Moved ...
44054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
44055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
44056         Moved ...
44057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
44058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
44059         Moved ...
44060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
44061         ... here.
44062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
44063         Moved ...
44064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
44065         ... here.
44066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
44067         Moved ...
44068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
44069         ... here.
44070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
44071         Moved ...
44072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
44073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
44074         Moved ...
44075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
44076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
44077         Moved ...
44078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
44079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
44080         Moved ...
44081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
44082         ... here.
44083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
44084         Moved ...
44085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
44086         ... here.
44087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
44088         Moved ...
44089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
44090         ... here.
44091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
44092         Moved ...
44093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
44094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
44095         Moved ...
44096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
44097
44098 2014-06-23  Will Newton  <will.newton@linaro.org>
44099             Wilco  <wdijkstr@arm.com>
44100
44101         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
44102         implementation.  Include get-rounding-mode.h.
44103         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
44104         [!libc_feholdsetround_noex_ctx]: Define
44105         libc_feholdsetround_noex_ctx.
44106         [!libc_feholdsetround_noexf_ctx]: Define
44107         libc_feholdsetround_noexf_ctx.
44108         [!libc_feholdsetround_noexl_ctx]: Define
44109         libc_feholdsetround_noexl_ctx.
44110         (libc_feholdsetround_ctx): New function.
44111         (libc_feresetround_ctx): New function.
44112         (libc_feholdsetround_noex_ctx): New function.
44113         (libc_feresetround_noex_ctx): New function.
44114
44115 2014-06-23  Roland McGrath  <roland@hack.frob.com>
44116
44117         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
44118         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
44119         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
44120         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
44121         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
44122         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
44123
44124         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
44125         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
44126         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
44127         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
44128         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
44129         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
44130         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
44131         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
44132         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
44133         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
44134         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
44135         Moved ...
44136         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
44137         ... here.
44138         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
44139         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
44140         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
44141         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
44142         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
44143         Moved ...
44144         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
44145         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
44146         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
44147         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
44148         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
44149         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
44150         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
44151         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
44152         Moved ...
44153         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
44154         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
44155         Moved ...
44156         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
44157         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
44158         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
44159         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
44160         Moved ...
44161         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
44162         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
44163         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
44164         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
44165         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
44166         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
44167         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
44168         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
44169         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
44170         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
44171         Moved ...
44172         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
44173         ... here.
44174         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
44175         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
44176         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
44177         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
44178         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
44179         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
44180         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
44181         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
44182         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
44183         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
44184         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
44185         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
44186         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
44187         Moved ...
44188         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
44189         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
44190         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
44191         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
44192         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
44193         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
44194         Moved ...
44195         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
44196         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
44197         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
44198         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
44199         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
44200
44201         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
44202         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
44203         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
44204         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
44205         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
44206         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
44207         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
44208         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
44209         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
44210         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
44211         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
44212         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
44213         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
44214         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
44215         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
44216         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
44217         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
44218         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
44219         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
44220         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
44221         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
44222         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
44223         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
44224         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
44225         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
44226         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
44227         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
44228         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
44229
44230 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
44231
44232         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
44233         (FALLOC_FL_COLLAPSE_RANGE): New macro.
44234         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
44235         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
44236         (IPV6_PMTUDISC_INTERFACE): Likewise.
44237         (IPV6_PMTUDISC_OMIT): Likewise.
44238
44239 2014-06-23  Andreas Schwab  <schwab@suse.de>
44240
44241         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
44242         Remove unused errout label.
44243
44244 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44245
44246         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
44247         macro: hardware supports Vector Crypto instructions.
44248
44249 2014-06-23  Will Newton  <will.newton@linaro.org>
44250
44251         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
44252         rather than __builtin_expect.
44253
44254         * elf/dl-lookup.c (undefined_msg): Remove variable.
44255         (_dl_lookup_symbol_x): Replace undefined_msg with string
44256         literal.
44257
44258         * elf/dl-lookup.c (do_lookup_unique): New function.
44259         (do_lookup_x): Move STB_GNU_UNIQUE handling code
44260         to a separate function.
44261
44262 2014-06-23  Andreas Schwab  <schwab@suse.de>
44263
44264         [BZ #17079]
44265         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
44266         before reading the next line.
44267
44268 2014-06-23  Will Newton  <will.newton@linaro.org>
44269
44270         * test-skeleton.c (signal_handler): Use printf and %m
44271         rather than perror.  Use printf rather than fprintf to
44272         stderr.  Use puts rather than fputs to stderr.
44273         (main): Likewise.
44274
44275 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
44276
44277         * nscd/nscd.c (thread_info_t): Remove typedef.
44278         (thread_info): Remove variable.
44279
44280 2014-06-21  Allan McRae  <allan@archlinux.org>
44281
44282         * NEWS: Mention CVE-2014-4043.
44283
44284 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44285
44286         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
44287         * nptl/smp.h: ... here.
44288
44289         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
44290
44291         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
44292         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
44293         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
44294         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
44295
44296         * nptl/allocatestack.c: Include <stack-aliasing.h>.
44297         * nptl/stack-aliasing.h: New file.
44298         * sysdeps/i386/i686/stack-aliasing.h: New file.
44299         * sysdeps/i386/i686/nptl/Makefile: File removed.
44300         * sysdeps/x86_64/stack-aliasing.h: New file.
44301         * sysdeps/x86_64/nptl/Makefile
44302         (CFLAGS-pthread_create.c): Variable removed.
44303
44304         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
44305         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
44306         old file.
44307         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
44308         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
44309         old file.
44310
44311 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
44312
44313         * sysdeps/unix/sysv/linux/arm/kernel-features.h
44314         (__ASSUME_SIGFRAME_V2): Remove macro.
44315         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
44316         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
44317         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
44318         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
44319         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
44320         Declare as function.  Remove conditional macro definitions.
44321         (__default_rt_sa_restorer): Likewise.
44322         (__default_sa_restorer_v1): Remove declaration.
44323         (__default_sa_restorer_v2): Likewise.
44324         (__default_rt_sa_restorer_v1): Likewise.
44325         (__default_rt_sa_restorer_v2): Likewise.
44326         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
44327         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
44328         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
44329
44330 2014-06-20  Roland McGrath  <roland@hack.frob.com>
44331
44332         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
44333         (libpthread-routines): Add sysdep.
44334         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
44335         * sysdeps/unix/sysv/linux/sparc/Versions
44336         (libpthread: GLIBC_2.3.3): New version set.
44337         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
44338         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
44339         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
44340         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
44341         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
44342         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
44343         Moved ...
44344         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
44345         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
44346         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
44347         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
44348         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
44349         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
44350         * sysdeps/sparc/nptl/sem_init.c: ... here.
44351         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
44352         * sysdeps/sparc/nptl/sem_post.c: ... here.
44353         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
44354         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
44355         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
44356         * sysdeps/sparc/nptl/sem_wait.c: ... here.
44357         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
44358         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
44359         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
44360         (libpthread-routines): Add cpu_relax.
44361         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
44362         File removed.
44363         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
44364         (librt: GLIBC_2.3.3): New version set.
44365         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
44366         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
44367         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
44368         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
44369         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
44370         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
44371         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
44372         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
44373         Moved ...
44374         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
44375         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
44376         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
44377         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
44378         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
44379         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
44380         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
44381         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
44382         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
44383         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
44384         Moved ...
44385         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
44386         Update #include.
44387         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
44388         Moved ...
44389         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
44390         Update #include.
44391         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
44392         Moved ...
44393         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
44394         Update #include.
44395         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
44396         Moved ...
44397         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
44398         Update #include.
44399         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
44400         Moved ...
44401         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
44402         Update #include.
44403         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
44404         Moved ...
44405         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
44406         Update #include.
44407         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
44408         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
44409         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
44410         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
44411         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
44412         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
44413         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
44414         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
44415         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
44416         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
44417         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
44418         Moved ...
44419         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
44420         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
44421         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
44422         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
44423         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
44424
44425 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44426
44427         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
44428         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
44429         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
44430         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
44431         * nscd/nscd.c: Likewise.
44432         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
44433         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
44434         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
44435         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
44436
44437         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
44438         <kernel-features.h>.
44439         (init_mq_netlink): Remove conditional have_sock_cloexec
44440         definitions.  Remove code conditional on have_sock_cloexec < 0.
44441         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
44442         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
44443         * sysdeps/unix/sysv/linux/opensock.c: Do not include
44444         <kernel-features.h>.
44445         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
44446         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
44447
44448 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44449
44450         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44451         Add tests for memset_chk and memset.
44452
44453         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
44454         with AVX2_Usable.
44455
44456 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44457
44458         [BZ #16046]
44459         * elf/tst-dl-iter-static.c: New file.
44460         * elf/Makefile (tests-static): Add tst-dl-iter-static.
44461
44462         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
44463         error.
44464
44465 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44466
44467         * sysdeps/unix/sysv/linux/kernel-features.h
44468         (__ASSUME_F_GETOWN_EX): Remove macro.
44469         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
44470         <kernel-features.h>.
44471         (miss_F_GETOWN_EX): Remove variable or macro.
44472         (do_fcntl): Do not check miss_F_GETOWN_EX.
44473         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
44474
44475         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
44476         Remove macro.
44477         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
44478         [!__ASSUME_AT_RANDOM]: Remove conditional code.
44479         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
44480
44481         * sysdeps/unix/sysv/linux/kernel-features.h
44482         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
44483         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
44484         [ADJ_OFFSET_SS_READ]: Make code unconditional.
44485         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
44486
44487 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
44488
44489         [BZ #17075]
44490         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
44491         Fix calculation of the symbol's value.
44492         * sysdeps/arm/tst-armtlsdescloc.c: New file.
44493         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
44494         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
44495         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
44496         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
44497         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
44498         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
44499         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
44500         (modules-names): Add `tst-armtlsdescmod',
44501         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
44502         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
44503         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44504         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
44505         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
44506         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
44507         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
44508         ($(objpfx)tst-armtlsdescloc): New dependency.
44509         ($(objpfx)tst-armtlsdescextnow): Likewise.
44510         ($(objpfx)tst-armtlsdescextlazy): Likewise.
44511         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
44512         TLS scheme support.
44513         * sysdeps/arm/configure: Regenerate.
44514
44515 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
44516
44517         * include/fcntl.h (__atfct_seterrno): Remove prototype.
44518         (__atfct_seterrno_2): Likewise.
44519         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
44520         <kernel-features.h>.
44521         (__ASSUME_ATFCTS): Do not undefine and redefine.
44522         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
44523         (__have_atfcts): Remove conditional definition.
44524         (__fxstatat([__NR_fstatat64]: Make code unconditional.
44525         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
44526         unreachable if [__ASSUME_ATFCTS].
44527         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
44528         not undefine and redefine.
44529         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
44530         <kernel-features.h>.
44531         (faccessat) [__NR_faccessat]: Make code unconditional.
44532         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
44533         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
44534         <kernel-features.h>.
44535         (fchmodat) [__NR_fchmodat]: Make code unconditional.
44536         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44537         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
44538         <kernel-features.h>.
44539         (fchownat) [__NR_fchownat]: Make code unconditional.
44540         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
44541         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
44542         <kernel-features.h>.
44543         (futimesat) [__NR_futimesat]: Make code unconditional.
44544         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
44545         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
44546         <kernel-features.h>.
44547         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44548         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44549         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
44550         <kernel-features.h>.
44551         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
44552         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44553         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
44554         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
44555         <kernel-features.h>.
44556         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
44557         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44558         * sysdeps/unix/sysv/linux/linkat.c: Do not include
44559         <kernel-features.h>.
44560         (linkat) [__NR_linkat]: Make code unconditional.
44561         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44562         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
44563         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
44564         <kernel-features.h>.
44565         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
44566         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
44567         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
44568         <kernel-features.h>.
44569         (mkdirat) [__NR_mkdirat]: Make code unconditional.
44570         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
44571         * sysdeps/unix/sysv/linux/openat.c: Do not include
44572         <kernel-features.h>.
44573         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
44574         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
44575         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
44576         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
44577         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
44578         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
44579         <kernel-features.h>.
44580         (readlinkat) [__NR_readlinkat]: Make code unconditional.
44581         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
44582         result of INLINE_SYSCALL directly, not via int variable.
44583         * sysdeps/unix/sysv/linux/renameat.c: Do not include
44584         <kernel-features.h>.
44585         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
44586         (renameat) [__NR_renameat]: Make code unconditional.
44587         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
44588         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
44589         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
44590         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
44591         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
44592         (__ASSUME_ATFCTS): Do not undefine and redefine.
44593         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
44594         <kernel-features.h>.
44595         (symlinkat) [__NR_symlinkat]: Make code unconditional.
44596         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44597         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
44598         <kernel-features.h>.
44599         (unlinkat) [__NR_unlinkat]: Make code unconditional.
44600         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
44601         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
44602         (__ASSUME_ATFCTS): Do not undefine and redefine.
44603         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
44604         <kernel-features.h>.
44605         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
44606         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
44607         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
44608         <kernel-features.h>.
44609         (__xmknodat) [__NR_mknodat]: Make code unconditional.
44610         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
44611
44612 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
44613
44614         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
44615
44616 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
44617
44618         [BZ #17069]
44619         * posix/regcomp.c (parse_reg_exp): Deallocate partially
44620         constructed tree before returning error.
44621         * posix/bug-regexp36.c: Expand test case.
44622
44623 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
44624
44625         [BZ #6803]
44626         * math/libm-test.inc (scalbln_test_date):
44627         Add errno expectations.
44628         * math/w_scalblnf.c: New File.
44629         Add wrapper which checks for setting errno to ERANGE.
44630         Add weak_alias for corresponding scalbln function.
44631         * math/w_scalbln.c: Likewise.
44632         * math/w_scalblnl.c: Likewise.
44633         * math/Makefile (libm-calls): Add w_scalbln.
44634         * sysdeps/ieee754/flt-32/s_scalblnf.c:
44635         Remove weak_alias for corresponding scalbln function.
44636         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44637         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44638         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44639         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44640         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
44641         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
44642         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
44643         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
44644         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
44645         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
44646         Remove long_double_symbol for scalblnl function in libm, libc.
44647         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
44648         Add wrapper which checks for setting errno to ERANGE.
44649         Add long_double_symbol for scalblnl function in libm, libc.
44650         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
44651         Remove long_double_symbol for scalblnl in libm.
44652         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
44653         Add wrapper which checks for setting errno to ERANGE.
44654         Add long_double_symbol for scalblnl function in libm.
44655         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
44656         Do not use wrapper because of own implementation.
44657
44658 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
44659
44660         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
44661         3 bytes for __pad1 for x32.
44662         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
44663
44664 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
44665             H.J. Lu  <hongjiu.lu@intel.com>
44666
44667         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
44668         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
44669         * sysdeps/x86_64/multiarch/memset.S: Likewise.
44670         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
44671         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
44672
44673 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
44674
44675         [BZ #17069]
44676         * posix/regcomp.c (parse_expression): Deallocate partially
44677         constructed tree before returning error.
44678         * posix/Makefile.c (tests): Add bug-regex36.
44679         (generated): Add bug-regex36.mtrace.
44680         (tests-special): Add $(objpfx)bug-regex36-mem.out
44681         (bug-regex36-ENV): New variable.
44682         ($(objpfx)bug-regex36-mem.out): New rule.
44683         * posix/bug-regex36.c: New file.
44684
44685 2014-06-19  Will Newton  <will.newton@linaro.org>
44686
44687         * malloc/malloc.c (systrim): If extra is zero then return
44688         early.
44689
44690 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44691
44692         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
44693
44694 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
44695
44696         * sysdeps/aarch64/strchr.S: New file.
44697
44698 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44699
44700         [BZ #17022]
44701         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
44702         from arguments -2 or below.
44703         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
44704         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
44705
44706 2014-06-18  Andreas Schwab  <schwab@suse.de>
44707
44708         [BZ #17062]
44709         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
44710         of a bracket expr not to run off the end of the string.
44711         * posix/Makefile (tests): Add tst-fnmatch3.
44712         * posix/tst-fnmatch3.c: New file.
44713
44714 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
44715
44716         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
44717         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
44718         [$(cross-compiling) = no]: Likewise.
44719         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
44720         [$(cross-compiling) = no]: Likewise.
44721
44722 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
44723
44724         [BZ #17031]
44725         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
44726         double, adjusted for any remainder from the high double.
44727         * math/libm-test.inc (nearbyint): Add tests.
44728         (rint): Likewise.
44729
44730 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44731
44732         * nptl/sysdeps/powerpc/Makefile: Moved ...
44733         * sysdeps/powerpc/nptl/Makefile: ... here.
44734         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
44735         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
44736         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
44737         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
44738         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
44739         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
44740         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
44741         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
44742         * nptl/sysdeps/powerpc/tls.h: Moved ...
44743         * sysdeps/powerpc/nptl/tls.h: ... here.
44744
44745 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
44746
44747         [BZ #16681]
44748         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
44749         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
44750         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
44751         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
44752         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
44753         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
44754         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
44755         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
44756         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
44757
44758 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
44759
44760         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
44761
44762 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
44763
44764         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
44765         defined operator.
44766
44767         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
44768         $TIMEOUTFACTOR.
44769
44770 2014-06-16  Florian Weimer  <fweimer@redhat.com>
44771
44772         [BZ #17058]
44773         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
44774         non-executed part of the test.
44775
44776 2014-06-16  Andreas Schwab  <schwab@suse.de>
44777
44778         * string/bits/string2.h (strdup, strndup): Update feature guard.
44779
44780 2014-06-14  David S. Miller  <davem@davemloft.net>
44781
44782         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44783
44784 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
44785
44786         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
44787         that was previously under [RESET_PID].
44788         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
44789
44790         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
44791         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
44792         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
44793         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
44794         (__libc_vfork): New strong alias.
44795         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
44796
44797 2014-06-14 Andi Kleen  <ak@linux.intel.com>
44798
44799         * sysdeps/generic/elide.h: New file.
44800
44801 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
44802
44803         * Makefile (installed-headers): Adjust path of pthread.h header.
44804
44805 2014-06-13  Roland McGrath  <roland@hack.frob.com>
44806
44807         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
44808         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
44809         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
44810         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
44811
44812         * nptl/sysdeps/s390/Makefile: Moved ...
44813         * sysdeps/s390/nptl/Makefile: ... here.
44814         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
44815         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
44816         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
44817         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
44818         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
44819         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
44820         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
44821         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
44822         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
44823         * sysdeps/s390/nptl/pthreaddef.h: ... here.
44824         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
44825         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
44826         * nptl/sysdeps/s390/tls.h: Moved ...
44827         * sysdeps/s390/nptl/tls.h: ... here.
44828
44829         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
44830         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
44831
44832 2014-06-13  David S. Miller  <davem@davemloft.net>
44833
44834         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
44835         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
44836         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
44837         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
44838         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
44839         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
44840         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
44841         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
44842         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
44843         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
44844         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
44845         Remove RESET_PID cpp guards.
44846         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
44847         Remove RESET_PID cpp guards.
44848         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
44849
44850 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
44851
44852         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
44853         __sp to uintptr_t.
44854
44855 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44856
44857         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
44858         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
44859         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
44860         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
44861         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
44862         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
44863         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
44864         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
44865         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
44866         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
44867         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
44868         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
44869         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
44870         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
44871         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
44872         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
44873         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
44874         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
44875         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
44876         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
44877
44878         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
44879         (pthread_rwlock_rdlock): Add elision.
44880         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
44881         (pthread_rwlock_wrlock): Add elision.
44882         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
44883         (pthread_rwlock_trywrlock): Add elision.
44884         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
44885         (pthread_rwlock_tryrdlock): Add elision.
44886         * nptl/pthread_rwlock_unlock.c: Include elide.h.
44887         (pthread_rwlock_tryrdlock): Add elision unlock.
44888         * nptl/sysdeps/pthread/pthread.h:
44889         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
44890         (PTHREAD_RWLOCK_INITIALIZER,
44891         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
44892         Handle new elision field.
44893         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
44894         * sysdeps/arm/nptl/bits/pthreadtypes.h
44895         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44896         * sysdeps/sh/nptl/bits/pthreadtypes.h
44897         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44898         * sysdeps/tile/nptl/bits/pthreadtypes.h
44899         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44900         * sysdeps/a/nptl/bits/pthreadtypes.h
44901         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44902         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
44903         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44904         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
44905         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44906         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
44907         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44908         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
44909         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44910         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
44911         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44912         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
44913         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44914         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
44915         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44916         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
44917         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44918         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
44919         (elision_init): Set try_xbegin to zero when no RTM.
44920         * sysdeps/x86/nptl/bits/pthreadtypes.h
44921         (pthread_rwlock_t): Change __pad1 to __rwelision.
44922         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
44923
44924 2014-06-13  Andi Kleen  <ak@linux.intel.com>
44925
44926         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
44927         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
44928         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
44929         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
44930
44931 2014-06-13  Meador Inge  <meadori@codesourcery.com>
44932
44933         [BZ #16996]
44934         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
44935         that the cached result has been set before returning it.
44936
44937 2014-06-12  Roland McGrath  <roland@hack.frob.com>
44938
44939         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
44940         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
44941         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
44942         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
44943         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
44944         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
44945
44946         * nptl/sysdeps/sparc/Makefile: Moved ...
44947         * sysdeps/sparc/nptl/Makefile: ... here.
44948         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
44949         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
44950         * nptl/sysdeps/sparc/tls.h: Moved ...
44951         * sysdeps/sparc/nptl/tls.h: ... here.
44952         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
44953         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
44954         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
44955         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
44956         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
44957         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
44958         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
44959         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
44960         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
44961         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
44962         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
44963         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
44964         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
44965         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
44966         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
44967         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
44968         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
44969         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
44970         Update #include.
44971         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
44972         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
44973         Update #include.
44974         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
44975         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
44976         Update #include.
44977         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
44978         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
44979         Update #include.
44980
44981         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
44982
44983         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
44984         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
44985
44986         * sysdeps/pthread/posix-timer.h: Include <list.h>.
44987         (struct list_links): Type removed.
44988         (struct thread_node, struct timer_node): Replace struct list_links
44989         with struct list_head.
44990         (list_unlink_ip): Likewise.
44991         * sysdeps/pthread/timer_routines.c
44992         (timer_free_list, thread_free_list, thread_active_list): Likewise.
44993         (list_append, list_insbefore): Likewise.
44994         (list_init): Function removed.
44995         (thread_init, init_module): Use INIT_LIST_HEAD instead.
44996         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
44997         * sysdeps/pthread/Makefile: ... here, new file.
44998
44999         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
45000         * sysdeps/nptl/Implies: ... here.
45001         * sysdeps/unix/sysv/linux/Implies: Add nptl.
45002         * nptl/sysdeps/pthread/list.h: Moved ...
45003         * include/list.h: ... here.
45004         * nptl/sysdeps/pthread/createthread.c: Moved ...
45005         * nptl/createthread.c: ... here.
45006         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
45007         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
45008         * nptl/pt-longjmp.c: ... here.
45009         * nptl/sysdeps/pthread/Makefile: Moved ...
45010         * sysdeps/nptl/Makefile: ... here.
45011         * nptl/sysdeps/pthread/Subdirs: Moved ...
45012         * sysdeps/nptl/Subdirs: ... here.
45013         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
45014         * sysdeps/nptl/aio_misc.h: ... here.
45015         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
45016         * sysdeps/nptl/bits/libc-lock.h: ... here.
45017         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
45018         * sysdeps/nptl/bits/libc-lockP.h: ... here.
45019         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
45020         * sysdeps/nptl/bits/stdio-lock.h: ... here.
45021         * nptl/sysdeps/pthread/configure: Moved ...
45022         * sysdeps/nptl/configure: ... here.
45023         * nptl/sysdeps/pthread/configure.ac: Moved ...
45024         * sysdeps/nptl/configure.ac: ... here.
45025         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
45026         * sysdeps/nptl/gai_misc.h: ... here.
45027         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
45028         * sysdeps/nptl/librt-cancellation.c: ... here.
45029         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
45030         * sysdeps/nptl/malloc-machine.h: ... here.
45031         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
45032         * sysdeps/nptl/pthread-functions.h: ... here.
45033         * nptl/sysdeps/pthread/pthread.h: Moved ...
45034         * sysdeps/nptl/pthread.h: ... here.
45035         * nptl/sysdeps/pthread/setxid.h: Moved ...
45036         * sysdeps/nptl/setxid.h: ... here.
45037         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
45038         * sysdeps/nptl/sigfillset.c: ... here.
45039         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
45040         * sysdeps/nptl/tcb-offsets.h: ... here.
45041         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
45042         * sysdeps/nptl/tst-mqueue8x.c: ... here.
45043         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
45044         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
45045         * nptl/sysdeps/pthread/allocalim.h: Moved ...
45046         * sysdeps/pthread/allocalim.h: ... here.
45047         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
45048         * sysdeps/pthread/bits/sigthread.h: ... here.
45049         * nptl/sysdeps/pthread/flockfile.c: Moved ...
45050         * sysdeps/pthread/flockfile.c: ... here.
45051         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
45052         * sysdeps/pthread/ftrylockfile.c: ... here.
45053         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
45054         * sysdeps/pthread/funlockfile.c: ... here.
45055         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
45056         * sysdeps/pthread/posix-timer.h: ... here.
45057         * nptl/sysdeps/pthread/timer_create.c: Moved ...
45058         * sysdeps/pthread/timer_create.c: ... here.
45059         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
45060         * sysdeps/pthread/timer_delete.c: ... here.
45061         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
45062         * sysdeps/pthread/timer_getoverr.c: ... here.
45063         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
45064         * sysdeps/pthread/timer_gettime.c: ... here.
45065         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
45066         * sysdeps/pthread/timer_routines.c: ... here.
45067         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
45068         * sysdeps/pthread/timer_settime.c: ... here.
45069         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
45070         * sysdeps/pthread/tst-timer.c: ... here.
45071         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
45072         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
45073
45074         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
45075         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
45076
45077         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
45078         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
45079         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
45080         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
45081         Update #include target.
45082         * nptl/sysdeps/i386/i686/Makefile: Moved ...
45083         * sysdeps/i386/i686/nptl/Makefile: ... here.
45084         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
45085         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
45086         Update #include target.
45087         * nptl/sysdeps/i386/i686/tls.h: Moved ...
45088         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
45089         * nptl/sysdeps/i386/Makefile: Moved ...
45090         * sysdeps/i386/nptl/Makefile: ... here.
45091         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
45092         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
45093         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
45094         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
45095         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
45096         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
45097         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
45098         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
45099         * sysdeps/i386/nptl/pthreaddef.h: ... here.
45100         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
45101         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
45102         * nptl/sysdeps/i386/tls.h: Moved ...
45103         * sysdeps/i386/nptl/tls.h: ... here.
45104
45105         * sysdeps/sh/Makefile [$(subdir) = csu]
45106         (gen-as-const-headers): Add tcb-offsets.sym.
45107         * nptl/sysdeps/sh/Makefile: File removed.
45108         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
45109         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
45110         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
45111         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
45112         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
45113         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
45114         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
45115         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
45116         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
45117         * sysdeps/sh/nptl/pthreaddef.h: ... here.
45118         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
45119         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
45120         * nptl/sysdeps/sh/tls.h: Moved ...
45121         * sysdeps/sh/nptl/tls.h: ... here.
45122         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
45123         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
45124         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
45125         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
45126         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
45127         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
45128         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
45129         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
45130         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
45131         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
45132         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
45133         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
45134         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
45135         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
45136         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
45137         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
45138         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
45139         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
45140         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
45141         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
45142         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
45143         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
45144         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
45145         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
45146         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
45147         Moved ...
45148         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
45149         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
45150         Moved ...
45151         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
45152         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
45153         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
45154         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
45155         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
45156         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
45157         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
45158         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
45159         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
45160         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
45161         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
45162         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
45163         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
45164         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
45165         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
45166         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
45167         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
45168         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
45169         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
45170
45171 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
45172
45173         * posix/spawn_faction_addopen.c: Include string.h.
45174
45175 2014-06-11  Roland McGrath  <roland@hack.frob.com>
45176
45177         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
45178         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
45179         * nptl/sysdeps/x86_64/Makefile: Moved ...
45180         * sysdeps/x86_64/nptl/Makefile: ... here.
45181         * nptl/sysdeps/x86_64/configure: Moved ...
45182         * sysdeps/x86_64/nptl/configure: ... here.
45183         * nptl/sysdeps/x86_64/configure.ac: Moved ...
45184         * sysdeps/x86_64/nptl/configure.ac: ... here.
45185         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
45186         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
45187         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
45188         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
45189         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
45190         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
45191         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
45192         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
45193         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
45194         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
45195         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
45196         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
45197         * nptl/sysdeps/x86_64/tls.h: Moved ...
45198         * sysdeps/x86_64/nptl/tls.h: ... here.
45199         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
45200         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
45201         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
45202         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
45203
45204         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
45205
45206 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45207
45208         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45209
45210 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
45211
45212         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
45213         type.
45214         [POSIX] (off_t): Likewise.
45215         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
45216         [POSIX] (S_ISBLK): Require macro.
45217         [POSIX] (S_ISCHR): Likewise.
45218         [POSIX] (S_ISDIR): Likewise.
45219         [POSIX] (S_ISFIFO): Likewise.
45220         [POSIX] (S_ISREG): Likewise.
45221         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
45222         optional-macro.
45223         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
45224         type.
45225         [POSIX] (time_t): Likewise.
45226         [POSIX] (timer_t): Likewise.
45227
45228 2014-06-11  Florian Weimer  <fweimer@redhat.com>
45229
45230         [BZ #17048]
45231         * posix/spawn_int.h (struct __spawn_action): Make the path string
45232         non-const to support deallocation.
45233         * posix/spawn_faction_addopen.c
45234         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
45235         * posix/spawn_faction_destroy.c
45236         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
45237         path in all spawn_do_open actions.
45238         * posix/tst-spawn.c (do_test): Exercise the copy operation in
45239         posix_spawn_file_actions_addopen.
45240
45241 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
45242
45243         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
45244         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
45245         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
45246         conditional code always true.
45247         (__libc_vfork): New alias.
45248
45249 2014-06-11  Roland McGrath  <roland@hack.frob.com>
45250
45251         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45252         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
45253
45254         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
45255
45256         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45257         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
45258
45259         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
45260         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
45261
45262         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45263         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
45264
45265 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
45266
45267         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
45268         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
45269         multiarch strcmp for PPC64.
45270         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
45271         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
45272         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
45273         multiarch optimizations.
45274         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
45275         (__libc_ifunc_impl_list): Likewise.
45276
45277 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45278
45279         * benchtests/scripts/validate_benchout.py: New script.
45280         * benchtests/Makefile (bench-func): Call it.
45281         * benchtests/scripts/benchout.schema.json: New file.
45282
45283 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
45284
45285         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
45286         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
45287         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
45288         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
45289         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
45290         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
45291         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
45292         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
45293         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
45294         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
45295         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
45296         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
45297         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
45298         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
45299         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
45300         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
45301         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
45302         Moved ...
45303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
45304         ... here.
45305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
45306         Moved ...
45307         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
45308         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
45309         Moved ...
45310         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
45311         ... here.
45312         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
45313         Moved ...
45314         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
45315         ... here.
45316         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
45317         Moved ...
45318         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
45319         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
45320         Moved ...
45321         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
45322         ... here.
45323         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
45324         Moved ...
45325         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
45326         ... here.
45327         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
45328         Moved ...
45329         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
45330         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
45331         Moved ...
45332         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
45333         ... here.
45334         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
45335         Moved ...
45336         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
45337         ... here.
45338         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
45339         Moved ...
45340         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
45341         ... here.
45342         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
45343         Moved ...
45344         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
45345         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
45346         Moved ...
45347         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
45348         ... here.
45349         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
45350         Moved ...
45351         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
45352         ... here.
45353         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
45354         Moved ...
45355         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
45356         ... here.
45357         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
45358         Moved ...
45359         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
45360         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
45361         Moved ...
45362         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
45363         ... here.
45364         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
45365         Moved ...
45366         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
45367         ... here.
45368         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
45369         Moved ...
45370         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
45371         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
45372         Moved ...
45373         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
45374         ... here.
45375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
45376         Moved ...
45377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
45378         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
45379         Moved ...
45380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
45381         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
45382         Moved ...
45383         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
45384         ... here.
45385         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
45386         Moved ...
45387         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
45388         ... here.
45389         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
45390         Moved ...
45391         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
45392         ... here.
45393         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
45394         Moved ...
45395         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
45396         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
45397         Moved ...
45398         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
45399         ... here.
45400         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
45401         Moved ...
45402         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
45403         ... here.
45404         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
45405         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
45406         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
45407         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
45408         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
45409         Moved ...
45410         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
45411         ... here.
45412         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
45413         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
45414         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
45415         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
45416         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
45417         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
45418         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
45419         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
45420         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
45421         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
45422         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
45423         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
45424         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
45425         Moved ...
45426         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
45427         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
45428         Moved ...
45429         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
45430         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
45431         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
45432         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
45433         Moved ...
45434         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
45435         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
45436         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
45437         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
45438         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
45439         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
45440         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
45441
45442 2014-06-10  Wilco  <wdijkstr@arm.com>
45443
45444         * math/test-fenv-return.c: New file.
45445         * math/Makefile: Add new test test-fenv-return.
45446
45447 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
45448
45449         [BZ #17042]
45450         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
45451         when x - 1 is zero.
45452         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
45453         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
45454         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
45455         0.0L for an argument of 1.0L.
45456         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
45457         Likewise.
45458         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
45459         value when x - 1 is zero.
45460         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
45461         * sysdeps/i386/fpu/libm-test-ulps: Update.
45462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45463
45464 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
45465
45466         [BZ #15119]
45467         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
45468
45469 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45470
45471         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
45472         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
45473
45474 2014-06-09  Roland McGrath  <roland@hack.frob.com>
45475
45476         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45477         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
45478
45479         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45480         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
45481
45482         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45483         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
45484
45485         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
45486         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
45487
45488         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
45489         if not already defined.
45490         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
45491         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
45492         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
45493         (TLS_INIT_TP): Use it.
45494         (TLS_DEFINE_INIT_TP): New macro.
45495         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
45496
45497 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
45498
45499         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
45500         constant.
45501         [POSIX] (IXANY): Likewise.
45502         [POSIX] (OLCUC): Likewise.
45503         [POSIX || POSIX2008] (CBAUD): Do not allow.
45504         [POSIX || POSIX2008] (DEFECHO): Likewise.
45505         [POSIX || POSIX2008] (ECHOCTL): Likewise.
45506         [POSIX || POSIX2008] (ECHOKE): Likewise.
45507         [POSIX || POSIX2008] (ECHOPRT): Likewise.
45508         [POSIX || POSIX2008] (EXTA): Likewise.
45509         [POSIX || POSIX2008] (EXTB): Likewise.
45510         [POSIX || POSIX2008] (FLUSHO): Likewise.
45511         [POSIX || POSIX2008] (LOBLK): Likewise.
45512         [POSIX || POSIX2008] (PENDIN): Likewise.
45513         [POSIX || POSIX2008] (SWTCH): Likewise.
45514         [POSIX || POSIX2008] (VDISCARD): Likewise.
45515         [POSIX || POSIX2008] (VDSUSP): Likewise.
45516         [POSIX || POSIX2008] (VLNEXT): Likewise.
45517         [POSIX || POSIX2008] (VREPRINT): Likewise.
45518         [POSIX || POSIX2008] (VSTATUS): Likewise.
45519         [POSIX || POSIX2008] (VWERASE): Likewise.
45520         (B*): Change to B[0123456789]*.
45521         * conform/data/time.h-data [POSIX || UNIX98]
45522         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
45523         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
45524         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
45525         [POSIX] (tm_*): Do not allow.
45526
45527 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
45528
45529         * Makefile (install): Don't set LANGUAGE.
45530         * Makefile.in (install): Likewise.
45531         * assert/Makefile (test-assert-ENV): Remove variable.
45532         (test-assert-perr-ENV): Likewise.
45533         * elf/Makefile (neededtest4-ENV): Likewise.
45534         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
45535         [$(cross-compiling) = no]: Don't set LANGUAGE.
45536         * io/ftwtest-sh (LANG): Remove variable.
45537         * libio/Makefile (tst-widetext-ENV): Likewise.
45538         * manual/install.texi (Running make install): Don't refer to
45539         environment settings for make install.
45540         * INSTALL: Regenerated.
45541         * nptl/tst-tls6.sh: Don't set LANG.
45542         * posix/globtest.sh (LANG): Remove variable.
45543         * string/Makefile (tester-ENV): Likewise.
45544         (inl-tester-ENV): Likewise.
45545         (noinl-tester-ENV): Likewise.
45546         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
45547         [$(cross-compiling) = no]: Don't set LANGUAGE.
45548         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
45549         without explicit environment settings.
45550
45551 2014-06-06  Roland McGrath  <roland@hack.frob.com>
45552
45553         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
45554         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
45555         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
45556         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
45557
45558 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
45559
45560         * crypt/crypt-private.h [DOS]: Add some includes taken from the
45561         other files in the crypt directory.
45562         * crypt/crypt.c: Remove duplicate includes.
45563         * crypt/crypt-entry.c: Likewise.
45564         * crypt/crypt_util.c: Likewise.
45565
45566 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
45567
45568         * Makeconfig (run-program-env): New variable.
45569         (run-program-prefix-before-env): Likewise.
45570         (run-program-prefix-after-env): Likewise.
45571         (run-program-prefix): Define in terms of new variables.
45572         (built-program-cmd-before-env): New variable.
45573         (built-program-cmd-after-env): Likewise.
45574         (built-program-cmd): Define in terms of new variables.
45575         (test-program-prefix-before-env): New variable.
45576         (test-program-prefix-after-env): Likewise.
45577         (test-program-prefix): Define in terms of new variables.
45578         (test-program-cmd-before-env): New variable.
45579         (test-program-cmd-after-env): Likewise.
45580         (test-program-cmd): Define in terms of new variables.
45581         * Rules (make-test-out): Use $(run-program-env).
45582         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
45583         (help): Do not mention environment variables.  Mention
45584         --timeoutfactor option.
45585         (timeoutfactor): New variable.
45586         (blacklist_exports): Remove function.
45587         (exports): Remove variable.
45588         (command): Do not include ${exports}.
45589         * manual/install.texi (Configuring and compiling): Do not mention
45590         test wrappers preserving environment variables.  Mention that last
45591         assignment to a variable must take precedence.
45592         * INSTALL: Regenerated.
45593         * benchtests/Makefile (run-bench): Use $(run-program-env).
45594         * catgets/Makefile ($(objpfx)test1.cat): Use
45595         $(built-program-cmd-before-env), $(run-program-env) and
45596         $(built-program-cmd-after-env).
45597         ($(objpfx)test2.cat): Do not specify environment variables
45598         explicitly.
45599         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
45600         $(run-program-env) and $(built-program-cmd-after-env).
45601         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
45602         $(run-program-env) and $(test-program-cmd-after-env).
45603         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
45604         explicitly.
45605         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
45606         run_program_env and test_program_cmd_after_env arguments.
45607         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
45608         * elf/tst-pathopt.sh: Use run_program_env argument.
45609         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
45610         $(test-wrapper-env) and $(run-program-env).
45611         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
45612         run_program_env arguments.
45613         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
45614         * intl/Makefile ($(objpfx)tst-gettext.out): Use
45615         $(test-program-prefix-before-env), $(run-program-env) and
45616         $(test-program-prefix-after-env).
45617         ($(objpfx)tst-gettext2.out): Likewise.
45618         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
45619         run_program_env and test_program_prefix_after_env arguments.
45620         * intl/tst-gettext2.sh: Likewise.
45621         * intl/tst-gettext4.sh: Do not set environment variables
45622         explicitly.
45623         * intl/tst-gettext6.sh: Likewise.
45624         * intl/tst-translit.sh: Likewise.
45625         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
45626         $(test-program-prefix-before-env), $(run-program-env) and
45627         $(test-program-prefix-after-env).
45628         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
45629         run_program_env and test_program_prefix_after_env arguments.
45630         * math/Makefile (run-regen-ulps): Use $(run-program-env).
45631         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
45632         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
45633         explicitly with each use of ${test_wrapper_env}.
45634         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
45635         $(test-program-prefix-before-env), $(run-program-env) and
45636         $(test-program-prefix-after-env).
45637         * posix/tst-getconf.sh: Do not set environment variables
45638         explicitly.
45639         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
45640         run_program_env and test_program_prefix_after_env arguments.
45641         * stdio-common/tst-printf.sh: Do not set environment variables
45642         explicitly.
45643         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
45644         $(test-program-prefix-before-env), $(run-program-env) and
45645         $(test-program-prefix-after-env).
45646         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
45647         run_program_env and test_program_prefix_after_env arguments.
45648         Split $test calls into $test_pre and $test.
45649         * timezone/Makefile (build-testdata): Use
45650         $(built-program-cmd-before-env), $(run-program-env) and
45651         $(built-program-cmd-after-env).
45652
45653 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45654
45655         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
45656         strlen for non SHARED builds.
45657
45658 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
45659
45660         * nptl/allocatestack.c (check_list): Inlined function...
45661         (__reclaim_stacks): ... here.
45662
45663 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45664
45665         [BZ #15698]
45666         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
45667         memory overrun.
45668
45669 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
45670
45671         * Rules (make-test-out): Include
45672         LOCPATH=$(common-objpfx)localedata in default environment.
45673         * debug/Makefile (tst-chk1-ENV): Remove variable.
45674         (tst-chk2-ENV): Likewise.
45675         (tst-chk3-ENV): Likewise.
45676         (tst-chk4-ENV): Likewise.
45677         (tst-chk5-ENV): Likewise.
45678         (tst-chk6-ENV): Likewise.
45679         (tst-lfschk1-ENV): Likewise.
45680         (tst-lfschk2-ENV): Likewise.
45681         (tst-lfschk3-ENV): Likewise.
45682         (tst-lfschk4-ENV): Likewise.
45683         (tst-lfschk5-ENV): Likewise.
45684         (tst-lfschk6-ENV): Likewise.
45685         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
45686         (tst-iconv7-ENV): Likewise.
45687         * intl/Makefile (LOCPATH-ENV): Likewise.
45688         (tst-codeset-ENV): Likewise.
45689         (tst-gettext3-ENV): Likewise.
45690         (tst-gettext5-ENV): Likewise.
45691         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
45692         (tst-fopenloc-ENV): Likewise.
45693         (tst-fgetws-ENV): Remove variable.
45694         (tst-ungetwc1-ENV): Likewise.
45695         (tst-ungetwc2-ENV): Likewise.
45696         (bug-ungetwc2-ENV): Likewise.
45697         (tst-swscanf-ENV): Likewise.
45698         (bug-ftell-ENV): Likewise.
45699         (tst-fgetwc-ENV): Likewise.
45700         (tst-fseek-ENV): Likewise.
45701         (tst-ftell-partial-wide-ENV): Likewise.
45702         (tst-ftell-active-handler-ENV): Likewise.
45703         (tst-ftell-append-ENV): Likewise.
45704         * posix/Makefile (tst-fnmatch-ENV): Likewise.
45705         (tst-regexloc-ENV): Likewise.
45706         (bug-regex1-ENV): Likewise.
45707         (tst-regex-ENV): Likewise.
45708         (tst-regex2-ENV): Likewise.
45709         (bug-regex5-ENV): Likewise.
45710         (bug-regex6-ENV): Likewise.
45711         (bug-regex17-ENV): Likewise.
45712         (bug-regex18-ENV): Likewise.
45713         (bug-regex19-ENV): Likewise.
45714         (bug-regex20-ENV): Likewise.
45715         (bug-regex22-ENV): Likewise.
45716         (bug-regex23-ENV): Likewise.
45717         (bug-regex25-ENV): Likewise.
45718         (bug-regex26-ENV): Likewise.
45719         (bug-regex30-ENV): Likewise.
45720         (bug-regex32-ENV): Likewise.
45721         (bug-regex33-ENV): Likewise.
45722         (bug-regex34-ENV): Likewise.
45723         (bug-regex35-ENV): Likewise.
45724         (tst-rxspencer-ENV): Likewise.
45725         (tst-rxspencer-no-utf8-ENV): Likewise.
45726         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
45727         (tst-sscanf-ENV): Likewise.
45728         (tst-swprintf-ENV): Likewise.
45729         (tst-swscanf-ENV): Likewise.
45730         (test-vfprintf-ENV): Likewise.
45731         (scanf13-ENV): Likewise.
45732         (bug14-ENV): Likewise.
45733         (tst-grouping-ENV): Likewise.
45734         * stdlib/Makefile (tst-strtod-ENV): Likewise.
45735         (tst-strtod3-ENV): Likewise.
45736         (tst-strtod4-ENV): Likewise.
45737         (tst-strtod5-ENV): Likewise.
45738         (testmb2-ENV): Likewise./
45739         * string/Makefile (tst-strxfrm-ENV): Likewise.
45740         (tst-strxfrm2-ENV): Likewise.
45741         (bug-strcoll1-ENV): Likewise.
45742         (test-strcasecmp-ENV): Likewise.
45743         (test-strncasecmp-ENV): Likewise.
45744         * time/Makefile (tst-strptime-ENV): Likewise.
45745         (tst-ftime_l-ENV): Likewise.
45746         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
45747         (tst-mbrtowc-ENV): Likewise.
45748         (tst-wcrtomb-ENV): Likewise.
45749         (tst-mbrtowc2-ENV): Likewise.
45750         (tst-c16c32-1-ENV): Likewise.
45751         (tst-mbsnrtowcs-ENV): Likewise.
45752
45753 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
45754
45755         * manual/resource.texi (How to get information about the memory
45756         subsystem?): Fix typo.
45757         Reported by Peon de la Parra Ivan <peon@keba.com>
45758
45759 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
45760
45761         [BZ #16882]
45762         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
45763         (pthread_spin_lock): Branch out of spin loop to proper location.
45764         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
45765         (pthread_spin_lock): Likewise.
45766
45767         * nptl/tst-spin4.c: New test.
45768         * nptl/Makefile (tests): Add tst-spin4.
45769
45770 2014-06-03  Andreas Schwab  <schwab@suse.de>
45771
45772         [BZ #15946]
45773         * resolv/res_send.c (send_dg): Reload file descriptor after
45774         calling reopen.
45775
45776 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
45777
45778         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
45779
45780 2014-06-03  Richard Henderson  <rth@redhat.com>
45781
45782         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
45783         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
45784         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
45785         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
45786         in the SAVE_PID block.
45787         (__libc_vfork): New alias.
45788         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
45789
45790         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
45791         child in registers, not on the stack.  Remove RESET_PID conditionals.
45792         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
45793
45794 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
45795
45796         * sysdeps/aarch64/libm-test-ulps: Regenerate.
45797
45798 2014-06-03  Wilco  <wdijkstr@arm.com>
45799
45800         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
45801         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
45802         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45803         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
45804         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
45805         Likewise.
45806
45807 2014-06-03  Wilco  <wdijkstr@arm.com>
45808
45809         * sysdeps/aarch64/fpu/math_private.h
45810         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
45811         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
45812         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
45813         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
45814         Fix declarations.
45815
45816 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
45817
45818         * crypt/crypt-private.h: Include ufc-crypt.h.
45819         (__b64_from_24bit): Declare extern.
45820         * crypt/crypt_util.c(__b64_from_24bit): New function.
45821         (b64t): New static const variable.
45822         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
45823         (b64t): Remove variable.
45824         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
45825         * crypt/sha256-crypt.c: Include crypt-private.h.
45826         (b64t): Remove variable.
45827         (__sha256_crypt_r): Remove b64_from_24bit and replace
45828         with __b64_from_24bit.
45829         * crypt/sha512-crypt.c: Likewise.
45830
45831 2014-06-02  Roland McGrath  <roland@hack.frob.com>
45832
45833         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
45834         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
45835         Label the code __libc_vfork rather than __vfork.
45836         [!NOT_IN_libc] (vfork): Define as weak alias.
45837         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
45838         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
45839         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
45840
45841 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
45842
45843         * malloc/malloc.c (malloc_info): Fix format specifier for
45844         n_mmaps.
45845
45846 2014-06-02  Wilco  <wdijkstr@arm.com>
45847
45848         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
45849         FPCR write.
45850
45851 2014-06-02  Wilco  <wdijkstr@arm.com>
45852
45853         [BZ #17009]
45854         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
45855         Rewrite to reduce FPCR/FPSR accesses.
45856
45857 2014-06-01  David S. Miller  <davem@davemloft.net>
45858
45859         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45860
45861 2014-05-31  David S. Miller  <davem@davemloft.net>
45862
45863         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
45864         to occur in round to nearest mode when |x| >= 2.0
45865
45866 2014-05-30  Richard Henderson  <rth@twiddle.net>
45867
45868         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
45869         (PSEUDO_RET_NOERRNO): Remove.
45870         (ret): Don't redefine.
45871         (ret_NOERRNO): Define in terms of ret.
45872         (ret_ERRVAL): Likewise.
45873
45874         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
45875         use of PSEUDO_RET; perform the error check directly.
45876
45877 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
45878
45879         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
45880         with __int128_t.
45881
45882 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45883
45884         * malloc/malloc (malloc_info): Fix formatting.
45885
45886 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
45887             Roland McGrath  <roland@hack.frob.com>
45888
45889         * malloc/malloc (malloc_info): Also print mmapped statistics.
45890
45891 2014-05-30  Roland McGrath  <roland@hack.frob.com>
45892
45893         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
45894         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
45895
45896 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
45897
45898         * malloc/malloc.c (malloc_info): Inline mi_arena.
45899
45900 2014-05-29  Richard Henderson  <rth@twiddle.net>
45901
45902         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
45903         Remove comma before expanding ASM_ARGS_##nr.
45904         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
45905         Make _x0 a strict output; make _x8 a strict input; adjust expansion
45906         of ASM_ARGS_##nr.
45907         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
45908         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
45909         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
45910         (ASM_ARGS_1): Add leading comma.
45911
45912         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
45913         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
45914         to __errno_location.
45915         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
45916         Remove the expected plt for __errno_location.
45917
45918         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45919         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
45920         call to __read_tp.
45921
45922         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45923         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
45924         it and break it down.
45925         (DOCARGS_0, DOCARGS_1): Do nothing.
45926         (DOCARGS_2): Update to store into the new stack frame.
45927         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
45928         (UNDOCARGS_1): Update to restore from the new stack frame.
45929         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
45930         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
45931
45932         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
45933         (SINGLE_THREAD_P): New parameter for result regno.
45934         (PSEUDO): Update to match; use cbz instead of beq.
45935
45936         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
45937         Use ENTRY to define the _nocancel entry point.  Share the syscall
45938         and syscall error check paths with the cancel path.
45939         (PSEUDO_END): New.
45940
45941         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
45942         whitespace; tabs before and after asm mnemonics.
45943
45944 2014-05-29  Eric Wong  <normalperson@yhbt.net>
45945
45946         [BZ #15132]
45947         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45948         Call fstat64 or stat64 internally, depending on arguments passed.
45949         Replace stat buffer argument with file descriptor argument.
45950         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
45951         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
45952         Pass fd to __internal_statvfs instead of calling fstat64.
45953         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
45954         Pass fd to __internal_statvfs64 instead of calling fstat64.
45955         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
45956         Pass -1 to __internal_statvfs instead of calling stat64.
45957         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
45958         Pass -1 to __internal_statvfs64 instead of calling stat64.
45959
45960 2014-05-28  Roland McGrath  <roland@hack.frob.com>
45961
45962         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
45963         that was previously under [RESET_PID].
45964         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
45965
45966         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
45967         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
45968
45969 2014-05-27  Roland McGrath  <roland@hack.frob.com>
45970
45971         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
45972
45973         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
45974         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
45975
45976 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
45977
45978         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
45979
45980 2014-05-27  Andreas Schwab  <schwab@suse.de>
45981
45982         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
45983         TLS_INIT_TP macro.
45984         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
45985         * elf/rtld.c (init_tls, dl_main): Likewise.
45986         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
45987         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
45988         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
45989         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
45990         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
45991         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
45992         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
45993         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
45994         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
45995         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
45996         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
45997         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
45998         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
45999         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
46000         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
46001         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
46002         * sysdeps/generic/tls.h: Update description.
46003
46004 2014-05-27  Will Newton  <will.newton@linaro.org>
46005
46006         [BZ #16990]
46007         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
46008         and restore r2 rather than just restoring.
46009
46010 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
46011
46012         [BZ #16724]
46013         * libio/tst-ftell-append.c: New test case.
46014         * libio/Makefile (tests): Add test case.
46015         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
46016         append mode.
46017         * libio/wfileops.c (do_ftell_wide): Likewise.
46018
46019 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46020
46021         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46022
46023         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
46024         ...
46025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
46026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46027         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
46028         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
46029         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
46030         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
46031         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
46032         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
46033         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
46034         Moved ...
46035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
46036         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
46037         Moved ...
46038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
46039         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
46040         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
46041         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
46042         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
46043         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
46044         ...
46045         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
46046         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
46047         Moved ...
46048         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
46049         here.
46050         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
46051         ...
46052         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
46053         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
46054         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
46055
46056         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
46057         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
46058         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
46059         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
46060
46061         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
46062         merge into ...
46063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
46064         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
46065         ...
46066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
46067         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
46068         ...
46069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
46070         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46071         Moved ...
46072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
46073         here.
46074         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46075         Moved ...
46076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
46077         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46078         Moved ...
46079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
46080
46081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
46082         conditional [RESET_PID].
46083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
46084         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
46085         removed.
46086         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
46087         removed.
46088
46089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
46090         <tcb-offsets.h>.
46091         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46092         (__libc_vfork): New strong alias.
46093         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
46094         removed.
46095         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
46096         Removed.
46097
46098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
46099         <tcb-offsets.h>.
46100         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
46101         (__libc_vfork): New strong alias.
46102         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
46103         removed.
46104         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
46105         removed.
46106
46107 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
46108
46109         * malloc/malloc.c (mi_arena): New function.
46110         (malloc_info): Remove nested function mi_arena. Call non-nosted
46111         function mi_arena.
46112
46113 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46114
46115         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
46116         by insrwi.
46117         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
46118         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
46119         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
46120         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
46121         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
46122         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
46123         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
46124
46125 2014-05-26  Andreas Schwab  <schwab@suse.de>
46126
46127         [BZ #16984]
46128         * locale/programs/repertoire.c (repertoire_read): Add slash
46129         between I18NPATH element and file name.
46130         * locale/programs/locfile.c (locfile_read): Likewise.
46131
46132 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
46133
46134         * nptl/pthread_mutexattr_settype.c
46135         (__pthread_mutexattr_settype):
46136         Disable lock elision for PTHREAD_MUTEX_NORMAL.
46137
46138 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
46139
46140         * nptl/tst-mutex5 (do_test):
46141         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
46142
46143 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
46144
46145         * benchtests/README: Document 'init' directive.
46146         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
46147         BENCH_INIT.
46148         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
46149         (parse_file): Recognize 'init' directive.
46150
46151 2014-05-26  Kyle McMartin  <kyle@redhat.com>
46152
46153         [BZ #16796]
46154         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
46155         alignment of struct pthread.
46156
46157 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
46158
46159         [BZ #16878]
46160         * nscd/netgroupcache.c (addgetnetgrentX): Look for
46161         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
46162         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
46163         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
46164
46165 2014-05-25  Richard Henderson  <rth@twiddle.net>
46166
46167         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46168         (SINGLE_THREAD_P_PIC): Remove.
46169         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
46170         (SINGLE_THREAD_P_PIC): Remove.
46171
46172         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
46173         branch to syscall error ...
46174         (PSEUDO): ... here.
46175         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
46176         from __local_syscall_error to .Lsyscall_error.
46177         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
46178         (SYSCALL_ERROR): Update label name.
46179
46180         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46181         Do not use DOARGS/UNDOARGS.
46182         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
46183         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
46184         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
46185         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
46186         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
46187
46188         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
46189         block comment.
46190
46191         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
46192         define if !NOT_IN_libc.
46193         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
46194         define with non-default symbol versions.
46195
46196 2014-05-23  Richard Henderson  <rth@twiddle.net>
46197
46198         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
46199         (vfork, __vfork): Define via compat_symbol.
46200
46201         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
46202         [!HAVE_IFUNC] (vfork_compat): Remove.
46203         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
46204
46205 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
46206
46207         [BZ #16978]
46208         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
46209         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
46210         variable.
46211
46212 2014-05-23  Richard Henderson  <rth@twiddle.net>
46213
46214         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
46215         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
46216         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
46217         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
46218
46219         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
46220         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
46221         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
46222         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
46223         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
46224         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
46225         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
46226         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
46227         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
46228         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
46229         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
46230         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
46231         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
46232         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
46233         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
46234         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
46235         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
46236         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
46237         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
46238         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
46239         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
46240         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
46241         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
46242         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
46243         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
46244         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
46245         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
46246         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
46247         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
46248         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
46249         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
46250         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
46251         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
46252         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
46253         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
46254         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
46255         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
46256         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
46257         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
46258         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
46259         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
46260         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
46261         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
46262         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
46263         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
46264         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
46265         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
46266         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
46267         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
46268         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
46269         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
46270         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
46271         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
46272         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
46273         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
46274         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
46275
46276         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
46277         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
46278         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
46279         before exiting on error.
46280         (__libc_vfork): New strong alias.
46281         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
46282         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
46283
46284         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
46285         that was previously under [RESET_PID].
46286         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
46287
46288         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
46289
46290 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
46291
46292         [BZ #16977]
46293         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
46294         value when x - 1 is zero.
46295         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
46296         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
46297         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
46298         0.0L for an argument of 1.0L.
46299         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
46300         Likewise.
46301         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
46302         value when x - 1 is zero.
46303         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
46304         * sysdeps/i386/fpu/libm-test-ulps: Update.
46305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46306
46307 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
46308
46309         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
46310         alphasort and versionsort.
46311
46312 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46313
46314         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
46315         macro.
46316         [copysignf]: Likewise.
46317
46318 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
46319
46320         * crypt/md5-crypt.c: Fix formatting.
46321
46322 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
46323
46324         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
46325         (b64_from_24bit): New function.
46326
46327 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46328
46329         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
46330         libc_hidden_builtin_def to ifunc.
46331         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
46332         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
46333
46334 2014-05-21  Roland McGrath  <roland@hack.frob.com>
46335
46336         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
46337         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
46338
46339 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
46340
46341         * nscd/Depend (linuxthreads): Remove.
46342         (nptl): Add.
46343         * resolv/Depend (linuxthreads): Remove.
46344         * rt/Depend (linuxthreads): Remove.
46345
46346         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
46347         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
46348         $(common-objpfx)elf/.
46349         (link-libc-before-gnulib): Likewise.
46350         (elfobjdir): Remove variable.
46351         * Makefile (install): Use $(elf-objpfx) instead of
46352         $(common-objpfx)elf/.
46353         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
46354         $(elfobjdir)/.
46355         (link-libc-deps): Likewise.
46356         ($(common-objpfx)libc.so): Likewise.
46357         ($(common-objpfx)linkobj/libc.so): Likewise.
46358         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
46359         instead of $(common-objpfx)elf/.
46360         (symbolic-link-list): Likewise.
46361         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
46362         [$(cross-compiling) = no]: Likewise.
46363         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
46364         $(elfobjdir)/.
46365         (static-gnulib-arch): Likewise.
46366         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
46367         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
46368         $(common-objpfx)elf/.
46369
46370 2014-05-21  Richard Henderson  <rth@redhat.com>
46371
46372         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
46373         (SINGLE_THREAD_P): Use the correct width load.  Fold
46374         into the ldr offset.
46375
46376         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
46377         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
46378
46379 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
46380
46381         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
46382         (libgcc_s_resume): Use __attribute_used__.
46383         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
46384         Likewise.
46385
46386 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46387
46388         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
46389         optimization when used with float constants.
46390
46391         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46392
46393 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
46394
46395         [BZ #16915]
46396         * locale/nl_langinfo_l.c: Make direct reference to every
46397         _nl_current_CATEGORY symbol.
46398         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
46399         (tests-static): Add tst-langinfo-static.
46400         (tests-special): Add tst-langinfo-static.out.
46401         ($(objpfx)tst-langinfo.out): Redirect output.
46402         ($(objpfx)tst-langinfo-static.out): New.
46403         * localedata/tst-langinfo.sh: Send output to stdout.
46404         * localedata/tst-langinfo-static.c: New file.
46405
46406         [BZ #16965]
46407         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
46408         when the shift amount is modulo the limb size.
46409
46410 2014-05-20  Richard Henderson  <rth@redhat.com>
46411
46412         [BZ #16967]
46413         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
46414         Change type of sa_flags from unsigned int to int.
46415
46416         [BZ #16966]
46417         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
46418
46419         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
46420
46421 2014-05-20  Will Newton  <will.newton@linaro.org>
46422
46423         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
46424         Test the return value of the system call in the nocancel case.
46425
46426 2014-05-20  Will Newton  <will.newton@linaro.org>
46427             Yvan Roux  <yvan.roux@linaro.org>
46428
46429         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
46430         #include of asm/ptrace.h.
46431         (PTRACE_GET_THREAD_AREA): Remove #undef.
46432         (PTRACE_GETHBPREGS): Likewise.
46433         (PTRACE_SETHBPREGS): Likewise.
46434         (struct user_regs_struct): New structure.
46435         (struct user_fpsimd_struct): New structure.
46436         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
46437         #include of asm/ptrace.h and second #include of sys/user.h.
46438         (PTRACE_GET_THREAD_AREA): Remove #undef.
46439         (PTRACE_GETHBPREGS): Likewise.
46440         (PTRACE_SETHBPREGS): Likewise.
46441         (ELF_NGREG): Use new struct user_regs_struct.
46442         (elf_fpregset_t): Use new struct user_fpsimd_struct.
46443
46444 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46445
46446         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
46447         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
46448
46449 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
46450
46451         [BZ #16958]
46452         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
46453         membar to avoid block loads/stores to overlap previous stores.
46454
46455 2014-05-17  Richard Henderson  <rth@redhat.com>
46456
46457         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
46458         Create the __##syscall_name##_nocancel entry point.
46459         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
46460         Remove; let the sysdep-cancel.h code create it.
46461
46462 2014-05-17  David S. Miller  <davem@davemloft.net>
46463
46464         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
46465         Protect with __USE_GNU.
46466         (TIOCSET_TEMPT): Likewise.
46467         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
46468         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
46469         these are already provided in bits/ioctl-types.h
46470
46471 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46472
46473         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
46474         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
46475
46476         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
46477         Use wait4 regardless of [__NR_waitpid].
46478
46479 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
46480
46481         PR libgcc/60166
46482         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
46483         (_FP_NANSIGN_Q): Set the quiet bit.
46484
46485 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
46486
46487         * benchtests/Makefile
46488         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
46489         not $(common-objpfx)math/libm.so.
46490         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
46491         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
46492         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
46493         $(common-objpfx)dlfcn/libdl.so.
46494         ($(objpfx)tst-audit8): Depend on $(libm), not
46495         $(common-objpfx)math/libm.so.
46496         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
46497         not $(common-objpfx)dlfcn/libdl.so.
46498         * math/Makefile
46499         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
46500         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
46501         [$(build-shared) = yes].
46502         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
46503         $(common-objpfx)nptl/libpthread.so.
46504         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
46505         $(common-objpfx)math/libm.so$(libm.so-version) or
46506         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
46507         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
46508         $(common-objpfx)dlfcn/libdl.so.
46509         * setjmp/Makefile (link-libm): Remove variable.
46510         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
46511         * stdio-common/Makefile (link-libm): Remove variable.
46512         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
46513         * stdlib/Makefile (link-libm): Remove variable.
46514         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
46515         ($(objpfx)tst-strtod-round): Likewise.
46516         ($(objpfx)tst-tininess): Likewise.
46517         ($(objpfx)tst-strtod-underflow): Likewise.
46518         ($(objpfx)tst-strtod6): Likewise.
46519         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
46520         $(libdl), not $(common-objpfx)nptl/libpthread.so and
46521         $(common-objpfx)dlfcn/libdl.so.
46522
46523 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46524
46525         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
46526         BSD terminal modes definitions.
46527
46528 2014-05-16  Roland McGrath  <roland@hack.frob.com>
46529
46530         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
46531         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
46532
46533         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
46534         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
46535         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
46536         Don't do #include_next.
46537         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
46538         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
46539         Don't do #include_next.
46540         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
46541         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
46542         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
46543         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
46544
46545 2014-05-16  Allan McRae  <allan@archlinux.org>
46546
46547         * po/sv.po: Update Swedish translation from translation project.
46548
46549         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
46550         in sed expression.
46551
46552 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
46553
46554         [BZ #16917]
46555         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
46556         errno if the TIOCGPTN ioctl fails with an error different than
46557         EINVAL.
46558         * login/tst-ptsname.c: New file.
46559         * login/Makefile (tests): Add tst-ptsname.
46560
46561         [BZ #16943]
46562         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
46563         and prlimit64.
46564
46565 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
46566
46567         [BZ #16849]
46568         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
46569         herrno to return EAI_AGAIN.
46570
46571 2014-05-14  Roland McGrath  <roland@hack.frob.com>
46572
46573         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
46574         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
46575         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
46576         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
46577         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
46578         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
46579         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
46580         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
46581         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
46582         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
46583         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
46584         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
46585         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
46586         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
46587         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
46588         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
46589         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
46590         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
46591         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
46592         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
46593         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
46594         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
46595         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
46596         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
46597         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
46598         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
46599         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
46600         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
46601         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
46602         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
46603         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
46604         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
46605         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
46606         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
46607         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
46608         Moved ...
46609         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
46610         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
46611         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
46612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
46613         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
46614         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
46615         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
46616         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
46617         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
46618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
46619         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
46620         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
46621         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
46622         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
46623         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
46624         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
46625         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
46626         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
46627         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
46628         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
46629         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
46630         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
46631         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
46632         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
46633         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
46634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
46635         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
46636         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
46637         Moved ...
46638         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
46639         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
46640         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
46641         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
46642         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
46643         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
46644         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
46645         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
46646         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
46647         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
46648         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
46649         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
46650         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
46651         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
46652         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
46653         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
46654         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
46655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
46656         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
46657         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
46658         Moved ...
46659         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
46660         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
46661         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
46662
46663         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
46664         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
46665         (libpthread-sysdep_routines): Add elision-related stuff here instead.
46666         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
46667         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
46668         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
46669         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
46670         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
46671         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
46672         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
46673         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
46674         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
46675         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
46676         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
46677         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
46678         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
46679         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
46680         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
46681         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
46682         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
46683         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
46684         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
46685         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
46686         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
46687         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
46688         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
46689         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
46690         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
46691         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
46692         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
46693         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
46694
46695         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
46696         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
46697
46698         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
46699         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
46700         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
46701         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
46702         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
46703         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
46704         Moved ...
46705         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
46706         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
46707         Moved ...
46708         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
46709         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
46710         Moved ...
46711         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
46712         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
46713         Moved ...
46714         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
46715         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
46716         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
46717         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
46718         Moved ...
46719         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
46720         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
46721         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
46722         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
46723         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
46724         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
46725         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
46726         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
46727         Moved ...
46728         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
46729         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46730         Moved ...
46731         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
46732         ... here.
46733         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
46734         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
46735         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
46736         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
46737         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46738         Moved ...
46739         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
46740         ... here.
46741         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
46742         Moved ...
46743         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
46744         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
46745         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
46746         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
46747         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
46748         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
46749         Moved ...
46750         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
46751         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
46752         Moved ...
46753         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
46754         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
46755         Moved ...
46756         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
46757         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
46758         Moved ...
46759         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
46760         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
46761         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
46762         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
46763         Moved ...
46764         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
46765         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
46766         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
46767         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
46768         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
46769         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
46770         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
46771         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
46772         Moved ...
46773         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
46774         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46775         Moved ...
46776         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
46777         ... here.
46778         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
46779         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
46780         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
46781         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
46782         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46783         Moved ...
46784         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
46785         ... here.
46786         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
46787         Moved ...
46788         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
46789         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
46790         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
46791         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
46792         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
46793         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
46794         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
46795         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
46796         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
46797         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
46798         Moved ...
46799         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
46800         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
46801         Moved ...
46802         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
46803         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
46804         Moved ...
46805         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
46806         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
46807         Moved ...
46808         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
46809         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
46810         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
46811         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
46812         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
46813         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
46814         Moved ...
46815         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
46816         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
46817         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
46818         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
46819         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
46820         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
46821         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
46822         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
46823         Moved ...
46824         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
46825         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46826         Moved ...
46827         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
46828         ... here.
46829         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
46830         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
46831         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
46832         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
46833         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46834         Moved ...
46835         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
46836         ... here.
46837         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
46838         Moved ...
46839         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
46840         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
46841         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
46842         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
46843         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
46844         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
46845         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
46846         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
46847         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
46848         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
46849         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
46850
46851         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
46852         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
46853
46854         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
46855         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
46856
46857         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
46858         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
46859         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
46860         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
46861         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
46862         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
46863         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
46864         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
46865         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
46866         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
46867         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
46868         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
46869         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
46870         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
46871         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
46872         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
46873         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
46874         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
46875         Moved ...
46876         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
46877         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
46878         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
46879         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
46880         Moved ...
46881         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
46882         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
46883         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
46884         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
46885         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
46886         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
46887         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
46888         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
46889         Moved ...
46890         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
46891         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
46892         Moved ...
46893         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
46894         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
46895         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
46896         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
46897         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
46898         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
46899         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
46900         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
46901         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
46902         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
46903         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
46904         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
46905         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
46906         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
46907         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
46908         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
46909         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
46910
46911         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
46912         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
46913         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
46914         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
46915         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
46916
46917         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
46918         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
46919         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
46920         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
46921         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
46922         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
46923         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
46924         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
46925         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
46926         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
46927
46928         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
46929         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
46930
46931         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
46932         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
46933         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
46934         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
46935         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
46936         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
46937         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
46938         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
46939         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
46940         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
46941         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
46942         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
46943         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
46944         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
46945         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
46946         Update #include.
46947         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
46948         Likewise.
46949         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
46950         Likewise.
46951         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
46952         Likewise.
46953         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
46954         Likewise.
46955         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
46956         Likewise.
46957         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
46958         Likewise.
46959         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
46960         Likewise.
46961         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
46962         Likewise.
46963         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
46964         Likewise.
46965         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
46966         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
46967         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
46968         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
46969         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
46970         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
46971         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
46972         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
46973         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
46974         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
46975         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
46976         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
46977         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
46978         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
46979         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
46980
46981         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
46982         that was previously under [RESET_PID].
46983         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
46984         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
46985         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
46986
46987         * sysdeps/i386/nptl/Implies: New file.
46988         * sysdeps/x86_64/nptl/Implies: New file.
46989         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
46990         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
46991         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
46992         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
46993
46994         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
46995         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
46996         (__libc_vfork): New strong alias.
46997         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
46998         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
46999
47000         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
47001         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
47002         (__libc_vfork): New strong alias.
47003         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
47004         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
47005
47006         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
47007         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
47008         (__libc_vfork): New strong alias.
47009         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
47010         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
47011         * nptl/pt-vfork.c: New file.
47012         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
47013         (libpthread: GLIBC_2.20): New version set (empty).
47014
47015 2014-05-14  Will Newton  <will.newton@linaro.org>
47016
47017         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
47018         rather than #if.
47019
47020 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
47021
47022         [BZ #16564]
47023         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
47024         arguments with exponent 65 or above.
47025         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
47026         arguments 0x1p113L or above.
47027         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
47028         to arguments 0x1p107L or above.
47029         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
47030         positive arguments with exponent 65 or above.
47031         * math/auto-libm-test-in: Add more tests of log1p.
47032         * math/auto-libm-test-out: Regenerated.
47033
47034         [BZ #16928]
47035         * math/s_cacos.c (__cacos): Ensure zero real part of result from
47036         non-finite arguments is +0.
47037         * math/s_cacosf.c (__cacosf): Likewise.
47038         * math/s_cacosl.c (__cacosl): Likewise.
47039         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
47040         * sysdeps/i386/fpu/libm-test-ulps: Update.
47041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47042
47043         [BZ #16927]
47044         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
47045         value.
47046         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
47047         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
47048         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
47049         for explicit high bit of mantissa when testing for argument equal
47050         to 1.
47051         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
47052         * sysdeps/i386/fpu/libm-test-ulps: Update.
47053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47054
47055         [BZ #16516]
47056         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
47057         (__erf): Scale by 16 instead of 8 in potentially underflowing
47058         case.  Ensure exception if result actually underflows.
47059         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
47060         (__erff): Scale by 16 instead of 8 in potentially underflowing
47061         case.  Ensure exception if result actually underflows.
47062         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
47063         (efx8): Remove variable.
47064         (__erfl): Scale by 16 instead of 8 in potentially underflowing
47065         case.  Ensure exception if result actually underflows.
47066         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
47067         (efx8): Remove variable.
47068         (__erfl): Scale by 16 instead of 8 in potentially underflowing
47069         case.  Ensure exception if result actually underflows.
47070         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
47071         (efx8): Remove variable.
47072         (__erfl): Scale by 16 instead of 8 in potentially underflowing
47073         case.  Ensure exception if result actually underflows.
47074         * math/auto-libm-test-in: Add more tests of erf.
47075         * math/auto-libm-test-out: Regenerated.
47076
47077 2014-05-14  Andreas Schwab  <schwab@suse.de>
47078
47079         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
47080         Remove code conditionalized on USE___THREAD.
47081
47082         * config.h.in (HAVE_PT_CHOWN): Define as 0.
47083         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
47084         not definedness.
47085
47086 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
47087
47088         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
47089         Define unconditionally.
47090         (__ASSUME_O_CLOEXEC): Likewise.
47091         (__ASSUME_SOCK_CLOEXEC): Likewise.
47092         (__ASSUME_IN_NONBLOCK): Likewise.
47093         (__ASSUME_PIPE2): Likewise.
47094         (__ASSUME_EVENTFD2): Likewise.
47095         (__ASSUME_SIGNALFD4): Likewise.
47096         (__ASSUME_DUP3): Likewise.
47097         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
47098         (__ASSUME_DUP3): Do not define.
47099         (__ASSUME_EVENTFD2): Likewise.
47100         (__ASSUME_IN_NONBLOCK): Likewise.
47101         (__ASSUME_O_CLOEXEC): Likewise.
47102         (__ASSUME_PIPE2): Likewise.
47103         (__ASSUME_SIGNALFD4): Likewise.
47104         (__ASSUME_SOCK_CLOEXEC): Likewise.
47105         (__ASSUME_UTIMES): Undefine.
47106         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47107         (__ASSUME_UTIMES): Do not define.
47108         (__ASSUME_O_CLOEXEC): Likewise.
47109         (__ASSUME_SOCK_CLOEXEC): Likewise.
47110         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
47111         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
47112         0x020621].
47113         (__ASSUME_PIPE2): Likewise.
47114         (__ASSUME_EVENTFD2): Likewise.
47115         (__ASSUME_SIGNALFD4): Likewise.
47116         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
47117         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
47118         Do not define.
47119         (__ASSUME_EVENTFD2): Likewise.
47120         (__ASSUME_SIGNALFD4): Likewise.
47121         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
47122         (__ASSUME_32BITUIDS): Likewise.
47123         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
47124         (__ASSUME_IPC64): Likewise.
47125         (__ASSUME_ST_INO_64_BIT): Likewise.
47126         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
47127         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
47128         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
47129         (__ASSUME_UTIMES): Do not define.
47130         (__ASSUME_PSELECT): Likewise.
47131         (__ASSUME_PPOLL): Likewise.
47132         (__ASSUME_O_CLOEXEC): Likewise.
47133         (__ASSUME_SOCK_CLOEXEC): Likewise.
47134         (__ASSUME_IN_NONBLOCK): Likewise.
47135         (__ASSUME_PIPE2): Likewise.
47136         (__ASSUME_EVENTFD2): Likewise.
47137         (__ASSUME_SIGNALFD4): Likewise.
47138         (__ASSUME_DUP3): Likewise.
47139         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47140         (__ASSUME_UTIMES): Likewise.
47141         (__ASSUME_O_CLOEXEC): Likewise.
47142         (__ASSUME_SOCK_CLOEXEC): Likewise.
47143         (__ASSUME_IN_NONBLOCK): Likewise.
47144         (__ASSUME_PIPE2): Likewise.
47145         (__ASSUME_EVENTFD2): Likewise.
47146         (__ASSUME_SIGNALFD4): Likewise.
47147         (__ASSUME_DUP3): Likewise.
47148         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
47149         (__ASSUME_UTIMES): Likewise.
47150         (__ASSUME_O_CLOEXEC): Likewise.
47151         (__ASSUME_SOCK_CLOEXEC): Likewise.
47152         (__ASSUME_IN_NONBLOCK): Likewise.
47153         (__ASSUME_PIPE2): Likewise.
47154         (__ASSUME_EVENTFD2): Likewise.
47155         (__ASSUME_SIGNALFD4): Likewise.
47156         (__ASSUME_DUP3): Likewise.
47157         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
47158         Likewise.
47159         (__ASSUME_UTIMES): Likewise.
47160         (__ASSUME_EVENTFD2): Likewise.
47161         (__ASSUME_SIGNALFD4): Likewise.
47162         * sysdeps/unix/sysv/linux/tile/kernel-features.h
47163         (__ASSUME_O_CLOEXEC): Likewise.
47164         (__ASSUME_SOCK_CLOEXEC): Likewise.
47165         (__ASSUME_IN_NONBLOCK): Likewise.
47166         (__ASSUME_PIPE2): Likewise.
47167         (__ASSUME_EVENTFD2): Likewise.
47168         (__ASSUME_SIGNALFD4): Likewise.
47169         (__ASSUME_DUP3): Likewise.
47170         (__ASSUME_UTIMES): Undefine.
47171
47172         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
47173         feclearexcept.  Remove symbol versioning code.
47174         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
47175         symbol versioning code.
47176         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
47177         symbol versioning code.
47178         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
47179         feupdateenv.  Remove symbol versioning code.
47180         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
47181         fegetexceptflag.  Remove symbol versioning code.
47182         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
47183         fesetexceptflag.  Remove symbol versioning code.
47184         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
47185         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
47186         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
47187         (__posix_fadvise64_l32): Remove prototype.
47188         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
47189         code.
47190
47191 2014-05-13  Roland McGrath  <roland@hack.frob.com>
47192
47193         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
47194         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
47195         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
47196         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
47197
47198 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
47199
47200         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
47201         current working directory
47202
47203 2014-05-13  Roland McGrath  <roland@hack.frob.com>
47204
47205         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
47206         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
47207         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
47208         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
47209         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
47210         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
47211         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
47212         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
47213         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
47214         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
47215         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
47216         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
47217         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
47218         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
47219         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
47220         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
47221         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
47222         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
47223         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
47224         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
47225         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
47226         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
47227         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
47228         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
47229         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
47230         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
47231         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
47232         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
47233         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
47234         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
47235         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
47236         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
47237         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
47238         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
47239         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
47240         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
47241         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
47242         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
47243         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
47244         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
47245         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
47246         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
47247
47248         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
47249         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
47250
47251         * sysdeps/unix/sysv/linux/arm/Makefile
47252         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
47253         Add rt-aeabi_unwind_cpp_pr1.
47254         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
47255         Add nptl-aeabi_unwind_cpp_pr1.
47256         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
47257         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
47258         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
47259         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
47260         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
47261         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
47262
47263         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
47264         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
47265         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
47266         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
47267
47268         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
47269         Deconditionalize the code that was previously under [RESET_PID].
47270         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
47271
47272         * sysdeps/generic/exit-thread.h: New file.
47273         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
47274         * include/unistd.h (__exit_thread): Remove declaration.
47275         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
47276         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
47277         * csu/libc-start.c: Include <exit-thread.h>.
47278         (LIBC_START_MAIN): Pass no argument to __exit_thread.
47279         * nptl/pthread_create.c: Include <exit-thread.h>.
47280         (start_thread): Call __exit_thread in place of __exit_thread_inline.
47281         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
47282         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
47283         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
47284         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
47285         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
47286         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
47287         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
47288         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
47289         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
47290         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
47291         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
47292         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
47293         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
47294         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
47295         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
47296         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
47297
47298 2014-05-13  Andreas Schwab  <schwab@suse.de>
47299
47300         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
47301
47302 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
47303
47304         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
47305         (__ASSUME_UTIMES): Do not condition on kernel version.
47306         (__ASSUME_PSELECT): Define unconditionally.
47307         (__ASSUME_PPOLL): Likewise.
47308         (__ASSUME_ATFCTS): Likewise.
47309         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
47310         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
47311         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
47312         (__ASSUME_UTIMENSAT): Define unconditionally.
47313         (__ASSUME_PRIVATE_FUTEX): Likewise.
47314         (__ASSUME_FALLOCATE): Likewise.
47315         (__ASSUME_O_CLOEXEC): Likewise.
47316         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
47317         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
47318         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
47319         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
47320         (__ASSUME_IN_NONBLOCK): Likewise.
47321         (__ASSUME_PIPE2): Likewise.
47322         (__ASSUME_EVENTFD2): Likewise.
47323         (__ASSUME_SIGNALFD4): Likewise.
47324         (__ASSUME_DUP3): Likewise.
47325         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47326         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
47327         (__ASSUME_AT_RANDOM): Likewise.
47328         (__ASSUME_PREADV): Likewise.
47329         (__ASSUME_PWRITEV): Likewise.
47330         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
47331         (__ASSUME_F_GETOWN_EX): Define unconditionally.
47332         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
47333         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
47334         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
47335         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
47336         (__ASSUME_O_CLOEXEC): Define unconditionally.
47337         (__ASSUME_PSELECT): Do not undefine conditionally.
47338         (__ASSUME_PPOLL): Likewise.
47339         (__ASSUME_ATFCTS): Likewise.
47340         (__ASSUME_SET_ROBUST_LIST): Likewise.
47341         (__ASSUME_UTIMENSAT): Likewise.
47342         (__ASSUME_FDATASYNC): Define unconditionally.
47343         * sysdeps/unix/sysv/linux/arm/kernel-features.h
47344         (__ASSUME_SIGFRAME_V2): Likewise.
47345         )__ASSUME_EVENTFD2): Likewise.
47346         (__ASSUME_SIGNALFD4): Likewise.
47347         (__ASSUME_PSELECT): Do not undefine conditionally.
47348         (__ASSUME_PPOLL): Likewise.
47349         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
47350         (__ASSUME_PSELECT): Define unconditionally.
47351         (__ASSUME_PPOLL): Likewise.
47352         (__ASSUME_O_CLOEXEC): Likewise.
47353         (__ASSUME_SOCK_CLOEXEC): Likewise.
47354         (__ASSUME_IN_NONBLOCK): Likewise.
47355         (__ASSUME_PIPE2): Likewise.
47356         (__ASSUME_EVENTFD2): Likewise.
47357         (__ASSUME_SIGNALFD4): Likewise.
47358         (__ASSUME_DUP3): Likewise.
47359         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
47360         (__ASSUME_O_CLOEXEC): Likewise.
47361         (__ASSUME_SOCK_CLOEXEC): Likewise.
47362         (__ASSUME_IN_NONBLOCK): Likewise.
47363         (__ASSUME_PIPE2): Likewise.
47364         (__ASSUME_EVENTFD2): Likewise.
47365         (__ASSUME_SIGNALFD4): Likewise.
47366         (__ASSUME_DUP3): Likewise.
47367         * sysdeps/unix/sysv/linux/mips/kernel-features.h
47368         (__ASSUME_EVENTFD2): Likewise.
47369         (__ASSUME_SIGNALFD4): Likewise.
47370         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
47371
47372 2014-05-12  Andreas Schwab  <schwab@suse.de>
47373
47374         [BZ #16932]
47375         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
47376         (_nss_nis_gethostbyname4_r): Return error if item length is larger
47377         than maximum RPC packet size.
47378         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
47379         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
47380         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
47381         (_nss_nis_getservbyport_r): Likewise.
47382
47383 2014-05-12  Will Newton  <will.newton@linaro.org>
47384
47385         * malloc/Makefile (tests): Add tst-mallopt.
47386         * malloc/tst-mallopt.c: New file.
47387
47388 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47389
47390         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
47391         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
47392
47393 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47394
47395         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
47396         (tst-tlsmod6.so): Likewise.
47397
47398 2014-05-09  Roland McGrath  <roland@hack.frob.com>
47399
47400         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
47401
47402 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
47403
47404         [BZ #16064]
47405         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
47406         and <dl-procinfo.h>.
47407         (__fegetenv): Save SSE state in envp->__eip if supported.
47408         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
47409         envp->__eip if supported.
47410         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
47411         and <dl-procinfo.h>.
47412         (__fesetenv): Always set __eip, __cs_selector, __opcode,
47413         __data_offset and __data_selector in environment to 0.  Set SSE
47414         state if supported.
47415         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
47416         test-fenv-sse.
47417         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
47418         -mfpmath=sse.
47419         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
47420
47421 2014-05-09  Will Newton  <will.newton@linaro.org>
47422
47423         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
47424         and libc_relro_required for ARM.
47425         * sysdeps/arm/preconfigure: Regenerate.
47426
47427 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
47428             Stefan Liebler  <stli@linux.vnet.ibm.com>
47429
47430         * config.make.in (enable-lock-elision): New Makefile variable.
47431         * configure.ac: Likewise.
47432         * configure: Regenerate.
47433         * sysdeps/s390/configure.ac:
47434         Add check for gcc transactions support.
47435         * sysdeps/s390/configure: Regenerate.
47436         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
47437         Build elision files if enabled.
47438         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
47439         Add lock elision support for s390.
47440         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
47441         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
47442         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
47443         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
47444         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
47445         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
47446         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
47447         Likewise.
47448         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
47449         Likewise.
47450         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
47451         Likewise.
47452         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
47453         Likewise.
47454         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
47455         (__lll_timedlock_elision, __lll_lock_elision)
47456         (__lll_unlock_elision, __lll_trylock_elision)
47457         (lll_timedlock_elision, lll_lock_elision)
47458         (lll_unlock_elision, lll_trylock_elision): Add.
47459         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
47460         (pthread_mutex_t): Add lock elision support for s390.
47461
47462 2014-05-14  Wilco  <wdijkstr@arm.com>
47463
47464         * sysdeps/arm/fclrexcpt.c: Cleanup.
47465         * sysdeps/arm/fedisblxcpt.c: Cleanup.
47466         * sysdeps/arm/feenablxcpt.c: Cleanup.
47467         * sysdeps/arm/fegetenv.c: Cleanup.
47468         * sysdeps/arm/fegetexcept.c: Cleanup.
47469         * sysdeps/arm/fegetround.c: Cleanup.
47470         * sysdeps/arm/feholdexcpt.c: Cleanup.
47471         * sysdeps/arm/fesetenv.c: Cleanup.
47472         * sysdeps/arm/fesetround.c: Cleanup.
47473         * sysdeps/arm/feupdateenv.c: Cleanup.
47474         * sysdeps/arm/fgetexcptflg.c: Cleanup.
47475         * sysdeps/arm/fraiseexcpt.c: Cleanup.
47476         * sysdeps/arm/fsetexcptflg.c: Cleanup.
47477         * sysdeps/arm/ftestexcept.c: Cleanup.
47478         * sysdeps/arm/get-rounding-mode.h: Cleanup.
47479         * sysdeps/arm/setfpucw.c: Cleanup.
47480
47481 2014-05-09  Will Newton  <will.newton@linaro.org>
47482
47483         * sysdeps/arm/armv7/strcmp.S: New file.
47484         * NEWS: Mention addition of ARMv7 optimized strcmp.
47485
47486 2014-05-08  Roland McGrath  <roland@hack.frob.com>
47487
47488         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
47489         look for %.ac rather than %.in.
47490
47491         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
47492         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
47493         * sysdeps/mach/hurd/configure: Regenerated.
47494         * sysdeps/unix/sysv/linux/configure: Regenerated.
47495
47496         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
47497
47498 2014-05-07  Steve Ellcey  <sellcey@mips.com>
47499
47500         [BZ #16922]
47501         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
47502         (LONG_SUB): Ditto.
47503         (PTR_SUB): Ditto.
47504
47505 2014-05-07  Andreas Schwab  <schwab@suse.de>
47506
47507         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
47508         when skipping over non-matching result from nscd.
47509
47510 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
47511
47512         [BZ #16876]
47513         * nptl/sockperf.c (client): Check socket return value.
47514
47515         [BZ #16877]
47516         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
47517         nscd security class.
47518
47519 2014-05-06  Roland McGrath  <roland@hack.frob.com>
47520
47521         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
47522         * sysdeps/arm/unwind.h: ... here.
47523
47524 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
47525
47526         [BZ #16916]
47527         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
47528         Define.
47529
47530 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
47531
47532         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
47533         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
47534         multiarch strncpy for PPC64.
47535         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
47536         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
47537         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
47538         multiarch optimizations.
47539         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
47540         (__libc_ifunc_impl_list): Likewise.
47541         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
47542         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
47543         multiarch stpncpy for PPC64.
47544         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
47545         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
47546
47547 2014-05-06  Andreas Schwab  <schwab@suse.de>
47548
47549         [BZ #16912]
47550         * gmon/mcount.c (_MCOUNT_DECL): Use
47551         atomic_compare_and_exchange_bool_acq instead of
47552         catomic_compare_and_exchange_bool_acq.
47553
47554 2014-05-05  Roland McGrath  <roland@hack.frob.com>
47555
47556         * elf/Makefile (others, install-bin): Remove pldd.
47557         (pldd-modules): Variable removed.
47558         ($(objpfx)pldd): Target removed.
47559         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
47560         (others, install-bin): Append pldd here.
47561         ($(objpfx)pldd): New target.
47562
47563         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
47564         to 0, so the first #if test emitted later doesn't see it undefined.
47565         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
47566         * sysdeps/gnu/errlist.c: Regenerated.
47567
47568 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47569
47570         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
47571         [libc_hidden_builtin_def]: Define to empty value.
47572         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
47573         [libc_hidden_builtin_def]: Likewise.
47574         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
47575         [libc_hidden_builtin_def]: Likewise.
47576         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
47577         [libc_hidden_builtin_def]: Likewise.
47578         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
47579         __redirect_memcpy and define ifunc as default hidden symbol.
47580         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
47581         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
47582
47583 2014-05-04  Adam Conrad  <adconrad@0c3.net>
47584
47585         * locale/iso-4217.def: Reintroduce XDR currency.
47586
47587 2014-05-04  Allan McRae  <allan@archlinux.org>
47588
47589         * po/eo.po: Update Esperanto translation from translation project.
47590
47591 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
47592
47593         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
47594         and FEATURE_INDEX_MAX to 1.
47595         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
47596
47597 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47598
47599         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
47600         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
47601         * iconvdata/big5.c (ONE_DIRECTION): Define.
47602         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
47603         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
47604         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
47605         * iconvdata/cp932.c (ONE_DIRECTION): Define.
47606         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
47607         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
47608         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
47609         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
47610         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
47611         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
47612         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
47613         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
47614         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
47615         * iconvdata/gbk.c (ONE_DIRECTION): Define.
47616         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
47617         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
47618         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
47619         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
47620         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
47621         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
47622         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
47623         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
47624         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
47625         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
47626         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
47627         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
47628         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
47629         * iconvdata/iso646.c (ONE_DIRECTION): Define.
47630         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
47631         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
47632         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
47633         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
47634         * iconvdata/johab.c (ONE_DIRECTION): Define.
47635         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
47636         * iconvdata/sjis.c (ONE_DIRECTION): Define.
47637         * iconvdata/t.61.c (ONE_DIRECTION): Define.
47638         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
47639         * iconvdata/tscii.c (ONE_DIRECTION): Define.
47640         * iconvdata/uhc.c (ONE_DIRECTION): Define.
47641         * iconvdata/unicode.c (ONE_DIRECTION): Define.
47642         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
47643         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
47644         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
47645
47646 2014-05-01  Roland McGrath  <roland@hack.frob.com>
47647
47648         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
47649         (_IO_JUMPS_OFFSET): Define to 0.
47650
47651         * nptl/sysdeps/pthread/bits/libc-lock.h
47652         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
47653         (__libc_lock_define_initialized_recursive): Always define using
47654         initializer.  Modern compilers treat uninitialized (implicit zero) and
47655         explicit zero initializers the same (i.e. put the datum in bss).
47656
47657 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47658
47659         * nscd/nscd-client.h: Include <string.h>.
47660
47661 2014-05-01  David S. Miller  <davem@davemloft.net>
47662
47663         [BZ #16885]
47664         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
47665         multiple zero bytes exist at the end of a string.
47666         Reported by Aurelien Jarno <aurelien@aurel32.net>
47667
47668         * string/test-strcmp.c (check): Add explicit test for situations where
47669         there are multiple zero bytes after the first.
47670
47671 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
47672
47673         [BZ #16890]
47674         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
47675         when compiling wprintf.
47676         * stdio-common/tstdiomisc.c (t3): New function.
47677         (main): Call it.
47678
47679 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47680
47681         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
47682         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
47683         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
47684         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
47685
47686 2014-05-01  Steve Ellcey  <sellcey@mips.com>
47687
47688         * stdlib/longlong.h: Updated from GCC.
47689
47690 2014-05-01  Will Newton  <will.newton@linaro.org>
47691             Bernard Ogden  <bernie.ogden@linaro.org>
47692
47693         * NEWS: Update fixed bug list.
47694
47695         [BZ #15119]
47696         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
47697
47698 2014-04-30  David S. Miller  <davem@davemloft.net>
47699
47700         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
47701         (libc_feholdexcept_setround_sparc_ctx): New function.
47702         (libc_fesetenv_sparc_ctx): Likewise.
47703         (libc_feupdateenv_sparc_ctx): Likewise.
47704         (libc_feholdsetround_sparc_ctx): Likewise.
47705         (libc_feholdexcept_setround_ctx): Define.
47706         (libc_feholdexcept_setroundf_ctx): Likewise.
47707         (libc_feholdexcept_setroundl_ctx): Likewise.
47708         (libc_fesetenv_ctx): Likewise.
47709         (libc_fesetenvf_ctx): Likewise.
47710         (libc_fesetenvl_ctx): Likewise.
47711         (libc_feupdateenv_ctx): Likewise.
47712         (libc_feupdateenvf_ctx): Likewise.
47713         (libc_feupdateenvl_ctx): Likewise.
47714         (libc_feresetround_ctx): Likewise.
47715         (libc_feresetroundf_ctx): Likewise.
47716         (libc_feresetroundl_ctx): Likewise.
47717         (libc_feholdsetround_ctx): Likewise.
47718         (libc_feholdsetroundf_ctx): Likewise.
47719         (libc_feholdsetroundl_ctx): Likewise.
47720
47721         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47722         with __USE_GNU instead of XOPEN cpp guards.
47723
47724         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
47725         0.
47726
47727         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
47728         with XOPEN cpp guards.
47729
47730 2014-04-30  Julian Brown  <julian@codesourcery.com>
47731
47732         [BZ #16888]
47733         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
47734         handling.
47735
47736 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
47737
47738         [BZ #9894]
47739         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
47740         Change to 2.6.32.
47741         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
47742         * sysdeps/unix/sysv/linux/configure: Regenerated.
47743         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
47744         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
47745         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
47746         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
47747         * README: Update reference to required Linux kernel version.
47748         * manual/install.texi (Linux): Update reference to required Linux
47749         kernel headers version.
47750         * INSTALL: Regenerated.
47751
47752         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
47753         header inclusion.
47754         [POSIX] (limits.h): Likewise.
47755         [POSIX] (math.h): Likewise.
47756         [POSIX] (sys/wait.h): Likewise.
47757         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
47758         function.
47759         [POSIX] (stddef.h): Do not allow header inclusion.
47760
47761 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47762
47763         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
47764
47765 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
47766
47767         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
47768         Return immediately after lll_futex_wake.
47769
47770 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47771
47772         [BZ #16791]
47773         * nscd/nscd-client.h (datahead_init_common): Initialize entire
47774         structure.
47775         (datahead_init_pos): Call datahead_init_common early.
47776         (datahead_init_neg): Likewise.
47777
47778         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
47779         datahead_init_neg): New functions.
47780         * nscd/aicache.c (addhstaiX): Use them.
47781         * nscd/grpcache.c (cache_addgr): Likewise.
47782         * nscd/hstcache.c (cache_addhst): Likewise.
47783         * nscd/initgrcache.c (addinitgroupsX): Likewise.
47784         * nscd/netgroupcache.c (do_notfound): Likewise.
47785         (addgetnetgrentX): Likewise.
47786         (addinnetgrX): Likewise.
47787         * nscd/pwdcache.c (cache_addpw): Likewise.
47788         * nscd/servicescache.c (cache_addserv): Likewise.
47789
47790 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
47791             Atsushi Onoe  <atsushi@onoe.org>
47792
47793         [BZ #14308]
47794         [BZ #12994]
47795         [BZ #13651]
47796         * resolv/res_query.c (__libc_res_nsearch): Return if at least
47797         one response is valid.
47798         * resolv/res_send.c (send_dg): Check for validity of other
47799         response if the current response is a referral.
47800
47801 2014-04-29  Steve Ellcey  <sellcey@mips.com>
47802
47803         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
47804
47805 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
47806
47807         [BZ #16823]
47808         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
47809         Always divide by positive zero when computing -Inf result.
47810         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
47811         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
47812
47813 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47814
47815         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
47816         FPSCR if value do not change.
47817         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
47818         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
47819         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
47820         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
47821         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
47822         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
47823         function.
47824
47825 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
47826
47827         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
47828         * sysdeps/unix/sysv/linux/hppa: Move directory from
47829         ports/systeps/unix/sysv/linux/hppa.
47830         * README: Update listing for hppa-*-linux-gnu.
47831
47832 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
47833
47834         [BZ #16754]
47835         * manual/stdio.texi (Hook functions): Fix types of stream hook
47836         functions.
47837         [BZ #16854]
47838         * socket/sys/socket.h: Fix typo in comment.
47839
47840 2014-04-28  Wilco  <wdijkstr@arm.com>
47841
47842         * sysdeps/arm/fenv_private.h: New file.
47843         * sysdeps/arm/math_private.h: New file.
47844         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
47845
47846 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
47847
47848         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
47849         with __int128_t.
47850         (La_x86_64_retval): Likewise.
47851
47852 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
47853
47854         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
47855         fpsr if value didn't change.
47856         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
47857         to fpcr if value didn't change.
47858         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
47859         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
47860         fpsr or fpcr if value didn't change.
47861         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
47862         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
47863         fpcr if value didn't change.
47864         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
47865         to fpsr if value didn't change.
47866
47867 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
47868
47869         * nptl/tst-sem3.c: Use test-skeleton.c
47870         (main): Rename to do_test.  Use return instead of
47871         exit.
47872         * nptl/tst-sem4.c: Use test-skeleton.c
47873         (main): Rename to do_test.
47874
47875 2014-04-22  David S. Miller  <davem@davemloft.net>
47876
47877         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
47878         (struct sigaction): New struct member __glibc_reserved0, change
47879         type of sa_flags to int.
47880
47881 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
47882
47883         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
47884         (COUNT_LEADING_ZEROS_0): Define for AArch64.
47885
47886 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47887
47888         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
47889         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
47890
47891 2014-04-22  Will Newton  <will.newton@linaro.org>
47892             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
47893
47894         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
47895         (__longjmp): Add longjmp and longjmp_target SystemTap
47896         probes.
47897         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
47898         (__sigsetjmp): Add setjmp SystemTap probe.
47899
47900 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
47901
47902         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
47903         match manual order.
47904
47905 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47906
47907         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
47908
47909         * sysdeps/powerpc/fpu/fenv_private.h
47910         (libc_feholdexcept_setroundl_ctx): Define to
47911         libc_feholdexcept_setround_ppc_ctx.
47912         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
47913         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
47914         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
47915         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
47916
47917 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47918
47919         * sysdeps/aarch64/math-tests.h: New file.
47920
47921 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
47922
47923         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
47924         New.
47925         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47926         Check and set bit_AVX2_Usable.
47927         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
47928         macro.
47929         (bit_AVX2): Likewise.
47930         (index_AVX2_Usable): Likewise.
47931         (CPUID_AVX2): Likewise.
47932         (HAS_AVX2): Likewise.
47933
47934 2014-04-17  Will Newton  <will.newton@linaro.org>
47935
47936         * manual/setjmp.texi (System V contexts): Add note that
47937         calling setcontext on a context created by a call to a
47938         signal handler is undefined.  Update text to note that
47939         setcontext from a signal handler is possible but not
47940         recommended.
47941
47942         [BZ #16629]
47943         * stdlib/tst-setcontext.c: Include signal.h.
47944         (main): Check that the signal stack before and
47945         after swapcontext is the same.
47946
47947         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
47948         Re-implement to restore registers in user code and avoid
47949         rt_sigreturn system call.
47950
47951 2014-04-17  Wilco  <wdijkstr@arm.com>
47952
47953         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
47954         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
47955         * math/test-fenv.c: Skip exception trap tests on targets which only
47956         support non-stop mode.
47957
47958 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
47959             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47960
47961         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
47962         (libc_feholdsetround_aarch64_ctx)
47963         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
47964         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
47965         (libc_feresetround_ctx, libc_feresetroundf_ctx)
47966         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
47967         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
47968         (libc_feresetround_noexl_ctx): Define.
47969
47970 2014-04-16  Richard Henderson  <rth@redhat.com>
47971
47972         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
47973
47974         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
47975         unwind tables.
47976
47977         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
47978         const from the non-libc, non-ldso copy.
47979
47980         * sysdeps/alpha/libm-test-ulps: Regenerate.
47981
47982 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
47983             Wilco Dijkstra  <wilco.dijkstra@arm.com>
47984
47985         * sysdeps/aarch64/fpu/math_private.h: New file.
47986
47987 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
47988
47989         * sysdeps/aarch64/libm-test-ulps: Regenerate.
47990
47991 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
47992
47993         [BZ #16275]
47994         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
47995         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
47996         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
47997         Intel MPX bound registers before _dl_profile_fixup.
47998         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
47999         registers after _dl_profile_fixup.  Save and restore bound
48000         registers bnd0/bnd1 when calling _dl_call_pltexit.
48001         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
48002         (LR_BND_OFFSET): Likewise.
48003         (LRV_BND0_OFFSET): Likewise.
48004         (LRV_BND1_OFFSET): Likewise.
48005
48006 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48007
48008         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
48009         to...
48010         * sysdeps/mach/hurd/i386/tls.h: ... here.
48011         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
48012         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
48013         fields.
48014
48015 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48016
48017         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
48018
48019 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
48020
48021         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
48022
48023 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
48024
48025         [BZ #14770]
48026         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
48027         * sysdeps/s390/configure: Regenerate.
48028
48029         [BZ #16824]
48030         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
48031         Set round-to-nearest internally to reduce error accumulation.
48032
48033 2014-04-16  Alan Modra  <amodra@gmail.com>
48034
48035         [BZ #16740]
48036         [BZ #16619]
48037         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
48038         * math/libm-test.inc (frexp_test_data): Add tests.
48039         * NEWS: Update fixed bug list.
48040
48041 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
48042
48043         * benchtests/Makefile: Depend on libraries in build directory.
48044         (bench-math): Separate out math tests.
48045         (bench-pthread): Separate out pthread tests.
48046         (bench): Include math and pthread tests.
48047
48048 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
48049
48050         [BZ #16831]
48051         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
48052         _dl_debug_initialize.
48053
48054         * configure.ac: Remove SELinux header check.
48055         * configure: Regenerate.
48056         * nscd/selinux.c (perms): Array of const char* to permission names.
48057         (nscd_request_avc_has_perm): Call security_deny_unknown to find
48058         default policy. Call string_to_security_class and string_to_av_perm to
48059         translate strings. Enforce default policy and call avs_has_perm with
48060         results of translated strings.
48061
48062 2014-04-13  David S. Miller  <davem@davemloft.net>
48063
48064         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48065
48066 2014-04-12  Allan McRae  <allan@archlinux.org>
48067
48068         [BZ #16838]
48069         * manual/string.texi (Collation Functions): Fix qsort argument
48070         order in example.
48071         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
48072
48073 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
48074
48075         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
48076         Make the test a no-op if there are no exceptions defined.
48077
48078 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
48079
48080         * elf/Makefile (tests): make tst-dlopen-aout conditional on
48081         enable-hardcoded-path-in-tests
48082
48083 2014-04-11  Will Newton  <will.newton@linaro.org>
48084
48085         * benchtests/Makefile (extra-objs): Add json-lib.o.
48086         (bench-func): Tidy up JSON output.
48087         * benchtests/bench-skeleton.c: Include json-lib.h.
48088         (main): Use JSON library functions to do output of
48089         benchmark results.
48090         * benchtests/bench-timing-type.c (main): Output the
48091         timing type simply, leaving formatting to the user.
48092         * benchtests/json-lib.c: New file.
48093         * benchtests/json-lib.h: Likewise.
48094
48095 2014-04-11  Torvald Riegel  <triegel@redhat.com>
48096
48097         [BZ #15215]
48098         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
48099         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
48100         memory barriers.  Add comments.
48101         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
48102         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
48103         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
48104         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
48105         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
48106         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
48107
48108 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
48109
48110         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
48111         * sysdeps/s390/s390-64/configure.ac: ... this ...
48112         * sysdeps/s390/configure.ac: ... to here.
48113         * sysdeps/s390/s390-32/configure: Delete file.
48114         * sysdeps/s390/s390-64/configure: Delete file.
48115         * sysdeps/s390/configure: Regenerate.
48116
48117 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
48118
48119         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
48120
48121 2014-04-11  Will Newton  <will.newton@linaro.org>
48122
48123         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
48124         to zero if it is not defined elsewhere.  (mtrim): Test
48125         the value of MALLOC_DEBUG with #if rather than #ifdef.
48126
48127 2014-04-10 Torvald Riegel  <triegel@redhat.com>
48128
48129         * benchtests/pthread_once-inputs: New file.
48130         * benchtests/pthread_once-source.c: New file.
48131         * benchtests/README: Update documentation.
48132
48133 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
48134             H.J. Lu  <hongjiu.lu@intel.com>
48135
48136         [BZ #16275]
48137         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
48138         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
48139         * sysdeps/x86_64/configure: Regenerated.
48140         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
48141         macro.
48142         (REGISTER_SAVE_RAX): Likewise.
48143         (REGISTER_SAVE_RCX): Likewise.
48144         (REGISTER_SAVE_RDX): Likewise.
48145         (REGISTER_SAVE_RSI): Likewise.
48146         (REGISTER_SAVE_RDI): Likewise.
48147         (REGISTER_SAVE_R8): Likewise.
48148         (REGISTER_SAVE_R9): Likewise.
48149         (REGISTER_SAVE_BND0): Likewise.
48150         (REGISTER_SAVE_BND1): Likewise.
48151         (REGISTER_SAVE_BND2): Likewise.
48152         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
48153         bound registers when calling _dl_fixup.
48154
48155 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48156
48157         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
48158         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
48159         of its definition.
48160         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
48161         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
48162         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
48163         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
48164         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
48165         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
48166         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
48167
48168 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
48169
48170         [BZ #15514]
48171         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
48172         pathconf(_PC_NAME_MAX).
48173
48174 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48175
48176         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
48177         Remove macro usage.
48178         (__PTHREAD_SPINS): Move definition to ...
48179         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48180         (__PTHREAD_SPINS): ... here.
48181         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48182         (__PTHREAD_SPIN): Likewise.
48183         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
48184         (__PTHREAD_SPIN): Likewise.
48185         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
48186         (__PTHREAD_SPIN): Likewise.
48187         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
48188         (__PTHREAD_SPIN): Likewise.
48189         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
48190         (__PTHREAD_SPIN): Likewise.
48191         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
48192         (__PTHREAD_SPIN): Likewise.
48193         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
48194         (__PTHREAD_SPIN): Likewise.
48195         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
48196         (__PTHREAD_SPIN): Likewise.
48197         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
48198         (__PTHREAD_SPIN): Likewise.
48199         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
48200         (__PTHREAD_SPIN): Likewise.
48201         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
48202         (__PTHREAD_SPIN): Likewise.
48203         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
48204         (__PTHREAD_SPIN): Likewise.
48205
48206         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
48207         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
48208         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
48209         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
48210         imply folder.
48211         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
48212         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
48213         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
48214         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
48215         correct imply path.
48216         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
48217         strlen symbol for non multi-arch builds.
48218         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
48219         missing hidden_def and weak_alias.
48220
48221 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
48222
48223         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
48224
48225 2014-04-07  Will Newton  <will.newton@linaro.org>
48226
48227         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
48228         and contents.  [!_LIBC] Remove #ifndef and contents.
48229         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
48230         * string/memccpy.c (__memccpy): Use ANSI prototype.
48231         * string/memfrob.c (memfrob): Likewise.
48232         * string/strcoll.c (STRCOLL): Likewise.
48233         * string/strlen.c (strlen): Likewise.
48234         * string/strtok.c (STRTOK): Likewise.
48235         * string/strcat.c: Remove unused #include of memcopy.h.
48236         (strcat): Use ANSI prototype.
48237         * string/strchr.c: Remove unused #include of memcopy.h.
48238         (strchr): Use ANSI prototype.
48239         * string/strcmp.c: Remove unused #include of memcopy.h.
48240         (strcmp): Use ANSI prototype.
48241         * string/strcpy.c: Remove unused #include of memcopy.h.
48242         (strcpy): Use ANSI prototype.
48243
48244 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48245
48246         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
48247         * config.make.in (config-extra-cppflags): Set it from
48248         libc_extra_cppflags.
48249         * configure.ac (libc_extra_cflags): Make it accumulate over
48250         configure fragments.
48251         (libc_extra_cppflags): New flag.
48252         * configure. Regenerate.
48253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
48254         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
48255         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
48256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
48257
48258         [BZ #16815]
48259         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
48260         result for FE_DOWNWARD rounding mode.
48261         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
48262         Likewise.
48263         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48264
48265 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
48266
48267         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
48268         in function argument name.
48269
48270 2014-04-03  David Svoboda  <svoboda@cert.org>
48271
48272         [BZ #5666]
48273         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
48274         explicitly.
48275
48276 2014-04-03  Roland McGrath  <roland@hack.frob.com>
48277
48278         * elf/dl-unmap-segments.h: New file.
48279         * sysdeps/generic/ldsodefs.h
48280         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
48281         * elf/dl-close.c: Include <dl-unmap-segments.h>.
48282         * elf/dl-fptr.c: Likewise.
48283         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
48284         * sysdeps/aarch64/tlsdesc.c: Likewise.
48285         * sysdeps/arm/tlsdesc.c: Likewise.
48286         * sysdeps/i386/tlsdesc.c: Likewise.
48287         * sysdeps/tile/dl-runtime.c: Likewise.
48288         * sysdeps/x86_64/tlsdesc.c: Likewise.
48289         * elf/dl-load.h: New file.
48290         * elf/dl-load.c: Include it.
48291         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
48292         Macros moved to dl-load.h.
48293         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
48294         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
48295         Use _dl_unmap_segments in place of __munmap.
48296         Break out segment-mapping loop into ...
48297         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
48298
48299 2014-04-03  Will Newton  <will.newton@linaro.org>
48300
48301         * elf/dl-lookup.c (do_lookup_x): Remove comment
48302         referring to nested function and move variable
48303         declarations down to before first use.
48304
48305 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
48306
48307         [BZ #16799]
48308         [BZ #16800]
48309         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
48310         with 0 numerator.
48311         * math/s_catanf.c (__catanf): Likewise.
48312         * math/s_catanh.c (__catanh): Likewise.
48313         * math/s_catanhf.c (__catanhf): Likewise.
48314         * math/s_catanhl.c (__catanhl): Likewise.
48315         * math/s_catanl.c (__catanl): Likewise.
48316         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
48317         by positive zero when computing -Inf result.
48318         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
48319         (catanh_test): Likewise.
48320         * sysdeps/i386/fpu/libm-test-ulps: Update.
48321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48322
48323         [BZ #16789]
48324         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
48325         instead of using underflowing value in computing result.
48326         * math/s_clog10.c (__clog10): Likewise.
48327         * math/s_clog10f.c (__clog10f): Likewise.
48328         * math/s_clog10l.c (__clog10l): Likewise.
48329         * math/s_clogf.c (__clogf): Likewise.
48330         * math/s_clogl.c (__clogl): Likewise.
48331         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
48332         (clog10_test): Likewise.
48333         * sysdeps/i386/fpu/libm-test-ulps: Update.
48334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48335
48336 2014-04-02  Alan Modra  <amodra@gmail.com>
48337
48338         [BZ #16739]
48339         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
48340         output when value is near a power of two.  Use int64_t for lx and
48341         remove casts.  Use decimal rather than hex exponent constants.
48342         Don't use long double multiplication when double will suffice.
48343         * math/libm-test.inc (nextafter_test_data): Add tests.
48344         * NEWS: Add 16739 and 16786 to bug list.
48345
48346         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
48347
48348         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
48349
48350 2014-04-01  Will Newton  <will.newton@linaro.org>
48351
48352         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
48353         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
48354
48355 2014-04-01  Florian Weimer  <fweimer@redhat.com>
48356
48357         [BZ #13347]
48358         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
48359         * nptl/tst-setuid2.c: New file.
48360         * nptl/Makefile (xtests): Add tst-setuid2.
48361
48362 2014-04-01  Alan Modra  <amodra@gmail.com>
48363
48364         [BZ #16786]
48365         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
48366
48367 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48368
48369         [BZ #6803]
48370         [BZ #6804]
48371         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
48372         set errno as appropriate.
48373         * math/w_scalbf.c (__scalbf): Likewise.
48374         * math/w_scalbl.c (__scalbl): Likewise.
48375         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
48376         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
48377         * math/libm-test.inc (scalb_test_data): Add errno expectations.
48378         Add more NaN tests.
48379
48380         [BZ #16349]
48381         * math/w_atan2.c: Include <errno.h>.
48382         (__atan2): Set errno for result underflowing to zero.
48383         * math/w_atan2f.c: Include <errno.h>.
48384         (__atan2f): Set errno for result underflowing to zero.
48385         * math/w_atan2l.c: Include <errno.h>.
48386         (__atan2l): Set errno for result underflowing to zero.
48387         * math/auto-libm-test-in: Don't allow missing errno for some atan2
48388         tests.
48389         * math/auto-libm-test-out: Regenerated.
48390
48391 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48392
48393         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
48394         Encode instruction correctly in little endian.
48395         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
48396         Likewise.
48397         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
48398         Likewise.
48399         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
48400         Likewise.
48401         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
48402         Likewise.
48403
48404 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
48405
48406         [BZ #9894]
48407         * sysdeps/unix/sysv/linux/kernel-features.h
48408         [__sparc__ && !__arch64__ && !__sparc_v9__]
48409         (__ASSUME_SET_ROBUST_LIST): Do not define.
48410         [__sparc__ && !__arch64__ && !__sparc_v9__]
48411         (__ASSUME_FUTEX_LOCK_PI): Likewise.
48412         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
48413         Likewise.
48414         * sysdeps/unix/sysv/linux/arm/kernel-features.h
48415         (__ASSUME_FUTEX_LOCK_PI): Undefine.
48416         (__ASSUME_REQUEUE_PI): Likewise.
48417         (__ASSUME_SET_ROBUST_LIST): Likewise.
48418         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
48419         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
48420         Undefine.
48421         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48422         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
48423         Likewise.
48424         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
48425         Likewise.
48426         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
48427         Likewise.
48428         * sysdeps/unix/sysv/linux/mips/kernel-features.h
48429         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
48430         Undefine.
48431         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
48432         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
48433         Likewise.
48434
48435         [BZ #16648]
48436         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
48437         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
48438         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
48439
48440 2014-03-31  Will Newton  <will.newton@linaro.org>
48441
48442         * benchtests/Makefile (bench): Add ffs and ffsll to list
48443         of tests.
48444         * benchtests/ffs-inputs: New file.
48445         * benchtests/ffsll-inputs: Likewise.
48446
48447 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
48448
48449         [BZ #16770]
48450         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
48451         too large before casting to int.
48452         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
48453         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
48454         * math/libm-test.inc (scalb_test_data): Add more tests.
48455
48456 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
48457
48458         * benchtests/Makefile (DETAILED_OPT): New make option.
48459         (bench-func): Run benchmark program with -d if DETAILED_OPT is
48460         set.
48461         * benchtests/bench-skeleton.c: Include stdbool.h.
48462         (main): Store and print timings per input.
48463         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
48464         member to each argument value.
48465         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
48466         (_print_arg_data): Initialize per-input timing to 0.
48467
48468         * benchtests/Makefile (timing-type): New binary.
48469         (bench-clean): Also remove bench-timing-type.
48470         (bench): New target for timing-type.
48471         (bench-func): Print output in JSON format.
48472         * benchtests/bench-skeleton.c (main): Print output in JSON
48473         format.
48474         * benchtests/bench-timing-type.c: New file.
48475         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
48476         (TIMING_PRINT_STATS): Remove.
48477         * benchtests/scripts/bench.py (_print_arg_data): Store variant
48478         name separately.
48479
48480         * benchtests/bench-modf.c: Remove.
48481         * benchtests/modf-inputs: New inputs file.
48482
48483 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
48484
48485         [BZ #16362]
48486         * math/s_clog10.c (M_PI_LOG10E): New macro.
48487         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
48488         imaginary parts are 0.
48489         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
48490         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
48491         imaginary parts are 0.
48492         * math/s_clog10l.c (M_PI_LOG10El): New macro.
48493         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
48494         imaginary parts are 0.
48495         * math/libm-test.inc (clog10_test_data): Update expected results
48496         for when real and imaginary parts are 0.
48497
48498 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
48499
48500         * elf/dl-load.c: Finish conversion of __builtin_expect into
48501         __glibc_{un}likely.
48502
48503 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
48504
48505         [BZ #16348]
48506         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
48507         1+x for argument with exponent below -67.
48508         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
48509         Likewise.
48510         * math/auto-libm-test-in: Add more tests of exp.
48511         * math/auto-libm-test-out: Regenerated.
48512
48513 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48514
48515         [BZ #16759]
48516         * inet/getnetgrent_r.c (get_nonempty_val): New function.
48517         (nscd_getnetgrent): Use it.
48518
48519         [BZ #16760]
48520         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
48521         of stpcpy.
48522
48523 2014-03-27  Andi Kleen  <ak@linux.intel.com>
48524
48525         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
48526         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48527         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48528         (lll_robust_unlock): Remove out of line section. Use cfi
48529         intrinsics.
48530         (LLL_STUB_UNWIND_INFO*): Remove.
48531         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
48532         (lll_robust_lock, lll_cond_lock, lll_timedlock)
48533         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
48534         (lll_robust_unlock): Remove out of line section. Use cfi
48535         intrinsics.
48536         (LLL_STUB_UNWIND_INFO*): Remove.
48537
48538 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
48539
48540         [BZ #16758]
48541         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
48542         blank values.
48543
48544 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
48545
48546         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
48547
48548 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
48549
48550         [BZ #16198]
48551         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
48552         fnstenv.
48553         * math/test-fenv-preserve.c: New file.
48554         * math/Makefile (tests): Add test-fenv-preserve.
48555
48556 2014-03-26  Will Newton <will.newton@linaro.org>
48557
48558         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
48559
48560 2014-03-25  Roland McGrath  <roland@hack.frob.com>
48561
48562         * scripts/versionlist.awk: Partition the version sets and emit all
48563         GLIBC_* (sorted) before all others (sorted).
48564
48565 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48566
48567         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
48568         GLIBC_2.2.5 version.
48569
48570 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48571
48572         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
48573         calls.
48574
48575         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
48576         previous change.
48577
48578         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48579
48580 2014-03-25  Andreas Schwab  <schwab@suse.de>
48581
48582         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
48583         label to be used after in6ailist is initialized.
48584
48585 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48586
48587         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
48588         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48589
48590 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
48591
48592         [BZ #16357]
48593         [BZ #16599]
48594         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
48595         min_plus_half.
48596         (fp_formats): Update initializers.
48597         (init_fp_formats): Initialize new field.
48598         (output_for_one_input_case): Allow underflow for results up to
48599         min_plus_half.
48600         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
48601         * math/auto-libm-test-in: Don't mark some underflows from asin and
48602         atanh as spurious.
48603         * math/auto-libm-test-out: Regenerated.
48604         * sysdeps/i386/fpu/libm-test-ulps: Update.
48605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48606
48607 2014-03-25  Andreas Schwab  <schwab@suse.de>
48608
48609         * libio/Makefile (tst-ftell-partial-wide-ENV)
48610         (tst-ftell-active-handler-ENV): Define.
48611
48612 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
48613
48614         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
48615
48616 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48617
48618         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
48619
48620 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48621
48622         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
48623         * sysdeps/x86_64/fpu/multiarch/e_exp.c
48624         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
48625
48626 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
48627
48628         [BZ #16634]
48629         * elf/dl-load.c (open_verify): Add mode parameter.
48630         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
48631         (open_path): Change from boolean 'secure' to complete flag 'mode'
48632         (_dl_map_object): Adjust.
48633         * elf/Makefile (tests): Add tst-dlopen-aout.
48634         * elf/tst-dlopen-aout.c: New test.
48635
48636 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
48637
48638         [BZ #16714]
48639         * sysdeps/unix/sysv/linux/s390/bits/stat.h
48640         (struct stat): Rename member pad0 to __glibc_reserved0.
48641
48642         [BZ #16712]
48643         * sysdeps/s390/s390-32/bits/wordsize.h
48644         (__WORDSIZE32_SIZE_ULONG): New define.
48645         * sysdeps/s390/s390-64/bits/wordsize.h
48646         (__WORDSIZE32_SIZE_ULONG): Likewise.
48647         * sysdeps/generic/stdint.h (SIZE_MAX):
48648         Define as UL if __WORDSIZE32_SIZE_ULONG.
48649
48650         [BZ #16713]
48651         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
48652         (__glibc_reserved0): New variable.
48653         (sa_flags): Change type to int.
48654
48655         * posix/Makefile (before-compile): Use += before-compile instead
48656         of a :=.
48657
48658         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
48659         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
48660
48661 2014-03-20  Andreas Schwab  <schwab@suse.de>
48662
48663         [BZ #16743]
48664         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
48665         non-matching result from nscd.
48666
48667 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
48668
48669         * scripts/bench.py: Moved to ...
48670         * benchtests/scripts/bench.py: ... here.
48671         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
48672
48673 2014-03-24  Andreas Schwab  <schwab@suse.de>
48674
48675         [BZ #16002]
48676         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
48677         alloca_account and account alloca use for struct in6ailist.
48678
48679 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
48680
48681         [BZ #16284]
48682         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
48683         rounding mode to recompute results that overflow to infinity or
48684         underflow to zero.
48685         * math/auto-libm-test-in: Don't mark tests as expected to fail for
48686         bug 16284.
48687         * math/auto-libm-test-out: Regenerated.
48688         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
48689         (ccosh_test): Likewise.
48690         (csin_test_data): Use plus_oflow.
48691         (csin_test): Use ALL_RM_TEST.
48692         (csinh_test_data): Use plus_oflow.
48693         (csinh_test): Use ALL_RM_TEST.
48694         * sysdeps/i386/fpu/libm-test-ulps: Update.
48695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48696
48697 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
48698
48699         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
48700         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
48701         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
48702
48703         [BZ #16731]
48704         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
48705         when x - 1 is zero.
48706         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
48707         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
48708         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
48709         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
48710         argument is 1.
48711         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
48712         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
48713         zero.
48714         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
48715         * sysdeps/i386/fpu/libm-test-ulps: Update.
48716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48717
48718 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
48719
48720         * scripts/bench.pl: Remove file.
48721         * scripts/bench.py: New benchmark script.
48722         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
48723         * benchtests/README: Mention python dependency.
48724         * scripts/pylintrc: New file.
48725         * scripts/pylint: New file.
48726
48727         * bits/mathdef.h: Use #ifdef instead of #if.
48728         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
48729         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48730         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
48731         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48732         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
48733         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
48734
48735 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48736             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
48737
48738         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
48739         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
48740         and strpbrk-ppc64 objects.
48741         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48742         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
48743         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
48744         multiarch strpbrk for POWER7.
48745         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
48746         multiarch strpbrk for PPC64.
48747         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
48748         ifunc selector.
48749         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
48750         strpbrk for POWER7.
48751
48752 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48753
48754         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
48755         (atan_test): Likewise.
48756         (atanh_test_data): Use NO_TEST_INLINE for two tests.
48757         (atanh_test): Use ALL_RM_TEST.
48758         (atan2_test_data): Likewise.
48759         (cabs_test): Likewise.
48760         (cacosh_test): Likewise.
48761         (carg_test): Likewise.
48762         (casin_test): Likewise.
48763         (casinh_test): Likewise.
48764         (cbrt_test): Likewise.
48765         (csqrt_test): Likewise.
48766         (erf_test): Likewise.
48767         (erfc_test): Likewise.
48768         (pow10_test): Likewise.
48769         (exp2_test): Likewise.
48770         (hypot_test): Likewise.
48771         (j0_test): Likewise.
48772         (j1_test): Likewise.
48773         (lgamma_test): Likewise.
48774         (gamma_test): Likewise.
48775         (sincos_test): Likewise.
48776         (tanh_test): Likewise.
48777         (y0_test): Likewise.
48778         (y1_test): Likewise.
48779         * sysdeps/i386/fpu/libm-test-ulps: Update.
48780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48781
48782 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48783
48784         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
48785         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
48786         and strcspn-ppc64 objects.
48787         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
48788         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
48789         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
48790         multiarch strcspn for POWER7.
48791         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
48792         multiarch strcspn for PPC64.
48793         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
48794         ifunc selector.
48795         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
48796         strcspn for POWER7.
48797
48798 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
48799
48800         * math/gen-libm-test.pl (generate_testfile): Expect only function
48801         name as argument to AUTO_TESTS_* and pass results for all rounding
48802         modes to parse_args.
48803         (parse_auto_input): Separate inputs of automatic tests from
48804         outputs before storing in %auto_tests.
48805         * math/libm-test.inc (acos_test_data): Update call to
48806         AUTO_TESTS_f_f.
48807         (acos_test): Use ALL_RM_TEST.
48808         (acos_tonearest_test_data): Remove.
48809         (acos_test_tonearest): Likewise.
48810         (acos_towardzero_test_data): Likewise.
48811         (acos_test_towardzero): Likewise.
48812         (acos_downward_test_data): Likewise.
48813         (acos_test_downward): Likewise.
48814         (acos_upward_test_data): Likewise.
48815         (acos_test_upward): Likewise.
48816         (acosh_test_data): Update call to AUTO_TESTS_f_f.
48817         (asin_test_data): Likewise.
48818         (asin_test): Use ALL_RM_TEST.
48819         (asin_tonearest_test_data): Remove.
48820         (asin_test_tonearest): Likewise.
48821         (asin_towardzero_test_data): Likewise.
48822         (asin_test_towardzero): Likewise.
48823         (asin_downward_test_data): Likewise.
48824         (asin_test_downward): Likewise.
48825         (asin_upward_test_data): Likewise.
48826         (asin_test_upward): Likewise.
48827         (asinh_test_data): Update call to AUTO_TESTS_f_f.
48828         (atan_test_data): Likewise.
48829         (atanh_test_data): Likewise.
48830         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
48831         (cabs_test_data): Update call to AUTO_TESTS_c_f.
48832         (carg_test_data): Likewise.
48833         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
48834         (ccos_test_data): Update call to AUTO_TESTS_c_c.
48835         (ccosh_test_data): Likewise.
48836         (cexp_test_data): Likewise.
48837         (clog_test_data): Likewise.
48838         (clog10_test_data): Likewise.
48839         (cos_test_data): Update call to AUTO_TESTS_f_f.
48840         (cos_test): Use ALL_RM_TEST.
48841         (cos_tonearest_test_data): Remove.
48842         (cos_test_tonearest): Likewise.
48843         (cos_towardzero_test_data): Likewise.
48844         (cos_test_towardzero): Likewise.
48845         (cos_downward_test_data): Likewise.
48846         (cos_test_downward): Likewise.
48847         (cos_upward_test_data): Likewise.
48848         (cos_test_upward): Likewise.
48849         (cosh_test_data): Update call to AUTO_TESTS_f_f.
48850         (cosh_test): Use ALL_RM_TEST.
48851         (cosh_tonearest_test_data): Remove.
48852         (cosh_test_tonearest): Likewise.
48853         (cosh_towardzero_test_data): Likewise.
48854         (cosh_test_towardzero): Likewise.
48855         (cosh_downward_test_data): Likewise.
48856         (cosh_test_downward): Likewise.
48857         (cosh_upward_test_data): Likewise.
48858         (cosh_test_upward): Likewise.
48859         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
48860         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
48861         (ctan_test_data): Likewise.
48862         (ctan_test): Use ALL_RM_TEST.
48863         (ctan_tonearest_test_data): Remove.
48864         (ctan_test_tonearest): Likewise.
48865         (ctan_towardzero_test_data): Likewise.
48866         (ctan_test_towardzero): Likewise.
48867         (ctan_downward_test_data): Likewise.
48868         (ctan_test_downward): Likewise.
48869         (ctan_upward_test_data): Likewise.
48870         (ctan_test_upward): Likewise.
48871         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
48872         (ctanh_test): Use ALL_RM_TEST.
48873         (ctanh_tonearest_test_data): Remove.
48874         (ctanh_test_tonearest): Likewise.
48875         (ctanh_towardzero_test_data): Likewise.
48876         (ctanh_test_towardzero): Likewise.
48877         (ctanh_downward_test_data): Likewise.
48878         (ctanh_test_downward): Likewise.
48879         (ctanh_upward_test_data): Likewise.
48880         (ctanh_test_upward): Likewise.
48881         (erf_test_data): Update call to AUTO_TESTS_f_f.
48882         (erfc_test_data): Likewise.
48883         (exp_test_data): Likewise.
48884         (exp_test): Use ALL_RM_TEST.
48885         (exp_tonearest_test_data): Remove.
48886         (exp_test_tonearest): Likewise.
48887         (exp_towardzero_test_data): Likewise.
48888         (exp_test_towardzero): Likewise.
48889         (exp_downward_test_data): Likewise.
48890         (exp_test_downward): Likewise.
48891         (exp_upward_test_data): Likewise.
48892         (exp_test_upward): Likewise.
48893         (exp10_test_data): Update call to AUTO_TESTS_f_f.
48894         (exp10_test): Use ALL_RM_TEST.
48895         (exp10_tonearest_test_data): Remove.
48896         (exp10_test_tonearest): Likewise.
48897         (exp10_towardzero_test_data): Likewise.
48898         (exp10_test_towardzero): Likewise.
48899         (exp10_downward_test_data): Likewise.
48900         (exp10_test_downward): Likewise.
48901         (exp10_upward_test_data): Likewise.
48902         (exp10_test_upward): Likewise.
48903         (exp2_test_data): Update call to AUTO_TESTS_f_f.
48904         (expm1_test_data): Likewise.
48905         (expm1_test): Use ALL_RM_TEST.
48906         (expm1_tonearest_test_data): Remove.
48907         (expm1_test_tonearest): Likewise.
48908         (expm1_towardzero_test_data): Likewise.
48909         (expm1_test_towardzero): Likewise.
48910         (expm1_downward_test_data): Likewise.
48911         (expm1_test_downward): Likewise.
48912         (expm1_upward_test_data): Likewise.
48913         (expm1_test_upward): Likewise.
48914         (fma_test_data): Update call to AUTO_TESTS_fff_f.
48915         (fma_test): Use ALL_RM_TEST.
48916         (fma_towardzero_test_data): Remove.
48917         (fma_test_towardzero): Likewise.
48918         (fma_downward_test_data): Likewise.
48919         (fma_test_downward): Likewise.
48920         (fma_upward_test_data): Likewise.
48921         (fma_test_upward): Likewise.
48922         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
48923         (j0_test_data): Update call to AUTO_TESTS_f_f.
48924         (j1_test_data): Likewise.
48925         (jn_test_data): Update call to AUTO_TESTS_if_f.
48926         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
48927         (log_test_data): Update call to AUTO_TESTS_f_f.
48928         (log10_test_data): Likewise.
48929         (log1p_test_data): Likewise.
48930         (log2_test_data): Likewise.
48931         (pow_test_data): Update call to AUTO_TESTS_ff_f.
48932         (pow_tonearest_test_data): Likewise.
48933         (sin_test_data): Update call to AUTO_TESTS_f_f.
48934         (sin_test): Use ALL_RM_TEST.
48935         (sin_tonearest_test_data): Remove.
48936         (sin_test_tonearest): Likewise.
48937         (sin_towardzero_test_data): Likewise.
48938         (sin_test_towardzero): Likewise.
48939         (sin_downward_test_data): Likewise.
48940         (sin_test_downward): Likewise.
48941         (sin_upward_test_data): Likewise.
48942         (sin_test_upward): Likewise.
48943         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
48944         (sinh_test_data): Update call to AUTO_TESTS_f_f.
48945         (sinh_test): Use ALL_RM_TEST.
48946         (sinh_tonearest_test_data): Remove.
48947         (sinh_test_tonearest): Likewise.
48948         (sinh_towardzero_test_data): Likewise.
48949         (sinh_test_towardzero): Likewise.
48950         (sinh_downward_test_data): Likewise.
48951         (sinh_test_downward): Likewise.
48952         (sinh_upward_test_data): Likewise.
48953         (sinh_test_upward): Likewise.
48954         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
48955         (sqrt_test): Use ALL_RM_TEST.
48956         (sqrt_tonearest_test_data): Remove.
48957         (sqrt_test_tonearest): Likewise.
48958         (sqrt_towardzero_test_data): Likewise.
48959         (sqrt_test_towardzero): Likewise.
48960         (sqrt_downward_test_data): Likewise.
48961         (sqrt_test_downward): Likewise.
48962         (sqrt_upward_test_data): Likewise.
48963         (sqrt_test_upward): Likewise.
48964         (tan_test_data): Update call to AUTO_TESTS_f_f.
48965         (tan_test): Use ALL_RM_TEST.
48966         (tan_tonearest_test_data): Remove.
48967         (tan_test_tonearest): Likewise.
48968         (tan_towardzero_test_data): Likewise.
48969         (tan_test_towardzero): Likewise.
48970         (tan_downward_test_data): Likewise.
48971         (tan_test_downward): Likewise.
48972         (tan_upward_test_data): Likewise.
48973         (tan_test_upward): Likewise.
48974         (tanh_test_data): Update call to AUTO_TESTS_f_f.
48975         (tgamma_test_data): Likewise.
48976         (y0_test_data): Likewise.
48977         (y1_test_data): Likewise.
48978         (yn_test_data): Update call to AUTO_TESTS_if_f.
48979         (main): Do not call removed functions.
48980
48981 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48982
48983         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
48984         (ldexp_test_data): Remove.
48985         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
48986         scalbn_test_data.
48987         (scalb_test): Use ALL_RM_TEST.
48988
48989 2014-03-19  Andreas Schwab  <schwab@suse.de>
48990
48991         * nscd/nscd.service: Also invalidate netgroup cache on reload.
48992
48993 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
48994
48995         [BZ #16649]
48996         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
48997         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
48998         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
48999         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
49000         (__ASSUME_PREADV): Undefine.
49001         (__ASSUME_PWRITEV): Likewise.
49002
49003 2014-03-18  Roland McGrath  <roland@hack.frob.com>
49004
49005         * bits/mman-linux.h: Add comment about non-Linux use.
49006         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
49007         bits/mman-linux.h resting place.
49008
49009         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
49010         * bits/mman-linux.h: ... here.
49011
49012 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49013
49014         * conform/conformtest.pl: Add standard definition when calling C
49015         preprocessor on data files.
49016         (checknamespace): Remove unused variable.
49017
49018 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
49019
49020         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
49021         minus_oflow, plus_uflow and minus_uflow in expected results.
49022         * math/libm-test.inc (scalbn_test_data): Add more tests of
49023         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
49024         minus_uflow.
49025         (scalbn_test): Use ALL_RM_TEST.
49026         (scalbln_test_data): Add more tests of negative arguments.  Use
49027         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
49028         (scalbln_test): Use ALL_RM_TEST.
49029
49030 2014-03-18  Roland McGrath  <roland@hack.frob.com>
49031
49032         * scripts/abilist.awk: Ignore symbols marked with .hidden.
49033
49034 2014-03-18  Will Newton  <will.newton@linaro.org>
49035
49036         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
49037         inaccurate comment.
49038
49039 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
49040
49041         * Makerules [!subdir] (check-abi): Exit with error status if a
49042         test failed.
49043
49044 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
49045
49046         * math/libm-test.inc (nearbyint_test_data): Include all tests used
49047         for rint.  Include results for all rounding modes.
49048         (nearbyint_test): Use ALL_RM_TEST.
49049         (rint_test_data): Include all tests used for nearbyint.
49050
49051 2014-03-17  Will Newton  <will.newton@linaro.org>
49052
49053         * nptl/sysdeps/pthread/pthread.h: Revert previous
49054         change.
49055
49056         * sysdeps/generic/ldsodefs.h: Revert previous
49057         change.
49058
49059         * libio/genops.c: Revert previous change.
49060         * libio/libioP.h: Likewise.
49061         * stdio-common/vfprintf.c: Likewise.
49062
49063         * sysdeps/generic/math_private.h: Revert previous
49064         change.
49065
49066         * sysdeps/generic/math_private.h: Check whether
49067         HAVE_RM_CTX is defined with #ifdef rather
49068         than #if.
49069
49070         * argp/argp-fmtstream.h: Check whether
49071         __STRICT_ANSI__ is defined with #ifdef rather
49072         than #if.
49073         * argp/argp.h: Likewise.
49074
49075         * libio/genops.c: Check whether
49076         _IO_JUMPS_OFFSET is defined with #ifdef rather
49077         than #if.
49078         * libio/libioP.h: Likewise.
49079         * stdio-common/vfprintf.c: Likewise.
49080
49081         * sysdeps/generic/ldsodefs.h: Check whether
49082         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
49083         than #if.
49084
49085         * nptl/sysdeps/pthread/pthread.h: Check
49086         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
49087         its value.
49088
49089 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49090
49091         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
49092         setting O_APPEND.
49093         * libio/tst-ftell-active-handler.c (do_append_test): Add a
49094         test case.
49095
49096         [BZ #16680]
49097         * libio/fileops.c (_IO_file_open): Seek to end of file but
49098         don't cache the offset.
49099         (get_file_offset): Remove function.
49100         (do_ftell): Use cached offset when available.
49101         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
49102         don't cache the offset.
49103         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
49104         case.
49105         (do_one_test): Call it.
49106         (do_ftell_test): Fix up expected old offset for a+ mode.
49107         * libio/wfileops.c (do_ftell_wide): Used cached offset when
49108         available.
49109
49110         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
49111         up test status with function return status.
49112         (do_write_test): Likewise.
49113         (do_append_test): Likewise.
49114
49115         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
49116         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
49117         Remove.
49118
49119 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
49120
49121         * math/gen-libm-test.pl (parse_args): Handle results specified for
49122         each rounding mode separately.
49123         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
49124         tests and results from lrint_tonearest_test_data,
49125         lrint_towardzero_test_data, lrint_downward_test_data and
49126         lrint_upward_test_data.
49127         (lrint_test): Use ALL_RM_TEST.
49128         (lrint_tonearest_test_data): Remove.
49129         (lrint_test_tonearest): Likewise.
49130         (lrint_towardzero_test_data): Likewise.
49131         (lrint_test_towardzero): Likewise.
49132         (lrint_downward_test_data): Likewise.
49133         (lrint_test_downward): Likewise.
49134         (lrint_upward_test_data): Likewise.
49135         (lrint_test_upward): Likewise.
49136         (llrint_test_data): Merge in per-rounding-mode tests and results
49137         from llrint_tonearest_test_data, llrint_towardzero_test_data,
49138         llrint_downward_test_data and llrint_upward_test_data.
49139         (llrint_test): Use ALL_RM_TEST.
49140         (llrint_tonearest_test_data): Remove.
49141         (llrint_test_tonearest): Likewise.
49142         (llrint_towardzero_test_data): Likewise.
49143         (llrint_test_towardzero): Likewise.
49144         (llrint_downward_test_data): Likewise.
49145         (llrint_test_downward): Likewise.
49146         (llrint_upward_test_data): Likewise.
49147         (llrint_test_upward): Likewise.
49148         (rint_test_data): Merge in per-rounding-mode tests and results
49149         from rint_tonearest_test_data, rint_towardzero_test_data,
49150         rint_downward_test_data and rint_upward_test_data.  Add
49151         per-rounding-mode results for tests not in those arrays.
49152         (rint_test): Use ALL_RM_TEST.
49153         (rint_tonearest_test_data): Remove.
49154         (rint_test_tonearest): Likewise.
49155         (rint_towardzero_test_data): Likewise.
49156         (rint_test_towardzero): Likewise.
49157         (rint_downward_test_data): Likewise.
49158         (rint_test_downward): Likewise.
49159         (rint_upward_test_data): Likewise.
49160         (rint_test_upward): Likewise.
49161         (main): Don't call removed functions.
49162
49163 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49164
49165         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
49166         "Compiled on ..." crapola.  It is anti-useful.
49167
49168 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
49169
49170         * scripts/evaluate-test.sh: Handle fourth argument to determine
49171         whether test run should stop on failure.
49172         * Makeconfig (stop-on-test-failure): New variable.
49173         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
49174         $(stop-on-test-failure).
49175         * Makefile (tests): Give a summary of results from testing and
49176         exit with failure status if they include an ERROR or FAIL.
49177         (xtests): Likewise.
49178         * manual/install.texi (Configuring and compiling): Mention
49179         stop-on-test-failure=y.
49180         * INSTALL: Regenerated.
49181
49182 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49183
49184         * scripts/versionlist.awk: New file.
49185         * Makerules [$(build-shared) = yes]
49186         (postclean-generated): Add Versions.def, not Versions.def.v and
49187         Versions.def.v.i.
49188         ($(common-objpfx)Versions.def.v.i): Target removed.
49189         ($(common-objpfx)Versions.def): New target.
49190         ($(common-objpfx)Versions.all): Depend on that rather that
49191         $(common-objpfx)Versions.def.v.
49192         * Versions.def: File removed.
49193
49194         * Makeconfig (+gccwarn): Add -Wundef.
49195         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
49196         a dl-sysdep.h breaking its contract.
49197         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
49198         * include/stackinfo.h: New file.
49199         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
49200         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
49201         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
49202         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
49203         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
49204         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
49205         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49206         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49207         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49208         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49209         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49210         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
49211         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49212         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49213         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
49214
49215 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49216
49217         [BZ #16707]
49218         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
49219         implementation.
49220         * math/libm-test.inc (round_test_data): Add more tests.
49221
49222         [BZ #16706]
49223         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
49224         implementation.
49225         * math/libm-test.inc (nearbyint_test_data): Add more tests.
49226
49227         [BZ #16701]
49228         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
49229         implementation.
49230         * math/libm-test.inc (ceil_test_data): Add more tests.
49231
49232         * math/libm-test.inc (trunc_test_data): Add more tests related to
49233         BZ#16414.
49234
49235 2014-03-14  Roland McGrath  <roland@hack.frob.com>
49236
49237         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
49238         with #if rather than #ifdef.
49239         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
49240
49241 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
49242
49243         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
49244         first.  Disable AVX-512 GCC support if assembler doesn't support
49245         it.
49246         * sysdeps/x86_64/configure: Regenerated.
49247
49248 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
49249
49250         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
49251         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
49252         (__old_pthread_attr_setstack): Likewise.
49253         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
49254         [!_STACK_GROWS_DOWN]: Likewise.
49255
49256 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
49257
49258         * config.make.in (have-bash2): Delete.
49259         * configure.ac (libc_cv_have_bash2): Delete.
49260         * configure: Regenerate.
49261         * elf/Makefile (common-ldd-rewrite): Rename to ...
49262         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
49263         (sh-ldd-rewrite): Delete.
49264         (bash-ldd-rewrite): Delete.
49265         (have-bash2): Delete checks.
49266         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
49267         ldd-rewrite.
49268
49269         * config.make.in (have-ksh): Delete.
49270         (KSH): Delete.
49271         * configure.ac (libc_cv_have_ksh): Delete.
49272         * configure: Regenerate.
49273
49274         * elf/Makefile: Delete $(have-ksh) check.
49275         ($(objpfx)sotruss): Change KSH to BASH.
49276         * elf/sotruss.ksh: Rename to ...
49277         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
49278         function style to match POSIX.  Drop ksh vim mode setting.
49279
49280         * manual/time.texi (Specifying the Time Zone with TZ): Change
49281         Tuesday to Thursday.
49282
49283         * debug/tst-longjmp_chk2.c: Update header comment.
49284         (stackoverflow_handler): Add comment.  Call assert on pass value.
49285
49286 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
49287
49288         [BZ #16194]
49289         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
49290         (HAVE_AVX512_ASM_SUPPORT): Likewise.
49291         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
49292         (La_x86_64_vector): Add zmm.
49293         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
49294         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
49295         ($(objpfx)tst-audit10): New target.
49296         ($(objpfx)tst-audit10.out): Likewise.
49297         (tst-audit10-ENV): New.
49298         (AVX512-CFLAGS): Likewise.
49299         (CFLAGS-tst-audit10.c): Likewise.
49300         (CFLAGS-tst-auditmod10a.c): Likewise.
49301         (CFLAGS-tst-auditmod10b.c): Likewise.
49302         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
49303         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
49304         * sysdeps/x86_64/configure: Regenerated.
49305         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
49306         AVX-512 zmm register support.
49307         (_dl_x86_64_save_sse): Likewise.
49308         (_dl_x86_64_restore_sse): Likewise.
49309         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
49310         size vector registers.
49311         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
49312         (ZMM_SIZE): Likewise.
49313         * sysdeps/x86_64/tst-audit10.c: New file.
49314         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
49315         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
49316
49317 2014-03-13  Roland McGrath  <roland@hack.frob.com>
49318
49319         * configure.ac (HAVE_EHDR_START): New check.
49320         * configure: Regenerated.
49321         * config.h.in (HAVE_EHDR_START): New #undef.
49322         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
49323         assuming the lowest-addressed segment maps the start of the file.
49324
49325 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
49326
49327         * INSTALL: Regenerated.
49328
49329 2014-03-13  Will Newton  <will.newton@linaro.org>
49330
49331         * manual/setjmp.texi (System V contexts): Improve
49332         clarity and grammar of documentation.
49333
49334 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
49335
49336         [BZ #16381]
49337         * elf/Makefile (tests): Add tst-pie2.
49338         (tests-pie): Add tst-pie2.
49339         * elf/tst-pie2.c: New file.
49340         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
49341         for ET_EXEC.
49342         * elf/rtld.c (map_doit): Load executable as lt_executable.
49343         (dl_main): Likewise.
49344
49345 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
49346
49347         [BZ #16642]
49348         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
49349         (__ASSUME_PSELECT): Undefine.
49350
49351 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49352
49353         [BZ #16689]
49354         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
49355         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
49356         static build.
49357         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
49358         selector for static builds.
49359
49360 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49361
49362         [BZ #16695]
49363         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
49364         key in the buffer.
49365
49366 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49367
49368         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
49369         IFUNC selector for static builds.
49370
49371 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
49372
49373         * sysdeps/mips/math_private.h [__mips_hard_float]
49374         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
49375         libc_feresetround_mips_ctx.
49376         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
49377         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
49378         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
49379
49380         [BZ #16677]
49381         * math/s_nextafter.c (__nextafter): Do not return value from
49382         overflowing computation.
49383         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
49384         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
49385         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
49386         Likewise.
49387         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
49388         Likewise.
49389         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
49390         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
49391
49392 2014-03-11  Roland McGrath  <roland@hack.frob.com>
49393
49394         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
49395         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
49396         Move sfi_sp use from the load-multiple (that no longer sets sp) to
49397         the new mov targetting sp.
49398
49399 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49400
49401         [BZ #16683]
49402         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
49403         Define it for static builds as well.
49404         (NO_BZERO_IMPL): Likewise.
49405
49406 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49407
49408         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
49409         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
49410         multiarch strspn for PPC64.
49411         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
49412         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
49413         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49414         (__libc_ifunc_impl_list): Likewise.
49415         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
49416         multiarch optimizations
49417         * string/strspn.c (strspn): Using macro to redefine symbol name.
49418
49419 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
49420             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49421
49422         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
49423         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
49424         multiarch strncat for PPC64.
49425         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
49426         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
49427         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
49428         (__libc_ifunc_impl_list): Likewise.
49429         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
49430         multiarch optimizations
49431
49432 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49433
49434         [BZ #16639]
49435         * nscd/nscd.service: Make service type forking.
49436
49437 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49438
49439         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
49440         sign in non default rounding modes.
49441         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
49442
49443 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
49444
49445         * math/libm-test.inc (ALL_RM_TEST): New macro.
49446         (ceil_test): Use ALL_RM_TEST.
49447         (cimag_test): Likewise.
49448         (conj_test): Likewise.
49449         (copysign_test): Likewise.
49450         (cproj_test): Likewise.
49451         (creal_test): Likewise.
49452         (fabs_test): Likewise.
49453         (floor_test): Likewise.
49454         (fmax_test): Likewise.
49455         (fmin_test): Likewise.
49456         (fmod_test): Likewise.
49457         (fpclassify_test): Likewise.
49458         (frexp_test): Likewise.
49459         (ilogb_test): Likewise.
49460         (isfinite_test): Likewise.
49461         (finite_test): Likewise.
49462         (isgreater_test): Likewise.
49463         (isgreaterequal_test): Likewise.
49464         (isinf_test): Likewise.
49465         (isless_test): Likewise.
49466         (islessequal_test): Likewise.
49467         (islessgreater_test): Likewise.
49468         (isnan_test): Likewise.
49469         (isnormal_test): Likewise.
49470         (issignaling_test): Likewise.
49471         (isunordered_test): Likewise.
49472         (logb_test): Likewise.
49473         (logb_downward_test_data): Remove.
49474         (logb_test_downward): Likewise.
49475         (lround_test): Use ALL_RM_TEST.
49476         (llround_test): Likewise.
49477         (modf_test): Likewise.
49478         (nexttoward_test): Likewise.
49479         (remainder_test): Likewise.
49480         (drem_test): Likewise.
49481         (remainder_tonearest_test_data): Likewise.
49482         (remainder_test_tonearest): Likewise.
49483         (drem_test_tonearest): Likewise.
49484         (remainder_towardzero_test_data): Likewise.
49485         (remainder_test_towardzero): Likewise.
49486         (drem_test_towardzero): Likewise.
49487         (remainder_downward_test_data): Likewise.
49488         (remainder_test_downward): Likewise.
49489         (drem_test_downward): Likewise.
49490         (remainder_upward_test_data): Likewise.
49491         (remainder_test_upward): Likewise.
49492         (drem_test_upward): Likewise.
49493         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
49494         (round_test): Use ALL_RM_TEST.
49495         (signbit_test): Likewise.
49496         (trunc_test): Likewise.
49497         (significand_test): Likewise.
49498         (main): Don't call removed functions.
49499
49500 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49501
49502         [BZ #16674]
49503         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
49504         || __USE_XOPEN2K8].
49505         (ILL_ILLOPN): Likewise.
49506         (ILL_ILLADR): Likewise.
49507         (ILL_ILLTRP): Likewise.
49508         (ILL_PRVOPC): Likewise.
49509         (ILL_PRVREG): Likewise.
49510         (ILL_COPROC): Likewise.
49511         (ILL_BADSTK): Likewise.
49512         (FPE_INTDIV): Likewise.
49513         (FPE_INTOVF): Likewise.
49514         (FPE_FLTDIV): Likewise.
49515         (FPE_FLTOVF): Likewise.
49516         (FPE_FLTUND): Likewise.
49517         (FPE_FLTRES): Likewise.
49518         (FPE_FLTINV): Likewise.
49519         (FPE_FLTSUB): Likewise.
49520         (SEGV_MAPERR): Likewise.
49521         (SEGV_ACCERR): Likewise.
49522         (BUS_ADRALN): Likewise.
49523         (BUS_ADRERR): Likewise.
49524         (BUS_OBJERR): Likewise.
49525         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49526         (TRAP_TRACE): Likewise.
49527         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49528         __USE_XOPEN2K8].
49529         (CLD_KILLED): Likewise.
49530         (CLD_DUMPED): Likewise.
49531         (CLD_TRAPPED): Likewise.
49532         (CLD_STOPPED): Likewise.
49533         (CLD_CONTINUED): Likewise.
49534         (POLL_IN): Likewise.
49535         (POLL_OUT): Likewise.
49536         (POLL_MSG): Likewise.
49537         (POLL_ERR): Likewise.
49538         (POLL_PRI): Likewise.
49539         (POLL_HUP): Likewise.
49540         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
49541         Likewise.
49542         (ILL_ILLOPN): Likewise.
49543         (ILL_ILLADR): Likewise.
49544         (ILL_ILLTRP): Likewise.
49545         (ILL_PRVOPC): Likewise.
49546         (ILL_PRVREG): Likewise.
49547         (ILL_COPROC): Likewise.
49548         (ILL_BADSTK): Likewise.
49549         (FPE_INTDIV): Likewise.
49550         (FPE_INTOVF): Likewise.
49551         (FPE_FLTDIV): Likewise.
49552         (FPE_FLTOVF): Likewise.
49553         (FPE_FLTUND): Likewise.
49554         (FPE_FLTRES): Likewise.
49555         (FPE_FLTINV): Likewise.
49556         (FPE_FLTSUB): Likewise.
49557         (SEGV_MAPERR): Likewise.
49558         (SEGV_ACCERR): Likewise.
49559         (BUS_ADRALN): Likewise.
49560         (BUS_ADRERR): Likewise.
49561         (BUS_OBJERR): Likewise.
49562         (BUS_MCEERR_AR): Likewise.
49563         (BUS_MCEERR_AO): Likewise.
49564         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49565         (TRAP_TRACE): Likewise.
49566         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49567         __USE_XOPEN2K8].
49568         (CLD_KILLED): Likewise.
49569         (CLD_DUMPED): Likewise.
49570         (CLD_TRAPPED): Likewise.
49571         (CLD_STOPPED): Likewise.
49572         (CLD_CONTINUED): Likewise.
49573         (POLL_IN): Likewise.
49574         (POLL_OUT): Likewise.
49575         (POLL_MSG): Likewise.
49576         (POLL_ERR): Likewise.
49577         (POLL_PRI): Likewise.
49578         (POLL_HUP): Likewise.
49579         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
49580         (ILL_ILLOPN): Likewise.
49581         (ILL_ILLADR): Likewise.
49582         (ILL_ILLTRP): Likewise.
49583         (ILL_PRVOPC): Likewise.
49584         (ILL_PRVREG): Likewise.
49585         (ILL_COPROC): Likewise.
49586         (ILL_BADSTK): Likewise.
49587         (FPE_INTDIV): Likewise.
49588         (FPE_INTOVF): Likewise.
49589         (FPE_FLTDIV): Likewise.
49590         (FPE_FLTOVF): Likewise.
49591         (FPE_FLTUND): Likewise.
49592         (FPE_FLTRES): Likewise.
49593         (FPE_FLTINV): Likewise.
49594         (FPE_FLTSUB): Likewise.
49595         (SEGV_MAPERR): Likewise.
49596         (SEGV_ACCERR): Likewise.
49597         (BUS_ADRALN): Likewise.
49598         (BUS_ADRERR): Likewise.
49599         (BUS_OBJERR): Likewise.
49600         (BUS_MCEERR_AR): Likewise.
49601         (BUS_MCEERR_AO): Likewise.
49602         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49603         (TRAP_TRACE): Likewise.
49604         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49605         __USE_XOPEN2K8].
49606         (CLD_KILLED): Likewise.
49607         (CLD_DUMPED): Likewise.
49608         (CLD_TRAPPED): Likewise.
49609         (CLD_STOPPED): Likewise.
49610         (CLD_CONTINUED): Likewise.
49611         (POLL_IN): Likewise.
49612         (POLL_OUT): Likewise.
49613         (POLL_MSG): Likewise.
49614         (POLL_ERR): Likewise.
49615         (POLL_PRI): Likewise.
49616         (POLL_HUP): Likewise.
49617         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
49618         Likewise.
49619         (ILL_ILLOPN): Likewise.
49620         (ILL_ILLADR): Likewise.
49621         (ILL_ILLTRP): Likewise.
49622         (ILL_PRVOPC): Likewise.
49623         (ILL_PRVREG): Likewise.
49624         (ILL_COPROC): Likewise.
49625         (ILL_BADSTK): Likewise.
49626         (ILL_BADIADDR): Likewise.
49627         (ILL_BREAK): Likewise.
49628         (FPE_INTDIV): Likewise.
49629         (FPE_INTOVF): Likewise.
49630         (FPE_FLTDIV): Likewise.
49631         (FPE_FLTOVF): Likewise.
49632         (FPE_FLTUND): Likewise.
49633         (FPE_FLTRES): Likewise.
49634         (FPE_FLTINV): Likewise.
49635         (FPE_FLTSUB): Likewise.
49636         (FPE_DECOVF): Likewise.
49637         (FPE_DECDIV): Likewise.
49638         (FPE_DECERR): Likewise.
49639         (FPE_INVASC): Likewise.
49640         (FPE_INVDEC): Likewise.
49641         (SEGV_MAPERR): Likewise.
49642         (SEGV_ACCERR): Likewise.
49643         (SEGV_PSTKOVF): Likewise.
49644         (BUS_ADRALN): Likewise.
49645         (BUS_ADRERR): Likewise.
49646         (BUS_OBJERR): Likewise.
49647         (BUS_MCEERR_AR): Likewise.
49648         (BUS_MCEERR_AO): Likewise.
49649         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49650         (TRAP_TRACE): Likewise.
49651         (TRAP_BRANCH): Likewise.
49652         (TRAP_HWBKPT): Likewise.
49653         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49654         __USE_XOPEN2K8].
49655         (CLD_KILLED): Likewise.
49656         (CLD_DUMPED): Likewise.
49657         (CLD_TRAPPED): Likewise.
49658         (CLD_STOPPED): Likewise.
49659         (CLD_CONTINUED): Likewise.
49660         (POLL_IN): Likewise.
49661         (POLL_OUT): Likewise.
49662         (POLL_MSG): Likewise.
49663         (POLL_ERR): Likewise.
49664         (POLL_PRI): Likewise.
49665         (POLL_HUP): Likewise.
49666         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
49667         (ILL_ILLOPN): Likewise.
49668         (ILL_ILLADR): Likewise.
49669         (ILL_ILLTRP): Likewise.
49670         (ILL_PRVOPC): Likewise.
49671         (ILL_PRVREG): Likewise.
49672         (ILL_COPROC): Likewise.
49673         (ILL_BADSTK): Likewise.
49674         (FPE_INTDIV): Likewise.
49675         (FPE_INTOVF): Likewise.
49676         (FPE_FLTDIV): Likewise.
49677         (FPE_FLTOVF): Likewise.
49678         (FPE_FLTUND): Likewise.
49679         (FPE_FLTRES): Likewise.
49680         (FPE_FLTINV): Likewise.
49681         (FPE_FLTSUB): Likewise.
49682         (SEGV_MAPERR): Likewise.
49683         (SEGV_ACCERR): Likewise.
49684         (BUS_ADRALN): Likewise.
49685         (BUS_ADRERR): Likewise.
49686         (BUS_OBJERR): Likewise.
49687         (BUS_MCEERR_AR): Likewise.
49688         (BUS_MCEERR_AO): Likewise.
49689         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49690         (TRAP_TRACE): Likewise.
49691         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49692         __USE_XOPEN2K8].
49693         (CLD_KILLED): Likewise.
49694         (CLD_DUMPED): Likewise.
49695         (CLD_TRAPPED): Likewise.
49696         (CLD_STOPPED): Likewise.
49697         (CLD_CONTINUED): Likewise.
49698         (POLL_IN): Likewise.
49699         (POLL_OUT): Likewise.
49700         (POLL_MSG): Likewise.
49701         (POLL_ERR): Likewise.
49702         (POLL_PRI): Likewise.
49703         (POLL_HUP): Likewise.
49704         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
49705         (ILL_ILLOPN): Likewise.
49706         (ILL_ILLADR): Likewise.
49707         (ILL_ILLTRP): Likewise.
49708         (ILL_PRVOPC): Likewise.
49709         (ILL_PRVREG): Likewise.
49710         (ILL_COPROC): Likewise.
49711         (ILL_BADSTK): Likewise.
49712         (FPE_INTDIV): Likewise.
49713         (FPE_INTOVF): Likewise.
49714         (FPE_FLTDIV): Likewise.
49715         (FPE_FLTOVF): Likewise.
49716         (FPE_FLTUND): Likewise.
49717         (FPE_FLTRES): Likewise.
49718         (FPE_FLTINV): Likewise.
49719         (FPE_FLTSUB): Likewise.
49720         (SEGV_MAPERR): Likewise.
49721         (SEGV_ACCERR): Likewise.
49722         (BUS_ADRALN): Likewise.
49723         (BUS_ADRERR): Likewise.
49724         (BUS_OBJERR): Likewise.
49725         (BUS_MCEERR_AR): Likewise.
49726         (BUS_MCEERR_AO): Likewise.
49727         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49728         (TRAP_TRACE): Likewise.
49729         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49730         __USE_XOPEN2K8].
49731         (CLD_KILLED): Likewise.
49732         (CLD_DUMPED): Likewise.
49733         (CLD_TRAPPED): Likewise.
49734         (CLD_STOPPED): Likewise.
49735         (CLD_CONTINUED): Likewise.
49736         (POLL_IN): Likewise.
49737         (POLL_OUT): Likewise.
49738         (POLL_MSG): Likewise.
49739         (POLL_ERR): Likewise.
49740         (POLL_PRI): Likewise.
49741         (POLL_HUP): Likewise.
49742         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
49743         (ILL_ILLOPN): Likewise.
49744         (ILL_ILLADR): Likewise.
49745         (ILL_ILLTRP): Likewise.
49746         (ILL_PRVOPC): Likewise.
49747         (ILL_PRVREG): Likewise.
49748         (ILL_COPROC): Likewise.
49749         (ILL_BADSTK): Likewise.
49750         (FPE_INTDIV): Likewise.
49751         (FPE_INTOVF): Likewise.
49752         (FPE_FLTDIV): Likewise.
49753         (FPE_FLTOVF): Likewise.
49754         (FPE_FLTUND): Likewise.
49755         (FPE_FLTRES): Likewise.
49756         (FPE_FLTINV): Likewise.
49757         (FPE_FLTSUB): Likewise.
49758         (SEGV_MAPERR): Likewise.
49759         (SEGV_ACCERR): Likewise.
49760         (BUS_ADRALN): Likewise.
49761         (BUS_ADRERR): Likewise.
49762         (BUS_OBJERR): Likewise.
49763         (BUS_MCEERR_AR): Likewise.
49764         (BUS_MCEERR_AO): Likewise.
49765         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49766         (TRAP_TRACE): Likewise.
49767         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49768         __USE_XOPEN2K8].
49769         (CLD_KILLED): Likewise.
49770         (CLD_DUMPED): Likewise.
49771         (CLD_TRAPPED): Likewise.
49772         (CLD_STOPPED): Likewise.
49773         (CLD_CONTINUED): Likewise.
49774         (POLL_IN): Likewise.
49775         (POLL_OUT): Likewise.
49776         (POLL_MSG): Likewise.
49777         (POLL_ERR): Likewise.
49778         (POLL_PRI): Likewise.
49779         (POLL_HUP): Likewise.
49780         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
49781         (ILL_ILLOPN): Likewise.
49782         (ILL_ILLADR): Likewise.
49783         (ILL_ILLTRP): Likewise.
49784         (ILL_PRVOPC): Likewise.
49785         (ILL_PRVREG): Likewise.
49786         (ILL_COPROC): Likewise.
49787         (ILL_BADSTK): Likewise.
49788         (ILL_DBLFLT): Likewise.
49789         (ILL_HARDWALL): Likewise.
49790         (FPE_INTDIV): Likewise.
49791         (FPE_INTOVF): Likewise.
49792         (FPE_FLTDIV): Likewise.
49793         (FPE_FLTOVF): Likewise.
49794         (FPE_FLTUND): Likewise.
49795         (FPE_FLTRES): Likewise.
49796         (FPE_FLTINV): Likewise.
49797         (FPE_FLTSUB): Likewise.
49798         (SEGV_MAPERR): Likewise.
49799         (SEGV_ACCERR): Likewise.
49800         (BUS_ADRALN): Likewise.
49801         (BUS_ADRERR): Likewise.
49802         (BUS_OBJERR): Likewise.
49803         (BUS_MCEERR_AR): Likewise.
49804         (BUS_MCEERR_AO): Likewise.
49805         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49806         (TRAP_TRACE): Likewise.
49807         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49808         __USE_XOPEN2K8].
49809         (CLD_KILLED): Likewise.
49810         (CLD_DUMPED): Likewise.
49811         (CLD_TRAPPED): Likewise.
49812         (CLD_STOPPED): Likewise.
49813         (CLD_CONTINUED): Likewise.
49814         (POLL_IN): Likewise.
49815         (POLL_OUT): Likewise.
49816         (POLL_MSG): Likewise.
49817         (POLL_ERR): Likewise.
49818         (POLL_PRI): Likewise.
49819         (POLL_HUP): Likewise.
49820         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
49821         (ILL_ILLOPN): Likewise.
49822         (ILL_ILLADR): Likewise.
49823         (ILL_ILLTRP): Likewise.
49824         (ILL_PRVOPC): Likewise.
49825         (ILL_PRVREG): Likewise.
49826         (ILL_COPROC): Likewise.
49827         (ILL_BADSTK): Likewise.
49828         (FPE_INTDIV): Likewise.
49829         (FPE_INTOVF): Likewise.
49830         (FPE_FLTDIV): Likewise.
49831         (FPE_FLTOVF): Likewise.
49832         (FPE_FLTUND): Likewise.
49833         (FPE_FLTRES): Likewise.
49834         (FPE_FLTINV): Likewise.
49835         (FPE_FLTSUB): Likewise.
49836         (SEGV_MAPERR): Likewise.
49837         (SEGV_ACCERR): Likewise.
49838         (BUS_ADRALN): Likewise.
49839         (BUS_ADRERR): Likewise.
49840         (BUS_OBJERR): Likewise.
49841         (BUS_MCEERR_AR): Likewise.
49842         (BUS_MCEERR_AO): Likewise.
49843         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
49844         (TRAP_TRACE): Likewise.
49845         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
49846         __USE_XOPEN2K8].
49847         (CLD_KILLED): Likewise.
49848         (CLD_DUMPED): Likewise.
49849         (CLD_TRAPPED): Likewise.
49850         (CLD_STOPPED): Likewise.
49851         (CLD_CONTINUED): Likewise.
49852         (POLL_IN): Likewise.
49853         (POLL_OUT): Likewise.
49854         (POLL_MSG): Likewise.
49855         (POLL_ERR): Likewise.
49856         (POLL_PRI): Likewise.
49857         (POLL_HUP): Likewise.
49858         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
49859         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
49860
49861         [BZ #16670]
49862         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
49863         before #include of <time.h>.
49864         [!__USE_XOPEN2K] (__need_timespec): Likewise.
49865         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
49866         (test-xfail-UNIX98/sched.h/conform): Likewise.
49867
49868 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
49869
49870         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
49871         error absence of trapping exception support.
49872         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
49873
49874 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
49875
49876         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
49877         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
49878         * timezone/Makefile (testdata): Move definition above include of
49879         Rules.
49880         (test-zones): New variable.
49881         (tests-special): Add zone files.
49882         (build-testdata): Use $(evaluate-test).
49883
49884         * elf/Makefile (tests-special): Rename tests to end with .out.
49885         ($(objpfx)noload-mem): Likewise.
49886         ($(objpfx)tst-leaks1-mem): Likewise.
49887         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
49888         * iconv/Makefile (xtests-special): Change test-iconvconfig to
49889         $(objpfx)test-iconvconfig.out.
49890         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
49891         set -e inside subshell and redirect output to file.
49892         * iconvdata/Makefile (generated): Rename tests to end with .out.
49893         Correct type.
49894         (tests-special): Rename tests to end with .out.
49895         ($(objpfx)mtrace-tst-loading): Likewise.
49896         * intl/Makefile (generated): Likewise.
49897         (tests-special): Likewise.
49898         ($(objpfx)mtrace-tst-gettext): Likewise.
49899         * misc/Makefile (generated): Likewise.
49900         (tests-special): Likewise.
49901         ($(objpfx)tst-error1-mem): Likewise.
49902         * nptl/Makefile (tests-special): Likewise.
49903         ($(objpfx)tst-stack3-mem): Likewise.
49904         (generated): Likewise.
49905         * posix/Makefile (generated): Likewise.
49906         (tests-special): Likewise.
49907         (xtests-special): Likewise.
49908         ($(objpfx)tst-fnmatch-mem): Likewise.
49909         ($(objpfx)bug-regex2-mem): Likewise.
49910         ($(objpfx)bug-regex14-mem): Likewise.
49911         ($(objpfx)bug-regex21-mem): Likewise.
49912         ($(objpfx)bug-regex31-mem): Likewise.
49913         ($(objpfx)tst-vfork3-mem): Likewise.
49914         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
49915         ($(objpfx)tst-pcre-mem): Likewise.
49916         ($(objpfx)tst-boost-mem): Likewise.
49917         ($(objpfx)bug-ga2-mem): Likewise.
49918         ($(objpfx)bug-glob2-mem): Likewise.
49919         * resolv/Makefile (generate): Likewise.
49920         (tests-special): Likewise.
49921         (xtests-special): Likewise.
49922         (generated): Likewise.
49923         ($(objpfx)mtrace-tst-leaks): Likewise.
49924         ($(objpfx)mtrace-tst-leaks2): Likewise.
49925
49926         * scripts/merge-test-results.sh: New file.
49927         * Makefile (tests-special-notdir): New variable.
49928         (tests): Run merge-test-results.sh.
49929         (xtests): Likewise.
49930         * Rules (tests-special-notdir): New variable.
49931         (xtests-special-notdir): Likewise.
49932         (tests): Run merge-test-results.sh
49933         (xtests): Likewise.
49934
49935         * Makeconfig (test-xfail-name): New variable.
49936         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
49937         compute variable name for expected failures.
49938         * conform/Makefile (conformtest-headers-data): New variable.
49939         (conformtest-standards): Likewise.
49940         (conformtest-headers-ISO): Likewise.
49941         (conformtest-headers-ISO99): Likewise.
49942         (conformtest-headers-ISO11): Likewise.
49943         (conformtest-headers-POSIX): Likewise.
49944         (conformtest-headers-XPG3): Likewise.
49945         (conformtest-headers-XPG4): Likewise.
49946         (conformtest-headers-UNIX98): Likewise.
49947         (conformtest-headers-XOPEN2K): Likewise.
49948         (conformtest-headers-POSIX2008): Likewise.
49949         (conformtest-headers-XOPEN2K8): Likewise.
49950         (conformtest-header-list-base): Likewise.
49951         (conformtest-header-list-tests): Likewise.
49952         (conformtest-header-base): Likewise.
49953         (conformtest-header-tests): Likewise.
49954         (tests-special): Add $(conformtest-header-list-tests).  If
49955         [$(fast-check) && !$(cross-compiling)], add
49956         $(conformtest-header-tests) instead of
49957         $(objpfx)run-conformtest.out.
49958         (generated): Add $(conformtest-header-list-base).  If
49959         [$(fast-check) && !$(cross-compiling)], add
49960         $(conformtest-header-base).  Remove previous setting.
49961         ($(conformtest-header-list-tests)): New target.
49962         (test-xfail-run-conformtest): Remove variable.
49963         ($(objpfx)run-conformtest.out): Remove target.
49964         (test-xfail-ISO11/complex.h/conform): New variable.
49965         (test-xfail-ISO11/stdalign.h/conform): Likewise.
49966         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
49967         (test-xfail-XPG3/varargs.h/conform): Likewise.
49968         (test-xfail-XPG4/varargs.h/conform): Likewise.
49969         (test-xfail-UNIX98/varargs.h/conform): Likewise.
49970         (test-xfail-XPG4/ndbm.h/conform): Likewise.
49971         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
49972         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
49973         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
49974         (test-xfail-XPG3/fcntl.h/conform): Likewise.
49975         (test-xfail-XPG3/ftw.h/conform): Likewise.
49976         (test-xfail-XPG3/grp.h/conform): Likewise.
49977         (test-xfail-XPG3/langinfo.h/conform): Likewise.
49978         (test-xfail-XPG3/limits.h/conform): Likewise.
49979         (test-xfail-XPG3/pwd.h/conform): Likewise.
49980         (test-xfail-XPG3/search.h/conform): Likewise.
49981         (test-xfail-XPG3/signal.h/conform): Likewise.
49982         (test-xfail-XPG3/stdio.h/conform): Likewise.
49983         (test-xfail-XPG3/stdlib.h/conform): Likewise.
49984         (test-xfail-XPG3/string.h/conform): Likewise.
49985         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
49986         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
49987         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
49988         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
49989         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
49990         (test-xfail-XPG3/sys/types.h/conform): Likewise.
49991         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
49992         (test-xfail-XPG3/termios.h/conform): Likewise.
49993         (test-xfail-XPG3/time.h/conform): Likewise.
49994         (test-xfail-XPG3/unistd.h/conform): Likewise.
49995         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
49996         (test-xfail-XPG4/fcntl.h/conform): Likewise.
49997         (test-xfail-XPG4/langinfo.h/conform): Likewise.
49998         (test-xfail-XPG4/netdb.h/conform): Likewise.
49999         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
50000         (test-xfail-XPG4/signal.h/conform): Likewise.
50001         (test-xfail-XPG4/stdio.h/conform): Likewise.
50002         (test-xfail-XPG4/stdlib.h/conform): Likewise.
50003         (test-xfail-XPG4/stropts.h/conform): Likewise.
50004         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
50005         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
50006         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
50007         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
50008         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
50009         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
50010         (test-xfail-XPG4/sys/time.h/conform): Likewise.
50011         (test-xfail-XPG4/sys/types.h/conform): Likewise.
50012         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
50013         (test-xfail-XPG4/termios.h/conform): Likewise.
50014         (test-xfail-XPG4/ucontext.h/conform): Likewise.
50015         (test-xfail-XPG4/unistd.h/conform): Likewise.
50016         (test-xfail-XPG4/utmpx.h/conform): Likewise.
50017         (test-xfail-POSIX/sched.h/conform): Likewise.
50018         (test-xfail-POSIX/signal.h/conform): Likewise.
50019         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
50020         (test-xfail-POSIX/tar.h/conform): Likewise.
50021         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
50022         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
50023         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
50024         (test-xfail-UNIX98/netdb.h/conform): Likewise.
50025         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
50026         (test-xfail-UNIX98/sched.h/conform): Likewise.
50027         (test-xfail-UNIX98/signal.h/conform): Likewise.
50028         (test-xfail-UNIX98/stdio.h/conform): Likewise.
50029         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
50030         (test-xfail-UNIX98/stropts.h/conform): Likewise.
50031         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
50032         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
50033         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
50034         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
50035         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
50036         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
50037         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
50038         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
50039         (test-xfail-UNIX98/unistd.h/conform): Likewise.
50040         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
50041         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
50042         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
50043         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
50044         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
50045         (test-xfail-XOPEN2K/math.h/conform): Likewise.
50046         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
50047         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
50048         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
50049         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
50050         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
50051         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
50052         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
50053         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
50054         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
50055         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
50056         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
50057         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
50058         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
50059         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
50060         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
50061         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
50062         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
50063         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
50064         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
50065         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
50066         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
50067         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
50068         (test-xfail-POSIX2008/signal.h/conform): Likewise.
50069         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
50070         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
50071         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
50072         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
50073         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
50074         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
50075         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
50076         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
50077         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
50078         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
50079         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
50080         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
50081         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
50082         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
50083         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
50084         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
50085         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
50086         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
50087         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
50088         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
50089         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
50090         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
50091         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
50092         (conformtest-cc-flags): Likewise.
50093         ($(conformtest-header-tests): New target.
50094         * conform/check-header-lists.sh: New file.
50095         * conform/run-conformtest.sh: Remove.
50096
50097         * conform/conformtest.pl: Allow ' and \ in values given for
50098         constants.
50099         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
50100         inclusion.
50101         [POSIX] (sys/types.h): Likewise.
50102         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
50103         inclusion.
50104         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
50105         inclusion.
50106         * conform/data/signal.h-data (SIGIO): Remove expectation.
50107         [XPG3] (SIGBUS): Do not expect.
50108         [POSIX || XPG3] (SIGPOLL): Likewise.
50109         [POSIX || XPG3] (SIGPROF): Likewise.
50110         [POSIX || XPG3] (SIGSYS): Likewise.
50111         [XPG3] (SIGTRAP): Likewise.
50112         [POSIX || XPG3] (SIGURG): Likewise.
50113         [POSIX || XPG3] (SIGVTALRM): Likewise.
50114         [POSIX || XPG3] (SIGXCPU): Likewise.
50115         [POSIX || XPG3] (SIGXFSZ): Likewise.
50116         [POSIX] (SA_SIGINFO): Expect.
50117         [XPG3] (siginfo_t): Do not expect type or contents.
50118         [POSIX] (si_pid): Do not expect element.
50119         [POSIX] (si_uid): Likewise.
50120         [POSIX] (si_addr): Likewise.
50121         [POSIX] (si_status): Likewise.
50122         [POSIX] (si_band): Likewise.
50123         [XPG4] (si_value): Likewise.
50124         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
50125         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
50126         [POSIX || XPG3] (ILL_ILLADR): Likewise.
50127         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
50128         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
50129         [POSIX || XPG3] (ILL_PRVREG): Likewise.
50130         [POSIX || XPG3] (ILL_COPROC): Likewise.
50131         [POSIX || XPG3] (ILL_BADSTK): Likewise.
50132         [POSIX || XPG3] (FPE_INTDIV): Likewise.
50133         [POSIX || XPG3] (FPE_INTOVF): Likewise.
50134         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
50135         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
50136         [POSIX || XPG3] (FPE_FLTUND): Likewise.
50137         [POSIX || XPG3] (FPE_FLTRES): Likewise.
50138         [POSIX || XPG3] (FPE_FLTINV): Likewise.
50139         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
50140         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
50141         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
50142         [POSIX || XPG3] (BUS_ADRALN): Likewise.
50143         [POSIX || XPG3] (BUS_ADRERR): Likewise.
50144         [POSIX || XPG3] (BUS_OBJERR): Likewise.
50145         [POSIX || XPG3] (CLD_EXITED): Likewise.
50146         [POSIX || XPG3] (CLD_KILLED): Likewise.
50147         [POSIX || XPG3] (CLD_DUMPED): Likewise.
50148         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
50149         [POSIX || XPG3] (CLD_STOPPED): Likewise.
50150         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
50151         [POSIX || XPG3] (POLL_IN): Likewise.
50152         [POSIX || XPG3] (POLL_OUT): Likewise.
50153         [POSIX || XPG3] (POLL_MSG): Likewise.
50154         [POSIX || XPG3] (POLL_ERR): Likewise.
50155         [POSIX || XPG3] (POLL_PRI): Likewise.
50156         [POSIX || XPG3] (POLL_HUP): Likewise.
50157         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
50158         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
50159         (SIG*): Do not allow.
50160         [XPG3] (si_*): Likewise.
50161         [XPG3] (SI_*): Likewise.
50162         [XPG3 || XPG4] (sigev_*): Likewise.
50163         [XPG3 || XPG4] (SIGEV_*): Likewise.
50164         [XPG3 || XPG4] (sival_*): Likewise.
50165         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
50166         [POSIX || XPG3] (BUS_*): Likewise.
50167         [POSIX || XPG3] (CLD_*): Likewise.
50168         [POSIX || XPG3] (FPE_*): Likewise.
50169         [POSIX || XPG3] (ILL_*): Likewise.
50170         [POSIX || XPG3] (POLL_*): Likewise.
50171         [POSIX || XPG3] (SEGV_*): Likewise.
50172         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
50173         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
50174         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
50175         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
50176         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
50177         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
50178         Specify type and value.
50179         (TVERSLEN): Likewise.
50180         (REGTYPE): Likewise.
50181         (AREGTYPE): Likewise.
50182         (LNKTYPE): Likewise.
50183         (SYMTYPE): Likewise.
50184         (CHRTYPE): Likewise.
50185         (BLKTYPE): Likewise.
50186         (DIRTYPE): Likewise.
50187         (FIFOTYPE): Likewise.
50188         (CONTTYPE): Likewise.
50189         (TSUID): Likewise.
50190         (TSGID): Likewise.
50191         (TSVTX): Likewise.
50192         (TUREAD): Likewise.
50193         (TUWRITE): Likewise.
50194         (TUEXEC): Likewise.
50195         (TGREAD): Likewise.
50196         (TGWRITE): Likewise.
50197         (TGEXEC): Likewise.
50198         (TOREAD): Likewise.
50199         (TOWRITE): Likewise.
50200         (TOEXEC): Likewise.
50201         [POSIX] (TSVTX): Expect constant.
50202
50203 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
50204
50205         * Makefile (tests): Change dependencies to ....
50206         (tests-special): ... additions to this variable.
50207         (tests): Depend on $(tests-special).
50208         * Makerules (check-abi-list): New variable.
50209         (check-abi): Depend on $(check-abi-list).
50210         [$(subdir) = elf] (tests-special): Add
50211         $(objpfx)check-abi-libc.out.
50212         [$(build-shared) = yes && subdir] (tests-special): Add
50213         $(check-abi-list).
50214         [$(build-shared) = yes && subdir] (tests): Do not depend on
50215         check-abi.
50216         * Rules (tests): Depend on $(tests-special).
50217         (xtests): Depend on $(xtests-special).
50218         * catgets/Makefile (tests): Change dependencies to ....
50219         (tests-special): ... additions to this variable.
50220         * conform/Makefile (tests): Change dependencies to ....
50221         (tests-special): ... additions to this variable.
50222         * elf/Makefile (tests): Change dependencies to ....
50223         (tests-special): ... additions to this variable.
50224         * grp/Makefile (tests): Change dependencies to ....
50225         (tests-special): ... additions to this variable.
50226         * iconv/Makefile (xtests): Change dependencies to ....
50227         (xtests-special): ... additions to this variable.
50228         * iconvdata/Makefile (tests): Change dependencies to ....
50229         (tests-special): ... additions to this variable.
50230         * intl/Makefile (tests): Change dependencies to ....
50231         (tests-special): ... additions to this variable.  Also add
50232         $(objpfx)tst-gettext.out.
50233         * io/Makefile (tests): Change dependencies to ....
50234         (tests-special): ... additions to this variable.
50235         * libio/Makefile (tests): Change dependencies to ....
50236         (tests-special): ... additions to this variable.
50237         * malloc/Makefile (tests): Change dependencies to ....
50238         (tests-special): ... additions to this variable.
50239         * misc/Makefile (tests): Change dependencies to ....
50240         (tests-special): ... additions to this variable.
50241         * nptl/Makefile (tests): Change dependencies to ....
50242         (tests-special): ... additions to this variable.
50243         * nptl_db/Makefile (tests): Change dependencies to ....
50244         (tests-special): ... additions to this variable.
50245         * posix/Makefile (tests): Change dependencies to ....
50246         (tests-special): ... additions to this variable.
50247         (xtests): Change dependencies to ....
50248         (xtests-special): ... additions to this variable.
50249         * resolv/Makefile (tests): Change dependencies to ....
50250         (tests-special): ... additions to this variable.
50251         (xtests): Change dependencies to ....
50252         (xtests-special): ... additions to this variable.
50253         * stdio-common/Makefile (tests): Change dependencies to ....
50254         (tests-special): ... additions to this variable.
50255         (do-tst-unbputc): Remove target.
50256         (do-tst-printf): Likewise.
50257         * stdlib/Makefile (tests): Change dependencies to ....
50258         (tests-special): ... additions to this variable.
50259         * string/Makefile (tests): Change dependencies to ....
50260         (tests-special): ... additions to this variable.
50261         * sysdeps/x86/Makefile (tests): Change dependencies to ....
50262         (tests-special): ... additions to this variable.
50263
50264         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
50265         whole file.
50266         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
50267         whole file.
50268         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
50269         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
50270
50271         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
50272         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
50273         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
50274         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
50275         * conform/data/libgen.h-data [XPG3]: Likewise.
50276         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
50277         * conform/data/ndbm.h-data [XPG3]: Likewise.
50278         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
50279         * conform/data/netdb.h-data [XPG3]: Likewise.
50280         * conform/data/netinet/in.h-data [XPG3]: Likewise.
50281         * conform/data/poll.h-data [XPG3]: Likewise.
50282         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
50283         * conform/data/strings.h-data [XPG3]: Likewise.
50284         * conform/data/stropts.h-data [XPG3]: Likewise.
50285         * conform/data/sys/mman.h-data [XPG3]: Likewise.
50286         * conform/data/sys/resource.h-data [XPG3]: Likewise.
50287         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
50288         Likewise.
50289         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
50290         * conform/data/sys/time.h-data [XPG3]: Likewise.
50291         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
50292         * conform/data/sys/uio.h-data [XPG3]: Likewise.
50293         * conform/data/sys/un.h-data [XPG3]: Likewise.
50294         * conform/data/syslog.h-data [XPG3]: Likewise.
50295         * conform/data/ucontext.h-data [XPG3]: Likewise.
50296         * conform/data/utmpx.h-data [XPG3]: Likewise.
50297         * conform/data/varargs.h-data [UNIX98]: Enable file.
50298
50299         * manual/Makefile (INSTALL_INFO): Remove variable setting.
50300
50301         * math/libm-test.inc (struct test_f_f_data): Move expected results
50302         into structure for each rounding mode.
50303         (struct test_ff_f_data): Likewise.
50304         (struct test_ff_f_data_nexttoward): Likewise.
50305         (struct test_fi_f_data): Likewise.
50306         (struct test_fl_f_data): Likewise.
50307         (struct test_if_f_data): Likewise.
50308         (struct test_fff_f_data): Likewise.
50309         (struct test_c_f_data): Likewise.
50310         (struct test_f_f1_data): Likewise.
50311         (struct test_fF_f1_data): Likewise.
50312         (struct test_ffI_f1_data): Likewise.
50313         (struct test_c_c_data): Likewise.
50314         (struct test_cc_c_data): Likewise.
50315         (struct test_f_i_data): Likewise.
50316         (struct test_ff_i_data): Likewise.
50317         (struct test_f_l_data): Likewise.
50318         (struct test_f_L_data): Likewise.
50319         (struct test_fFF_11_data): Likewise.
50320         (RM_): New macro.
50321         (RM_FE_DOWNWARD): Likewise.
50322         (RM_FE_TONEAREST): Likewise.
50323         (RM_FE_TOWARDZERO): Likewise.
50324         (RM_FE_UPWARD): Likewise.
50325         (RUN_TEST_LOOP_f_f): Update references to expected results.
50326         (RUN_TEST_LOOP_2_f): Likewise.
50327         (RUN_TEST_LOOP_fff_f): Likewise.
50328         (RUN_TEST_LOOP_c_f): Likewise.
50329         (RUN_TEST_LOOP_f_f1): Likewise.
50330         (RUN_TEST_LOOP_fF_f1): Likewise.
50331         (RUN_TEST_LOOP_fI_f1): Likewise.
50332         (RUN_TEST_LOOP_ffI_f1): Likewise.
50333         (RUN_TEST_LOOP_c_c): Likewise.
50334         (RUN_TEST_LOOP_cc_c): Likewise.
50335         (RUN_TEST_LOOP_f_i): Likewise.
50336         (RUN_TEST_LOOP_f_i_tg): Likewise.
50337         (RUN_TEST_LOOP_ff_i_tg): Likewise.
50338         (RUN_TEST_LOOP_f_b): Likewise.
50339         (RUN_TEST_LOOP_f_b_tg): Likewise.
50340         (RUN_TEST_LOOP_f_l): Likewise.
50341         (RUN_TEST_LOOP_f_L): Likewise.
50342         (RUN_TEST_LOOP_fFF_11): Likewise.
50343         * math/gen-libm-test.pl (parse_args): Output four copies of
50344         expected results for each test.
50345
50346         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
50347         (__ASSUME_UTIMES): Remove.
50348         * sysdeps/unix/sysv/linux/tile/kernel-features.h
50349         (__ASSUME_UTIMES): Likewise.
50350
50351         * math/gen-auto-libm-tests.c: Update comment on output format.
50352         (output_for_one_input_case): Generate before-rounding and
50353         after-rounding information as conditions on output flags not
50354         floating-point format.
50355         * math/auto-libm-test-out: Regenerated.
50356         * math/gen-libm-test.pl (cond_value): New function.
50357         (or_cond_value): Use cond_value.
50358         (generate_testfile): Handle conditional exceptions.
50359
50360 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
50361
50362         * math/libm-test.inc (max_valid_error): New variable.
50363         (init_max_error): Take new argument specifying whether function
50364         results are exactly determined.  Set max_valid_error and bound
50365         other variables for errors based on this argument.
50366         (set_max_error): Do not record results above max_valid_error.
50367         (check_float_internal): Only accept errors of up to 0.5ulps if
50368         also at most max_valid_error.
50369         (START): Take new argument EXACT and pass it to init_max_error.
50370         (acos_test): Update call to START.
50371         (acos_test_tonearest): Likewise.
50372         (acos_test_towardzero): Likewise.
50373         (acos_test_downward): Likewise.
50374         (acos_test_upward): Likewise.
50375         (acosh_test): Likewise.
50376         (asin_test): Likewise.
50377         (asin_test_tonearest): Likewise.
50378         (asin_test_towardzero): Likewise.
50379         (asin_test_downward): Likewise.
50380         (asin_test_upward): Likewise.
50381         (asinh_test): Likewise.
50382         (atan_test): Likewise.
50383         (atanh_test): Likewise.
50384         (atan2_test): Likewise.
50385         (cabs_test): Likewise.
50386         (cacos_test): Likewise.
50387         (cacosh_test): Likewise.
50388         (carg_test): Likewise.
50389         (casin_test): Likewise.
50390         (casinh_test): Likewise.
50391         (catan_test): Likewise.
50392         (catanh_test): Likewise.
50393         (cbrt_test): Likewise.
50394         (ccos_test): Likewise.
50395         (ccosh_test): Likewise.
50396         (ceil_test): Likewise.
50397         (cexp_test): Likewise.
50398         (cimag_test): Likewise.
50399         (clog_test): Likewise.
50400         (clog10_test): Likewise.
50401         (conj_test): Likewise.
50402         (copysign_test): Likewise.
50403         (cos_test): Likewise.
50404         (cos_test_tonearest): Likewise.
50405         (cos_test_towardzero): Likewise.
50406         (cos_test_downward): Likewise.
50407         (cos_test_upward): Likewise.
50408         (cosh_test): Likewise.
50409         (cosh_test_tonearest): Likewise.
50410         (cosh_test_towardzero): Likewise.
50411         (cosh_test_downward): Likewise.
50412         (cosh_test_upward): Likewise.
50413         (cpow_test): Likewise.
50414         (cproj_test): Likewise.
50415         (creal_test): Likewise.
50416         (csin_test): Likewise.
50417         (csinh_test): Likewise.
50418         (csqrt_test): Likewise.
50419         (ctan_test): Likewise.
50420         (ctan_test_tonearest): Likewise.
50421         (ctan_test_towardzero): Likewise.
50422         (ctan_test_downward): Likewise.
50423         (ctan_test_upward): Likewise.
50424         (ctanh_test): Likewise.
50425         (ctanh_test_tonearest): Likewise.
50426         (ctanh_test_towardzero): Likewise.
50427         (ctanh_test_downward): Likewise.
50428         (ctanh_test_upward): Likewise.
50429         (erf_test): Likewise.
50430         (erfc_test): Likewise.
50431         (exp_test): Likewise.
50432         (exp_test_tonearest): Likewise.
50433         (exp_test_towardzero): Likewise.
50434         (exp_test_downward): Likewise.
50435         (exp_test_upward): Likewise.
50436         (exp10_test): Likewise.
50437         (exp10_test_tonearest): Likewise.
50438         (exp10_test_towardzero): Likewise.
50439         (exp10_test_downward): Likewise.
50440         (exp10_test_upward): Likewise.
50441         (pow10_test): Likewise.
50442         (exp2_test): Likewise.
50443         (expm1_test): Likewise.
50444         (expm1_test_tonearest): Likewise.
50445         (expm1_test_towardzero): Likewise.
50446         (expm1_test_downward): Likewise.
50447         (expm1_test_upward): Likewise.
50448         (fabs_test): Likewise.
50449         (fdim_test): Likewise.
50450         (floor_test): Likewise.
50451         (fma_test): Likewise.
50452         (fma_test_towardzero): Likewise.
50453         (fma_test_downward): Likewise.
50454         (fma_test_upward): Likewise.
50455         (fmax_test): Likewise.
50456         (fmin_test): Likewise.
50457         (fmod_test): Likewise.
50458         (fpclassify_test): Likewise.
50459         (frexp_test): Likewise.
50460         (hypot_test): Likewise.
50461         (ilogb_test): Likewise.
50462         (isfinite_test): Likewise.
50463         (finite_test): Likewise.
50464         (isgreater_test): Likewise.
50465         (isgreaterequal_test): Likewise.
50466         (isinf_test): Likewise.
50467         (isless_test): Likewise.
50468         (islessequal_test): Likewise.
50469         (islessgreater_test): Likewise.
50470         (isnan_test): Likewise.
50471         (isnormal_test): Likewise.
50472         (issignaling_test): Likewise.
50473         (isunordered_test): Likewise.
50474         (j0_test): Likewise.
50475         (j1_test): Likewise.
50476         (jn_test): Likewise.
50477         (ldexp_test): Likewise.
50478         (lgamma_test): Likewise.
50479         (gamma_test): Likewise.
50480         (lrint_test): Likewise.
50481         (lrint_test_tonearest): Likewise.
50482         (lrint_test_towardzero): Likewise.
50483         (lrint_test_downward): Likewise.
50484         (lrint_test_upward): Likewise.
50485         (llrint_test): Likewise.
50486         (llrint_test_tonearest): Likewise.
50487         (llrint_test_towardzero): Likewise.
50488         (llrint_test_downward): Likewise.
50489         (llrint_test_upward): Likewise.
50490         (log_test): Likewise.
50491         (log10_test): Likewise.
50492         (log1p_test): Likewise.
50493         (log2_test): Likewise.
50494         (logb_test): Likewise.
50495         (logb_test_downward): Likewise.
50496         (lround_test): Likewise.
50497         (llround_test): Likewise.
50498         (modf_test): Likewise.
50499         (nearbyint_test): Likewise.
50500         (nextafter_test): Likewise.
50501         (nexttoward_test): Likewise.
50502         (pow_test): Likewise.
50503         (pow_test_tonearest): Likewise.
50504         (pow_test_towardzero): Likewise.
50505         (pow_test_downward): Likewise.
50506         (pow_test_upward): Likewise.
50507         (remainder_test): Likewise.
50508         (drem_test): Likewise.
50509         (remainder_test_tonearest): Likewise.
50510         (drem_test_tonearest): Likewise.
50511         (remainder_test_towardzero): Likewise.
50512         (drem_test_towardzero): Likewise.
50513         (remainder_test_downward): Likewise.
50514         (drem_test_downward): Likewise.
50515         (remainder_test_upward): Likewise.
50516         (drem_test_upward): Likewise.
50517         (remquo_test): Likewise.
50518         (rint_test): Likewise.
50519         (rint_test_tonearest): Likewise.
50520         (rint_test_towardzero): Likewise.
50521         (rint_test_downward): Likewise.
50522         (rint_test_upward): Likewise.
50523         (round_test): Likewise.
50524         (scalb_test): Likewise.
50525         (scalbn_test): Likewise.
50526         (scalbln_test): Likewise.
50527         (signbit_test): Likewise.
50528         (sin_test): Likewise.
50529         (sin_test_tonearest): Likewise.
50530         (sin_test_towardzero): Likewise.
50531         (sin_test_downward): Likewise.
50532         (sin_test_upward): Likewise.
50533         (sincos_test): Likewise.
50534         (sinh_test): Likewise.
50535         (sinh_test_tonearest): Likewise.
50536         (sinh_test_towardzero): Likewise.
50537         (sinh_test_downward): Likewise.
50538         (sinh_test_upward): Likewise.
50539         (sqrt_test): Likewise.
50540         (sqrt_test_tonearest): Likewise.
50541         (sqrt_test_towardzero): Likewise.
50542         (sqrt_test_downward): Likewise.
50543         (sqrt_test_upward): Likewise.
50544         (tan_test): Likewise.
50545         (tan_test_tonearest): Likewise.
50546         (tan_test_towardzero): Likewise.
50547         (tan_test_downward): Likewise.
50548         (tan_test_upward): Likewise.
50549         (tanh_test): Likewise.
50550         (tgamma_test): Likewise.
50551         (trunc_test): Likewise.
50552         (y0_test): Likewise.
50553         (y1_test): Likewise.
50554         (yn_test): Likewise.
50555         (significand_test): Likewise.
50556
50557         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
50558         individual tests in comment.
50559         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
50560         (prev_max_error): New variable.
50561         (prev_real_max_error): Likewise.
50562         (prev_imag_max_error): Likewise.
50563         (compare_ulp_data): Don't refer to test names in comment.
50564         (find_test_ulps): Remove function.
50565         (find_function_ulps): Likewise.
50566         (find_complex_function_ulps): Likewise.
50567         (init_max_error): Take function name as argument.  Look up ulps
50568         for that function.
50569         (print_ulps): Remove function.
50570         (print_max_error): Use prev_max_error instead of calling
50571         find_function_ulps.
50572         (print_complex_max_error): Use prev_real_max_error and
50573         prev_imag_max_error instead of calling find_complex_function_ulps.
50574         (check_float_internal): Take max_ulp parameter instead of calling
50575         find_test_ulps.  Don't call print_ulps.
50576         (check_float): Update call to check_float_internal.
50577         (check_complex): Update calls to check_float_internal.
50578         (START): Pass argument to init_max_error.
50579         * math/gen-libm-test.pl (%results): Don't include "kind"
50580         information.
50581         (parse_ulps): Don't handle ulps of individual tests.
50582         (print_ulps_file): Likewise.
50583         (output_ulps): Likewise.
50584         * math/README.libm-test: Update.
50585         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
50586         individual tests.
50587         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
50588         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
50589         * sysdeps/arm/libm-test-ulps: Likewise.
50590         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
50591         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
50592         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
50593         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
50594         * sysdeps/microblaze/libm-test-ulps: Likewise.
50595         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
50596         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
50597         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
50598         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
50599         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
50600         * sysdeps/sh/libm-test-ulps: Likewise.
50601         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
50602         * sysdeps/tile/libm-test-ulps: Likewise.
50603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50604
50605 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
50606
50607         * math/libm-test.inc (print_complex_max_error): Check separately
50608         whether real and imaginary errors are within allowed range and
50609         pass 0 to print_complex_function_ulps instead of value within
50610         allowed range.
50611
50612 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
50613
50614         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
50615         formatting.
50616         (get_handles_fopen): Likewise.
50617         (do_write_test): Likewise.
50618
50619         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
50620
50621         * libio/fileops.c (do_ftell): Use cached offset when
50622         available.
50623         * libio/iofwide.c (do_ftell_wide): Likewise.
50624         * libio/iofdopen.c (_IO_new_fdopen): Don't use
50625         _IO_file_attach.
50626         * libio/wfileops.c (_IO_fwide): Don't cache offset.
50627
50628         [BZ #16532]
50629         * libio/libioP.h (get_file_offset): New function.
50630         * libio/fileops.c (get_file_offset): Likewise.
50631         (do_ftell): Likewise.
50632         (_IO_new_file_seekoff): Split out ftell logic.
50633         * libio/wfileops.c (do_ftell_wide): Likewise.
50634         (_IO_wfile_seekoff): Split out ftell logic.
50635         * libio/tst-ftell-active-handler.c: New test case.
50636         * libio/Makefile (tests): Add it.
50637
50638 2014-03-03  Roland McGrath  <roland@hack.frob.com>
50639
50640         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
50641         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
50642
50643 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
50644
50645         [BZ #16639]
50646         * nscd/connections.c (nscd_init): Call do_exit.
50647         (start_threads): Call do_exit and notify_parent.
50648         (begin_drop_privileges): Call do_exit.
50649         (finish_drop_privileges): Likewise.
50650         * nscd/selinux.c (preserve_capabilities): Likewise.
50651         (install_real_capabilities): Likewise.
50652         (nscd_selinux_enabled): Likewise.
50653         (avc_create_thread): Likewise.
50654         (avc_alloc_lock): Likewise.
50655         (nscd_avc_init): Likewise.
50656         * nscd/nscd.c (parent_fd): New static variable.
50657         (main): Create a pipe between parent and child processes.
50658         Skip closing parent_fd.
50659         (monitor_child): New function.
50660         (do_exit): Likewise.
50661         (notify_parent): Likewise.
50662         * nscd/nscd.h (notify_parent): Likewise.
50663         (do_exit): Likewise.
50664
50665 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
50666
50667         * malloc/malloc.c (__libc_calloc): Revert last change.
50668
50669 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50670
50671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50672
50673 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
50674
50675         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
50676         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
50677         implementation.
50678         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
50679         (__libc_ifunc_impl_list): Likewise.
50680         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
50681         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
50682         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
50683         * string/strrchr.c: Define STRRCHR.
50684
50685 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
50686
50687         * benchtest/bench-strtok.c (simple_strtok): Delete.
50688         (strtok_string): Use as benchmark.
50689         * string/strtok (STRTOK): New macro.
50690
50691 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
50692
50693         * manual/threads.texi: Add header and standard comments to all
50694         functions.
50695
50696         * elf/dl-lookup.c (check_match): New function.
50697         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
50698         (do_lookup_x): Remove nested function check_match. Use non-nested
50699         function check_match.
50700
50701 2014-02-28  Roland McGrath  <roland@hack.frob.com>
50702
50703         * csu/Makefile (generated, before-compile): Use += rather than =.
50704         * catgets/Makefile (generated, generated-dirs): Likewise.
50705         * debug/Makefile (generated): Likewise.
50706         * dlfcn/Makefile (generated): Likewise.
50707         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
50708         * iconvdata/Makefile (before-compile, generated): Likewise.
50709         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
50710         * libio/Makefile (generated): Likewise.
50711         * malloc/Makefile (generated): Likewise.
50712         * manual/Makefile (generated, generated-dirs): Likewise.
50713         * misc/Makefile (generated): Likewise.
50714         * posix/Makefile (generated): Likewise.
50715         * resolv/Makefile (generated): Likewise.
50716         * sunrpc/Makefile (generated, generated-dirs): Likewise.
50717         * timezone/Makefile (generated, generated-dirs): Likewise.
50718
50719         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
50720
50721 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50722
50723         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
50724         power8 implementation.
50725         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
50726         file: POWER8 llround ifunc implementation.
50727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
50728         (__lllround): Add POWER8 implementation.
50729         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
50730         POWER8 llround implementation.
50731
50732         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
50733         power8 implementation.
50734         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
50735         file: POWER8 llrint ifunc implementation.
50736         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
50737         Add POWER8 implementation.
50738         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
50739         POWER8 llrint implementation.
50740
50741         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
50742         power8 implementation.
50743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
50744         file: POWER8 finite ifunc implementation.
50745         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
50746         Add POWER8 implementation.
50747         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
50748         Likewise.
50749         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
50750         POWER8 finite implementation.
50751         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
50752
50753         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
50754         power8 implementation.
50755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
50756         file: POWER8 isinf ifunc implementation.
50757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
50758         POWER8 implementation.
50759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
50760         Likewise.
50761         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
50762         isinf implementation.
50763         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
50764
50765         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
50766         (INIT_ARCH): Add hwcap2 initialization.
50767         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
50768         power8 implementation.
50769         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
50770         file: POWER8 isnan ifunc implementation.
50771         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
50772         POWER8 implementation.
50773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
50774         Likewise.
50775         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
50776         isnan implementation.
50777         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
50778
50779 2014-02-27  Joey Ye  <joey.ye@arm.com>
50780
50781         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
50782         (_FP_NANFRAC_Q): Set to zero.
50783
50784 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
50785
50786         [BZ #16623]
50787         * math/auto-libm-test-in: New test inputs.
50788         * math/auto-libm-test-out: Regenerate.
50789         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
50790         and DA.
50791         (__cos): Likewise.
50792         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
50793
50794 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
50795
50796         * scripts/evaluate-test.sh: Take new argument indicating whether
50797         failure is expected.
50798         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
50799         indicating whether failure is expected.
50800         * conform/Makefile (test-xfail-run-conformtest): New variable.
50801         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
50802         level.
50803         * posix/Makefile (test-xfail-annexc): New variable.
50804         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
50805
50806 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
50807
50808         * argp/Makefile: Include Makeconfig immediately after defining
50809         subdir.
50810         * assert/Makefile: Likewise.
50811         * benchtests/Makefile: Likewise.
50812         * catgets/Makefile: Likewise.
50813         * conform/Makefile: Likewise.
50814         * crypt/Makefile: Likewise.
50815         * csu/Makefile: Likewise.
50816         (all): Remove target.
50817         * ctype/Makefile: Include Makeconfig immediately after defining
50818         subdir.
50819         * debug/Makefile: Likewise.
50820         * dirent/Makefile: Likewise.
50821         * dlfcn/Makefile: Likewise.
50822         * gmon/Makefile: Likewise.
50823         * gnulib/Makefile: Likewise.
50824         * grp/Makefile: Likewise.
50825         * gshadow/Makefile: Likewise.
50826         * hesiod/Makefile: Likewise.
50827         * hurd/Makefile: Likewise.
50828         (all): Remove target.
50829         * iconvdata/Makefile: Include Makeconfig immediately after
50830         defining subdir.
50831         * inet/Makefile: Likewise.
50832         * intl/Makefile: Likewise.
50833         * io/Makefile: Likewise.
50834         * libio/Makefile: Likewise.
50835         (all): Remove target.
50836         * locale/Makefile: Include Makeconfig immediately after defining
50837         subdir.
50838         * login/Makefile: Likewise.
50839         * mach/Makefile: Likewise.
50840         (all): Remove target.
50841         * malloc/Makefile: Include Makeconfig immediately after defining
50842         subdir.
50843         (all): Remove target.
50844         * manual/Makefile: Include Makeconfig immediately after defining
50845         subdir.
50846         * math/Makefile: Likewise.
50847         * misc/Makefile: Likewise.
50848         * nis/Makefile: Likewise.
50849         * nss/Makefile: Likewise.
50850         * po/Makefile: Likewise.
50851         (all): Remove target.
50852         * posix/Makefile: Include Makeconfig immediately after defining
50853         subdir.
50854         * pwd/Makefile: Likewise.
50855         * resolv/Makefile: Likewise.
50856         * resource/Makefile: Likewise.
50857         * rt/Makefile: Likewise.
50858         * setjmp/Makefile: Likewise.
50859         * shadow/Makefile: Likewise.
50860         * signal/Makefile: Likewise.
50861         * socket/Makefile: Likewise.
50862         * soft-fp/Makefile: Likewise.
50863         * stdio-common/Makefile: Likewise.
50864         * stdlib/Makefile: Likewise.
50865         * streams/Makefile: Likewise.
50866         * string/Makefile: Likewise.
50867         * sunrpc/Makefile: Likewise.
50868         (all): Remove target.
50869         * sysvipc/Makefile: Include Makeconfig immediately after defining
50870         subdir.
50871         * termios/Makefile: Likewise.
50872         * time/Makefile: Likewise.
50873         * timezone/Makefile: Likewise.
50874         (all): Remove target.
50875         * wcsmbs/Makefile: Include Makeconfig immediately after defining
50876         subdir.
50877         * wctype/Makefile: Likewise.
50878
50879 2014-02-26  Steve Ellcey  <sellcey@mips.com>
50880
50881         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
50882         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
50883         (libc_feholdexcept_setround_mips): Ditto.
50884         (libc_feholdsetround): New.
50885         (libc_feholdsetroundf): New.
50886         (libc_feholdsetroundl): New.
50887         (libc_feupdateenv_test_mips): New.
50888         (libc_feupdateenv_test): New.
50889         (libc_feupdateenv_testf): New.
50890         (libc_feupdateenv_testl): New.
50891         (libc_feresetround): New.
50892         (libc_feresetroundf): New.
50893         (libc_feresetroundl): New.
50894         (libc_fetestexcept_mips): New.
50895         (libc_fetestexcept): New.
50896         (libc_fetestexceptf): New.
50897         (libc_fetestexceptl): New.
50898         (HAVE_RM_CTX): New.
50899         (libc_feholdexcept_setround_mips_ctx): New.
50900         (libc_feholdexcept_setround_ctx): New.
50901         (libc_feholdexcept_setroundf_ctx): New.
50902         (libc_feholdexcept_setroundl_ctx): New.
50903         (libc_fesetenv_mips_ctx): New.
50904         (libc_fesetenv_ctx): New.
50905         (libc_fesetenv_ctxf): New.
50906         (libc_fesetenv_ctxl): New.
50907         (libc_feupdateenv_mips_ctx): New.
50908         (libc_feupdateenv_ctx): New.
50909         (libc_feupdateenvf_ctx): New.
50910         (libc_feupdateenvl_ctx): New.
50911         (libc_feholdsetround_mips_ctx): New.
50912         (libc_feholdsetround_ctx): New.
50913         (libc_feholdsetroundf_ctx): New.
50914         (libc_feholdsetroundl_ctx): New.
50915         (libc_feresetround_mips_ctx): New.
50916         (libc_feresetround_ctx): New.
50917         (libc_feresetroundf_ctx): New.
50918         (libc_feresetroundl_ctx): New.
50919
50920 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
50921
50922         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
50923
50924         * manual/ipc.texi: New file.
50925         * manual/Makefile (chapters): Add ipc.
50926         * manual/job.texi: Add "Inter-Process Communication" to next.
50927         * manual/process.texi: Add "Inter-Process Communication" to prev.
50928
50929 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50930
50931         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
50932
50933 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
50934
50935         * malloc/malloc.c (__libc_calloc): Simplify implementation.
50936
50937         * manual/arith.texi: Fix spaces after sentences.
50938         * manual/charset.texi: Likewise.
50939         * manual/errno.texi: Likewise.
50940         * manual/install.texi: Likewise.
50941         * manual/llio.texi: Likewise.
50942         * manual/locale.texi: Likewise.
50943         * manual/maint.texi: Likewise.
50944         * manual/math.texi: Likewise.
50945         * manual/memory.texi: Likewise.
50946         * manual/message.texi: Likewise.
50947         * manual/probes.texi: Likewise.
50948         * manual/resource.texi: Likewise.
50949         * manual/signal.texi: Likewise.
50950         * manual/socket.texi: Likewise.
50951         * manual/stdio.texi: Likewise.
50952         * manual/string.texi: Likewise.
50953         * manual/time.texi: Likewise.
50954         * manual/users.texi: Likewise.
50955
50956 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
50957
50958         [BZ #16632]
50959         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
50960         _DEFAULT_SOURCE is defined.
50961
50962 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
50963             Carlos O'Donell  <carlos@redhat.com>
50964
50965         [BZ #16613]
50966         * elf/dl-tls.c (_dl_count_modids): New function.
50967         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
50968         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
50969         audit library and increment generation counter.
50970         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
50971         * elf/tst-audit9.c: New file.
50972         * elf/tst-auditmod9a.c: New file.
50973         * elf/tst-auditmod9b.c: New file.
50974         * elf/Makefile: Add rules to build and run tst-audit9.
50975
50976 2014-02-25  Florian Weimer  <fweimer@redhat.com>
50977
50978         [BZ #15347]
50979         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
50980
50981 2014-02-25  Will Newton  <will.newton@linaro.org>
50982
50983         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
50984         (__longjmp): Restore sp and lr before restoring callee
50985         saved registers.  Add longjmp and longjmp_target
50986         SystemTap probe point.
50987         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
50988         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
50989         Define to zero to match jmpbuf layout.
50990         * sysdeps/arm/setjmp.S: Include stap-probe.h.
50991         (__sigsetjmp): Save sp and lr before saving callee
50992         saved registers.  Add setjmp SystemTap probe point.
50993
50994 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
50995
50996         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
50997
50998 2014-02-24  Andreas Schwab  <schwab@suse.de>
50999
51000         [BZ #15804]
51001         * elf/pldd.c (wait_for_ptrace_stop): New function.
51002         (main): Call it after attaching.
51003
51004 2014-02-22  Roland McGrath  <roland@hack.frob.com>
51005
51006         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
51007         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
51008         Versions files is now verboten.
51009         * hurd/Versions (libc: GLIBC_2.0):
51010         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
51011         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
51012         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
51013         * mach/Versions: Likewise.
51014
51015         * csu/Versions: Remove unused %include.
51016         * resolv/Versions: Likewise.
51017
51018 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
51019
51020         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
51021         ($(objpfx)check-local-headers.out): Likewise.
51022         ($(objpfx)begin-end-check.out): Likewise.
51023         * Makerules (check-abi-%.out): Likewise.
51024         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
51025         ($(objpfx)test2.cat): Likewise.
51026         ($(objpfx)de/libc.cat): Likewise.
51027         ($(objpfx)test-gencat.out): Likewise.
51028         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
51029         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
51030         ($(objpfx)noload-mem): Likewise.
51031         ($(objpfx)tst-pathopt.out): Likewise.
51032         ($(objpfx)tst-rtld-load-self.out): Likewise.
51033         ($(objpfx)tst-array1-cmp.out): Likewise.
51034         ($(objpfx)tst-array1-static-cmp.out): Likewise.
51035         ($(objpfx)tst-array2-cmp.out): Likewise.
51036         ($(objpfx)tst-array3-cmp.out): Likewise.
51037         ($(objpfx)tst-array4-cmp.out): Likewise.
51038         ($(objpfx)tst-array5-cmp.out): Likewise.
51039         ($(objpfx)tst-array5-static-cmp.out): Likewise.
51040         ($(objpfx)check-textrel.out): Likewise.
51041         ($(objpfx)check-execstack.out): Likewise.
51042         ($(objpfx)check-localplt.out): Likewise.
51043         ($(objpfx)order2-cmp.out): Likewise.
51044         ($(objpfx)tst-leaks1-mem): Likewise.
51045         ($(objpfx)tst-leaks1-static-mem): Likewise.
51046         ($(objpfx)tst-initorder-cmp.out): Likewise.
51047         ($(objpfx)tst-initorder2-cmp.out): Likewise.
51048         ($(objpfx)tst-unused-dep.out): Likewise.
51049         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
51050         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
51051         * iconv/Makefile (test-iconvconfig): Likewise.
51052         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
51053         ($(objpfx)iconv-test.out): Likewise.
51054         ($(objpfx)tst-tables.out): Likewise.
51055         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
51056         ($(objpfx)tst-gettext.out): Likewise.
51057         ($(objpfx)tst-translit.out): Likewise.
51058         ($(objpfx)tst-gettext2.out): Likewise.
51059         ($(objpfx)tst-gettext4.out): Likewise.
51060         ($(objpfx)tst-gettext6.out): Likewise.
51061         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
51062         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
51063         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
51064         ($(objpfx)tst-fopenloc-mem.out): Likewise.
51065         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
51066         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
51067         * posix/Makefile ($(objpfx)globtest.out): Likewise.
51068         ($(objpfx)wordexp-tst.out): Likewise.
51069         ($(objpfx)annexc.out): Likewise.
51070         ($(objpfx)tst-fnmatch-mem): Likewise.
51071         ($(objpfx)bug-regex2-mem): Likewise.
51072         ($(objpfx)bug-regex14-mem): Likewise.
51073         ($(objpfx)bug-regex21-mem): Likewise.
51074         ($(objpfx)bug-regex31-mem): Likewise.
51075         ($(objpfx)tst-vfork3-mem): Likewise.
51076         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
51077         ($(objpfx)tst-pcre-mem): Likewise.
51078         ($(objpfx)tst-boost-mem): Likewise.
51079         ($(objpfx)tst-getconf.out): Likewise.
51080         ($(objpfx)bug-ga2-mem): Likewise.
51081         ($(objpfx)bug-glob2-mem): Likewise.
51082         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
51083         ($(objpfx)mtrace-tst-leaks2): Likewise.
51084         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
51085         ($(objpfx)tst-printf.out): Likewise.
51086         ($(objpfx)tst-setvbuf1.out): Likewise.
51087         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
51088         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
51089         ($(objpfx)tst-fmtmsg.out): Likewise.
51090         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
51091         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
51092
51093         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
51094         * bits/sigaction.h [__USE_MISC]: Likewise.
51095         * bits/waitstatus.h: Update #endif comments.
51096         * ctype/ctype.h: Likewise.
51097         * dirent/dirent.h: Likewise.
51098         [__USE_MISC]: Remove redundant conditionals.
51099         * grp/grp.h: Update #endif comments.
51100         [__USE_GNU]: Remove redundant conditionals.
51101         [__USE_MISC]: Likewise.
51102         * inet/netinet/in.h [__USE_GNU]: Likewise.
51103         * io/sys/stat.h [__USE_MISC]: Likewise.
51104         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
51105         * libio/bits/stdio.h: Update #endif comments.
51106         [__USE_MISC]: Remove redundant conditionals.
51107         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
51108         * libio/stdio.h: Update #endif comments.
51109         [__USE_MISC]: Remove redundant conditionals.
51110         * math/bits/math-finite.h [__USE_MISC]: Likewise.
51111         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
51112         * math/math.h: Update #else and #endif comments.
51113         [__USE_MISC]: Remove redundant conditionals.
51114         * misc/sys/uio.h: Update #endif comments.
51115         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
51116         * posix/glob.h [__USE_MISC]: Likewise.
51117         * posix/sys/types.h: Update #endif comments.
51118         [__USE_MISC]: Remove redundant conditionals.
51119         * posix/sys/wait.h: Update #endif comments.
51120         [__USE_MISC]: Remove redundant conditionals.
51121         * posix/unistd.h: Update #endif comments.
51122         [__USE_MISC]: Remove redundant conditionals.
51123         * pwd/pwd.h [__USE_GNU]: Likewise.
51124         [__USE_MISC]: Likewise.
51125         * resolv/netdb.h [__USE_GNU]: Likewise.
51126         * signal/signal.h: Update #endif comments.
51127         [__USE_MISC]: Remove redundant conditionals.
51128         * stdlib/stdlib.h: Update #else and #endif comments.
51129         [__USE_MISC]: Remove redundant conditionals.
51130         [__USE_GNU]: Likewise.
51131         * string/bits/string2.h [__USE_MISC]: Likewise.
51132         * string/string.h: Update #endif comments.
51133         [__USE_MISC]: Remove redundant conditionals.
51134         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
51135         Likewise.
51136         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
51137         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
51138         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
51139         Likewise.
51140         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
51141         Likewise.
51142         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
51143         comments.
51144         [__USE_MISC]: Remove redundant conditionals.
51145         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
51146         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
51147         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
51148         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
51149         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
51150         Likewise.
51151         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
51152         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
51153         Likewise.
51154         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
51155         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
51156         Likewise.
51157         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
51158         Likewise.
51159         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
51160         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
51161         Likewise.
51162         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
51163         Likewise.
51164         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
51165         * sysdeps/x86/bits/string.h: Update #endif comments.
51166         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
51167         conditionals.
51168         * time/sys/time.h: Update #endif comments.
51169         * time/time.h: Likewise.
51170         [__USE_MISC]: Remove redundant conditionals.
51171
51172 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
51173
51174         [BZ #16600]
51175         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
51176
51177 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
51178
51179         * Versions.def (librt): Add GLIBC_2.17.
51180
51181 2014-02-21  Adam Conrad  <adconrad@0c3.net>
51182
51183         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
51184         synonym for _SYS_AUXV_H to allow direct inclusion.
51185         * sysdeps/sparc/bits/hwcap.h: Likewise.
51186         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
51187         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
51188         * sysdeps/sparc/sysdep.h: Likewise.
51189
51190 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51191
51192         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
51193
51194 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
51195
51196         * benchtests/bench-strrchr.c: Print length instead of position.
51197
51198 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
51199
51200         [BZ #16611]
51201         * sysdeps/unix/sysv/linux/kernel-features.h
51202         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
51203         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
51204         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
51205         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
51206         Likewise.
51207         [__i386__ || __powerpc__ || __sh__ || __sparc__]
51208         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51209         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
51210         (__ASSUME_SENDMMSG): Define instead of using previous
51211         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
51212         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51213         (__ASSUME_SENDMMSG_SYSCALL): Define.
51214         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51215         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
51216         Likewise.
51217         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51218         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51219         Likewise.
51220         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51221         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51222         Likewise.
51223         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
51224         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
51225         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
51226         [__ASSUME_SENDMMSG]: Change conditionals to
51227         [__ASSUME_SENDMMSG_SOCKETCALL].
51228         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51229         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
51230         Define.
51231         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51232         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
51233         Likewise.
51234         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
51235         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
51236         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
51237         [!__ASSUME_SENDMMSG]: Change conditional to
51238         [!__ASSUME_SENDMMSG_SOCKETCALL].
51239         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51240         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
51241         Define.
51242
51243         [BZ #16610]
51244         * sysdeps/unix/sysv/linux/kernel-features.h
51245         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
51246         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
51247         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
51248         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
51249         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
51250         [__i386__ || __sparc__]
51251         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51252         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
51253         (__ASSUME_RECVMMSG): Define instead of using previous
51254         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
51255         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51256         (__ASSUME_RECVMMSG_SYSCALL): Define.
51257         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51258         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51259         Likewise.
51260         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51261         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51262         Likewise.
51263         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51264         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51265         Likewise.
51266         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
51267         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
51268         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
51269         [__ASSUME_RECVMMSG]: Change condition to
51270         [__ASSUME_RECVMMSG_SOCKETCALL].
51271         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51272         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51273         Define.
51274         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
51275         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51276         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
51277         Likewise.
51278         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
51279         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
51280         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
51281         [!__ASSUME_RECVMMSG]: Change condition to
51282         [!__ASSUME_RECVMMSG_SOCKETCALL].
51283         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51284         (__ASSUME_RECVMMSG_SYSCALL): Define.
51285
51286         [BZ #16609]
51287         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
51288         __powerpc__ || __s390__ || __sh__ || __sparc__]
51289         (__ASSUME_SOCKETCALL): Define.
51290         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
51291         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
51292         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
51293         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
51294         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
51295         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
51296         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
51297         (__ASSUME_ACCEPT4): Define instead of using previous
51298         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
51299         __powerpc__ || __sparc__ || __s390__)] condition.
51300         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
51301         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51302         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
51303         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51304         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51305         [!__ASSUME_ACCEPT4]: Change condition to
51306         [!__ASSUME_ACCEPT4_SOCKETCALL].
51307         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
51308         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
51309         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
51310         * sysdeps/unix/sysv/linux/arm/kernel-features.h
51311         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
51312         __ASSUME_ACCEPT4_SYSCALL.
51313         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
51314         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
51315         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
51316         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
51317         __ASSUME_ACCEPT4_SYSCALL.
51318         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
51319         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
51320         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
51321         [__ASSUME_ACCEPT4]: Change condition to
51322         [__ASSUME_ACCEPT4_SOCKETCALL].
51323         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
51324         (__ASSUME_SOCKETCALL): Define.
51325         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
51326         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
51327         (__ASSUME_SOCKETCALL): Define.
51328         (__ASSUME_ACCEPT4): Remove.
51329         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
51330         Define.
51331         * sysdeps/unix/sysv/linux/mips/kernel-features.h
51332         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
51333         Likewise.
51334         * sysdeps/unix/sysv/linux/tile/kernel-features.h
51335         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
51336
51337         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
51338         macro.
51339         (HWCAP_ARM_LPAE): Likewise.
51340         (HWCAP_ARM_EVTSTRM): Likewise.
51341         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
51342         Add vpfd32, lpae and evtstrm.
51343         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
51344         Increase to 22.
51345
51346 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
51347
51348         * math/auto-libm-test-in: Add tests of clog10.
51349         * math/auto-libm-test-out: Regenerated.
51350         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
51351         * sysdeps/i386/fpu/libm-test-ulps: Update.
51352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51353
51354 2014-02-18  Andreas Schwab  <schwab@suse.de>
51355
51356         [BZ #16574]
51357         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
51358         Store non-zero if the second buffer was newly allocated.
51359         (send_dg): Likewise.
51360         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
51361         to send_vc and send_dg.
51362         (res_nsend): Pass NULL for ansp2_malloced.
51363         * resolv/res_query.c (__libc_res_nquery): Add parameter
51364         answerp2_malloced and pass it down to __libc_res_nsend.
51365         (res_nquery): Pass additional NULL to __libc_res_nquery.
51366         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
51367         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
51368         second answer buffer if answerp2_malloced was set.
51369         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
51370         (__libc_res_nquerydomain): Add parameter
51371         answerp2_malloced and pass it down to __libc_res_nquery.
51372         (res_nquerydomain): Pass additional NULL to
51373         __libc_res_nquerydomain.
51374         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
51375         additional NULL to __libc_res_nsend and __libc_res_nquery.
51376         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
51377         additional NULL to __libc_res_nsearch.
51378         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
51379         parameter of __libc_res_nsearch to check for separately allocated
51380         second buffer.
51381         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
51382         __libc_res_nquery.
51383         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
51384         additional NULL to __libc_res_nquery.
51385         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
51386         __libc_res_nsearch.
51387         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
51388         * include/resolv.h: Update prototypes of __libc_res_nquery,
51389         __libc_res_nsearch, __libc_res_nsend.
51390
51391 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
51392
51393         * math/auto-libm-test-in: Add tests of fma.
51394         * math/auto-libm-test-out: Regenerated.
51395         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
51396         (fma_towardzero_test_data): Likewise.
51397         (fma_downward_test_data): Likewise.
51398         (fma_upward_test_data): Likewise.
51399         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
51400         mpc_mode.
51401         (rounding_modes): Add values for new field.
51402         (func_calc_method): Add value mpfr_fff_f.
51403         (func_calc_desc): Add mpfr_fff_f union field.
51404         (test_function): Add field exact_args.
51405         (FUNC): Add macro argument EXACT_ARGS.
51406         (FUNC_mpfr_f_f): Update call to FUNC.
51407         (FUNC_mpfr_f_f): Likewise.
51408         (FUNC_mpfr_ff_f): Likewise.
51409         (FUNC_mpfr_if_f): Likewise.
51410         (FUNC_mpc_c_f): Likewise.
51411         (FUNC_mpc_c_c): Likewise.
51412         (test_functions): Add fma.  Update calls to FUNC.
51413         (handle_input_arg): Add argument exact_args.
51414         (add_test): Update call to handle_input_arg.
51415         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
51416         (output_for_one_input_case): Update call to calc_generic_results.
51417         Recalculate exact zero results in each rounding mode.
51418
51419         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
51420         non-negative before setting low bit.
51421         * math/auto-libm-test-in: Mark one asin test possibly having
51422         spurious underflow.
51423         * math/auto-libm-test-out: Regenerated.
51424         * sysdeps/i386/fpu/libm-test-ulps: Update.
51425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
51426
51427 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
51428
51429         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
51430         * sysdeps/unix/sysv/linux/microblaze: Move directory from
51431         ports/sysdeps/unix/sysv/linux/microblaze.
51432         * README: Add missing listing for microblaze*-*-linux-gnu.
51433
51434 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
51435
51436         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
51437         duplicate code
51438
51439 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
51440
51441         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
51442         * sysdeps/unix/sysv/linux/ia64: Move directory from
51443         ports/sysdeps/unix/sysv/linux/ia64.
51444         * README: Update listing for ia64-*-linux-gnu.
51445
51446 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
51447             Joseph Myers  <joseph@codesourcery.com>
51448
51449         * Makeconfig (test-name): New variable.
51450         (evaluate-test): Likewise.
51451         * Makerules (do-test-clean): Remove .test-result files.
51452         (common-mostlyclean): Likewise.
51453         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
51454         * scripts/evaluate-test.sh: New file.
51455
51456 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
51457
51458         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
51459         separate $(objpfx)tst-fopenloc-cmp.out and
51460         $(objpfx)tst-fopenloc-mem.out targets.
51461         (tests): Update dependencies.
51462         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
51463         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
51464         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
51465         (tst-rxspencer-no-utf8-ARGS): New variable.
51466         (tst-rxspencer-no-utf8-ENV): Likewise.
51467         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
51468         instead of $(objpfx)tst-rxspencer-mem.
51469         ($(objpfx)tst-rxspencer-mem): Change target to
51470         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
51471         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
51472         * posix/tst-rxspencer-no-utf8.c: New file.
51473
51474         * elf/Makefile ($(objpfx)order.out): Remove rule.
51475         [$(run-built-tests) = yes] (tests): Depend on
51476         $(objpfx)order-cmp.out.
51477         ($(objpfx)order-cmp.out): New rule.
51478         [$(run-built-tests) = yes] (tests): Depend on
51479         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
51480         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
51481         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
51482         $(objpfx)tst-array5-static-cmp.out.
51483         ($(objpfx)tst-array1.out): Remove rule.
51484         ($(objpfx)tst-array1-cmp.out): New rule.
51485         ($(objpfx)tst-array1-static.out): Remove rule.
51486         ($(objpfx)tst-array1-static-cmp.out): New rule.
51487         ($(objpfx)tst-array2.out): Remove rule.
51488         ($(objpfx)tst-array2-cmp.out): New rule.
51489         ($(objpfx)tst-array3.out): Remove rule.
51490         ($(objpfx)tst-array3-cmp.out): New rule.
51491         ($(objpfx)tst-array4.out): Remove rule.
51492         ($(objpfx)tst-array4-cmp.out): New rule.
51493         ($(objpfx)tst-array5.out): Remove rule.
51494         ($(objpfx)tst-array5-cmp.out): New rule.
51495         ($(objpfx)tst-array5-static.out): Remove rule.
51496         ($(objpfx)tst-array5-static-cmp.out): New rule.
51497         [$(run-built-tests) = yes] (tests): Depend on
51498         $(objpfx)order2-cmp.out.
51499         ($(objpfx)order2.out): Remove rule.
51500         ($(objpfx)order2-cmp.out): New rule.
51501         ($(objpfx)tst-initorder.out): Remove rule.
51502         [$(run-built-tests) = yes] (tests): Depend on
51503         $(objpfx)tst-initorder-cmp.out.
51504         ($(objpfx)tst-initorder-cmp.out): New rule.
51505         ($(objpfx)tst-initorder2.out): Remove rule.
51506         [$(run-built-tests) = yes] (tests): Depend on
51507         $(objpfx)tst-initorder2-cmp.out.
51508         ($(objpfx)tst-initorder2-cmp.out): New rule.
51509         [$(run-built-tests) = yes] (tests): Depend on
51510         $(objpfx)tst-unused-dep-cmp.out.
51511         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
51512         ($(objpfx)tst-unused-dep-cmp.out): New rule.
51513         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
51514         on $(objpfx)tst-setvbuf1-cmp.out.
51515         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
51516         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
51517         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
51518         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
51519         ($(objpfx)tst-svc.out): Remove rule.
51520         ($(objpfx)tst-svc-cmp.out): New rule.
51521
51522 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
51523
51524         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
51525         * ctype/ctype.h [__USE_MISC]: Likewise.
51526         * dirent/dirent.h [__USE_MISC]: Likewise.
51527         * grp/grp.h [__USE_MISC]: Likewise.
51528         * io/fcntl.h [__USE_MISC]: Likewise.
51529         * io/sys/stat.h [__USE_MISC]: Likewise.
51530         * libio/stdio.h [__USE_MISC]: Likewise.
51531         * posix/unistd.h [__USE_MISC]: Likewise.
51532         * pwd/pwd.h [__USE_MISC]: Likewise.
51533         * stdlib.h [__USE_MISC]: Likewise.
51534         * string/bits/string2.h [__USE_MISC]: Likewise.
51535         * string/string.h [__USE_MISC]: Likewise.
51536         * time/time.h [__USE_MISC]: Likewise.
51537
51538 2014-02-13  Andreas Schwab  <schwab@suse.de>
51539
51540         [BZ #16574]
51541         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
51542         second answer buffer if it was separately allocated.
51543
51544 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
51545
51546         * sysdeps/mips/math-tests.h: Include <features.h>.
51547         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51548         (ROUNDING_TESTS_long_double): Do not define.
51549         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
51550         (EXCEPTION_TESTS_long_double): Likewise.
51551         * sysdeps/mips/mips64/libm-test-ulps: Update.
51552
51553         * include/features.h (__USE_BSD): Remove macro definitions.
51554         (__USE_SVID): Likewise.
51555         (_BSD_SOURCE): Likewise.
51556         (_SVID_SOURCE): Likewise.
51557         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
51558         from definition of _DEFAULT_SOURCE.
51559         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
51560         [_DEFAULT_SOURCE].
51561         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
51562         * bits/mman.h [__USE_BSD]: Likewise.
51563         * bits/termios.h [__USE_BSD]: Likewise.
51564         * bits/waitstatus.h [__USE_BSD]: Likewise.
51565         * ctype/ctype.h [__USE_SVID]: Likewise.
51566         * dirent/dirent.h [__USE_BSD]: Likewise.
51567         * grp/grp.h [__USE_SVID]: Likewise.
51568         [__USE_BSD]: Likewise.
51569         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
51570         * io/fcntl.h [__USE_BSD]: Likewise.
51571         * io/ftw.h [__USE_BSD]: Likewise.
51572         * io/sys/stat.h [__USE_BSD]: Likewise.
51573         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
51574         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
51575         * libio/stdio.h [__USE_SVID]: Likewise.
51576         [__USE_BSD]: Likewise.
51577         * math/math.h [__USE_SVID]: Likewise.
51578         [__USE_BSD]: Likewise.
51579         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
51580         * misc/bits/syslog.h [__USE_BSD]: Likewise.
51581         * misc/search.h [__USE_SVID]: Likewise.
51582         * misc/sys/mman.h [__USE_BSD]: Likewise.
51583         * misc/sys/syslog.h [__USE_BSD]: Likewise.
51584         * misc/sys/uio.h [__USE_BSD]: Likewise.
51585         * posix/bits/unistd.h [__USE_BSD]: Likewise.
51586         * posix/glob.h [__USE_BSD]: Likewise.
51587         * posix/regex.h [__USE_BSD]: Likewise.
51588         * posix/sys/types.h [__USE_BSD]: Likewise.
51589         [__USE_SVID]: Likewise.
51590         * posix/sys/utsname.h [__USE_SVID]: Likewise.
51591         * posix/sys/wait.h [__USE_BSD]: Likewise.
51592         [__USE_SVID]: Likewise.
51593         * posix/unistd.h [__USE_BSD]: Likewise.
51594         [__USE_SVID]: Likewise.
51595         * pwd/pwd.h [__USE_SVID]: Likewise.
51596         * resolv/netdb.h [__USE_BSD]: Likewise.
51597         * setjmp/setjmp.h [__USE_BSD]: Likewise.
51598         * signal/signal.h [__USE_BSD]: Likewise.
51599         [__USE_SVID]: Likewise.
51600         * socket/sys/socket.h [__USE_BSD]: Likewise.
51601         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
51602         * stdlib/stdlib.h [__USE_BSD]: Likewise.
51603         [__USE_SVID]: Likewise.
51604         * string/bits/string2.h [__USE_BSD]: Likewise.
51605         [__USE_SVID]: Likewise.
51606         * string/bits/string3.h [__USE_BSD]: Likewise.
51607         * string/endian.h [__USE_BSD]: Likewise.
51608         * string/string.h [__USE_SVID]: Likewise.
51609         [__USE_BSD]: Likewise.
51610         * string/strings.h [__USE_BSD]: Likewise.
51611         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
51612         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
51613         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
51614         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
51615         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
51616         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
51617         Likewise.
51618         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
51619         Likewise.
51620         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
51621         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
51622         Likewise.
51623         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
51624         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
51625         Likewise.
51626         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
51627         Likewise.
51628         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
51629         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
51630         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
51631         Likewise.
51632         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
51633         Likewise.
51634         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
51635         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
51636         * termios/termios.h [__USE_BSD]: Likewise.
51637         * time/sys/time.h [__USE_BSD]: Likewise.
51638         * time/time.h [__USE_BSD]: Likewise.
51639         [__USE_SVID]: Likewise.
51640
51641         * Makefile (subdir_targets): Remove subdir_lint.out.
51642
51643         * stdio-common/Makefile (do-tst-unbputc): Remove target.
51644         (do-tst-printf): Likewise.
51645         (tests): Depend directly on $(objpfx)tst-unbputc.out and
51646         $(objpfx)tst-printf.out.
51647
51648         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
51649
51650         * Makerules (check-abi-%): Change target to
51651         $(objpfx)check-abi-%.out.
51652         (check-abi target): Update dependencies.
51653         (check-abi-pattern variable): Redirect output of diff to $@.
51654         (check-abi variable): Likewise.
51655         * elf/Makefile (check-abi): Update dependencies.
51656
51657         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
51658         unused.
51659         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
51660         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
51661         subnormal range.
51662         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
51663         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
51664         value has largest subnormal exponent.
51665         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
51666         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
51667         * sysdeps/aarch64/soft-fp/sfp-machine.h
51668         (_FP_TININESS_AFTER_ROUNDING): New macro.
51669         * sysdeps/alpha/soft-fp/sfp-machine.h
51670         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51671         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51672         Likewise.
51673         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
51674         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51675         * sysdeps/mips/soft-fp/sfp-machine.h
51676         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51677         * sysdeps/powerpc/soft-fp/sfp-machine.h
51678         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51679         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51680         Likewise.
51681         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
51682         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51683         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
51684         (_FP_TININESS_AFTER_ROUNDING): Likewise.
51685         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
51686         Likewise.
51687
51688 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
51689
51690         [BZ #16545]
51691         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
51692         model 1.
51693
51694 2014-02-12  Richard Henderson  <rth@redhat.com>
51695
51696         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
51697         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
51698         * sysdeps/unix/sysv/linux/alpha: Move directory from
51699         ports/sysdeps/unix/sysv/linux/alpha.
51700         * README: Update listing for alpha-*-linux-gnu.
51701
51702 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
51703
51704         * include/features.h: Update comment documenting feature test
51705         macros.
51706         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
51707         _DEFAULT_SOURCE.
51708         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
51709         (_SVID_SOURCE): Likewise.
51710         (_DEFAULT_SOURCE): Update description of default features.
51711         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
51712         with _GNU_SOURCE.
51713         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
51714         (S_ISVTX): Likewise.
51715         * manual/math.texi (Mathematical Constants): Likewise.
51716         * manual/signal.texi (Interrupted Primitives): Likewise.
51717         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
51718         * math/test-matherr.c (_SVID_SOURCE): Do not define.
51719         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
51720         Don't refer to _SVID_SOURCE in warning text.
51721
51722         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
51723
51724         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
51725         already defined.
51726         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
51727         * sysdeps/mips/dl-lookup.c: Remove.
51728         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
51729
51730 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
51731
51732         [BZ #16447]
51733         * math/auto-libm-test-in: Add testcase for expl.
51734         * math/auto-libm-test-out: Regenerate.
51735         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
51736         calculation of unsafe.
51737         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
51738
51739 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
51740
51741         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
51742         * sysdeps/unix/sysv/linux/aarch64: Move directory from
51743         ports/sysdeps/unix/sysv/linux/aarch64.
51744         * README: Update listing for aarch64*-*-linux-gnu.
51745
51746 2014-02-11  Will Newton  <will.newton@linaro.org>
51747
51748         * manual/probes.texi (Mathematical Function Probes): Use
51749         "triggered" instead of "hit".
51750
51751         * manual/probes.texi (Internal Probes): Add documentation
51752         of setjmp, longjmp and longjmp_target probes.
51753
51754         * include/stap-probe.h: Add comment about probe argument
51755         format.
51756
51757         * malloc/mtrace.c (attribute_hidden): Remove unused macro
51758         definition.  (tr_where, tr_freehook, tr_mallochook,
51759         tr_reallochook, tr_memalignhook): Use ANSI protoype.
51760
51761 2014-02-11  David S. Miller  <davem@davemloft.net>
51762
51763         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
51764         processing int_tests.
51765
51766 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
51767
51768         * sysdeps/mips: Move directory from ports/sysdeps/mips.
51769         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
51770         * sysdeps/unix/sysv/linux/mips: Move directory from
51771         ports/sysdeps/unix/sysv/linux/mips.
51772         * README: Update listing for mips-*-linux-gnu and
51773         mips64-*-linux-gnu.
51774
51775 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
51776
51777         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
51778         * sysdeps/unix/sysv/linux/m68k: Move directory from
51779         ports/sysdeps/unix/sysv/linux/m68k.
51780         * README: Update listing for m68k-*-linux-gnu.
51781
51782 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
51783
51784         * sysdeps/tile: Move directory from ports/sysdeps/tile.
51785         * sysdeps/unix/sysv/linux/generic: Move directory from
51786         ports/sysdeps/unix/sysv/linux/generic.
51787         * sysdeps/unix/sysv/linux/tile: Move directory from
51788         ports/sysdeps/unix/sysv/linux/tile.
51789         * README: Update listing for tile*-*-linux-gnu.
51790
51791 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
51792
51793         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
51794         __builtin_expect.
51795         * benchtests/bench-memmem.c (simple_memmem): Likewise.
51796         * catgets/open_catalog.c (__open_catalog): Likewise.
51797         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
51798         * debug/confstr_chk.c: Likewise.
51799         * debug/fread_chk.c (__fread_chk): Likewise.
51800         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
51801         * debug/getgroups_chk.c: Likewise.
51802         * debug/mbsnrtowcs_chk.c: Likewise.
51803         * debug/mbsrtowcs_chk.c: Likewise.
51804         * debug/mbstowcs_chk.c: Likewise.
51805         * debug/memcpy_chk.c: Likewise.
51806         * debug/memmove_chk.c: Likewise.
51807         * debug/mempcpy_chk.c: Likewise.
51808         * debug/memset_chk.c: Likewise.
51809         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
51810         * debug/strcat_chk.c (__strcat_chk): Likewise.
51811         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
51812         * debug/strncat_chk.c (__strncat_chk): Likewise.
51813         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
51814         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
51815         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
51816         * debug/wcpncpy_chk.c: Likewise.
51817         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
51818         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
51819         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
51820         * debug/wcsncpy_chk.c: Likewise.
51821         * debug/wcsnrtombs_chk.c: Likewise.
51822         * debug/wcsrtombs_chk.c: Likewise.
51823         * debug/wcstombs_chk.c: Likewise.
51824         * debug/wmemcpy_chk.c: Likewise.
51825         * debug/wmemmove_chk.c: Likewise.
51826         * debug/wmempcpy_chk.c: Likewise.
51827         * debug/wmemset_chk.c: Likewise.
51828         * dirent/scandirat.c (SCANDIRAT): Likewise.
51829         * dlfcn/dladdr1.c (dladdr1): Likewise.
51830         * dlfcn/dladdr.c (dladdr): Likewise.
51831         * dlfcn/dlclose.c (dlclose_doit): Likewise.
51832         * dlfcn/dlerror.c (__dlerror): Likewise.
51833         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
51834         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
51835         * dlfcn/dlopen.c (dlopen_doit): Likewise.
51836         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
51837         * dlfcn/dlsym.c (dlsym_doit): Likewise.
51838         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
51839         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
51840         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
51841         Likewise.
51842         * elf/dl-conflict.c: Likewise.
51843         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
51844         * elf/dl-dst.h: Likewise.
51845         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
51846         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
51847         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
51848         * elf/dl-init.c (call_init, _dl_init): Likewise.
51849         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
51850         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
51851         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
51852         Likewise.
51853         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
51854         Likewise.
51855         * elf/dl-minimal.c (__libc_memalign): Likewise.
51856         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
51857         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
51858         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
51859         * elf/dl-sym.c (do_sym): Likewise.
51860         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
51861         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
51862         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
51863         * elf/dl-writev.h (_dl_writev): Likewise.
51864         * elf/ldconfig.c (search_dir): Likewise.
51865         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
51866         (dl_main): Likewise.
51867         * elf/setup-vdso.h (setup_vdso): Likewise.
51868         * grp/compat-initgroups.c (compat_call): Likewise.
51869         * grp/fgetgrent.c (fgetgrent): Likewise.
51870         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
51871         * grp/putgrent.c (putgrent): Likewise.
51872         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
51873         Likewise.
51874         * hurd/hurdinit.c: Likewise.
51875         * iconvdata/8bit-gap.c (struct): Likewise.
51876         * iconvdata/ansi_x3.110.c : Likewise.
51877         * iconvdata/big5.c : Likewise.
51878         * iconvdata/big5hkscs.c : Likewise.
51879         * iconvdata/cp1255.c: Likewise.
51880         * iconvdata/cp1258.c : Likewise.
51881         * iconvdata/cp932.c : Likewise.
51882         * iconvdata/euc-cn.c: Likewise.
51883         * iconvdata/euc-jisx0213.c : Likewise.
51884         * iconvdata/euc-jp.c: Likewise.
51885         * iconvdata/euc-jp-ms.c : Likewise.
51886         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
51887         * iconvdata/gb18030.c : Likewise.
51888         * iconvdata/gbbig5.c (const): Likewise.
51889         * iconvdata/gbgbk.c: Likewise.
51890         * iconvdata/gbk.c : Likewise.
51891         * iconvdata/ibm1364.c : Likewise.
51892         * iconvdata/ibm930.c : Likewise.
51893         * iconvdata/ibm932.c: Likewise.
51894         * iconvdata/ibm933.c : Likewise.
51895         * iconvdata/ibm935.c : Likewise.
51896         * iconvdata/ibm937.c : Likewise.
51897         * iconvdata/ibm939.c : Likewise.
51898         * iconvdata/ibm943.c: Likewise.
51899         * iconvdata/iso_11548-1.c: Likewise.
51900         * iconvdata/iso-2022-cn.c : Likewise.
51901         * iconvdata/iso-2022-cn-ext.c : Likewise.
51902         * iconvdata/iso-2022-jp-3.c: Likewise.
51903         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
51904         * iconvdata/iso-2022-kr.c : Likewise.
51905         * iconvdata/iso646.c (gconv_end): Likewise.
51906         * iconvdata/iso_6937-2.c : Likewise.
51907         * iconvdata/iso_6937.c : Likewise.
51908         * iconvdata/iso8859-1.c: Likewise.
51909         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
51910         * iconvdata/shift_jisx0213.c : Likewise.
51911         * iconvdata/sjis.c : Likewise.
51912         * iconvdata/t.61.c : Likewise.
51913         * iconvdata/tcvn5712-1.c : Likewise.
51914         * iconvdata/tscii.c: Likewise.
51915         * iconvdata/uhc.c : Likewise.
51916         * iconvdata/unicode.c (gconv_end): Likewise.
51917         * iconvdata/utf-16.c (gconv_end): Likewise.
51918         * iconvdata/utf-32.c (gconv_end): Likewise.
51919         * iconvdata/utf-7.c (base64): Likewise.
51920         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
51921         * iconv/gconv_close.c (__gconv_close): Likewise.
51922         * iconv/gconv_open.c (__gconv_open): Likewise.
51923         * iconv/gconv_simple.c (internal_ucs4_loop_single)
51924         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
51925         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
51926         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
51927         (ucs4le_internal_loop_single): Likewise.
51928         * iconv/iconv.c (iconv): Likewise.
51929         * iconv/iconv_close.c: Likewise.
51930         * iconv/loop.c (SINGLE): Likewise.
51931         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
51932         * include/atomic.h: Likewise.
51933         * inet/inet6_option.c (option_alloc): Likewise.
51934         * intl/bindtextdom.c (set_binding_values): Likewise.
51935         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
51936         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
51937         * intl/localealias.c (read_alias_file): Likewise.
51938         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
51939         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
51940         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
51941         * libio/fmemopen.c (fmemopen): Likewise.
51942         * libio/iofgets.c (_IO_fgets): Likewise.
51943         * libio/iofgets_u.c (fgets_unlocked): Likewise.
51944         * libio/iofgetws.c (fgetws): Likewise.
51945         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
51946         * libio/iogetdelim.c (_IO_getdelim): Likewise.
51947         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
51948         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
51949         * locale/findlocale.c (_nl_find_locale): Likewise.
51950         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
51951         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
51952         Likewise.
51953         * locale/setlocale.c (setlocale): Likewise.
51954         * login/programs/pt_chown.c (main): Likewise.
51955         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
51956         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
51957         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
51958         (mmap, mmap64, mremap, munmap): Likewise.
51959         * math/e_exp2l.c: Likewise.
51960         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
51961         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
51962         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
51963         * math/s_catan.c (__catan): Likewise.
51964         * math/s_catanf.c (__catanf): Likewise.
51965         * math/s_catanh.c (__catanh): Likewise.
51966         * math/s_catanhf.c (__catanhf): Likewise.
51967         * math/s_catanhl.c (__catanhl): Likewise.
51968         * math/s_catanl.c (__catanl): Likewise.
51969         * math/s_ccosh.c (__ccosh): Likewise.
51970         * math/s_ccoshf.c (__ccoshf): Likewise.
51971         * math/s_ccoshl.c (__ccoshl): Likewise.
51972         * math/s_cexp.c (__cexp): Likewise.
51973         * math/s_cexpf.c (__cexpf): Likewise.
51974         * math/s_cexpl.c (__cexpl): Likewise.
51975         * math/s_clog10.c (__clog10): Likewise.
51976         * math/s_clog10f.c (__clog10f): Likewise.
51977         * math/s_clog10l.c (__clog10l): Likewise.
51978         * math/s_clog.c (__clog): Likewise.
51979         * math/s_clogf.c (__clogf): Likewise.
51980         * math/s_clogl.c (__clogl): Likewise.
51981         * math/s_csin.c (__csin): Likewise.
51982         * math/s_csinf.c (__csinf): Likewise.
51983         * math/s_csinh.c (__csinh): Likewise.
51984         * math/s_csinhf.c (__csinhf): Likewise.
51985         * math/s_csinhl.c (__csinhl): Likewise.
51986         * math/s_csinl.c (__csinl): Likewise.
51987         * math/s_csqrt.c (__csqrt): Likewise.
51988         * math/s_csqrtf.c (__csqrtf): Likewise.
51989         * math/s_csqrtl.c (__csqrtl): Likewise.
51990         * math/s_ctan.c (__ctan): Likewise.
51991         * math/s_ctanf.c (__ctanf): Likewise.
51992         * math/s_ctanh.c (__ctanh): Likewise.
51993         * math/s_ctanhf.c (__ctanhf): Likewise.
51994         * math/s_ctanhl.c (__ctanhl): Likewise.
51995         * math/s_ctanl.c (__ctanl): Likewise.
51996         * math/w_pow.c: Likewise.
51997         * math/w_powf.c: Likewise.
51998         * math/w_powl.c: Likewise.
51999         * math/w_scalb.c (sysv_scalb): Likewise.
52000         * math/w_scalbf.c (sysv_scalbf): Likewise.
52001         * math/w_scalbl.c (sysv_scalbl): Likewise.
52002         * misc/error.c (error_tail): Likewise.
52003         * misc/pselect.c (__pselect): Likewise.
52004         * nis/nis_callback.c (__nis_create_callback): Likewise.
52005         * nis/nis_call.c (__nisfind_server): Likewise.
52006         * nis/nis_creategroup.c (nis_creategroup): Likewise.
52007         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
52008         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
52009         * nis/nis_getservlist.c (nis_getservlist): Likewise.
52010         * nis/nis_lookup.c (nis_lookup): Likewise.
52011         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
52012         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
52013         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
52014         * nis/nis_xdr.c (xdr_endpoint): Likewise.
52015         * nis/nss_compat/compat-grp.c (getgrent_next_file)
52016         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
52017         * nis/nss_compat/compat-initgroups.c (add_group)
52018         (internal_getgrent_r): Likewise.
52019         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
52020         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
52021         * nis/nss_compat/compat-spwd.c (getspent_next_file)
52022         (internal_getspnam_r): Likewise.
52023         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
52024         (_nss_nis_getaliasbyname_r): Likewise.
52025         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
52026         (_nss_nis_getntohost_r): Likewise.
52027         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
52028         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
52029         (_nss_nis_getgrgid_r): Likewise.
52030         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
52031         (internal_nis_gethostent_r, internal_gethostbyname2_r)
52032         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
52033         (_nss_nis_gethostbyname4_r): Likewise.
52034         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
52035         (initgroups_netid): Likewise.
52036         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
52037         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
52038         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
52039         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
52040         (_nss_nis_getprotobynumber_r): Likewise.
52041         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
52042         (_nss_nis_getsecretkey): Likewise.
52043         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
52044         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
52045         (_nss_nis_getpwuid_r): Likewise.
52046         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
52047         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
52048         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
52049         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
52050         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
52051         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
52052         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
52053         Likewise.
52054         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
52055         (_nss_nisplus_getntohost_r): Likewise.
52056         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
52057         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
52058         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
52059         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
52060         Likewise.
52061         * nis/nss_nisplus/nisplus-initgroups.c
52062         (_nss_nisplus_initgroups_dyn): Likewise.
52063         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
52064         (_nss_nisplus_getnetbyaddr_r): Likewise.
52065         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
52066         (_nss_nisplus_getprotobynumber_r): Likewise.
52067         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
52068         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
52069         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
52070         Likewise.
52071         * nis/nss_nisplus/nisplus-service.c
52072         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
52073         (_nss_nisplus_getservbyport_r): Likewise.
52074         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
52075         (_nss_nisplus_getspnam_r): Likewise.
52076         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
52077         Likewise.
52078         * nscd/aicache.c (addhstaiX): Likewise.
52079         * nscd/cache.c (cache_search, prune_cache): Likewise.
52080         * nscd/connections.c (register_traced_file, send_ro_fd)
52081         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
52082         (main_loop_epoll): Likewise.
52083         * nscd/grpcache.c (addgrbyX): Likewise.
52084         * nscd/hstcache.c (addhstbyX): Likewise.
52085         * nscd/initgrcache.c (addinitgroupsX): Likewise.
52086         * nscd/mem.c (gc, mempool_alloc): Likewise.
52087         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
52088         (addinnetgrX): Likewise.
52089         * nscd/nscd-client.h (__nscd_acquire_maplock)
52090         (__nscd_drop_map_ref): Likewise.
52091         * nscd/nscd_getai.c (__nscd_getai): Likewise.
52092         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
52093         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
52094         Likewise.
52095         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
52096         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
52097         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
52098         (__nscd_get_map_ref): Likewise.
52099         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
52100         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
52101         Likewise.
52102         * nscd/pwdcache.c (addpwbyX): Likewise.
52103         * nscd/selinux.c (preserve_capabilities): Likewise.
52104         * nscd/servicescache.c (addservbyX): Likewise.
52105         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
52106         * posix/fnmatch.c (fnmatch): Likewise.
52107         * posix/getopt.c (_getopt_internal_r): Likewise.
52108         * posix/glob.c (glob, glob_in_dir): Likewise.
52109         * posix/wordexp.c (exec_comm_child): Likewise.
52110         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
52111         (getanswer_r, gaih_getanswer_slice): Likewise.
52112         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
52113         * resolv/res_init.c: Likewise.
52114         * resolv/res_mkquery.c (res_nmkquery): Likewise.
52115         * resolv/res_query.c (__libc_res_nquery): Likewise.
52116         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
52117         Likewise.
52118         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
52119         * stdio-common/perror.c (perror): Likewise.
52120         * stdio-common/printf_fp.c (___printf_fp): Likewise.
52121         * stdio-common/tmpnam.c (tmpnam): Likewise.
52122         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
52123         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
52124         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
52125         Likewise.
52126         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
52127         * stdlib/putenv.c (putenv): Likewise.
52128         * stdlib/setenv.c (__add_to_environ): Likewise.
52129         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
52130         * stdlib/strtol_l.c (INTERNAL): Likewise.
52131         * string/memmem.c (memmem): Likewise.
52132         * string/strerror.c (strerror): Likewise.
52133         * string/strnlen.c (__strnlen): Likewise.
52134         * string/test-memmem.c (simple_memmem): Likewise.
52135         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
52136         * sunrpc/pm_getport.c (__get_socket): Likewise.
52137         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
52138         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
52139         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
52140         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
52141         Likewise.
52142         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
52143         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
52144         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
52145         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
52146         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
52147         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
52148         Likewise.
52149         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
52150         Likewise.
52151         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
52152         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
52153         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
52154         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
52155         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
52156         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
52157         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
52158         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
52159         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
52160         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
52161         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
52162         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
52163         Likewise.
52164         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
52165         Likewise.
52166         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
52167         Likewise.
52168         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
52169         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
52170         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
52171         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
52172         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
52173         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
52174         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
52175         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
52176         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
52177         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
52178         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
52179         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
52180         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
52181         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
52182         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
52183         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
52184         Likewise.
52185         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
52186         Likewise.
52187         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
52188         Likewise.
52189         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
52190         Likewise.
52191         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
52192         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
52193         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
52194         Likewise.
52195         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
52196         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
52197         * sysdeps/posix/opendir.c (__opendirat): Likewise.
52198         * sysdeps/posix/sleep.c: Likewise.
52199         * sysdeps/posix/tempname.c: Likewise.
52200         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
52201         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
52202         Likewise.
52203         * sysdeps/powerpc/powerpc32/dl-machine.h
52204         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
52205         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
52206         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
52207         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
52208         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
52209         Likewise.
52210         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
52211         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
52212         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
52213         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
52214         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
52215         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
52216         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
52217         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
52218         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
52219         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
52220         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
52221         (elf_machine_lazy_rel): Likewise.
52222         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
52223         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
52224         (elf_machine_lazy_rel): Likewise.
52225         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
52226         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
52227         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
52228         * sysdeps/unix/grantpt.c (grantpt): Likewise.
52229         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
52230         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
52231         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
52232         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
52233         Likewise.
52234         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
52235         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
52236         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
52237         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
52238         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52239         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52240         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
52241         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
52242         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
52243         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52244         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
52245         Likewise.
52246         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
52247         (__posix_fallocate64_l64): Likewise.
52248         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
52249         (posix_fallocate): Likewise.
52250         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
52251         Likewise.
52252         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
52253         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
52254         (getifaddrs_internal): Likewise.
52255         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
52256         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
52257         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
52258         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
52259         * sysdeps/unix/sysv/linux/posix_fallocate64.c
52260         (__posix_fallocate64_l64): Likewise.
52261         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
52262         Likewise.
52263         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
52264         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
52265         (__get_clockfreq): Likewise.
52266         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
52267         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
52268         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
52269         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
52270         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
52271         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
52272         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
52273         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
52274         Likewise.
52275         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
52276         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
52277         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
52278         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
52279         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
52280         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
52281         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
52282         Likewise.
52283         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
52284         (posix_fallocate): Likewise.
52285         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
52286         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
52287         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
52288         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
52289         (elf_machine_rela, elf_machine_rela_relative)
52290         (elf_machine_lazy_rel): Likewise.
52291         * time/asctime.c (asctime_internal): Likewise.
52292         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
52293         * time/tzset.c (__tzset_parse_tz): Likewise.
52294         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
52295         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
52296         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
52297         * wcsmbs/wcsmbsload.h: Likewise.
52298
52299         [BZ #15894]
52300         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
52301
52302         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
52303         (arena_get2): Remove THREAD_STATS conditionals.
52304         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
52305         (__malloc_stats, int): Likewise.
52306
52307 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
52308
52309         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
52310         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
52311
52312         * manual/setjmp.texi: Fix typos/grammar errors.
52313
52314         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
52315         Only return early when n is <= 0.  Delete unused return statement.
52316
52317         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
52318         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
52319         * debug/tst-longjmp_chk3.c: New file.
52320
52321         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
52322         (test_main): Replace code with set_fortify_handler call.
52323         * debug/test-strcpy_chk.c: Likewise.
52324         * debug/tst-chk1.c: Likewise.
52325         * debug/tst-longjmp_chk.c: Likewise.
52326         * test-skeleton.c: Include fcntl.h & paths.h
52327         (set_fortify_handler): Define.
52328
52329         * debug/tst-longjmp_chk.c: Add header comment and include
52330         ../test-skeleton.c.
52331         (do_test): Mark static.
52332         (TEST_FUNCTION): Define.
52333
52334         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
52335         (IP_PMTUDISC_INTERFACE): Likewise.
52336         (IP_MULTICAST_IF): Likewise.
52337         (IP_MULTICAST_TTL): Likewise.
52338         (IP_MULTICAST_LOOP): Likewise.
52339         (IP_ADD_MEMBERSHIP): Likewise.
52340         (IP_DROP_MEMBERSHIP): Likewise.
52341         (IP_UNBLOCK_SOURCE): Likewise.
52342         (IP_BLOCK_SOURCE): Likewise.
52343         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
52344         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
52345         (IP_MSFILTER): Likewise.
52346         (MCAST_JOIN_GROUP): Likewise.
52347         (MCAST_BLOCK_SOURCE): Likewise.
52348         (MCAST_UNBLOCK_SOURCE): Likewise.
52349         (MCAST_LEAVE_GROUP): Likewise.
52350         (MCAST_JOIN_SOURCE_GROUP): Likewise.
52351         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
52352         (MCAST_MSFILTER): Likewise.
52353         (IP_MULTICAST_ALL): Likewise.
52354         (IP_UNICAST_IF): Likewise.
52355
52356         * timezone/Makefile: Delete $(have-ksh) check.
52357         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
52358         * timezone/tzselect.ksh: Add +x mode bits.
52359
52360         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
52361         (ANON_INODE_FS_MAGIC): Likewise.
52362         (BDEVFS_MAGIC): Likewise.
52363         (BINFMTFS_MAGIC): Likewise.
52364         (BTRFS_TEST_MAGIC): Likewise.
52365         (CRAMFS_MAGIC_WEND): Likewise.
52366         (DEBUGFS_MAGIC): Likewise.
52367         (ECRYPTFS_SUPER_MAGIC): Likewise.
52368         (EXT3_SUPER_MAGIC): Likewise.
52369         (EXT4_SUPER_MAGIC): Likewise.
52370         (FUTEXFS_SUPER_MAGIC): Likewise.
52371         (HOSTFS_SUPER_MAGIC): Likewise.
52372         (HUGETLBFS_MAGIC): Likewise.
52373         (MINIX3_SUPER_MAGIC): Likewise.
52374         (MTD_INODE_FS_MAGIC): Likewise.
52375         (NILFS_SUPER_MAGIC): Likewise.
52376         (OPENPROM_SUPER_MAGIC): Likewise.
52377         (PIPEFS_MAGIC): Likewise.
52378         (PSTOREFS_MAGIC): Likewise.
52379         (QNX6_SUPER_MAGIC): Likewise.
52380         (RAMFS_MAGIC): Likewise.
52381         (REISERFS_SUPER_MAGIC_STRING): Likewise.
52382         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
52383         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
52384         (SECURITYFS_MAGIC): Likewise.
52385         (SELINUX_MAGIC): Likewise.
52386         (SMACK_MAGIC): Likewise.
52387         (SOCKFS_MAGIC): Likewise.
52388         (SQUASHFS_MAGIC): Likewise.
52389         (STACK_END_MAGIC): Likewise.
52390         (TMPFS_MAGIC): Likewise.
52391         (USBDEVICE_SUPER_MAGIC): Likewise.
52392         (V9FS_MAGIC): Likewise.
52393         (XENFS_SUPER_MAGIC): Likewise.
52394         (CRAMFS_MAGIC): Fix typo in comment.
52395         (EXT2_SUPER_MAGIC): Update comment.
52396         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
52397
52398 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
52399
52400         * sysdeps/arm: Move directory from ports/sysdeps/arm.
52401         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
52402         * sysdeps/unix/sysv/linux/arm: Move directory from
52403         ports/sysdeps/unix/sysv/linux/arm.
52404         * README: Update listing for arm-*-linux-gnueabi.
52405
52406         * README: Remove mention of am33.
52407
52408 2014-02-07  Roland McGrath  <roland@hack.frob.com>
52409
52410         * bits/sigset.h (__sigemptyset): Use a statement expression rather
52411         than the comma operator, to avoid "rhs of comma has no effect"
52412         compiler warnings.
52413         (__sigfillset, __sigandset, __sigorset): Likewise.
52414         * include/signal.h (__sigemptyset): Likewise.
52415         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
52416
52417 2014-02-07  Allan McRae  <allan@archlinux.org>
52418
52419         * version.h (RELEASE): Set to "development".
52420         (VERSION): Set to "2.19.90"
52421         * NEWS: Add 2.20 section.
52422
52423 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
52424
52425         [BZ #16529]
52426         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
52427
52428 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
52429
52430         * manual/contrib.texi: Update entry for Carlos O'Donell,
52431         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
52432
52433 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
52434
52435         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
52436
52437         * sysdeps/unix/sysv/linux/kernel-features.h
52438         [__LINUX_KERNEL_VERSION >= 0x020621]
52439         (__ASSUME_PROC_PID_TASK_COMM): Define.
52440
52441 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
52442
52443         [BZ #16398]
52444         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
52445         conversion when destination buffer does not have enough space.
52446         * libio/tst-ftell-partial-wide.c: New test case.
52447         * libio/Makefile (tests): Add tst-ftell-partial-wide.
52448
52449         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
52450         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
52451         Leonard and Allan McRae.
52452
52453 2014-02-04  David S. Miller  <davem@davemloft.net>
52454
52455         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
52456         32-bit.
52457
52458 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52459
52460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
52461         New file
52462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
52463         New file
52464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
52465         New file.
52466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
52467         New file.
52468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
52469         New file.
52470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
52471         New file.
52472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
52473         New file.
52474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
52475         New file.
52476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
52477         New file.
52478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
52479         New file.
52480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
52481         New file.
52482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
52483         New file.
52484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
52485         New file.
52486
52487 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52488
52489         * nptl/shlib-versions: Change powerpc*le start to 2.17.
52490         * shlib-versions: Likewise.
52491
52492 2014-02-04  Roland McGrath  <roland@hack.frob.com>
52493             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52494
52495         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
52496         (abilist-pattern): New variable, set to %-le.abilist.
52497
52498         * Makerules (abilist-pattern): New variable.
52499         (vpath): Use $(abilist-pattern) in place of %.abilist.
52500         (check-abi-% pattern rule): Likewise.
52501         (check-abi, update-abi): Likewise.
52502
52503 2014-02-04  Eric Wong  <normalperson@yhbt.net>
52504
52505         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
52506
52507 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
52508
52509         * manual/startup.texi: Add next, previous, and top entries for
52510         the `Program Arguments' and `Environment Variables' nodes.
52511
52512 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
52513
52514         * manual/macros.texi: Add comments before MTASC-safety macros.
52515
52516         * manual/users.texi: Document MTASC-safety properties.
52517
52518         * manual/threads.texi (pthread_key_create, pthread_key_delete)
52519         (pthread_getspecific, pthread_setspecific): Format with
52520         @deftypefun, and add @safety note.
52521         * manual/signal.texi: Move comments that analyze the above
52522         functions to their home place.
52523
52524 2014-02-03  Allan McRae  <allan@archlinux.org>
52525
52526         * po/sl.po: Update Slovenian translation from translation project.
52527
52528 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
52529
52530         * manual/time.texi (timegm): Add missing blank after @c.
52531         Reported by Joseph Myers <joseph@codesourcery.com>.
52532
52533 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
52534
52535         * manual/check-safety.sh: New.
52536         * manual/Makefile ($(objpfx)stamp-summary): Run it.
52537
52538         * manual/terminal.texi: Document MTASC-safety properties.
52539
52540         * manual/filesys.texi: Document MTASC-safety properties.
52541
52542         * manual/errno.texi: Document MTASC-safety properties.
52543
52544         * manual/intro.texi: Document safety identifiers and
52545         conditionals.
52546
52547         * manual/string.texi (wcstok): Fix prototype.
52548         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
52549
52550         * manual/time.texi: Document MTASC-safety properties.
52551
52552         * manual/string.texi: Document MTASC-safety properties.
52553
52554         * manual/threads.texi: Document MTASC-safety properties.
52555
52556         * manual/stdio.texi: Document MTASC-safety properties.
52557
52558         * manual/syslog.texi: Document MTASC-safety properties.
52559
52560         * manual/sysinfo.texi: Document MTASC-safety properties.
52561
52562         * manual/startup.texi: Document MTASC-safety properties.
52563
52564         * manual/socket.texi: Document MTASC-safety properties.
52565
52566         * manual/signal.texi: Document MTASC-safety properties.
52567
52568 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
52569
52570         * manual/setjmp.texi: Document MTASC-safety properties.
52571
52572         * manual/search.texi: Document MTASC-safety properties.
52573
52574         * manual/resource.texi: Document MTASC-safety properties.
52575
52576         * manual/process.texi: Document MTASC-safety properties.
52577
52578         * manual/platform.texi: Document MTASC-safety properties.
52579
52580         * manual/pipe.texi: Document MTASC-safety properties.
52581
52582         * manual/pattern.texi: Document MTASC-safety properties.
52583
52584         * manual/message.texi: Document MTASC-safety properties.
52585
52586         [BZ #12751]
52587         * manual/memory.texi: Document MTASC-safety properties.
52588
52589         * manual/math.texi: Document MTASC-safety properties.
52590
52591         * manual/locale.texi: Document MTASC-safety properties.
52592
52593         * manual/llio.texi: Document MTASC-safety properties.
52594
52595         * manual/libdl.texi: New.
52596
52597         * manual/lang.texi: Document MTASC-safety properties.
52598
52599         * manual/job.texi: Document MTASC-safety properties.
52600
52601         * manual/getopt.texi: Document MTASC-safety properties.
52602
52603         * manual/ctype.texi: Document MTASC-safety properties.
52604
52605 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
52606
52607         [BZ #16046]
52608         * csu/libc-tls.c (static_map): Remove variable.
52609         (__libc_setup_tls): Use main executable's link map for TLS data.
52610         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
52611         casing for LM_ID_BASE and GL(dl_nns).
52612         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
52613         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
52614         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
52615         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
52616         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
52617         member.
52618         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
52619         l_phnum members.
52620
52621 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
52622
52623         * manual/debug.texi: Document MTASC-safety properties.
52624
52625 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
52626
52627         [BZ #16510]
52628         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
52629         of __x86_64__ when disabling x87 inline functions.
52630
52631 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
52632
52633         * manual/charset.texi: Document MTASC-safety properties.
52634
52635         * manual/crypt.texi: Document MTASC-safety properties.
52636
52637         * manual/conf.texi: Document MTASC-safety properties.
52638
52639         * manual/arith.texi: Document MTASC-safety properties.
52640
52641         * manual/argp.texi: Document MTASC-safety properties.
52642
52643         * manual/macros.texi: Introduce macros to document multi
52644         thread, asynchronous signal and asynchronous cancellation
52645         safety properties.
52646         * manual/intro.texi: Introduce the properties themselves.
52647
52648 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52649
52650         * sysdeps/sh/sh4/Makefile: New file.
52651
52652 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
52653
52654         * math/gen-libm-test.pl ($srcdir): New variable.
52655         ($auto_input): Use it.
52656
52657 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
52658
52659         [BZ #16506]
52660         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
52661         access beyond array bounds when parsing netgroups file.
52662
52663         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
52664         the old buffer before realloc.
52665
52666 2014-01-27  Allan McRae  <allan@archlinux.org>
52667
52668         * po/fr.po: Update French translation from translation project.
52669
52670 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52671
52672         * sysdeps/sh/libm-test-ulps: Regenerate.
52673
52674 2014-01-24  David S. Miller  <davem@davemloft.net>
52675
52676         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
52677
52678 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52679
52680         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
52681         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
52682
52683 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
52684
52685         [BZ #16474]
52686         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
52687         string pointers after reallocation.
52688
52689 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52690
52691         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
52692         __SH4A__ instead of __SH_FPU_ANY__.
52693
52694 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
52695
52696         * sysdeps/sh/fpu_control.h: New file.
52697         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
52698         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
52699         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
52700         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
52701         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
52702         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
52703         * sysdeps/sh/sys/ucontext.h: Remove.
52704         * sysdeps/sh/sys: Remove directory.
52705
52706 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52707
52708         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
52709         s390/sys/ucontext.h.
52710         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
52711         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
52712
52713 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
52714
52715         [BZ #15605]
52716         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
52717
52718 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52719
52720         [BZ #16431]
52721         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
52722         Adjust the vDSO correctly for internal calls.
52723         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
52724
52725 2014-01-20  Allan McRae  <allan@archlinux.org>
52726
52727         * po/ca.po: Update Catalan translation from translation project.
52728
52729 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
52730
52731         * sysdeps/s390/sotruss-lib.c: New file.
52732
52733 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52734
52735         [BZ #16430]
52736         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
52737         (__GI___gettimeofday): Alias for a different internal symbol to avoid
52738         local calls issues by not having a PLT stub required for IFUNC calls.
52739         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
52740
52741 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
52742
52743         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
52744         * math/test-fpucw-static.c: Likewise.
52745
52746 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52747
52748         [BZ #16453]
52749         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
52750
52751 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52752
52753         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
52754         implementation for powerpc.
52755
52756 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
52757
52758         [BZ #14782]
52759         * sysdeps/posix/system.c (__libc_system): Do not enable
52760         asynchronous cancellation.
52761
52762 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52763
52764         [BZ #16427]
52765         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
52766         handling only for numbers special also in the IEEE case.
52767
52768 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52769
52770         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
52771
52772 2014-01-11  Allan McRae  <allan@archlinux.org>
52773
52774         * po/bg.po: Update Bulgarian translation from translation project.
52775
52776         * po/de.po: Update German translation from translation project.
52777
52778 2014-01-10  Roland McGrath  <roland@hack.frob.com>
52779
52780         * sysdeps/generic/gcc-compat.h: New file.
52781
52782 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
52783
52784         * benchtests/asin-inputs: Correct slow inputs.
52785         * benchtests/acos-inputs: Likewise.
52786
52787 2014-01-10  Allan McRae  <allan@archlinux.org>
52788
52789         * po:sv.po: Update Swedish translation from translation project.
52790
52791         * po/vi.po: Update Vietnamese translation from translation project.
52792
52793         * po/eo.po: Update Esperanto translation from translation project.
52794
52795         * po/cs.po: Update Czech translation from translation project.
52796
52797         * po/nl.po: Update Dutch translation from translation project.
52798
52799         * po/pl.po: Update Polish translation from translation project.
52800
52801         * po/ru.po: Update Russian translation from translation project.
52802
52803         * po/uk.po: Update Ukrainian translation from translation project.
52804
52805 2014-01-08  Brooks Moses  <bmoses@google.com>
52806
52807         * elf/dl-load.c: Fix comment typo.
52808
52809 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
52810
52811         * po/header.pot: Rename to...
52812         * po/pot.header: ... this.
52813         * po/Makefile: Use pot.header.
52814
52815 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
52816             Maxim Kuvyrkov  <maxim@kugelworks.com>
52817
52818         [BZ #16394]
52819         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
52820         SRC and DEST against LEN.
52821
52822 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52823
52824         [BZ #16414]
52825         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
52826         implementation.
52827         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
52828
52829 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52830
52831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
52832
52833 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
52834
52835         [BZ #16408]
52836         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
52837         for large positive arguments.
52838
52839 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
52840
52841         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
52842
52843         * math/auto-libm-test-in: Mark various tests with
52844         xfail-rounding:ldbl-128ibm.
52845         * math/auto-libm-test-out: Regenerated.
52846
52847         [BZ #16407]
52848         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
52849         Increase overflow threshold.
52850
52851 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
52852
52853         [BZ #14286]
52854         * stdio-common/vfprintf.c: Check for integer overflow.
52855
52856 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52857
52858         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
52859         the first argument and return value of __tls_get_addr_internal.
52860
52861 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52862
52863         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
52864         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
52865
52866 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52867
52868         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
52869         * sysdeps/s390/rtld-global-offsets.sym: New file.
52870         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
52871         GLIBC_2.19 symbol.
52872         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
52873         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
52874         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
52875         ... this.
52876         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
52877         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
52878         ... this.
52879         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52880         Regenerate.
52881         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52882         Regenerate.
52883         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
52884         halfs of GPRs for high_gprs contexts.
52885         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
52886         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
52887         field.
52888         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
52889         uc_flags field.
52890         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
52891         64 bit versions:
52892         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
52893         for high GPRs (uc_high_gprs) and for future extensions
52894         (__reserved).
52895         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
52896         for future extensions (__reserved).
52897         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
52898         64 bit versions:
52899         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
52900         SC_HIGHGPRS offset definition.
52901         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
52902         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
52903
52904         * Versions.def: Add GLIBC_2.19 for libpthread.
52905         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
52906         siglongjmp for libpthread with GLIBC_2.19 symver.
52907         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
52908         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
52909         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
52910         * sysdeps/s390/__longjmp.c: New file.
52911         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
52912         * sysdeps/s390/longjmp.c: New file.
52913         * sysdeps/s390/setjmp.S: New file.
52914         * sysdeps/s390/sigjmp.S: New file.
52915         * sysdeps/s390/v1-longjmp.c: New file.
52916         * sysdeps/s390/v1-setjmp.h: New file.
52917         * sysdeps/s390/v1-sigjmp.c: New file.
52918         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
52919         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
52920         GLIBC_2.19 version.
52921         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
52922         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
52923         versioned symbols for ____longjmp_chk.
52924         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
52925         Likewise.
52926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
52927         Regenerate.
52928         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
52929         Regenerate.
52930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
52931         Regenerate.
52932         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
52933         Regenerate.
52934         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
52935         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
52936         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
52937         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
52938         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
52939         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
52940         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
52941         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
52942         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
52943         * sysdeps/s390/rtld-__longjmp.c: New file.
52944         * sysdeps/s390/rtld-setjmp.S: New file.
52945
52946 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
52947
52948         [BZ #16400]
52949         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
52950         Return -__logl (x) for small positive arguments without evaluating
52951         a polynomial.
52952
52953 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
52954
52955         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
52956         Rename to ...
52957         (__ptrace_peeksiginfo_args): ... this.
52958         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
52959         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
52960         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
52961
52962 2014-01-06  Allan McRae  <allan@archlinux.org>
52963
52964         * inet/netinet/in.h: Fix typo in comment.
52965
52966 2014-01-05  Andreas Jaeger  <aj@suse.de>
52967
52968         * sysdeps/i386/fpu/libm-test-ulps: Update.
52969
52970 2014-01-05  Allan McRae  <allan@archlinux.org>
52971
52972         * po/libc.pot: Regenerated.
52973
52974         * malloc/memusagestat.c: Fix gettext call formatting.
52975
52976 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
52977
52978         * nscd/nscd.c: Improve usage() output.
52979
52980 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
52981
52982         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
52983         * sysdeps/unix/sysv/linux/configure: Regenerated.
52984         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
52985         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
52986
52987 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
52988
52989         [BZ #16390]
52990         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
52991         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
52992
52993 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52994
52995         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
52996         extra tokens at end of #undef directive.
52997         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
52998         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
52999         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
53000
53001 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
53002
53003         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
53004
53005         * math/auto-libm-test-in: Mark various tests with
53006         xfail-rounding:ldbl-128ibm.
53007         * math/auto-libm-test-out: Regenerated.
53008
53009 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
53010
53011         [BZ #16386]
53012         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
53013         numbers with subnormal high part when calculating exponent.
53014
53015         [BZ #16385]
53016         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
53017         fabs.
53018
53019         [BZ #16384]
53020         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
53021         M_LN2l.
53022         (__ieee754_acoshl): Use __log1pl not __log1p.
53023
53024 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
53025
53026         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
53027         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
53028         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
53029         (grow_heap, heap_trim, _int_new_arena, get_free_list)
53030         (reused_arena, arena_get2): Convert to GNU style.
53031         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
53032         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
53033         (memalign_check, __malloc_set_state): Likewise.
53034         * malloc/mallocbug.c (main): Likewise.
53035         * malloc/malloc.c (__malloc_assert, malloc_init_state)
53036         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
53037         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
53038         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
53039         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
53040         (__posix_memalign, malloc_info): Likewise.
53041         * malloc/malloc.h: Likewise.
53042         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
53043         (mallochook, memalignhook, reallochook, mabort): Likewise.
53044         * malloc/mcheck.h: Likewise.
53045         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
53046         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
53047         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
53048         * malloc/morecore.c (__default_morecore): Likewise.
53049         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
53050         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
53051         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
53052         (print_and_abort): Likewise.
53053         * malloc/obstack.h: Likewise.
53054         * malloc/set-freeres.c (__libc_freeres): Likewise.
53055         * malloc/tst-mallocstate.c (main): Likewise.
53056         * malloc/tst-mtrace.c (main): Likewise.
53057         * malloc/tst-realloc.c (do_test): Likewise.
53058
53059 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53060
53061         [BZ #16366]
53062         * nscd/netgroupcache.c (do_notfound): New function.
53063         (addgetnetgrentX): Use it.
53064
53065         [BZ # 16365]
53066         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
53067         NSS_STATUS_NOTFOUND.
53068
53069 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
53070
53071         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
53072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53073
53074 2014-01-01  Allan McRae  <allan@archlinux.org>
53075
53076         * scripts/update-copyrights: Update configure input file suffix.
53077
53078         * NEWS: Update copyright year.
53079         * catgets/gencat.c: Likewise.
53080         * csu/version.c: Likewise.
53081         * debug/catchsegv.sh: Likewise.
53082         * debug/pcprofiledump.c: Likewise.
53083         * debug/xtrace.sh: Likewise.
53084         * elf/ldconfig.c: Likewise.
53085         * elf/ldd.bash.in: Likewise.
53086         * elf/pldd.c: Likewise.
53087         * elf/sotruss.ksh: Likewise.
53088         * elf/sprof.c: Likewise.
53089         * iconv/iconv_prog.c: Likewise.
53090         * iconv/iconvconfig.c: Likewise.
53091         * locale/programs/locale.c: Likewise.
53092         * locale/programs/localedef.c: Likewise.
53093         * login/programs/pt_chown.c: Likewise.
53094         * malloc/memusage.sh: Likewise.
53095         * malloc/memusagestat.c: Likewise.
53096         * malloc/mtrace.pl: Likewise.
53097         * manual/libc.texinfo: Likewise.
53098         * nscd/nscd.c: Likewise.
53099         * nss/getent.c: Likewise.
53100         * nss/makedb.c: Likewise.
53101         * posix/getconf.c: Likewise.
53102         * scripts/test-installation.pl: Likewise.
53103
53104         * All files with FSF copyright notices: Update copyright dates
53105         using scripts/update-copyrights.
53106         * intl/plural.c: Regenerated.
53107         * locale/programs/charmap-kw.h: Likewise.
53108         * locale/programs/locfile-kw.h: Likewise.
53109
53110 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
53111
53112         * sysdeps/unix/sysv/linux/configure: Regenerated.
53113         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
53114         the linux/fanotify.h header.
53115         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
53116         HAVE_LINUX_FANOTIFY_H is defined.
53117
53118 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53119
53120         * benchtests/cos-inputs: New inputs.
53121         * benchtests/sin-inputs: Likewise.
53122
53123         * benchtests/atan-inputs: New inputs. Fix name of multiple
53124         precision fallback inputs.
53125
53126         * benchtests/atanh-inputs: New inputs.
53127         * benchtests/tanh-inputs: Likewise.
53128
53129         * benchtests/acosh-inputs: New inputs.
53130         * benchtests/asinh-inputs: Likewise.
53131
53132         * benchtests/cosh-inputs: New inputs.
53133         * benchtests/sinh-inputs: Likewise.
53134
53135         * benchtests/acos-inputs: Add more inputs.
53136         * benchtests/asin-inputs: Likewise.
53137
53138 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
53139
53140         [BZ #16375]
53141         * manual/arith.texi: Fix spelling.
53142         * manual/charset.texi: Likewise.
53143         * manual/errno.texi: Likewise.
53144         * manual/filesys.texi: Likewise.
53145         * manual/lang.texi: Likewise.
53146         * manual/llio.texi: Likewise.
53147         * manual/locale.texi: Likewise.
53148         * manual/message.texi: Likewise.
53149         * manual/resource.texi: Likewise.
53150         * manual/search.texi: Likewise.
53151         * manual/setjmp.texi: Likewise.
53152         * manual/stdio.texi: Likewise.
53153         * manual/string.texi: Likewise.
53154         * manual/sysinfo.texi: Likewise.
53155         * manual/time.texi: Likewise.
53156
53157 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
53158
53159         * po/sl.po: New file.
53160
53161 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
53162
53163         * .gitignore: Add core/.gdbinit/.gdb_history.
53164
53165 2013-12-27  Allan McRae  <allan@archlinux.org>
53166
53167         [BZ #16369]
53168         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
53169         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
53170
53171 2013-12-24  Brooks Moses  <bmoses@google.com>
53172
53173         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
53174         all compilers that claim C++98 compliance, not just GCC.
53175         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
53176         Likewise.
53177
53178 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
53179
53180         * NEWS: Restore accidentally deleted bug-fix entries.
53181
53182 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
53183             Ondřej Bílka  <neleai@seznam.cz>
53184
53185         [BZ #15073]
53186         * malloc/malloc.c (_int_free): Perform sanity check only if we
53187         have_lock.
53188
53189 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
53190
53191         [BZ #12986]
53192         * manual/stdio.texi (String Input Conversions): Clarify that character
53193         classes are not supported.
53194
53195 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53196
53197         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53198
53199 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
53200
53201         [BZ #16337]
53202         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
53203         Calculate results for small negative arguments directly rather
53204         than using reflection formula with special underflow handling.
53205
53206         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
53207         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
53208         sysdeps/unix/bsd/bsd4.4/syscalls.list.
53209         (fchflags): Likewise.
53210         (revoke): Likewise.
53211         (setlogin): Likewise.
53212         (sigaltstack): Likewise.
53213         (wait4): Likewise.
53214         (sigblock): Remove.
53215         (sigsetmask): Likewise.
53216         (wait3): Likewise.
53217         (waitpid): Likewise.
53218         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
53219         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
53220         file.
53221         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
53222         * sysdeps/unix/bsd/Makefile: ... here.
53223         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
53224         * sysdeps/unix/bsd/Versions: ... here.
53225         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
53226         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
53227         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
53228         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
53229         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
53230         * sysdeps/unix/bsd/sigblock.c: ... here.
53231         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
53232         * sysdeps/unix/bsd/sigsetmask.c: ... here.
53233         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
53234         * sysdeps/unix/bsd/sigvec.c: ... here.
53235         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
53236         * sysdeps/unix/bsd/tcdrain.c: ... here.
53237         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
53238         * sysdeps/unix/bsd/tcgetattr.c: ... here.
53239         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
53240         * sysdeps/unix/bsd/tcsetattr.c: ... here.
53241         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
53242         * sysdeps/unix/bsd/wait.c: ... here.
53243         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
53244         * sysdeps/unix/bsd/wait3.c: ... here.
53245         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
53246         * sysdeps/unix/bsd/waitpid.c: ... here.
53247
53248 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
53249
53250         [BZ #16356]
53251         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
53252         round-to-nearest for [!USE_AS_EXPM1L].
53253         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
53254         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
53255         more tests of exp and exp10.  Expect some exp10 tests to miss
53256         exceptions or fail in directed rounding modes.
53257         * math/auto-libm-test-out: Regenerated.
53258         * math/libm-test.inc (exp10_tonearest_test_data): New array.
53259         (exp10_test_tonearest): New function.
53260         (exp10_towardzero_test_data): New array.
53261         (exp10_test_towardzero): New function.
53262         (exp10_downward_test_data): New array.
53263         (exp10_test_downward): New function.
53264         (exp10_upward_test_data): New array.
53265         (exp10_test_upward): New function.
53266         (main): Call the new functions.
53267         * sysdeps/i386/fpu/libm-test-ulps: Update.
53268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53269
53270 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
53271
53272         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
53273         asinh, atan, atan2, atanh, cbrt, cos and cosh.
53274         * math/auto-libm-test-out: Regenerated.
53275         * math/libm-test.inc (acosh_test_data): Add more tests.
53276         (atanh_test_data): Likewise.
53277         (ceil_test_data): Likewise.
53278         (copysign_test_data): Likewise.
53279         * sysdeps/i386/fpu/libm-test-ulps: Update.
53280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53281
53282         * timezone/checktab.awk: Update from tzcode 2013i.
53283         * timezone/private.h: Likewise.
53284         * timezone/scheck.c: Likewise.
53285         * timezone/tzfile.h: Likewise.
53286         * timezone/tzselect.ksh: Likewise.
53287         * timezone/zdump.c: Likewise.
53288         * timezone/zic.c: Likewise.
53289
53290         * math/auto-libm-test-in: Add tests of cpow.
53291         * math/auto-libm-test-out: Regenerated.
53292         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
53293         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53294         mpc_cc_c.
53295         (func_calc_desc): Add mpc_cc_c union field.
53296         (test_functions): Add cpow.
53297         (special_fill_2pi): New function.
53298         (special_real_inputs): Add 2pi.
53299         (calc_generic_results): Handle mpc_cc_c.
53300         * sysdeps/i386/fpu/libm-test-ulps: Update.
53301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53302
53303         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
53304         csqrt, ctan and ctanh.
53305         * math/auto-libm-test-out: Regenerated.
53306         * math/libm-test.inc (TEST_COND_x86_64): New macro.
53307         (TEST_COND_x86): Likewise.
53308         (ccos_test_data): Use AUTO_TESTS_c_c.
53309         (ccosh_test_data): Likewise.
53310         (cexp_test_data): Likewise.
53311         (clog_test_data): Likewise.
53312         (csqrt_test_data): Likewise.
53313         (ctan_test_data): Likewise.
53314         (ctan_tonearest_test_data): Likewise.
53315         (ctan_towardzero_test_data): Likewise.
53316         (ctan_downward_test_data): Likewise.
53317         (ctan_upward_test_data): Likewise.
53318         (ctanh_test_data): Likewise.
53319         (ctanh_tonearest_test_data): Likewise.
53320         (ctanh_towardzero_test_data): Likewise.
53321         (ctanh_downward_test_data): Likewise.
53322         (ctanh_upward_test_data): Likewise.
53323         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53324         mpc_c_c.
53325         (func_calc_desc): Add mpc_c_c union field.
53326         (FUNC_mpc_c_c): New macro.
53327         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
53328         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
53329         ctanh.
53330         (special_fill_min_subnorm_p120): New function.
53331         (special_real_inputs): Add min_subnorm_p120.
53332         (calc_generic_results): Handle mpc_c_c.
53333         * sysdeps/i386/fpu/libm-test-ulps: Update.
53334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53335
53336 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
53337
53338         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
53339         (do_sin_slow): New functions.
53340         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
53341         (cslow2, csloww1, csloww2): Use the new functions.
53342
53343         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
53344         Use M to change sign of result instead of X.  Assume X is
53345         positive.
53346         (csloww1): Likewise.
53347         (__sin): Adjust.
53348         (__cos): Adjust.
53349
53350         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
53351         arguments A and DA.
53352         (__sin): Adjust.
53353         (__cos): Likewise.
53354
53355         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
53356         (__cos): Likewise.
53357         (sloww1): Don't adjust sign of DX.
53358         (csloww1): Likewise.
53359         (sloww2): Use X directly and don't adjust sign of DX.
53360         (csloww2): Likewise.
53361
53362 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53363
53364         * math/auto-libm-test-in: Add tests of cabs and carg.
53365         * math/auto-libm-test-out: Regenerated.
53366         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
53367         (carg_test_data): Likewise.
53368         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53369         mpc_c_f.
53370         (func_calc_desc): Add mpc_c_f union field.
53371         (test_functions): Add cabs and carg.
53372         (calc_generic_results): Handle mpc_c_f.
53373
53374         * sysdeps/powerpc/powerpc32/libgcc-compat.S
53375         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
53376         as a macro and a compat symbol.
53377         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
53378         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
53379         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
53380         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
53381         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
53382         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
53383         not use .hidden.
53384         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
53385         Likewise.
53386         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
53387         Likewise.
53388         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
53389         Likewise.
53390         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
53391         Likewise.
53392         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
53393         Likewise.
53394         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
53395         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
53396         from GLIBC_2.3.2.
53397
53398 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53399
53400         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53401
53402 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53403
53404         * manual/texinfo.tex: Update to version 2013-11-26.10 with
53405         trailing whitespace removed.
53406         * scripts/config.guess: Update to version 2013-11-29.
53407         * scripts/config.sub: Update to version 2013-10-01.
53408
53409         * math/auto-libm-test-in: Add tests of sincos.
53410         * math/auto-libm-test-out: Regenerated.
53411         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
53412         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53413         mpfr_f_11.
53414         (func_calc_desc): Add mpfr_f_11 union field.
53415         (test_functions): Add sincos.
53416         (calc_generic_results): Handle mpfr_f_11.
53417         * sysdeps/i386/fpu/libm-test-ulps: Update.
53418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53419
53420 2013-12-19  Andreas Schwab  <schwab@suse.de>
53421
53422         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
53423         CALL_MCOUNT.
53424         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53425         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
53426         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
53427
53428 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
53429
53430         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
53431         * sysdeps/i386/fpu/libm-test-ulps: Update.
53432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53433
53434         [BZ #16293]
53435         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
53436         round-to-nearest mode when using frndint.
53437         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
53438         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
53439         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
53440         Likewise.
53441         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
53442         sinh test to fail.
53443         * math/auto-libm-test-out: Regenerated.
53444         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
53445         (TEST_COND_x86): Likewise.
53446         (expm1_tonearest_test_data): New array.
53447         (expm1_test_tonearest): New function.
53448         (expm1_towardzero_test_data): New array.
53449         (expm1_test_towardzero): New function.
53450         (expm1_downward_test_data): New array.
53451         (expm1_test_downward): New function.
53452         (expm1_upward_test_data): New array.
53453         (expm1_test_upward): New function.
53454         (main): Run the new test functions.
53455         * sysdeps/i386/fpu/libm-test-ulps: Update.
53456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53457
53458         * include/features.h: Update comment documenting feature test
53459         macros.  Mention _DEFAULT_SOURCE in comment.
53460         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
53461         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
53462         _BSD_SOURCE and _SVID_SOURCE.
53463         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
53464         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
53465         !_SVID_SOURCE]: Likewise.
53466         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53467         (__USE_POSIX_IMPLICITLY): Define.
53468         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53469         (_POSIX_SOURCE): Undefine and redefine.
53470         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
53471         (_POSIX_C_SOURCE): Likewise.
53472         * manual/creature.texi (_DEFAULT_SOURCE): Document.
53473         (Feature Test Macros): Update documentation of default features.
53474
53475 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
53476
53477         * benchtests/Makefile: Add bench-strtok.
53478         * benchtests/bench-strtok.c: New file: strtok benchtest.
53479
53480 2013-12-19  Allan McRae  <allan@archlinux.org>
53481
53482         * manual/install.texi: Suppress menu for plain text output.
53483         * INSTALL: Regenerated.
53484
53485 2013-12-18  Brooks Moses  <bmoses@google.com>
53486
53487         [BZ #15846]
53488         * misc/getauxval.c: Include errno.h.
53489         (__getauxval): Set errno to ENOENT if the requested type is not
53490         found.
53491         * misc/sys/auxv.h (getauxval): Document that it may set errno;
53492         don't declare with __attribute_const__.
53493         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
53494         * manual/startup.texi: Document that getauxval sets errno.
53495
53496 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53497
53498         * math/auto-libm-test-in: Add tests of jn and yn.
53499         * math/auto-libm-test-out: Regenerated.
53500         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
53501         (yn_test_data): Likewise.
53502         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53503         mpfr_if_f.
53504         (func_calc_desc): Add mpfr_if_f union field.
53505         (FUNC_mpfr_if_f): New macro.
53506         (test_functions): Add jn and yn.
53507         (calc_generic_results): Assert type of second input for
53508         mpfr_ff_f.  Handle mpfr_if_f.
53509         (output_for_one_input_case): Disable all checking for arguments
53510         fitting floating-point types in case of an integer argument.
53511         * sysdeps/i386/fpu/libm-test-ulps: Update.
53512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53513
53514         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
53515         Don't expect fegetround reference in libm.so.
53516
53517 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53518
53519         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
53520         $(config-cflags-nofma).
53521
53522 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
53523
53524         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
53525         * math/auto-libm-test-out: Regenerated.
53526
53527         [BZ #16338]
53528         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
53529         to determine exponent and adjust argument to have exponent of -1.
53530         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
53531         log2.
53532         * math/auto-libm-test-out: Regenerated.
53533         * sysdeps/i386/fpu/libm-test-ulps: Update.
53534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53535
53536 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
53537
53538         * manual/probes.texi: Remove cases when per-thread arenas are
53539         disabled.
53540
53541 2013-12-18  Andreas Schwab  <schwab@suse.de>
53542
53543         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
53544         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
53545         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
53546         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
53547         * sysdeps/i386/i686/multiarch/Makefile: Update.
53548         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
53549
53550 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53551
53552         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
53553         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
53554
53555 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         [BZ #15968]
53558         Support TZ transition times < 00:00:00.
53559         This is needed for version-3 tz-format files; it supports time
53560         stamps past 2037 for America/Godthab (the only entry in the tz
53561         database for which this change is relevant).
53562         * manual/time.texi (TZ Variable): Document transition times
53563         from -167:59:59 through -00:00:01.
53564         * time/tzset.c (tz_rule): Time of day is now signed.
53565         (__tzset_parse_tz): Parse negative time of day.
53566
53567         Document TZ transition times >= 25:00:00.
53568         * manual/time.texi (TZ Variable): Document transition times from
53569         25:00:00 through 167:59:59.  These are already supported, and this
53570         support will help with version-3 tz-format files.
53571
53572         * manual/time.texi (TZ Variable): Modernize North America example
53573         to reflect current (i.e., 2007-and-later) daylight saving rules.
53574
53575         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
53576
53577 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53578
53579         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
53580         * sysdeps/unix/bsd/bits/stat.h: Likewise.
53581         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
53582         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
53583         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
53584         * sysdeps/unix/bsd/bsdstat.h: Likewise.
53585         * sysdeps/unix/bsd/clock.c: Likewise.
53586         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
53587         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
53588         * sysdeps/unix/bsd/init-posix.c: Likewise.
53589         * sysdeps/unix/bsd/poll.c: Likewise.
53590         * sysdeps/unix/bsd/ptsname.c: Likewise.
53591         * sysdeps/unix/bsd/seekdir.c: Likewise.
53592         * sysdeps/unix/bsd/setegid.c: Likewise.
53593         * sysdeps/unix/bsd/seteuid.c: Likewise.
53594         * sysdeps/unix/bsd/setgid.c: Likewise.
53595         * sysdeps/unix/bsd/setrgid.c: Likewise.
53596         * sysdeps/unix/bsd/setruid.c: Likewise.
53597         * sysdeps/unix/bsd/setsid.c: Likewise.
53598         * sysdeps/unix/bsd/setuid.c: Likewise.
53599         * sysdeps/unix/bsd/sigaction.c: Likewise.
53600         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
53601         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
53602         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
53603         * sysdeps/unix/bsd/telldir.c: Likewise.
53604         * sysdeps/unix/bsd/times.c: Likewise.
53605         * sysdeps/unix/bsd/usleep.c: Likewise.
53606
53607         * misc/Makefile (install-lib): Remove libbsd-compat.a.
53608         ($(objpfx)libbsd-compat.a): Remove rule.
53609
53610         * include/features.h (__FAVOR_BSD): Do not define.
53611         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
53612         features conflicting with POSIX.
53613         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
53614         (_BSD_SOURCE): Remove description of not being a subset of other
53615         feature test macros.
53616         * manual/job.texi (getpgrp): Do not document BSD version.
53617         (getpgid): Do not document by reference to BSD getpgrp.
53618         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
53619         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
53620         * signal/signal.h [__FAVOR_BSD]: Likewise.
53621         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
53622         instead of making contents conditional on [__FAVOR_BSD].
53623         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
53624
53625 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53626
53627         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53628
53629 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
53630
53631         [BZ #16314]
53632         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
53633         values below 2**-450, not 2**-500.
53634         * math/auto-libm-test-in: Don't allow spurious underflow from
53635         hypot.
53636         * math/auto-libm-test-out: Regenerated.
53637
53638         [BZ #16316]
53639         [BZ #16330]
53640         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
53641         values of ha and hb and sort them after adjusting subnormal
53642         arguments.
53643         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
53644         Likewise.
53645         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
53646         values of ea and eb and sort them after adjusting subnormal
53647         arguments.
53648         * math/auto-libm-test-in: Do not expect some hypot tests of
53649         subnormals to fail.  Add more hypot tests.
53650         * math/auto-libm-test-out: Regenerated.
53651
53652 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53653
53654         [BZ #13304]
53655         * sysdeps/sh/s_fma.c: New file.
53656         * sysdeps/sh/s_fmaf.c: New file.
53657         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
53658         version.
53659         * sysdeps/sh/Implies: Add sh/soft-fp.
53660
53661 2013-12-16  Roland McGrath  <roland@hack.frob.com>
53662
53663         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
53664         level of indirection to members `objname', `errstring', `malloced'.
53665         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
53666         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
53667         it as the __longjmp argument (just pass 1 instead).
53668         (_dl_catch_error): Initialize C with argument pointers and address of
53669         volatile local ERRCODE rather than copying values out of C at return.
53670
53671 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
53672
53673         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
53674         * math/auto-libm-test-out: Regenerated.
53675         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
53676         (hypot_test_data): Likewise.
53677         (pow_test_data): Likewise.
53678         (pow_tonearest_test_data): Likewise.
53679         * math/gen-auto-libm-tests.c (func_calc_method): Add value
53680         mpfr_ff_f.
53681         (func_calc_desc): Add mpfr_ff_f union field.
53682         (FUNC_mpfr_ff_f): New macro.
53683         (test_functions): Add atan2, hypot and pow.
53684         (special_fill_min): New function.
53685         (special_fill_minus_min): Likewise.
53686         (special_fill_min_subnorm): Likewise.
53687         (special_fill_minus_min_subnorm): Likewise.
53688         (special_real_inputs): Add min, -min, min_subnorm and
53689         -min_subnorm.
53690         (calc_generic_results): Handle mpfr_ff_f.
53691         * sysdeps/i386/fpu/libm-test-ulps: Update.
53692         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53693
53694 2013-12-16  Will Newton  <will.newton@linaro.org>
53695
53696         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
53697         (Aligned Memory Blocks): Add documentation for aligned_alloc
53698         and suggest it as an alternative to posix_memalign.
53699         (Hooks for Malloc): Document __memalign_hook is also called
53700         for aligned_alloc.  (Summary of Malloc): Add summary for
53701         aligned alloc.  Document __memalign_hook is also called
53702         for aligned_alloc.
53703
53704 2013-12-16  Will Newton  <will.newton@linaro.org>
53705
53706         * manual/memory.texi (Malloc Examples): Clarify default
53707         alignment documentation.  Suggest posix_memalign rather
53708         than memalign or valloc.
53709         (Aligned Memory Blocks): Remove suggestion to use memalign
53710         or valloc.  Remove obsolete comment about BSD.
53711         Document memalign errno values and mark the function obsolete.
53712         Document posix_memalign returned error codes.  Mark valloc
53713         as obsolete.  (Hooks for Malloc): __memalign_hook is also
53714         called for posix_memalign and valloc.
53715         (Summary of Malloc): Add posix_memalign to function summary.
53716         __memalign_hook is also called for posix_memalign and valloc.
53717
53718 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
53719
53720         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
53721         TAYLOR_SIN.
53722         (__sin): Adjust.
53723         (__cos): Likewise.
53724         (sloww): Use mynumber union.  Expand ternary operator into
53725         if-else statements.
53726         (cslow): use mynumber union.
53727
53728 2013-12-16  Allan McRae  <allan@archlinux.org>
53729
53730         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
53731         * configure: Regenerated.
53732
53733         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
53734
53735         [BZ #14120]
53736         * configure.ac: Added --enable-maintainer-mode. Check for
53737         autoconf when enabled.
53738         * configure: Regenerated.
53739
53740         * nscd/nscd.service: New file.
53741         * nscd/nscd.tmpfiles: New file.
53742
53743 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
53744
53745         [BZ #12100]
53746         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
53747         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
53748         * sysdeps/x86_64/multiarch/strstr.c: ... here.
53749         (strstr): Add __strstr_sse2_unaligned ifunc.
53750         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
53751         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
53752         (strcasestr): Remove __strcasestr_sse42 ifunc.
53753         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
53754         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
53755         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
53756
53757 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
53758
53759         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
53760         * sysdeps/sh/bits/fenv.h: ... here.
53761         * sysdeps/sh/sh4/fpu/bits: Remove directory.
53762
53763 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53764
53765         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
53766
53767         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
53768         hypotf multiarch implementations.
53769         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
53770         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
53771         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
53772         multiarch hypot for PPC64.
53773         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
53774         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
53775         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
53776         multiarch hypotf for PPC64.
53777
53778         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
53779         modff multiarch implementations.
53780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
53781         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
53782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
53783         multiarch modf for PPC64.
53784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
53785         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
53786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
53787         multiarch modff for PPC64.
53788
53789         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
53790         and logl multiarch implementations.
53791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
53792         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
53793         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
53794         multiarch logb for PPC64.
53795         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
53796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
53797         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
53798         multiarch logb for PPC64.
53799         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
53800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
53801         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
53802         multiarch logb for PPC64.
53803
53804         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
53805         isinff multiarch implementation.
53806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
53807         file.
53808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
53809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
53810         multiarch isinf for PPC64.
53811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
53812         file.
53813         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
53814         multiarch isinff for PPC64.
53815
53816         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
53817         finitef multiarch implementation.
53818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
53819         file.
53820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
53821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
53822         multiarch finite for PPC64.
53823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
53824         file.
53825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
53826         multiarch finitef for PPC64.
53827
53828         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
53829         lrint multiarch implementation.
53830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
53831         file.
53832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
53833         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
53834         multiarch llrint for PPC64.
53835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
53836         multiarch lrint for PPC64.
53837
53838         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
53839         copysignf multiarch implementation.
53840         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
53841         file.
53842         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
53843         file.
53844         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
53845         multiarch copysign for PPC64.
53846         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
53847         multiarch copysignf for PPC64.
53848
53849         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
53850         multiarch implementation.
53851         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
53852         file.
53853         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
53854         file.
53855         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
53856         file.
53857         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
53858         file.
53859         multiarch llround for PPC64.
53860         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
53861         multiarch trunc for PPC64.
53862         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
53863         multiarch truncf for PPC64.
53864
53865         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
53866         multiarch implementation.
53867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
53868         file.
53869         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
53870         file.
53871         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
53872         file.
53873         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
53874         file.
53875         multiarch llround for PPC64.
53876         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
53877         multiarch round for PPC64.
53878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
53879         multiarch roundf for PPC64.
53880
53881         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
53882         multiarch implementation.
53883         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
53884         file.
53885         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
53886         file.
53887         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
53888         file.
53889         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
53890         file.
53891         multiarch llround for PPC64.
53892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
53893         multiarch floor for PPC64.
53894         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
53895         multiarch floorf for PPC64.
53896
53897         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
53898         multiarch implementation.
53899         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
53900         file.
53901         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
53902         file.
53903         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
53904         file.
53905         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
53906         file.
53907         multiarch llround for PPC64.
53908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
53909         multiarch ceil for PPC64.
53910         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
53911         multiarch ceilf for PPC64.
53912
53913         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
53914         multiarch implementation.
53915         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
53916         file.
53917         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
53918         file.
53919         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
53920         file.
53921         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
53922         multiarch llround for PPC64.
53923         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
53924         multiarch lround for PPC64.
53925
53926         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
53927         multiarch implementation.
53928         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
53929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
53930         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
53931         file.
53932         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
53933         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
53934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
53935         multiarch isnan for PPC64.
53936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
53937         multiarch isnanf for PPC64.
53938
53939         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
53940         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
53941         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
53942         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
53943         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
53944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
53945
53946         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
53947         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
53948         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
53949         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
53950
53951         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
53952         multiarch implementations.
53953         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53954         (__libc_ifunc_impl_list): Likewise.
53955         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
53956         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
53957         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
53958         multiarch stpcpy for PPC64.
53959
53960         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
53961         multiarch implementations.
53962         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53963         (__libc_ifunc_impl_list): Likewise.
53964         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
53965         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
53966         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
53967         multiarch strcpy for PPC64.
53968
53969         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
53970         redefine function name.
53971         (_wordcopy_fwd_dest_aligned): Likewise.
53972         (_wordcopy_bwd_aligned): Likewise.
53973         (_wordcopy_bwd_dest_aligned): Likewise.
53974         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
53975         multiarch implementations.
53976         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53977         (__libc_ifunc_impl_list): Likewise.
53978         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
53979         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
53980         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
53981         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
53982         multiarch wcscpy for PPC64.
53983
53984         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
53985         multiarch implementations.
53986         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53987         (__libc_ifunc_impl_list): Likewise.
53988         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
53989         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
53990         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
53991         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
53992         multiarch wcscpy for PPC64.
53993
53994         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
53995         multiarch implementations.
53996         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
53997         (__libc_ifunc_impl_list): Likewise.
53998         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
53999         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
54000         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
54001         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
54002         multiarch wcsrchr for PPC64.
54003
54004         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
54005         multiarch implementations.
54006         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54007         (__libc_ifunc_impl_list): Likewise.
54008         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
54009         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
54010         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
54011         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
54012         multiarch wcschr for PPC64.
54013
54014         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
54015         multiarch implementations.
54016         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54017         (__libc_ifunc_impl_list): Likewise.
54018         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
54019         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
54020         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
54021         multiarch strchrnul for PPC64.
54022
54023         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
54024         implementations.
54025         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54026         (__libc_ifunc_impl_list): Likewise.
54027         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
54028         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
54029         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
54030         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
54031         strchr for PPC64.
54032
54033         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
54034         implementations.
54035         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54036         (__libc_ifunc_impl_list): Likewise.
54037         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
54038         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
54039         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
54040         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
54041         strncmp for PPC64.
54042
54043         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
54044         multiarch implementations.
54045         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54046         (__libc_ifunc_impl_list): Likewise.
54047         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
54048         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
54049         strncasecmp for PPC64.
54050         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
54051         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
54052         multiarch strncasecmp_l for PPC64.
54053
54054         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
54055         multiarch implementations.
54056         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
54057         (__libc_ifunc_impl_list): Likewise.
54058         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
54059         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
54060         multiarch strcasecmp for PPC64.
54061         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
54062         file.
54063         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
54064         multiarch strcasecmp_l for PPC64.
54065
54066         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
54067         implementations.
54068         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54069         (__libc_ifunc_impl_list): Likewise.
54070         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
54071         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
54072         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
54073         strnlen for PPC64.
54074
54075         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
54076         implementations.
54077         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54078         (__libc_ifunc_impl_list): Likewise.
54079         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
54080         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
54081         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
54082         strlen for PPC64.
54083
54084         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
54085         implementations.
54086         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54087         (__libc_ifunc_impl_list): Likewise.
54088         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
54089         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
54090         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
54091         rawmemrchr for PPC64.
54092
54093         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
54094         implementation.
54095         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54096         (__libc_ifunc_impl_list): Likewise.
54097         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
54098         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
54099         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
54100         memrchr for PPC64.
54101
54102         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
54103         implementation.
54104         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54105         (__libc_ifunc_impl_list): Likewise.
54106         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
54107         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
54108         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
54109         memchr for PPC64.
54110
54111         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
54112         implementation.
54113         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54114         (__libc_ifunc_impl_list): Likewise.
54115         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
54116         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
54117         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
54118         mempcpy for PPC64.
54119
54120         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
54121         avoid cretion of __bzero symbol.
54122         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
54123         Likewise.
54124         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
54125         Likewise.
54126         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
54127         Likewise.
54128         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
54129         multiarch implementations.
54130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54131         (__libc_ifunc_impl_list): Likewise.
54132         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
54133         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
54134         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
54135         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
54136         bzero for PPC32.
54137         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
54138         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
54139         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
54140         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
54141         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
54142         memset for PPC64.
54143         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
54144
54145         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
54146         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
54147         implementations.
54148         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
54149         (__libc_ifunc_impl_list): Likewise.
54150         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
54151         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
54152         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
54153         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
54154         memcmp for PPC64.
54155
54156         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
54157         multiarch for POWER/PPC64.
54158         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
54159         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
54160         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
54161         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
54162         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
54163         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
54164         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
54165         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
54166         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
54167         memcpy for PPC64.
54168
54169         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
54170         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
54171         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
54172         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
54173         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
54174         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
54175         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
54176         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
54177         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
54178         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
54179         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
54180         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
54181         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
54182         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
54183         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
54184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
54185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
54186         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
54187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
54188         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
54189         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
54190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
54191
54192 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54193
54194         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
54195
54196 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
54197
54198         * benchtests/Makefile (bench): Add exp2 and log2.
54199         (LDLIBS-bench-exp2): Add -lm.
54200         (LDLIBS-bench-log2): Likewise.
54201         * benchtests/exp2-inputs: New inputs file.
54202         * benchtests/log2-inputs: New inputs file.
54203         * benchtests/log-inputs: Add new inputs.
54204         * benchtests/tan-inputs: Likewise.
54205
54206 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54207
54208         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
54209         definition...
54210         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
54211         (csloww2): ... from here.
54212
54213         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
54214         instead of structures.
54215         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
54216         (POLYNOMIAL): Likewise.
54217         (TAYLOR_SLOW): Likewise.
54218         (__sin): Likewise.
54219         (__cos): Likewise.
54220         (slow1): Likewise.
54221         (slow2): Likewise.
54222         (sloww): Likewise.
54223         (sloww1); Likewise.
54224         (sloww2): Likewise.
54225         (bsloww1): Likewise.
54226         (bsloww2): Likewise.
54227         (cslow2): Likewise.
54228         (csloww): Likewise.
54229         (csloww1): Likewise.
54230         (csloww2): Likewise.
54231
54232 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
54233
54234         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
54235         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
54236         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
54237         * malloc/hooks.c (realloc_check): Likewise.
54238
54239         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
54240         * malloc/arena.c: Remove PER_THREAD conditional.
54241         [!PER_THREAD]: Remove code.
54242         (ptmalloc_unlock_all2): Likewise.
54243         (ptmalloc_init): Likewise.
54244         (_int_new_arena): Likewise.
54245         (arena_get2): Likewise.
54246         * malloc/hooks.c (__malloc_get_state): Likewise.
54247         (__malloc_set_state): Likewise.
54248         * malloc/malloc.c: Likewise.
54249         (struct malloc_state): Likewise.
54250         (struct malloc_par): Likewise.
54251         (__libc_realloc): Likewise.
54252         (__libc_mallopt): Likewise.
54253
54254 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54255
54256         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
54257
54258 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
54259
54260         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
54261         macro to a function.  Check for zero perturb_byte.
54262         (_int_malloc, _int_free): Remove zero perturb_byte checks.
54263
54264         * malloc/malloc.c: (force_reg): Remove.
54265         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
54266         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
54267         force_reg by atomic_forced_read.
54268         * malloc/arena.c (ptmalloc_init): Likewise.
54269         * malloc/hooks.c (top_check): Likewise.
54270
54271 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54272
54273         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54274
54275 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
54276
54277         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54278
54279 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
54280
54281         * math/auto-libm-test-in: Add tests of lgamma.
54282         * math/auto-libm-test-out: Regenerated.
54283         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
54284         (M_LOG_2_SQRT_PIl): Likewise.
54285         (lgamma_test_data): Use AUTO_TESTS_f_f1.
54286         * math/gen-auto-libm-tests.c (func_calc_method): Add value
54287         mpfr_f_f1.
54288         (func_calc_desc): Add mpfr_f_f1 union field.
54289         (ARGS1): New macro.
54290         (ARGS2): Likewise.
54291         (ARGS3): Likewise.
54292         (ARGS4): Likewise.
54293         (RET1): Likewise.
54294         (RET2): Likewise.
54295         (CALC): Likewise.
54296         (FUNC): Likewise.
54297         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
54298         (test_functions): Add lgamma.
54299         (calc_generic_results): Handle mpfr_f_f1.
54300         * sysdeps/i386/fpu/libm-test-ulps: Update.
54301         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54302
54303 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54304
54305         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
54306         __mpn_add_n for PowerPC64/POWER7.
54307         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
54308         __mpn_sub_n for PowerPC64/POWER7.
54309
54310         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
54311         __mpn_addmul_1 for PowerPC64.
54312         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
54313         __mpn_submul_1 for PowerPC64.
54314         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
54315         for PowerPC64.
54316         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
54317         for PowerPC64.
54318
54319 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
54320
54321         [BZ #15089]
54322         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
54323
54324 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54325
54326         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
54327
54328         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
54329         add multiarch folders.
54330         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
54331         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
54332         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
54333         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
54334         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
54335         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
54336         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
54337         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
54338         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
54339         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
54340         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
54341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
54342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
54343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
54344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
54345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
54346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
54347
54348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54349         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
54350         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
54351         New file.
54352         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
54353         New file.
54354         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
54355         multiarch __ieee754_hypot for PowerPC32.
54356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
54357         New file.
54358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
54359         New file.
54360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
54361         multiarch __ieee754_hypotf for PowerPC32.
54362
54363         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
54364         long_double_symbol only if __logbl is defined.
54365         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
54366         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
54367         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
54368         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
54369         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
54370         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
54371         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
54372         path for implementation.
54373         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
54374         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
54375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
54376         logb, and logbl multiarch implementations for PowerPC32.
54377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
54378         file.
54379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
54380         file.
54381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
54382         multiarch logb for PowerPC32.
54383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
54384         file.
54385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
54386         file.
54387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
54388         multiarch logbf for PowerPC32.
54389         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
54390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
54391         file.
54392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
54393         multiarch logbl implementation for PowerPC32.
54394
54395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
54396         and modff multiarch implementations.
54397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
54398         New file.
54399         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
54400         New file.
54401         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
54402         multiarch modf for PowerPC32.
54403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
54404         New file.
54405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
54406         New file.
54407         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
54408         multiarch modff for PowerPC32.
54409
54410         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
54411         and lrintf multiarch implementations.
54412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
54413         New file.
54414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
54415         New file.
54416         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
54417         multiarch lrint for PowerPC32.
54418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
54419         file: multiarch lrintf for PowerPC32.
54420
54421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
54422         and lroundf multiarch implementations.
54423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
54424         New file.
54425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
54426         New file.
54427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
54428         New file.
54429         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
54430         multiarch lround for PowerPC32.
54431         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
54432         file: multiarch lroundf for PowerPC32.
54433
54434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
54435         copysign and copysignf multiarch implementations.
54436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
54437         New file.
54438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
54439         New file.
54440         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
54441         file: multiarch copysign for PowerPC32.
54442         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
54443         file: multiarch copysignf for PowerPC32.
54444
54445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
54446         and truncf multiarch implementations.
54447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
54448         New file.
54449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
54450         file.
54451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
54452         multiarch trunc for PowerPC32.
54453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
54454         New file.
54455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
54456         New file.
54457         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
54458         multiarch truncf for PowerPC32.
54459
54460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
54461         and roundf multiarch implementations.
54462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
54463         New file.
54464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
54465         file.
54466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
54467         multiarch round for PowerPC32.
54468         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
54469         New file.
54470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
54471         New file.
54472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
54473         multiarch roundf for PowerPC32.
54474
54475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
54476         and floorf multiarch implementations.
54477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
54478         New file.
54479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
54480         file.
54481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
54482         multiarch floor for PowerPC32.
54483         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
54484         New file.
54485         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
54486         New file.
54487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
54488         multiarch floorf for PowerPC32.
54489
54490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
54491         and ceilf multiarch implementations.
54492         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
54493         New file.
54494         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
54495         file.
54496         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
54497         multiarch ceil for PowerPC32.
54498         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
54499         New file.
54500         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
54501         file.
54502         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
54503         multiarch ceilf for PowerPC32.
54504
54505         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
54506         is defined.
54507         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
54508         FINITEF is defined.
54509         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
54510         and finitef multiarch implementations.
54511         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
54512         New file.
54513         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
54514         file.
54515         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
54516         multiarch finite for PowerPC32.
54517         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
54518         New file.
54519         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
54520         file: multiarch finitef for PowerPC32.
54521
54522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
54523         and isinff multiarch implementations.
54524         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
54525         file.
54526         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
54527         file.
54528         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
54529         multiarch isinf for PowerPC32.
54530         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
54531         New file.
54532         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
54533         multiarch isinff for PowerPC32.
54534
54535         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
54536         alias when __isnan is defined.
54537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
54538         and isnanf multiarch implementations.
54539         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
54540         file.
54541         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
54542         file.
54543         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
54544         file.
54545         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
54546         file.
54547         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
54548         multiarch isnan for PowerPC32.
54549         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
54550         New file.
54551         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
54552         New file.
54553         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
54554         multiarch isnanf for PowerPC32.
54555
54556         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
54557         and sqrtf multiarch implementations.
54558         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
54559         file.
54560         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
54561         file.
54562         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
54563         multiarch sqrt for PowerPC32.
54564         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
54565         file.
54566         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
54567         file.
54568         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
54569         multiarch sqrtf for PowerPC32.
54570
54571         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
54572         and llroundf multiarch implementations.
54573         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
54574         New file.
54575         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
54576         New file.
54577         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
54578         New file.
54579         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
54580         file: multiarch llround for PowerPC32.
54581         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
54582         file: multiarch llroundf for PowerPC32.
54583
54584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
54585         multiarch PowerPC32 fpu implementations.
54586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
54587         New file.
54588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
54589         New file.
54590         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
54591         multiarch llrint for PowerPC32.
54592         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
54593         New file.
54594         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
54595         New file.
54596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
54597         file.
54598
54599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
54600
54601         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
54602         file.
54603         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
54604         file.
54605         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
54606         file.
54607         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
54608         multiarch wordcopy for PPC32.
54609         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54610         wordcopy objects.
54611         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54612         (__libc_ifunc_impl_list): Likewise.
54613         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
54614         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
54615         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
54616         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
54617         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
54618         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
54619
54620         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
54621         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
54622         file.
54623         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
54624         file.
54625         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
54626         file.
54627         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
54628         multiarch wcscpy for PPC32.
54629         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
54630         multiarch objects.
54631         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54632         (__libc_ifunc_impl_list): Likewise.
54633         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54634         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54635         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
54636         sysdeps/powerpc/power6/wcscpy.c.
54637
54638         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
54639         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
54640         file.
54641         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
54642         file.
54643         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
54644         file.
54645         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
54646         multiarch wcsrchr for PPC32.
54647         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54648         multiarch objects.
54649         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54650         (__libc_ifunc_impl_list): Likewise.
54651         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
54652         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
54653         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
54654         sysdeps/powerpc/power6/wcsrchr.c.
54655
54656         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
54657         file.
54658         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
54659         file.
54660         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
54661         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
54662         multiarch wcschr for PPc32.
54663         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
54664         multiarch objects.
54665         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54666         (__libc_ifunc_impl_list): Likewise.
54667         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
54668         * sysdeps/powerpc/power6/wcschr.c: ... to here.
54669         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
54670         sysdeps/powerpc/power6/wcschr.c.
54671
54672         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
54673         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
54674         file.
54675         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
54676         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
54677         file: multiarch strchr for PPC32.
54678         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
54679         multiarch objects.
54680         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54681         (__libc_ifunc_impl_list): Likewise.
54682
54683         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
54684         name.
54685         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
54686         file.
54687         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
54688         file.
54689         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
54690         multiarch strchrnul for PPC32.
54691         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
54692         multiarch objects.
54693         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54694         (__libc_ifunc_impl_list): Likewise.
54695
54696         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
54697         file.
54698         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
54699         multiarch strncasecmp for PPC32.
54700         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
54701         file.
54702         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
54703         multiarch strncasecmp_l for PPC32.
54704         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
54705         strncasecmp multiarch objects.
54706         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54707         (__libc_ifunc_impl_list): Likewise.
54708
54709         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
54710         file.
54711         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
54712         multiarch strncasecmp for PPC32.
54713         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
54714         New file.
54715         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
54716         multiarch strcasecmp_l for PPC32.
54717         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
54718         multiarch objects.
54719         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54720         (__libc_ifunc_impl_list): Likewise.
54721
54722         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
54723         file.
54724         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
54725         file.
54726         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
54727         multiarch strncmp for PPC32.
54728         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
54729         multiarch objects.
54730         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54731         (__libc_ifunc_impl_list): Likewise.
54732
54733         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
54734         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
54735         file.
54736         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
54737         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
54738         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
54739         multiarch objects.
54740         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54741         (__libc_ifunc_impl_list): Likewise.
54742
54743         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
54744         file.
54745         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
54746         file.
54747         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
54748         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
54749         multiarch objects.
54750         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54751         (__libc_ifunc_impl_list): Likewise.
54752
54753         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
54754         file.
54755         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
54756         file.
54757         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
54758         multiarch rawmemchr for PPC32.
54759         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
54760         multiarch objects.
54761         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54762         (__libc_ifunc_impl_list): Likewise.
54763
54764         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
54765         file.
54766         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
54767         file.
54768         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
54769         file: memrchr multiarch for PPC32.
54770         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
54771         multiarch objects.
54772         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
54773         (__libc_ifunc_impl_list): Likewise.
54774
54775         * string/memchr.c (__memchr): Using macro to redefine symbol name.
54776         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
54777         file.
54778         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
54779         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
54780         multiarch memchr for PPC32.
54781         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
54782         multiarch objects.
54783         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54784         (__libc_ifunc_impl_list): Likewise.
54785
54786         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
54787         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
54788         file.
54789         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
54790         file.
54791         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
54792         file: multiarch mempcpy for PPC32.
54793         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
54794         multiarch objects.
54795         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54796         (__libc_ifunc_impl_list): Likewise.
54797
54798         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
54799         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
54800         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
54801         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
54802         multiarch bzero for PPC32.
54803         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
54804         file.
54805         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
54806         file.
54807         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
54808         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
54809         file: multiarch memset for PPC32.
54810         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
54811         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
54812         memset multiarch objects.
54813         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54814         (__libc_ifunc_impl_list): Likewise.
54815
54816         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
54817         file.
54818         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
54819         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
54820         memcmp for PPC32.
54821         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
54822         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
54823         multiarch objects.
54824         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54825         (__libc_ifunc_impl_list): Likewise.
54826
54827         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
54828         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
54829         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
54830         file.
54831         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
54832         file.
54833         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
54834         file.
54835         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
54836         multiarch memcpy for PPC32.
54837         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
54838         multiarch objects.
54839         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
54840         (__libc_ifunc_impl_list): Likewise.
54841
54842         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
54843         support multiarch for POWER/PPC32.
54844         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
54845         Likewise.
54846         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
54847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
54848         Implies file to make multiarch folder appers before the fpu and
54849         default folder for power4 configuration.
54850
54851 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54852
54853         * scripts/bench.pl: Append volatile keyword to type.
54854
54855 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
54856
54857         * sysdeps/sh/sotruss-lib.c: New file.
54858         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
54859
54860 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54861
54862         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54863
54864 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
54865
54866         [BZ #6810]
54867         * math/w_tgamma.c: Include <errno.h>.
54868         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
54869         * math/w_tgammaf.c: Include <errno.h>.
54870         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
54871         * math/w_tgammal.c: Include <errno.h>.
54872         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
54873         * math/auto-libm-test-in: Do not allow missing errno on tgamma
54874         underflow.  Add more tgamma tests.
54875         * math/auto-libm-test-out: Regenerated.
54876         * sysdeps/i386/fpu/libm-test-ulps: Update.
54877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54878
54879         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
54880         sin, sinh, tan, tanh, tgamma, y0 and y1.
54881         * math/auto-libm-test-out: Regenerated.
54882         * math/libm-test.inc (TEST_COND_x86_64): New macro.
54883         (TEST_COND_x86): Likewise.
54884         (M_E2l): Remove macro.
54885         (M_E3l): Likewise.
54886         (M_2_SQRT_PIl): Likewise.
54887         (M_SQRT_PIl): Likewise.
54888         (M_1_DIV_El): Likewise.
54889         (log_test_data): Use AUTO_TESTS_f_f.
54890         (log10_test_data): Likewise.
54891         (log1p_test_data): Likewise.
54892         (log2_test_data): Likewise.
54893         (sin_test_data): Likewise.
54894         (sin_tonearest_test_data): Likewise.
54895         (sin_towardzero_test_data): Likewise.
54896         (sin_downward_test_data): Likewise.
54897         (sin_upward_test_data): Likewise.
54898         (sinh_test_data): Likewise.
54899         (sinh_tonearest_test_data): Likewise.
54900         (sinh_towardzero_test_data): Likewise.
54901         (sinh_downward_test_data): Likewise.
54902         (sinh_upward_test_data): Likewise.
54903         (tan_test_data): Likewise.
54904         (tan_tonearest_test_data): Likewise.
54905         (tan_towardzero_test_data): Likewise.
54906         (tan_downward_test_data): Likewise.
54907         (tan_upward_test_data): Likewise.
54908         (tanh_test_data): Likewise.
54909         (tgamma_test_data): Likewise.
54910         (y0_test_data): Likewise.
54911         (y1_test_data): Likewise.
54912         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
54913         (special_real_inputs): Add pi/4.
54914         * sysdeps/i386/fpu/libm-test-ulps: Update.
54915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54916
54917 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
54918
54919         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
54920         "longjmp_target" static probes.
54921         (__longjmp): Rename to __longjmp_symbol.
54922         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
54923         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
54924         on which longjmp to generate.
54925         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
54926         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
54927         probe.
54928         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54929         (__sigjmp_save): Rename to __sigjmp_save_symbol.
54930         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
54931         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
54932         and __sigjmp_save_symbol based on which sigsetjmp to generated.
54933         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
54934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
54935         __longjmp_symbol based on which __longjmp to generate.
54936         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
54937         probe.
54938         (setjmp): Rename to setjmp_symbol.
54939         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54940         (_setjmp): Rename to _setjmp_symbol.
54941         (__sigsetjmp): Rename to __sigsetjmp_symbol.
54942         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
54943         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
54944         which setjmp to generate.
54945         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
54946         "longjmp_target" static probes.
54947
54948 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
54949
54950         * benchtests/README: Add note about output arguments.
54951         * benchtests/bench-sincos.c: Remove file.
54952         * benchtests/sincos-inputs: New file.
54953         * scripts/bench.pl: Identify output arguments and define
54954         static variables for them.
54955
54956         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
54957
54958         [BZ #15941]
54959         * Makefile (INSTALL): Add install-plain.texi as the primary
54960         dependency.
54961         * manual/install-plain.texi: New file.
54962         * manual/install.texi: Include node directive only for
54963         non-plaintext output.
54964
54965 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
54966
54967         * stdlib/longlong.h: Update from GCC.
54968
54969         [BZ #6807]
54970         [BZ #15901]
54971         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
54972         * math/w_j0f.c (y0f): Likewise.
54973         * math/w_j0l.c (__y0l): Likewise.
54974         * math/w_j1.c (y1): Likewise.
54975         * math/w_j1f.c (y1f): Likewise.
54976         * math/w_j1l.c (__y1l): Likewise.
54977         * math/w_jn.c (yn): Likewise.
54978         * math/w_jnf.c (ynf): Likewise.
54979         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
54980         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
54981         value for Bessel function domain errors outside _SVID_ mode.
54982         Adjust sign of return value for yn (negative integer, 0).
54983         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
54984         by zero in return for negative x and set sign appropriately for
54985         negative n.
54986         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
54987         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
54988         * math/libm-test.inc (y0_test_data): Add more tests and adjust
54989         expectations in error cases.
54990         (y1_test_data): Likewise.
54991         (yn_test_data): Likewise.
54992         * sysdeps/i386/fpu/libm-test-ulps: Update.
54993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54994
54995 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
54996
54997         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
54998         "64" to "64-v1".  Add "64-v2".
54999         (abi-64-options): Rename to ...
55000         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
55001         (abi-64-condition): Rename to ...
55002         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
55003         (abi-64-ld-soname): Rename to ...
55004         (abi-64-v1-ld-soname): ... this.
55005         (abi-64-v2-options): Define.
55006         (abi-64-v2-condition): Likewise.
55007         (abi-64-v2-ld-soname): Likewise.
55008         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
55009         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
55010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
55011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
55012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
55013
55014 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55015             Alan Modra  <amodra@gmail.com>
55016
55017         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
55018         New versions for use with the ELFv2 ABI.
55019         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
55020         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
55021         declaration.
55022         (struct La_ppc64v2_retval): Likewise.
55023         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
55024         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
55025         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
55026         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
55027         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
55028         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
55029         Do not save or restore CR.
55030         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
55031         (_dl_profile_resolve): Do no save or restore CR.  Support extended
55032         return values for ELFv2 ABI.  Fix location of FPR return registers.
55033         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
55034         updated values for _CALL_ELF == 2.
55035         (La_regs, La_retval, int_retval): Likewise.
55036
55037 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55038
55039         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
55040         (FRAME_MIN_SIZE_PARM): Likewise.
55041         (FRAME_BACKCHAIN): Likewise.
55042         (FRAME_CR_SAVE): Likewise.
55043         (FRAME_LR_SAVE): Likewise.
55044         (FRAME_TOC_SAVE): Likewise.
55045         (FRAME_PARM_SAVE): Likewise.
55046         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
55047         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
55048         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
55049         (call_mcount_parm_offset): New macro.
55050         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
55051         (PROF): Use symbolic stack frame offsets.
55052         (TAIL_CALL_SYSCALL_ERROR): Likewise.
55053         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
55054         Redefine in terms of FRAME_MIN_SIZE.
55055         (_dl_runtime_resolve): Use symbolic stack frame offsets.
55056         (_dl_profile_resolve): Likewise.  Update comment.
55057         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
55058         symbols stack frame offsets.
55059         (__sigsetjmp): Likewise.
55060         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
55061         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
55062         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
55063         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
55064
55065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
55066         (FRAME_BACKCHAIN): Remove.
55067         (FRAME_CR_SAVE): Likewise.
55068         (FRAME_LR_SAVE): Likewise.
55069         (FRAME_COMPILER_DW): Likewise.
55070         (FRAME_LINKER_DW): Likewise.
55071         (FRAME_TOC_SAVE): Likewise.
55072         (FRAME_PARM_SAVE): Likewise.
55073         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
55074         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
55075         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
55076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
55077         (CHECK_SP): Use symbolic stack frame offsets.
55078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
55079         zone" instead of caller's parameter save area for temp storage.
55080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
55081         Likewise.  Also, use symbolic stack frame offsets.
55082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
55083         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
55084         our own stack frame instead of the caller's.
55085         (__socket): Use symbolic stack frame offsets.
55086
55087 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55088             Alan Modra  <amodra@gmail.com>
55089
55090         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
55091         Define.
55092         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
55093         (PPC64_LOCAL_ENTRY_OFFSET): Define.
55094         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
55095         New function.
55096         (elf_machine_fixup_plt): Call it.
55097         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
55098         reloc arguments.
55099         (elf_machine_rela): Update call to elf_machine_plt_conflict.
55100         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
55101         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
55102         r2 before calling target.
55103
55104 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55105             Alan Modra  <amodra@gmail.com>
55106
55107         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
55108         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
55109         versions of macros to support ELFv2 ABI.
55110         (LOCALENTRY): New macro.
55111         (ENTRY, EALIGN): Use it.
55112         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
55113         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
55114         fall through into ENTRY entry point.
55115         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
55116         Only define if _CALL_ELF != 2.
55117
55118         (elf_machine_matches_host): Verify ABI version matches.
55119         (RTLD_START): Use LOCALENTRY.
55120         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
55121         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
55122         (PLT_ENTRY_WORDS): New macro.
55123         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
55124         (elf_machine_runtime_setup): Support ELFv2 ABI.
55125         (elf_machine_fixup_plt): Likewise.
55126         (elf_machine_plt_conflict): Likewise.
55127         (resolve_ifunc): Likewise.
55128         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
55129         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
55130         Likewise.
55131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
55132         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
55133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
55134         (makecontext): Support ELFv2 ABI.
55135         * elf/elf.h (EF_PPC64_ABI): Define.
55136
55137 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55138
55139         * sysdeps/powerpc/powerpc64/sysdep.h
55140         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
55141         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
55142         (ENTRY) [ASSEMBLER]: ... but instead here ...
55143         (EALIGN) [ASSEMBLER]: ... and here.
55144         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
55145         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
55146         (ENTRY_2) [!ASSEMBLER]: Use it.
55147         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
55148         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
55149         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
55150         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
55151         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
55152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
55153         Use PPC64_LOAD_FUNCPTR.
55154
55155         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
55156
55157 2013-12-04  Alan Modra  <amodra@gmail.com>
55158
55159         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
55160         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
55161         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
55162         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
55163
55164         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
55165         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
55166         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
55167         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
55168         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
55169         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
55170
55171 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
55172
55173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
55174         (__makecontext): Fix incorrect CFI when backtracing out of
55175         context created via makecontext.
55176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
55177         (__setcontext): Fix incorrect CFI during switch to new context.
55178         (__novec_setcontext): Likewise.
55179
55180 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
55181
55182         [BZ #4772]
55183         * time/strptime_l.c (__strptime_internal): Allow modifiers
55184         in strptime.
55185         * time/tst-strptime.c (day_tests): Add testcase.
55186
55187 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
55188
55189         * scripts/bench.pl: Skip over blank lines.
55190
55191 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
55192
55193         [BZ #926]
55194         * manual/time.texi (Calendar Time): Clarify what timezone functions
55195         use.
55196
55197 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55198
55199         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55200
55201 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
55202
55203         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
55204         implementation.
55205         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
55206         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
55207         * debug/memset_chk.c (__memset_chk): Likewise.
55208         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
55209         * debug/strncpy_chk.c: Likewise.
55210
55211 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
55212
55213         [BZ #15268]
55214         [BZ #15425]
55215         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
55216         (__ieee754_exp): For possibly underflowing results, check size of
55217         result and force underflow exception if required.
55218         * math/auto-libm-test-in: Add more tests of exp.
55219         * math/auto-libm-test-out: Regenerated.
55220         * sysdeps/i386/fpu/libm-test-ulps: Update.
55221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55222
55223         [BZ #16283]
55224         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
55225         * math/w_exp2f.c (__exp2f): Likewise.
55226         * math/w_exp2l.c (__exp2l): Likewise.
55227         * math/auto-libm-test-in: Do not allow missing errno on exp2
55228         underflow.
55229         * math/auto-libm-test-out: Regenerated.
55230
55231 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
55232
55233         [BZ #16274]
55234         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
55235         handle filename validation.
55236         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
55237         (do_open): Delete.
55238
55239 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
55240
55241         [BZ #6786]
55242         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
55243         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
55244         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
55245         <float.h>.
55246         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
55247         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
55248         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55249         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
55250         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55251         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
55252         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
55253         * math/auto-libm-test-in: Don't allow missing errno from erfc.
55254         Add more erfc tests.
55255         * math/auto-libm-test-out: Regenerated.
55256         * sysdeps/i386/fpu/libm-test-ulps: Update.
55257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55258
55259         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
55260         exp2, expm1, j0 and j1.
55261         * math/auto-libm-test-out: Regenerated.
55262         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
55263         (erfc_test_data): Likewise.
55264         (exp_test_data): Likewise.
55265         (exp_tonearest_test_data): Likewise.
55266         (exp_towardzero_test_data): Likewise.
55267         (exp_downward_test_data): Likewise.
55268         (exp_upward_test_data): Likewise.
55269         (exp10_test_data): Likewise.
55270         (exp2_test_data): Likewise.
55271         (expm1_test_data): Likewise.
55272         (j0_test_data): Likewise.
55273         (j1_test_data): Likewise.
55274         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
55275         (input_flag_type): Add flag_xfail_rounding.
55276         (input_flags): Add xfail-rounding.
55277         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
55278         (output_for_one_input_case): Handle flag_xfail_rounding.
55279         * sysdeps/i386/fpu/libm-test-ulps: Update.
55280         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55281
55282 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
55283
55284         [BZ #16289]
55285         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
55286         division by 0.
55287
55288 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
55289
55290         [BZ #16195]
55291         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
55292         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
55293         (STAP_PROBE0): New macro.
55294         (STAP_PROBE1): Likewise.
55295         (STAP_PROBE2): Likewise.
55296         (STAP_PROBE3): Likewise.
55297         (STAP_PROBE4): Likewise.
55298
55299 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
55300
55301         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
55302
55303 2013-12-02  Steve Ellcey  <sellcey@mips.com>
55304
55305         * benchtests/Makefile (bench): Add sqrt.
55306         (LDLIBS-bench-sqrt): New.
55307         * benchtests/sqrt-input: New.
55308
55309 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
55310
55311         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
55312         (GAIH_EAI): Likewise.
55313         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
55314         (gaih_inet): Likewise.
55315         (getaddrinfo): Don't use GAIH_EAI.
55316
55317         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
55318         (struct gaih): Remove definition.
55319
55320 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
55321
55322         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
55323         Use HERRNOP directly.
55324
55325 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55326
55327         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
55328
55329 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
55330
55331         * math/gen-auto-libm-tests.c (test_functions): Add more
55332         single-argument functions.
55333         (special_fill_pi_2): New function.
55334         (special_fill_minus_pi_2): Likewise.
55335         (special_fill_pi_6): Likewise.
55336         (special_fill_minus_pi_6): Likewise.
55337         (special_fill_pi_3): Likewise.
55338         (special_fill_2pi_3): Likewise.
55339         (special_fill_e): Likewise.
55340         (special_fill_1_e): Likewise.
55341         (special_fill_e_minus_1): Likewise.
55342         (special_real_inputs): Add more special inputs.
55343         (output_for_one_input_case): Do not require ERANGE on underflow to
55344         zero if round-to-nearest result does not underflow to zero, unless
55345         exact results required.
55346         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
55347         atan, atanh, cbrt, cos and cosh.
55348         * math/auto-libm-test-out: Regenerated.
55349         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
55350         (acos_tonearest_test_data): Likewise.
55351         (acos_towardzero_test_data): Likewise.
55352         (acos_downward_test_data): Likewise.
55353         (acos_upward_test_data): Likewise.
55354         (acosh_test_data): Likewise.
55355         (asin_test_data): Likewise.
55356         (asin_tonearest_test_data): Likewise.
55357         (asin_towardzero_test_data): Likewise.
55358         (asin_upward_test_data): Likewise.
55359         (asinh_test_data): Likewise.
55360         (atan_test_data): Likewise.
55361         (atanh_test_data): Likewise.
55362         (cbrt_test_data): Likewise.
55363         (cos_test_data): Likewise.
55364         (cos_tonearest_test_data): Likewise.
55365         (cos_towardzero_test_data): Likewise.
55366         (cos_downward_test_data): Likewise.
55367         (cos_upward_test_data): Likewise.
55368         (cosh_test_data): Likewise.
55369         (cosh_tonearest_test_data): Likewise.
55370         (cosh_towardzero_test_data): Likewise.
55371         (cosh_downward_test_data): Likewise.
55372         (cosh_upward_test_data): Likewise.
55373         * sysdeps/i386/fpu/libm-test-ulps: Update.
55374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
55375
55376 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
55377
55378         [BZ #6787]
55379         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
55380         * math/w_exp10f.c (__exp10f): Likewise.
55381         * math/w_exp10l.c (__exp10l): Likewise.
55382         * math/libm-test.inc (exp10_test_data): Add more tests and expect
55383         errno settings in existing tests.
55384
55385         [BZ #14032]
55386         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
55387         precision control set to double precision.
55388         * sysdeps/i386/fpu/w_sqrt.c: New file.
55389         * math/auto-libm-test-in: Add more tests.
55390         * math/auto-libm-test-out: Update.
55391
55392         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
55393         (sqrt_test_tonearest): New function.
55394         (sqrt_towardzero_test_data): New variable.
55395         (sqrt_test_towardzero): New function.
55396         (sqrt_downward_test_data): New variable.
55397         (sqrt_test_downward): New function.
55398         (sqrt_upward_test_data): New variable.
55399         (sqrt_test_upward): New function.
55400         (main): Call the new functions.
55401
55402         * math/gen-auto-libm-tests.c: New file.
55403         * math/auto-libm-test-in: Likewise.
55404         * math/auto-libm-test-out: New generated file.
55405         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
55406         variables.
55407         (%beautify): Add generated representations of zero.
55408         (top level): Set $auto_input and call parse_auto_input.
55409         (beautify): Remove trailing "f" from hex float constants.
55410         (parse_args): Handle XFAIL_TEST.
55411         (convert_condition): New function.
55412         (or_value): Likewise.
55413         (or_cond_value): Likewise.
55414         (generate_testfile): Handle AUTO_TESTS_* lines.
55415         (parse_auto_input): New function.
55416         * math/libm-test.inc (XFAIL_TEST): New macro.
55417         (ERRNO_UNCHANGED): Update value.
55418         (ERRNO_EDOM): Likewise.
55419         (ERRNO_ERANGE): Likewise.
55420         (IGNORE_RESULT): Likewise.
55421         (TEST_COND_flt_32): New macro.
55422         (TEST_COND_dbl_64): Likewise.
55423         (TEST_COND_ldbl_96_intel): Likewise.
55424         (TEST_COND_ldbl_96_m68k): Likewise.
55425         (TEST_COND_ldbl_128): Likewise.
55426         (TEST_COND_ldbl_128ibm): Likewise.
55427         (TEST_COND_long32): Likewise.
55428         (TEST_COND_long64): Likewise.
55429         (TEST_COND_before_rounding): Likewise.
55430         (TEST_COND_after_rounding): Likewise.
55431         (enable_test): Handle XFAIL_TEST flag.
55432         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
55433         with finite results.
55434         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
55435         auto-libm-test-out.
55436
55437 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
55438             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55439
55440         [BZ #16214]
55441         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
55442         __tls_get_addr_internal instead of __tls_get_offset in order to
55443         avoid GOT pointer dependency.  Make rtld export
55444         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
55445         __tls_get_addr since we are a __tls_get_offset platform.
55446         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
55447         GOT pointer being set up before.
55448         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
55449
55450 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
55451
55452         * manual/math.texi (Errors in Math Functions): Document accuracy
55453         goals.
55454
55455         [BZ #15004]
55456         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
55457         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
55458         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
55459         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
55460         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
55461         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
55462         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
55463         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
55464         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
55465         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
55466         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
55467         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
55468         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
55469         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
55470         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
55471         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
55472
55473         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
55474         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
55475         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
55476         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
55477         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
55478         Likewise.
55479         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
55480         Likewise.
55481         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
55482         Likewise.
55483         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
55484         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
55485         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
55486         atomic-feupdateenv and flt-rounds.
55487         * sysdeps/powerpc/nofpu/Versions (libc): Add
55488         __atomic_feholdexcept, __atomic_feclearexcept,
55489         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
55490         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
55491         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
55492         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
55493         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
55494         here.
55495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
55496         Update.
55497
55498         * manual/arith.texi (FP Exceptions): Document that exceptions may
55499         not be raised when matherr is used.
55500         (Math Error Reporting): Document overflow in directed rounding
55501         modes.  Document that errno may not be set when finite values are
55502         returned on overflow.  Document intent to set errno on underflow
55503         only for underflow to zero.
55504
55505         [BZ #16271]
55506         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
55507         round-to-nearest then adjust result for other rounding modes.
55508         * include/fenv.h (fegetround): Use libm_hidden_proto.
55509         * math/fegetround.c (fegetround): Use libm_hidden_def.
55510         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
55511         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
55512         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55513         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
55514         Likewise.
55515         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
55516         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
55517         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
55518         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
55519
55520 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
55521
55522         [BZ #16077]
55523         * nss/Versions (libnss_files): Add
55524         _nss_files_gethostbyname3_r.
55525         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
55526         New function.
55527         (HOST_DB_LOOKUP): Remove macro.
55528         (_nss_files_gethostbyname_r): Implement function without the
55529         HOST_DB_LOOKUP macro.
55530         (_nss_files_gethostbyname2_r): Likewise.
55531
55532 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
55533
55534         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
55535
55536 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
55537
55538         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
55539         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
55540         warning.
55541
55542 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55543
55544         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
55545         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
55546         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
55547         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
55548         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
55549         __fe_nomask_env_priv and attribute_hidden.
55550         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
55551         (libc_feupdateenv_test_ppc): Likewise.
55552         (libc_feresetround_ppc): Likewise.
55553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
55554         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
55555         compat_symbol macro.
55556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
55557         (__fe_nomask_env): Likewise.
55558         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
55559
55560 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55561
55562         * string/Makefile: Remove ifunc tests.
55563         * string/test-string.h: Define TEST_IFUNC.
55564         * string/test-bcopy-ifunc.c: Remove.
55565         * string/test-bzero-ifunc.c: Likewise.
55566         * string/test-memccpy-ifunc.c: Likewise.
55567         * string/test-memchr-ifunc.c: Likewise.
55568         * string/test-memcmp-ifunc.c: Likewise.
55569         * string/test-memcpy-ifunc.c: Likewise.
55570         * string/test-memmem-ifunc.c: Likewise.
55571         * string/test-memmove-ifunc.c: Likewise.
55572         * string/test-mempcpy-ifunc.c: Likewise.
55573         * string/test-memrchr-ifunc.c: Likewise.
55574         * string/test-memset-ifunc.c: Likewise.
55575         * string/test-rawmemchr-ifunc.c: Likewise.
55576         * string/test-stpcpy-ifunc.c: Likewise.
55577         * string/test-stpncpy-ifunc.c: Likewise.
55578         * string/test-strcasecmp-ifunc.c: Likewise.
55579         * string/test-strcasestr-ifunc.c: Likewise.
55580         * string/test-strcat-ifunc.c: Likewise.
55581         * string/test-strchr-ifunc.c: Likewise.
55582         * string/test-strchrnul-ifunc.c: Likewise.
55583         * string/test-strcmp-ifunc.c: Likewise.
55584         * string/test-strcpy-ifunc.c: Likewise.
55585         * string/test-strcspn-ifunc.c: Likewise.
55586         * string/test-strlen-ifunc.c: Likewise.
55587         * string/test-strncasecmp-ifunc.c: Likewise.
55588         * string/test-strncat-ifunc.c: Likewise.
55589         * string/test-strncmp-ifunc.c: Likewise.
55590         * string/test-strncpy-ifunc.c: Likewise.
55591         * string/test-strnlen-ifunc.c: Likewise.
55592         * string/test-strpbrk-ifunc.c: Likewise.
55593         * string/test-strrchr-ifunc.c: Likewise.
55594         * string/test-strspn-ifunc.c: Likewise.
55595         * string/test-strstr-ifunc.c: Likewise.
55596
55597 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55598
55599         * benchtests/Makefile: Remove ifunc tests.
55600         * benchtests/bench-string.h: Define TEST_IFUNC.
55601         * benchtests/bench-bcopy-ifunc.c: Remove.
55602         * benchtests/bench-bzero-ifunc.c: Likewise.
55603         * benchtests/bench-memccpy-ifunc.c: Likewise.
55604         * benchtests/bench-memchr-ifunc.c: Likewise.
55605         * benchtests/bench-memcmp-ifunc.c: Likewise.
55606         * benchtests/bench-memcpy-ifunc.c: Likewise.
55607         * benchtests/bench-memmem-ifunc.c: Likewise.
55608         * benchtests/bench-memmove-ifunc.c: Likewise.
55609         * benchtests/bench-mempcpy-ifunc.c: Likewise.
55610         * benchtests/bench-memrchr-ifunc.c: Likewise.
55611         * benchtests/bench-memset-ifunc.c: Likewise.
55612         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
55613         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
55614         * benchtests/bench-stpcpy-ifunc.c: Likewise.
55615         * benchtests/bench-stpncpy-ifunc.c: Likewise.
55616         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
55617         * benchtests/bench-strcasestr-ifunc.c: Likewise.
55618         * benchtests/bench-strcat-ifunc.c: Likewise.
55619         * benchtests/bench-strchr-ifunc.c: Likewise.
55620         * benchtests/bench-strchrnul-ifunc.c: Likewise.
55621         * benchtests/bench-strcmp-ifunc.c: Likewise.
55622         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
55623         * benchtests/bench-strcpy-ifunc.c: Likewise.
55624         * benchtests/bench-strcspn-ifunc.c: Likewise.
55625         * benchtests/bench-strlen-ifunc.c: Likewise.
55626         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
55627         * benchtests/bench-strncat-ifunc.c: Likewise.
55628         * benchtests/bench-strncmp-ifunc.c: Likewise.
55629         * benchtests/bench-strncpy-ifunc.c: Likewise.
55630         * benchtests/bench-strnlen-ifunc.c: Likewise.
55631         * benchtests/bench-strpbrk-ifunc.c: Likewise.
55632         * benchtests/bench-strrchr-ifunc.c: Likewise.
55633         * benchtests/bench-strsep-ifunc.c: Likewise.
55634         * benchtests/bench-strspn-ifunc.c: Likewise.
55635         * benchtests/bench-strstr-ifunc.c: Likewise.
55636
55637 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55638
55639         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
55640
55641 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
55642
55643         * resolv/netdb.h: Use __glibc_reserved instead __unused.
55644         * rt/aio.h: Likewise.
55645         * sysdeps/gnu/bits/utmp.h: Likewise.
55646         * sysdeps/gnu/bits/utmpx.h: Likewise.
55647         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
55648         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
55649         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
55650         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
55651         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
55652         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
55653         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
55654         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
55655         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
55656         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
55657         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
55658         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
55659         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
55660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
55661         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
55662         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
55663         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
55664         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
55665         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
55666         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
55667         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
55668         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
55669         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
55670         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
55671         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
55672         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
55673         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
55674         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
55675         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
55676         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
55677         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
55678         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
55679         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
55680         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
55681         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
55682         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
55683         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
55684         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
55685         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
55686         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
55687         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
55688         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
55689
55690 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
55691
55692         [BZ #16245]
55693         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
55694         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
55695
55696 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
55697
55698         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
55699         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
55700         Likewise.
55701
55702 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55703
55704         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
55705         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
55706         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
55707         (__fesetround): Remove define.
55708         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
55709         rounding and exceptions handling.
55710         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
55711         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
55712         (__fe_nomask_env): Likewise.
55713         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
55714         __fegetround instead of fegetround.
55715         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
55716         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
55717
55718 2013-11-21  Roland McGrath  <roland@hack.frob.com>
55719
55720         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
55721         it's there.
55722
55723         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
55724
55725 2013-11-21  Meador Inge  <meadori@codesourcery.com>
55726
55727         [BZ #11157]
55728         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
55729         (encrypt_r): Likewise.
55730         * malloc/obstack.h (obstack_free): Likewise.
55731         * posix/unistd.h (encrypt): Likewise.
55732
55733 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
55734
55735         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
55736         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
55737         DL_CALL_DT_FINI() that call the functions directly.
55738         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
55739         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
55740         * elf/dl-fini.c: Likewise.
55741
55742 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
55743
55744         * malloc/hooks.c (memalign_check): Add alignment rounding.
55745         * malloc/malloc.c (_mid_memalign): New function.
55746         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
55747         Implement by calling _mid_memalign.
55748         * manual/probes.texi (Memory Allocation Probes): Remove
55749         memory_valloc_retry and memory_pvalloc_retry.
55750
55751 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
55752
55753         * locale/programs/locarchive.c (open_archive): Add const
55754         qualifier to ARCHIVEFNAME and copy default fname to
55755         DEFAULT_FNAME.
55756
55757         [BZ #15601]
55758         * libio/tst-widetext.input: Rename Oriya to Odia.
55759         * locale/iso-639.def: Likewise.
55760
55761         * manual/probes.texi (Mathematical Function Probes): Add
55762         documentation for sin, cos, asin and acos probes.
55763         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
55764         (__sin32): Add slowasin probe.
55765         (__cos32): Add slowacos probe.
55766         (__mpsin): Add slowsin probe.
55767         (__mpcos): Add slowcos probe.
55768
55769 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
55770
55771         [BZ #15483]
55772         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
55773         thread-local __sim_exceptions_thread and global
55774         __sim_exceptions_global.
55775         (__sim_disabled_exceptions): Change to thread-local
55776         __sim_disabled_exceptions_thread and global
55777         __sim_disabled_exceptions_global.
55778         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55779         and global __sim_round_mode_global.
55780         (__simulate_exceptions): Use thread-local floating-point state and
55781         set global state from it as needed.
55782         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
55783         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
55784         __sim_round_mode_thread.
55785         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
55786         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
55787         and global __sim_exceptions_global.
55788         (__sim_disabled_exceptions): Change to thread-local
55789         __sim_disabled_exceptions_thread and global
55790         __sim_disabled_exceptions_global.
55791         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
55792         and global __sim_round_mode_global.
55793         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
55794         (SIM_SET_GLOBAL): Likewise.
55795         * sysdeps/powerpc/soft-fp/sfp-machine.h
55796         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
55797         __sim_round_mode_thread.
55798         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
55799         __sim_disabled_exceptions_thread.
55800         (__sim_exceptions): Change to __sim_exceptions_thread.
55801         (__sim_disabled_exceptions): Change to
55802         __sim_disabled_exceptions_thread.
55803         (__sim_round_mode): Change to __sim_round_mode_thread.
55804         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
55805         thread-local floating-point state and set global state from it as
55806         needed.
55807         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
55808         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
55809         (__sim_disabled_exceptions): Remove extern declaration.
55810         (feenableexcept): Use thread-local floating-point state and set
55811         global state from it as needed.
55812         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
55813         extern declaration.
55814         (__sim_disabled_exceptions): Likewise.
55815         (__sim_round_mode): Likewise.
55816         (__fegetenv): Use thread-local floating-point state.
55817         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
55818         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
55819         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
55820         floating-point state and set global state from it as needed.
55821         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
55822         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
55823         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
55824         Likewise.
55825         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
55826         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
55827         Likewise.
55828         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
55829         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
55830         Use __sim_round_mode_thread.
55831         * math/test-fenv-tls.c: New file.
55832         * math/Makefile (tests): Add test-fenv-tls.
55833         ($(objpfx)test-fenv-tls): Depend on
55834         $(common-objpfx)nptl/libpthread.so.
55835
55836 2013-11-19  Andreas Schwab  <schwab@suse.de>
55837
55838         * locale/programs/locale.c (show_info): Decode wordarray elements.
55839         * locale/categories.def (LC_MONETARY): Add element for
55840         _NL_MONETARY_CRNCYSTR.
55841         * locale/C-monetary.c (conversion_rate): New variable.
55842         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
55843         element.
55844
55845 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
55846
55847         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
55848         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
55849
55850 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
55851
55852         * elf/Makefile (tst-auxv): New test.
55853         * elf/tst-auxv.c: New
55854         * elf/rtld.c (dl_main): Adjust AT_EXECFN
55855
55856 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
55857
55858         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
55859         (hidden_proto): Caller changed.
55860         (hidden_tls_proto): New macro.
55861         (libc_hidden_tls_proto): Likewise.
55862         (rtld_hidden_tls_proto): Likewise.
55863         (libm_hidden_tls_proto): Likewise.
55864         (libresolv_hidden_tls_proto): Likewise.
55865         (librt_hidden_tls_proto): Likewise.
55866         (libdl_hidden_tls_proto): Likewise.
55867         (libnss_files_hidden_tls_proto): Likewise.
55868         (libnsl_hidden_tls_proto): Likewise.
55869         (libnss_nisplus_hidden_tls_proto): Likewise.
55870         (libutil_hidden_tls_proto): Likewise.
55871
55872 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
55873
55874         [BZ #10253]
55875         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
55876         (decompose_rpath): Defer expansion to fillin_rpath.
55877         (_dl_init_paths): Pass linkmap to fillin_rpath.
55878
55879 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
55880
55881         * benchtests/Makefile: Add strsep.
55882         * benchtests/bench-strsep.c: New file: strsep benchtest.
55883         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
55884
55885 2013-11-18  Andreas Schwab  <schwab@suse.de>
55886
55887         * locale/programs/locale.c (show_info) [case byte]: Check for
55888         '\377' instead of '\177'.
55889         * locale/C-monetary.c (not_available): Always use "\377".
55890         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
55891         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
55892         detect unavailable sign_posn locale elements.
55893         * locale/localeconv.c (__localeconv): For grouping and
55894         mon_grouping handle "\177" and "\377" like no grouping.
55895         (INT_ELEM): New macro.  Use it to set all numeric members.
55896         * locale/programs/ld-monetary.c (monetary_read)
55897         <tok_mon_grouping>: Normalize single -1 to the empty string.
55898         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
55899         Likewise.
55900
55901 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
55902
55903         [BZ #16055]
55904         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
55905         when we match (nil).
55906         * stdio-common/tst-sscanf.c (struct test): Add testcase.
55907
55908 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
55909
55910         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
55911         (NO_TEST_INLINE): Update value.
55912         (ERRNO_UNCHANGED): Likewise.
55913         (ERRNO_EDOM): Likewise.
55914         (ERRNO_ERANGE): Likewise.
55915         (IGNORE_RESULT): Likewise.
55916         (check_float_internal): Check signs of NaN results if
55917         TEST_NAN_SIGN used.
55918         (check_complex): Pass TEST_NAN_SIGN flag through to second
55919         check_float_internal call.
55920         (copysign_test_data): Add tests with quiet NaNs as second
55921         argument.  Use TEST_NAN_SIGN.
55922         (fabs_test_data): Add test of negative quiet NaN argument.  Use
55923         TEST_NAN_SIGN.
55924         (signbit_test_data): Add tests of quiet NaN argument.
55925         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
55926
55927         * math/gen-libm-test.pl (show_exceptions): Take extra argument
55928         $ignore_result.
55929         (parse_args): Handle function results specified as IGNORE.
55930         * math/libm-test.inc (IGNORE_RESULT): New macro.
55931         (check_float_internal): Do not check numerical result if flag
55932         IGNORE_RESULT set.
55933         (check_complex): Pass through IGNORE_RESULT to second
55934         check_float_internal call.
55935         (check_int): Do not check numerical result if flag IGNORE_RESULT
55936         set.
55937         (check_long): Likewise.
55938         (check_bool): Likewise.
55939         (check_longlong): Likewise.
55940         (lrint_test_data): Add tests of infinite and NaN arguments.
55941         (lrint_tonearest_test_data): Likewise.
55942         (lrint_towardzero_test_data): Likewise.
55943         (lrint_downward_test_data): Likewise.
55944         (lrint_upward_test_data): Likewise.
55945         (llrint_test_data): Likewise.
55946         (llrint_tonearest_test_data): Likewise.
55947         (llrint_towardzero_test_data): Likewise.
55948         (llrint_downward_test_data): Likewise.
55949         (llrint_upward_test_data): Likewise.
55950         (lround_test_data): Likewise.
55951         (llround_test_data): Likewise.
55952
55953         * math/libm-test.inc (NO_TEST_INLINE): New macro.
55954         (ERRNO_UNCHANGED): Update value.
55955         (ERRNO_EDOM): Likewise.
55956         (ERRNO_ERANGE): Likewise.
55957         (NO_TEST_INLINE_FLOAT): New macro.
55958         (NO_TEST_INLINE_DOUBLE): Likewise.
55959         (enable_test): New function.
55960         (RUN_TEST_f_f): Check enable_test before running test.
55961         (RUN_TEST_2_f): Likewise.
55962         (RUN_TEST_fff_f): Likewise.
55963         (RUN_TEST_c_f): Likewise.
55964         (RUN_TEST_f_f1): Likewise.
55965         (RUN_TEST_fF_f1): Likewise.
55966         (RUN_TEST_fI_f1): Likewise.
55967         (RUN_TEST_ffI_f1): Likewise.
55968         (RUN_TEST_c_c): Likewise.
55969         (RUN_TEST_cc_c): Likewise.
55970         (RUN_TEST_f_i): Likewise.
55971         (RUN_TEST_f_i_tg): Likewise.
55972         (RUN_TEST_ff_i_tg): Likewise.
55973         (RUN_TEST_f_b): Likewise.
55974         (RUN_TEST_f_b_tg): Likewise.
55975         (RUN_TEST_f_l): Likewise.
55976         (RUN_TEST_f_L): Likewise.
55977         (RUN_TEST_fFF_11): Likewise.
55978         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
55979         conditionals.
55980         (cosh_test_data): Likewise.
55981         (exp_test_data): Likewise.
55982         (expm1_test_data): Likewise.
55983         (hypot_test_data): Likewise.
55984         (pow_test_data): Likewise.
55985         (sinh_test_data): Likewise.
55986         (tanh_test_data): Likewise.
55987         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
55988         flags argument.
55989
55990         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
55991         tests with quiet NaN input and output.
55992         (acosh_test_data): Likewise.
55993         (asin_test_data): Likewise.
55994         (asinh_test_data): Likewise.
55995         (atan_test_data): Likewise.
55996         (atanh_test_data): Likewise.
55997         (atan2_test_data): Likewise.
55998         (cbrt_test_data): Likewise.
55999         (cos_test_data): Likewise.
56000         (cosh_test_data): Likewise.
56001         (erf_test_data): Likewise.
56002         (erfc_test_data): Likewise.
56003         (exp_test_data): Likewise.
56004         (exp10_test_data): Likewise.
56005         (exp2_test_data): Likewise.
56006         (expm1_test_data): Likewise.
56007         (hypot_test_data): Likewise.
56008         (j0_test_data): Likewise.
56009         (j1_test_data): Likewise.
56010         (jn_test_data): Likewise.
56011         (lgamma_test_data): Likewise.
56012         (log_test_data): Likewise.
56013         (log10_test_data): Likewise.
56014         (log1p_test_data): Likewise.
56015         (log2_test_data): Likewise.
56016         (pow_test_data): Likewise.
56017         (scalb_test_data): Likewise.
56018         (sin_test_data): Likewise.
56019         (sincos_test_data): Likewise.
56020         (sinh_test_data): Likewise.
56021         (tan_test_data): Likewise.
56022         (tanh_test_data): Likewise.
56023         (tgamma_test_data): Likewise.
56024         (y0_test_data): Likewise.
56025         (y1_test_data): Likewise.
56026         (yn_test_data): Likewise.
56027
56028         [BZ #16167]
56029         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
56030         argument being NaN and avoid computations with second argument in
56031         that case.
56032         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
56033         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
56034         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
56035
56036 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
56037
56038         * locale/iso-639.def: Add Chitwani Tharu (the).
56039
56040 2013-11-14  Andreas Schwab  <schwab@suse.de>
56041
56042         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
56043         word instead of empty string.
56044
56045 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56046
56047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
56048         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
56049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
56050         (__fe_nomask_env): Likewise.
56051
56052 2013-11-13  Steve Ellcey  <sellcey@mips.com>
56053
56054         * benchtests/bench-timing.h: Include time.h.
56055
56056 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
56057
56058         [BZ #15997]
56059         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
56060         to 3.4.0 for x32.
56061         * sysdeps/unix/sysv/linux/configure: Regenerated.
56062
56063 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
56064
56065         [BZ #16151]
56066         * stdlib/strtod_l.c (round_and_return): Do not consider
56067         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
56068         exponent one less than half the least subnormal exponent.
56069         * stdlib/test-strtod-round-data: Add more tests.
56070         * stdlib/tst-strtod-round.c (tests): Regenerated.
56071
56072 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56073
56074         [BZ #14143]
56075         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
56076         (__fe_mask_env): Likewise.
56077         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
56078         libm_hidden_proto and add function prototype.
56079         (__fe_mask_env): Add function prototype.
56080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
56081         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
56082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
56083         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
56084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
56085         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
56086
56087 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56088
56089         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
56090         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
56091
56092 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
56093
56094         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
56095         of htab_find_slot().
56096
56097 2013-11-11  David S. Miller  <davem@davemloft.net>
56098
56099         [BZ #16150]
56100         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
56101         symbol in the non-vis3 case in static builds.
56102         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
56103         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
56104         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
56105         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
56106
56107 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
56108
56109         [BZ #387]
56110         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
56111         it is empty.
56112
56113 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56114
56115         * benchtests/Makefile: Add bench-strtod.
56116         * benchtests/bench-strtod.c: New file: strtod benchtest
56117
56118 2013-11-11  Andreas Schwab  <schwab@suse.de>
56119
56120         [BZ #16153]
56121         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
56122         terminating NUL in key length.
56123
56124 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56125
56126         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
56127         Add artificial ODP entry for vDSO symbol for PPC64.
56128         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
56129         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
56130
56131 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
56132
56133         [BZ #15374]
56134         * nss/getent.c (services_keys): Recognize services starting with digit.
56135
56136 2013-11-06  David S. Miller  <davem@davemloft.net>
56137
56138         [BZ #15985]
56139         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
56140         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
56141
56142 2013-11-06  Will Newton  <will.newton@linaro.org>
56143
56144         * manual/memory.texi (Malloc Examples): Remove register
56145         keyword from examples.
56146
56147 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
56148
56149         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
56150
56151 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
56152
56153         [BZ #6981]
56154         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
56155         depending on [__GCC_IEC_559 > 0].
56156         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
56157         depending on [__GCC_IEC_559_COMPLEX > 0].
56158
56159 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
56160
56161         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
56162         to iso-639.def.
56163
56164 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
56165
56166         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
56167
56168 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
56169
56170         [BZ #16112]
56171         * malloc/malloc (malloc_info): Do not handle first bin as
56172         special case.
56173
56174 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
56175
56176         * locale/iso-639.def: Add Central Nahuatl (nhn).
56177
56178 2013-11-01  Bruno Haible  <bruno@clisp.org>
56179
56180         [BZ #7003]
56181         * manual/math.texi (BSD Random): Specify range upper bound as
56182         in POSIX.
56183
56184 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
56185
56186         * locale/iso-639.def: Add Meadow Mari (mhr).
56187
56188 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
56189
56190         [BZ #14752], [BZ #15763]
56191         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
56192         Validate name.
56193         * rt/tst_shm.c: Add test for escaping directory.
56194
56195 2013-10-31  Andreas Schwab  <schwab@suse.de>
56196
56197         [BZ #15917]
56198         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
56199         followed by 'x' as part of digit sequence.
56200         * stdio-common/tst-sscanf.c (double_tests2): New tests.
56201
56202 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
56203
56204         [BZ #16037]
56205         * configure.ac: allow GNU Make 4.0 and greater.
56206         * configure: Regenerated.
56207
56208 2013-10-30  Will Newton  <will.newton@linaro.org>
56209
56210         [BZ #16038]
56211         * malloc/hooks.c (memalign_check): Limit alignment to the
56212         maximum representable power of two.
56213         * malloc/malloc.c (__libc_memalign): Likewise.
56214         * malloc/tst-memalign.c (do_test): Add test for very
56215         large alignment values.
56216         * malloc/tst-posix_memalign.c (do_test): Likewise.
56217
56218 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
56219
56220         [BZ #11087]
56221         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
56222         (munmap_chunk): Likewise.
56223         (mremap_chunk): Likewise.
56224
56225 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
56226
56227         [BZ #15799]
56228         * stdlib/div.c (div): Remove obsolete code.
56229         * stdlib/ldiv.c (ldiv): Likewise.
56230         * stdlib/lldiv.c (lldiv): Likewise.
56231
56232 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
56233
56234         [BZ #16071]
56235         * nss/nss_files/files-XXX.c (get_contents_ret): New
56236         enumerator.
56237         (get_contents): New function.
56238         (internal_getent): Use it.  Expand size of LINEBUFLEN.
56239
56240 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
56241
56242         * configure.in: Moved to ...
56243         * configure.ac: ... here. Change reference to configure.in
56244         to configure.ac.
56245         * sysdeps/arm/preconfigure.ac: ... here.
56246         configure.in to configure.ac.
56247         * sysdeps/gnu/configure.in: Moved to ...
56248         * sysdeps/gnu/configure.ac: ... here.
56249         * sysdeps/i386/configure.in: Moved to ...
56250         * sysdeps/i386/configure.ac: ... here.
56251         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
56252         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
56253         * sysdeps/mach/configure.in: Moved to ...
56254         * sysdeps/mach/configure.ac: ... here.
56255         * sysdeps/mach/hurd/configure.in: Moved to ...
56256         * sysdeps/mach/hurd/configure.ac: ... here.
56257         * sysdeps/powerpc/configure.in: Moved to ...
56258         * sysdeps/powerpc/configure.ac: ... here.
56259         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
56260         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
56261         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
56262         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
56263         * sysdeps/s390/s390-32/configure.in: Moved to ...
56264         * sysdeps/s390/s390-32/configure.ac: ... here.
56265         * sysdeps/s390/s390-64/configure.in: Moved to ...
56266         * sysdeps/s390/s390-64/configure.ac: ... here.
56267         * sysdeps/sh/configure.in: Moved to ...
56268         * sysdeps/sh/configure.ac: ... here.
56269         * sysdeps/sparc/configure.in: Moved to ...
56270         * sysdeps/sparc/configure.ac: ... here.
56271         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
56272         * sysdeps/unix/sysv/linux/configure.ac: ... here.
56273         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
56274         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
56275         * sysdeps/x86_64/configure.in: Moved to ...
56276         * sysdeps/x86_64/configure.ac: ... here.
56277         * sysdeps/x86_64/preconfigure.in: Moved to ...
56278         * sysdeps/x86_64/preconfigure.ac: ... here.
56279         * aclocal.m4: Change reference to configure.in to configure.ac.
56280         * config.h.in: Likewise.
56281         * manual/install.texi: Likewise.
56282         * manual/maint.texi: Likewise.
56283         * Makefile: Likewise.
56284         * malloc/Makefile: Likewise.
56285         * nscd/Makefile: Likewise.
56286         * Makeconfig: Change reference to configure.in and
56287         preconfigure.in to configure.ac and preconfigure.ac
56288         respectively.
56289         * INSTALL: Regenerated.
56290         * configure: Likewise.
56291         * sysdeps/gnu/configure: Likewise.
56292         * sysdeps/i386/configure: Likewise.
56293         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
56294         * sysdeps/mach/configure: Likewise.
56295         * sysdeps/mach/hurd/configure: Likewise.
56296         * sysdeps/powerpc/configure: Likewise.
56297         * sysdeps/powerpc/powerpc32/configure: Likewise.
56298         * sysdeps/powerpc/powerpc64/configure: Likewise.
56299         * sysdeps/s390/s390-32/configure: Likewise.
56300         * sysdeps/s390/s390-64/configure: Likewise.
56301         * sysdeps/sh/configure: Likewise.
56302         * sysdeps/sparc/configure: Likewise.
56303         * sysdeps/unix/sysv/linux/configure: Likewise.
56304         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
56305         * sysdeps/x86_64/configure: Likewise.
56306         * sysdeps/x86_64/preconfigure: Likewise.
56307
56308 2013-10-29  Andreas Schwab  <schwab@suse.de>
56309
56310         * stdio-common/Makefile (tst-swscanf-ENV): Define.
56311
56312 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
56313
56314         * benchtests/pow-inputs: Add new inputs.
56315
56316         * benchtests/exp-inputs: Add new inputs.
56317
56318         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
56319         conditional check for return value.
56320         (__cos32): Likewise.
56321
56322 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
56323
56324         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
56325         to provide a boost for large inputs with word alignment.
56326         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
56327         implementation based on optimized PPC64 strcpy.
56328         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
56329         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
56330         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
56331         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
56332
56333 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56334
56335         [BZ #2801]
56336         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
56337
56338 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56339
56340         [BZ #14876]
56341         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
56342         * time/tst-strptime.c (day_tests): Add testcase.
56343
56344 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
56345
56346         [BZ #14029]
56347         * manual/pattern.texi: Acknowledge that fnmatch can fail.
56348
56349 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
56350
56351         [BZ #16074]
56352         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
56353         MAP_FAILED on error.
56354
56355 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
56356
56357         [BZ #16072]
56358         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
56359         heap for large requests.
56360
56361 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
56362
56363         [BZ #9954]
56364         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
56365         result if the result has no associated interface.
56366         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
56367         interface for all 127.X.Y.Z addresses.
56368
56369 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
56370
56371         * locale/iso-639.def: Add Ligurian (lij)
56372
56373 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
56374
56375         [BZ #15825]
56376         * sunrpc/rpc_main.c: Document rpcgen -5.
56377
56378 2013-10-19  Michael Stahl  <mstahl@redhat.com>
56379
56380         * elf/rtld.c (do_preload): Print the reason why preloading failed.
56381
56382 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56383
56384         [BZ #10278]
56385         * posix/glob.c: Match only directories when trailing slash is present.
56386         * posix/tst-gnuglob.c (my_opendir): Do not open files.
56387         (main): Add testcase.
56388
56389 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
56390
56391         [BZ #15670]
56392         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
56393
56394 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
56395
56396         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
56397         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
56398         AUTH_DES and cindex for FIPS 140-2.
56399         (DES Encryption): Add cindex FIPS 46-3.
56400
56401         * locale/locarchive.h (struct locarhandle): Add fname.
56402         * locale/programs/localedef.c (main): Pass ARGV[remaining]
56403         if an optional argument was specified to --list-archive,
56404         otherwise NULL.
56405         * locale/programs/locarchive.c (show_archive_content): Take new
56406         argument fname and pass it via ah.fname to open_archive.
56407         * locale/programs/localedef.h: Update decl.
56408         (open_archive): If AH->fname is non-null, open that file
56409         rather than the default file name, and don't ignore ENOENT.
56410         (create_archive): Set AH.fname to NULL.
56411         (delete_locales_from_archive): Likewise.
56412         (add_locales_to_archive): Likewise.
56413         * locale/programs/locfile.c (write_all_categories): Likewise.
56414
56415 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
56416             Aldy Hernandez  <aldyh@redhat.com>
56417
56418         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
56419         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
56420         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
56421         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
56422         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
56423         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
56424         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
56425         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
56426         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
56427         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
56428         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
56429         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
56430         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
56431         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
56432         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
56433         Likewise.
56434         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
56435         Likewise.
56436         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
56437         Likewise.
56438         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
56439         Likewise.
56440         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
56441         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
56442         Likewise.
56443         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
56444         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
56445         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
56446         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
56447         Likewise.
56448         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
56449         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
56450         * sysdeps/powerpc/preconfigure: Likewise.
56451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
56452         Likewise.
56453         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
56454         Replace contents of file by #include of <fenv_libc.h>.
56455         * sysdeps/powerpc/soft-fp/sfp-machine.h
56456         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
56457         and <sys/prctl.h>.
56458         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
56459         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
56460         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
56461         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
56462         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
56463         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
56464         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
56465         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
56466         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
56467         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
56468         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
56469         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
56470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
56471         Allow copysignl PLT reference to be missing.
56472
56473 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
56474             Joseph Myers  <joseph@codesourcery.com
56475
56476         [BZ #15948]
56477         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
56478         single character.
56479         (add_to_tablewc): Assert sequence of wide characters is nonempty.
56480
56481 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56482
56483         * elf/tst-tls-dlinfo.c: Don't include tls.h.
56484         * elf/tst-tls1.c: Likewise.
56485         * elf/tst-tls10.h: Likewise.
56486         * elf/tst-tls14.c: Likewise.
56487         * elf/tst-tls2.c: Likewise.
56488         * elf/tst-tls3.c: Likewise.
56489         * elf/tst-tls4.c: Likewise.
56490         * elf/tst-tls5.c: Likewise.
56491         * elf/tst-tls6.c: Likewise.
56492         * elf/tst-tls7.c: Likewise.
56493         * elf/tst-tls8.c: Likewise.
56494         * elf/tst-tls9.c: Likewise.
56495         * elf/tst-tlsmod1.c: Likewise.
56496         * elf/tst-tlsmod13.c: Likewise.
56497         * elf/tst-tlsmod13a.c: Likewise.
56498         * elf/tst-tlsmod14a.c: Likewise.
56499         * elf/tst-tlsmod16a.c: Likewise.
56500         * elf/tst-tlsmod16b.c: Likewise.
56501         * elf/tst-tlsmod2.c: Likewise.
56502         * elf/tst-tlsmod3.c: Likewise.
56503         * elf/tst-tlsmod4.c: Likewise.
56504         * elf/tst-tlsmod5.c: Likewise.
56505         * elf/tst-tlsmod6.c: Likewise.
56506
56507 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
56508
56509         [BZ #12486]
56510         * malloc/malloc.c: remove checks for statistics.
56511
56512 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56513
56514         [BZ #15277]
56515         * inet/inet_net.c (inet_network): Detect additional invalid strings.
56516         * inet/tst-network.c: Add testcase.
56517
56518 2013-10-17  Andreas Schwab  <schwab@suse.de>
56519
56520         [BZ #15218]
56521         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
56522         to determine canonical name.
56523
56524 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
56525
56526         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
56527         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
56528         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
56529         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
56530         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
56531         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
56532         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
56533         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
56534         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
56535         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
56536         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
56537         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
56538         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
56539         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
56540         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
56541         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
56542         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
56543         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
56544         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
56545         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
56546         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
56547         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
56548         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
56549         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
56550         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
56551         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
56552         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
56553         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
56554         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
56555         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
56556         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
56557         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
56558         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
56559         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
56560         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
56561         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
56562         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
56563         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
56564         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
56565         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
56566         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
56567         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
56568         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
56569         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
56570         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
56571         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
56572         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
56573         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
56574         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
56575         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
56576         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
56577         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
56578         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
56579         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
56580         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
56581         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
56582         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
56583         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
56584
56585 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
56586
56587         [BZ #16041]
56588         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
56589         make result into a quiet NaN.
56590
56591 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
56592
56593         * soft-fp/adddf3.c: Fix horizontal whitespace.
56594         * soft-fp/addsf3.c: Likewise.
56595         * soft-fp/addtf3.c: Likewise.
56596         * soft-fp/divdf3.c: Likewise.
56597         * soft-fp/divsf3.c: Likewise.
56598         * soft-fp/divtf3.c: Likewise.
56599         * soft-fp/double.h: Likewise.
56600         * soft-fp/eqdf2.c: Likewise.
56601         * soft-fp/eqsf2.c: Likewise.
56602         * soft-fp/eqtf2.c: Likewise.
56603         * soft-fp/extenddftf2.c: Likewise.
56604         * soft-fp/extended.h: Likewise.
56605         * soft-fp/extendsfdf2.c: Likewise.
56606         * soft-fp/extendsftf2.c: Likewise.
56607         * soft-fp/extendxftf2.c: Likewise.
56608         * soft-fp/fixdfdi.c: Likewise.
56609         * soft-fp/fixdfsi.c: Likewise.
56610         * soft-fp/fixdfti.c: Likewise.
56611         * soft-fp/fixsfdi.c: Likewise.
56612         * soft-fp/fixsfsi.c: Likewise.
56613         * soft-fp/fixsfti.c: Likewise.
56614         * soft-fp/fixtfdi.c: Likewise.
56615         * soft-fp/fixtfsi.c: Likewise.
56616         * soft-fp/fixtfti.c: Likewise.
56617         * soft-fp/fixunsdfdi.c: Likewise.
56618         * soft-fp/fixunsdfsi.c: Likewise.
56619         * soft-fp/fixunsdfti.c: Likewise.
56620         * soft-fp/fixunssfdi.c: Likewise.
56621         * soft-fp/fixunssfsi.c: Likewise.
56622         * soft-fp/fixunssfti.c: Likewise.
56623         * soft-fp/fixunstfdi.c: Likewise.
56624         * soft-fp/fixunstfsi.c: Likewise.
56625         * soft-fp/fixunstfti.c: Likewise.
56626         * soft-fp/floatdidf.c: Likewise.
56627         * soft-fp/floatdisf.c: Likewise.
56628         * soft-fp/floatditf.c: Likewise.
56629         * soft-fp/floatsidf.c: Likewise.
56630         * soft-fp/floatsisf.c: Likewise.
56631         * soft-fp/floatsitf.c: Likewise.
56632         * soft-fp/floattidf.c: Likewise.
56633         * soft-fp/floattisf.c: Likewise.
56634         * soft-fp/floattitf.c: Likewise.
56635         * soft-fp/floatundidf.c: Likewise.
56636         * soft-fp/floatundisf.c: Likewise.
56637         * soft-fp/floatunditf.c: Likewise.
56638         * soft-fp/floatunsidf.c: Likewise.
56639         * soft-fp/floatunsisf.c: Likewise.
56640         * soft-fp/floatunsitf.c: Likewise.
56641         * soft-fp/floatuntidf.c: Likewise.
56642         * soft-fp/floatuntisf.c: Likewise.
56643         * soft-fp/floatuntitf.c: Likewise.
56644         * soft-fp/fmadf4.c: Likewise.
56645         * soft-fp/fmasf4.c: Likewise.
56646         * soft-fp/fmatf4.c: Likewise.
56647         * soft-fp/gedf2.c: Likewise.
56648         * soft-fp/gesf2.c: Likewise.
56649         * soft-fp/getf2.c: Likewise.
56650         * soft-fp/ledf2.c: Likewise.
56651         * soft-fp/lesf2.c: Likewise.
56652         * soft-fp/letf2.c: Likewise.
56653         * soft-fp/muldf3.c: Likewise.
56654         * soft-fp/mulsf3.c: Likewise.
56655         * soft-fp/multf3.c: Likewise.
56656         * soft-fp/negdf2.c: Likewise.
56657         * soft-fp/negsf2.c: Likewise.
56658         * soft-fp/negtf2.c: Likewise.
56659         * soft-fp/op-1.h: Likewise.
56660         * soft-fp/op-2.h: Likewise.
56661         * soft-fp/op-4.h: Likewise.
56662         * soft-fp/op-8.h: Likewise.
56663         * soft-fp/op-common.h: Likewise.
56664         * soft-fp/quad.h: Likewise.
56665         * soft-fp/single.h: Likewise.
56666         * soft-fp/soft-fp.h: Likewise.
56667         * soft-fp/sqrtdf2.c: Likewise.
56668         * soft-fp/sqrtsf2.c: Likewise.
56669         * soft-fp/sqrttf2.c: Likewise.
56670         * soft-fp/subdf3.c: Likewise.
56671         * soft-fp/subsf3.c: Likewise.
56672         * soft-fp/subtf3.c: Likewise.
56673         * soft-fp/truncdfsf2.c: Likewise.
56674         * soft-fp/trunctfdf2.c: Likewise.
56675         * soft-fp/trunctfsf2.c: Likewise.
56676         * soft-fp/trunctfxf2.c: Likewise.
56677         * soft-fp/unorddf2.c: Likewise.
56678         * soft-fp/unordsf2.c: Likewise.
56679         * soft-fp/unordtf2.c: Likewise.
56680
56681 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
56682
56683         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
56684         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
56685
56686 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
56687
56688         * elf/dl-libc.c: Clear initfini list after freeing.
56689
56690 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
56691
56692         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
56693         * soft-fp/addsf3.c: Likewise.
56694         * soft-fp/addtf3.c: Likewise.
56695         * soft-fp/divdf3.c: Likewise.
56696         * soft-fp/divsf3.c: Likewise.
56697         * soft-fp/divtf3.c: Likewise.
56698         * soft-fp/double.h: Likewise.
56699         * soft-fp/eqdf2.c: Likewise.
56700         * soft-fp/eqsf2.c: Likewise.
56701         * soft-fp/eqtf2.c: Likewise.
56702         * soft-fp/extenddftf2.c: Likewise.
56703         * soft-fp/extended.h: Likewise.
56704         * soft-fp/extendsfdf2.c: Likewise.
56705         * soft-fp/extendsftf2.c: Likewise.
56706         * soft-fp/extendxftf2.c: Likewise.
56707         * soft-fp/fixdfdi.c: Likewise.
56708         * soft-fp/fixdfsi.c: Likewise.
56709         * soft-fp/fixdfti.c: Likewise.
56710         * soft-fp/fixsfdi.c: Likewise.
56711         * soft-fp/fixsfsi.c: Likewise.
56712         * soft-fp/fixsfti.c: Likewise.
56713         * soft-fp/fixtfdi.c: Likewise.
56714         * soft-fp/fixtfsi.c: Likewise.
56715         * soft-fp/fixtfti.c: Likewise.
56716         * soft-fp/fixunsdfdi.c: Likewise.
56717         * soft-fp/fixunsdfsi.c: Likewise.
56718         * soft-fp/fixunsdfti.c: Likewise.
56719         * soft-fp/fixunssfdi.c: Likewise.
56720         * soft-fp/fixunssfsi.c: Likewise.
56721         * soft-fp/fixunssfti.c: Likewise.
56722         * soft-fp/fixunstfdi.c: Likewise.
56723         * soft-fp/fixunstfsi.c: Likewise.
56724         * soft-fp/fixunstfti.c: Likewise.
56725         * soft-fp/floatdidf.c: Likewise.
56726         * soft-fp/floatdisf.c: Likewise.
56727         * soft-fp/floatditf.c: Likewise.
56728         * soft-fp/floatsidf.c: Likewise.
56729         * soft-fp/floatsisf.c: Likewise.
56730         * soft-fp/floatsitf.c: Likewise.
56731         * soft-fp/floattidf.c: Likewise.
56732         * soft-fp/floattisf.c: Likewise.
56733         * soft-fp/floattitf.c: Likewise.
56734         * soft-fp/floatundidf.c: Likewise.
56735         * soft-fp/floatundisf.c: Likewise.
56736         * soft-fp/floatunsidf.c: Likewise.
56737         * soft-fp/floatunsisf.c: Likewise.
56738         * soft-fp/floatuntidf.c: Likewise.
56739         * soft-fp/floatuntisf.c: Likewise.
56740         * soft-fp/floatuntitf.c: Likewise.
56741         * soft-fp/fmadf4.c: Likewise.
56742         * soft-fp/fmasf4.c: Likewise.
56743         * soft-fp/fmatf4.c: Likewise.
56744         * soft-fp/gedf2.c: Likewise.
56745         * soft-fp/gesf2.c: Likewise.
56746         * soft-fp/getf2.c: Likewise.
56747         * soft-fp/ledf2.c: Likewise.
56748         * soft-fp/lesf2.c: Likewise.
56749         * soft-fp/letf2.c: Likewise.
56750         * soft-fp/muldf3.c: Likewise.
56751         * soft-fp/mulsf3.c: Likewise.
56752         * soft-fp/multf3.c: Likewise.
56753         * soft-fp/negdf2.c: Likewise.
56754         * soft-fp/negsf2.c: Likewise.
56755         * soft-fp/negtf2.c: Likewise.
56756         * soft-fp/op-1.h: Likewise.
56757         * soft-fp/op-2.h: Likewise.
56758         * soft-fp/op-4.h: Likewise.
56759         * soft-fp/op-8.h: Likewise.
56760         * soft-fp/op-common.h: Likewise.
56761         * soft-fp/quad.h: Likewise.
56762         * soft-fp/single.h: Likewise.
56763         * soft-fp/soft-fp.h: Likewise.
56764         * soft-fp/sqrtdf2.c: Likewise.
56765         * soft-fp/sqrtsf2.c: Likewise.
56766         * soft-fp/sqrttf2.c: Likewise.
56767         * soft-fp/subdf3.c: Likewise.
56768         * soft-fp/subsf3.c: Likewise.
56769         * soft-fp/subtf3.c: Likewise.
56770         * soft-fp/truncdfsf2.c: Likewise.
56771         * soft-fp/trunctfdf2.c: Likewise.
56772         * soft-fp/trunctfsf2.c: Likewise.
56773         * soft-fp/trunctfxf2.c: Likewise.
56774         * soft-fp/unorddf2.c: Likewise.
56775         * soft-fp/unordsf2.c: Likewise.
56776         * soft-fp/unordtf2.c: Likewise.
56777
56778 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
56779
56780         [BZ #15672]
56781         * misc/error.c (error_tail): Fix possible buffer overflow.
56782
56783 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
56784
56785         [BZ #13028]
56786         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
56787         address.
56788
56789 2013-10-14  P. J. McDermott  <pj@pehjota.net>
56790
56791         [BZ #832]
56792         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
56793         testing pipefail option.
56794
56795 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56796
56797         * soft-fp/double.h: Indent preprocessor directives inside #if.
56798         * soft-fp/extended.h: Likewise.
56799         * soft-fp/op-2.h: Likewise.
56800         * soft-fp/op-4.h: Likewise.
56801         * soft-fp/op-common.h: Likewise.
56802         * soft-fp/quad.h: Likewise.
56803         * soft-fp/single.h: Likewise.
56804         * soft-fp/soft-fp.h: Likewise.
56805
56806 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
56807
56808         * iconv/iconv_prog.c: Fix typos.
56809         * stdio-common/psiginfo-data.h: Likewise.
56810
56811 2013-10-12   Reuben Thomas <rrt@sc3d.org>
56812
56813         [BZ #15764]
56814         * locale/setlocale.c: Fix typo.
56815
56816 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
56817
56818         [BZ #16036]
56819         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
56820         signaling NaN arguments.
56821         * soft-fp/unordsf2.c (__unordsf2): Likewise.
56822         * soft-fp/unordtf2.c (__unordtf2): Likewise.
56823
56824         [BZ #14910]
56825         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
56826         unordered operands.
56827         * soft-fp/gesf2.c (__gesf2): Likewise.
56828         * soft-fp/getf2.c (__getf2): Likewise.
56829         * soft-fp/ledf2.c (__ledf2): Likewise.
56830         * soft-fp/lesf2.c (__lesf2): Likewise.
56831         * soft-fp/letf2.c (__letf2): Likewise.
56832
56833         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
56834         * soft-fp/eqsf2.c (__eqsf2): Likewise.
56835         * soft-fp/eqtf2.c (__eqtf2): Likewise.
56836         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
56837         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
56838         * soft-fp/fixdfti.c (__fixdfti): Likewise.
56839         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
56840         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
56841         * soft-fp/fixsfti.c (__fixsfti): Likewise.
56842         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
56843         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
56844         * soft-fp/fixtfti.c (__fixtfti): Likewise.
56845         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
56846         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
56847         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
56848         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
56849         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
56850         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
56851         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
56852         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
56853         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
56854         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
56855         * soft-fp/floatdisf.c (__floatdisf): Likewise.
56856         * soft-fp/floatsisf.c (__floatsisf): Likewise.
56857         * soft-fp/floattidf.c (__floattidf): Likewise.
56858         * soft-fp/floattisf.c (__floattisf): Likewise.
56859         * soft-fp/floattitf.c (__floattitf): Likewise.
56860         * soft-fp/floatundidf.c (__floatundidf): Likewise.
56861         * soft-fp/floatundisf.c (__floatundisf): Likewise.
56862         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
56863         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
56864         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
56865         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
56866         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
56867         * soft-fp/gesf2.c (__gesf2): Likewise.
56868         * soft-fp/getf2.c (__getf2): Likewise.
56869         * soft-fp/ledf2.c (__ledf2): Likewise.
56870         * soft-fp/lesf2.c (__lesf2): Likewise.
56871         * soft-fp/letf2.c (__letf2): Likewise.
56872
56873         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
56874         Undefine and redefine.
56875         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
56876         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
56877         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
56878         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
56879         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56880         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
56881         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56882         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
56883         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56884         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
56885         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56886         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
56887         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56888         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
56889         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
56890
56891         [BZ #16032]
56892         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
56893         without decrementing exponent if mantissa >= that for the
56894         denominator, not >.
56895         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
56896         denominator, not >.  Decrement exponent in < case instead of
56897         incrementing in >= case.
56898         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
56899         without decrementing exponent if mantissa >= that for the
56900         denominator, not >.
56901
56902         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
56903         computing saturated result for unsigned overflow.
56904
56905 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
56906             Jeff Law  <law@redhat.com>
56907
56908         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
56909         (atan2Mp): Add systemtap probe marker.
56910         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
56911         (__ieee754_log): Add systemtap probe marker.
56912         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
56913         (atanMp): Add systemtap probe marker.
56914         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
56915         (tanMp): Add systemtap probe marker.
56916         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
56917         (__slowexp): Add systemtap probe marker.
56918         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
56919         (__slowpow): Add systemtap probe marker.
56920         * manual/probes.texi: Document probes.
56921
56922 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
56923
56924         [BZ #15362]
56925         * libio/fileops.c (_IO_new_file_write): Return count of bytes
56926         written.
56927         (_IO_new_file_xsputn): Don't return EOF if nothing has been
56928         written.
56929         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
56930         written to buffer but not flushed.
56931         * libio/iofwrite_u.c:  Likewise.
56932         * libio/iopadn.c:  Return bytes returned even if EOF was
56933         encountered.
56934         * libio/iowpadn.c:  Likewise.
56935         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
56936         if _IO_padn does not write the whole buffer.
56937         [!COMPILE_WPRINTF] (PAD): Likewise.
56938
56939 2013-10-10  David S. Miller  <davem@davemloft.net>
56940
56941         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
56942         directory block.
56943
56944 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
56945
56946         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
56947         instead of FSF address.
56948         * soft-fp/fixdfti.c: Likewise.
56949         * soft-fp/fixsfti.c: Likewise.
56950         * soft-fp/fixtfti.c: Likewise.
56951         * soft-fp/fixunsdfti.c: Likewise.
56952         * soft-fp/fixunssfti.c: Likewise.
56953         * soft-fp/fixunstfti.c: Likewise.
56954         * soft-fp/floattidf.c: Likewise.
56955         * soft-fp/floattisf.c: Likewise.
56956         * soft-fp/floattitf.c: Likewise.
56957         * soft-fp/floatuntidf.c: Likewise.
56958         * soft-fp/floatuntisf.c: Likewise.
56959         * soft-fp/floatuntitf.c: Likewise.
56960         * soft-fp/trunctfxf2.c: Likewise.
56961
56962         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
56963         * soft-fp/fixdfti.c: Likewise.
56964         * soft-fp/fixsfti.c: Likewise.
56965         * soft-fp/fixtfti.c: Likewise.
56966         * soft-fp/fixunsdfti.c: Likewise.
56967         * soft-fp/fixunssfti.c: Likewise.
56968         * soft-fp/fixunstfti.c: Likewise.
56969         * soft-fp/floattidf.c: Likewise.
56970         * soft-fp/floattisf.c: Likewise.
56971         * soft-fp/floattitf.c: Likewise.
56972         * soft-fp/floatuntidf.c: Likewise.
56973         * soft-fp/floatuntisf.c: Likewise.
56974         * soft-fp/floatuntitf.c: Likewise.
56975         * soft-fp/trunctfxf2.c: Likewise.
56976
56977 2013-10-10  David S. Miller  <davem@davemloft.net>
56978
56979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
56980
56981 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
56982
56983         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
56984         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
56985         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
56986         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
56987         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
56988         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
56989         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
56990
56991         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
56992         for NaNs before doing comparisons on argument.
56993         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
56994         Likewise.
56995
56996 2013-10-10  Will Newton  <will.newton@linaro.org>
56997
56998         * malloc/hooks.c (memalign_check): Ensure the value of bytes
56999         passed to _int_memalign does not overflow.
57000
57001 2013-10-10  Torvald Riegel  <triegel@redhat.com>
57002
57003         * scripts/bench.pl: Add include-sources directive.
57004         * benchtests/README: Update documentation.
57005
57006 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
57007
57008         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
57009         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
57010         instead of FP_INIT_ROUNDMODE.
57011         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
57012         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
57013
57014         [BZ #16034]
57015         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
57016         copy class of input value.
57017         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
57018         not handle exceptions.
57019         * soft-fp/negsf2.c (__negsf2): Likewise.
57020         * soft-fp/negtf2.c (__negtf2): Likewise.
57021         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
57022
57023 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
57024
57025         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
57026         semicolon.  From Linux kernel.
57027
57028 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
57029
57030         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
57031
57032 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
57033
57034         [BZ #156]
57035         * manual/socket.texi: Added statement about buffer
57036         for gethostbyname2_r.
57037
57038 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
57039
57040         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
57041         Use .p2align directive instead, throughout.
57042         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
57043         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
57044         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
57045         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
57046         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
57047         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
57048         * sysdeps/x86_64/strchr.S: Likewise.
57049         * sysdeps/x86_64/strrchr.S: Likewise.
57050
57051 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
57052
57053         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
57054
57055         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
57056
57057         * sysdeps/generic/math_private.h (__mpsin1): Remove
57058         declaration.
57059         (__mpcos1): Likewise.
57060         (__mpsin): New argument __range_reduce.
57061         (__mpcos): Likewise.
57062         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
57063         (slow): Use __mpsin and __mpcos.
57064         (slow1): Likewise.
57065         (slow2): Likewise.
57066         (sloww): Likewise.
57067         (sloww1): Likewise.
57068         (sloww2): Likewise.
57069         (bsloww): Likewise.
57070         (bsloww1): Likewise.
57071         (bsloww2): Likewise.
57072         (cslow2): Likewise.
57073         (csloww): Likewise.
57074         (csloww1): Likewise.
57075         (csloww2): Likewise.
57076         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
57077         range_reduce.  Merge in __mpsin1.
57078         (__mpcos): Likewise.
57079         (__mpsin1): Remove.
57080         (__mpcos1): Likewise.
57081
57082 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
57083
57084         * locale/loadlocale.c (_nl_intern_locale_data): Use
57085         LOCFILE_ALIGNED_P.
57086         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
57087         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
57088         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
57089         obstack data is appropriately aligned.
57090         (obstack_int32_grow_fast): Likewise.
57091         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
57092         * locale/programs/locfile.c (add_locale_uint32): Likewise.
57093         (add_locale_uint32_array): Likewise.
57094
57095 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
57096
57097         * benchtests/Makefile: Remove ARGLIST and RET variables.
57098         ($(objpfx)bench-%.c): Pass only function name to the script.
57099         * benchtests/README: Update documentation.
57100         * benchtests/acos-inputs: Add new directives.
57101         * benchtests/acosh-inputs: Likewise.
57102         * benchtests/asin-inputs: Likewise.
57103         * benchtests/asinh-inputs: Likewise.
57104         * benchtests/atan-inputs: Likewise.
57105         * benchtests/atanh-inputs: Likewise.
57106         * benchtests/cos-inputs: Likewise.
57107         * benchtests/cosh-inputs: Likewise.
57108         * benchtests/exp-inputs: Likewise.
57109         * benchtests/log-inputs: Likewise.
57110         * benchtests/pow-inputs: Likewise.
57111         * benchtests/rint-inputs: Likewise.
57112         * benchtests/sin-inputs: Likewise.
57113         * benchtests/sinh-inputs: Likewise.
57114         * benchtests/tan-inputs: Likewise.
57115         * benchtests/tanh-inputs: Likewise.
57116         * scripts/bench.pl: Add support for new directives.
57117
57118 2013-10-07  Alan Modra  <amodra@gmail.com>
57119
57120         * README: Fix careless merge.
57121
57122 2013-10-05  Alan Modra  <amodra@gmail.com>
57123
57124         * NEWS: Mention powerpc64le support and bugs fixed.
57125         * README: Both big-endian and little-endian powerpc64 supported.
57126
57127 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
57128
57129         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
57130         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
57131         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
57132         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
57133
57134 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
57135
57136         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
57137         match prototype.
57138
57139 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
57140
57141         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
57142         Move -mhard-float appending from
57143         ports/sysdeps/powerpc/powerpc32/Makefile.
57144         [$(with-fp) = yes] (ASFLAGS): Likewise.
57145         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
57146         * sysdeps/powerpc/nofpu: Move directory from
57147         ports/sysdeps/powerpc/nofpu.
57148         * sysdeps/powerpc/soft-fp: Move directory from
57149         ports/sysdeps/powerpc/soft-fp.
57150         * sysdeps/powerpc/powerpc32/405: Move directory from
57151         ports/sysdeps/powerpc/powerpc32/405.
57152         * sysdeps/powerpc/powerpc32/440: Move directory from
57153         ports/sysdeps/powerpc/powerpc32/440.
57154         * sysdeps/powerpc/powerpc32/464: Move directory from
57155         ports/sysdeps/powerpc/powerpc32/464.
57156         * sysdeps/powerpc/powerpc32/476: Move directory from
57157         ports/sysdeps/powerpc/powerpc32/476.
57158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
57159         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
57160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
57161         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
57162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
57163         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
57164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
57165         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
57166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
57167         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
57168         * README: Update for powerpc-*-linux-gnu software floating point
57169         support in libc.
57170
57171         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
57172         case to powerpc/powerpc32*.
57173         * sysdeps/unix/sysv/linux/configure: Regenerated.
57174
57175         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
57176         (_FPU_MASK_OM): Define as 0x04.
57177         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
57178         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
57179         0x00c10080.
57180         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
57181         0x0000003c.
57182         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
57183
57184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
57185         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
57186         getcontext_e500.
57187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
57188         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
57189         setcontext_e500.
57190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
57191         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
57192         and setcontext_e500.
57193
57194 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
57195
57196         * locale/iso-3166.def: Update iso-1366.def and related occurrences
57197
57198 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
57199
57200         * manual/threads.texi (Default Thread Attributes): Fix typo.
57201
57202 2013-10-04  Will Newton  <will.newton@linaro.org>
57203
57204         * malloc/Makefile: Add tst-memalign.
57205         * malloc/tst-memalign.c: New file.
57206
57207         * malloc/tst-posix_memalign.c: Add comments.
57208         (do_test): Add comments and call free on all potentially
57209         allocated pointers. Add space after cast.
57210
57211         * malloc/tst-pvalloc.c: Add comments.
57212         (do_test): Add comments and call free on all potentially
57213         allocated pointers. Remove duplicate check for NULL pointer.
57214         Add space after cast.
57215
57216         * malloc/tst-valloc.c: Add comments.
57217         (do_test): Add comments and call free on all potentially
57218         allocated pointers. Remove duplicate check for NULL pointer.
57219         Add space after cast.
57220
57221 2013-10-04  Alan Modra  <amodra@gmail.com>
57222
57223         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
57224         Use stdint types in rather than __attribute__((mode())).
57225         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
57226
57227 2013-10-04  Alan Modra  <amodra@gmail.com>
57228
57229         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
57230         Correct handling of unaligned relocs for little-endian.
57231         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
57232
57233 2013-10-04  Alan Modra  <amodra@gmail.com>
57234
57235         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
57236         * configure: Regenerate.
57237         * nptl/shlib-versions: Powerpc*le starts at 2.18.
57238         * shlib-versions: Likewise.
57239
57240 2013-10-04  Alan Modra  <amodra@gmail.com>
57241
57242         * string/tester.c (test_memrchr): Increment reported test cycle.
57243
57244 2013-10-04  Alan Modra  <amodra@gmail.com>
57245
57246         * string/test-memcpy.c (do_one_test): When reporting errors, print
57247         string address and don't overrun end of string.
57248
57249 2013-10-04  Alan Modra  <amodra@gmail.com>
57250
57251         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
57252         insrdi.  Make better use of reg selection to speed exit slightly.
57253         Schedule entry path a little better.  Remove useless "are we done"
57254         checks on entry to main loop.  Handle wrapping around zero address.
57255         Correct main loop count.  Handle single left-over word from main
57256         loop inline rather than by using loop_small.  Remove extra word
57257         case in loop_small caused by wrong loop count.  Add little-endian
57258         support.
57259         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
57260         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
57261         cache hint.
57262         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
57263         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
57264         support.  Avoid rlwimi.
57265         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
57266
57267 2013-10-04  Alan Modra  <amodra@gmail.com>
57268
57269         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
57270         insrdi.  Formatting.
57271         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
57272         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
57273         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
57274         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
57275         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
57276         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
57277
57278 2013-10-04  Alan Modra  <amodra@gmail.com>
57279
57280         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
57281         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
57282         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
57283         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
57284         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
57285         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
57286         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
57287         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
57288         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
57289         use of regs.  Use power7 mtocrf.  Tidy function tails.
57290
57291 2013-10-04  Alan Modra  <amodra@gmail.com>
57292
57293         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
57294         Formatting.  Consistently use rXXX register defines or rN defines.
57295         Use early exit labels that avoid restoring unused non-volatile regs.
57296         Make cr field use more consistent with rWORDn compares.  Rename
57297         regs used as shift registers for unaligned loop, using rN defines
57298         for short lifetime/multiple use regs.
57299         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
57300         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
57301         addi 1,1,64 to pop stack frame.  Simplify return value code.
57302         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
57303
57304 2013-10-04  Alan Modra  <amodra@gmail.com>
57305
57306         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
57307         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
57308         rather than rlwimi.
57309         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
57310         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
57311         little-endian support.  Correct typos.
57312         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
57313         rather than rlwimi.
57314         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
57315         in loop and entry code to keep "and." results.
57316         (strchr): Add little-endian support.  Comment.  Move cntlzd
57317         earlier in tail.
57318         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
57319
57320 2013-10-04  Alan Modra  <amodra@gmail.com>
57321
57322         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
57323         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
57324         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
57325         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
57326
57327 2013-10-04  Alan Modra  <amodra@gmail.com>
57328
57329         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
57330         (rTMP): Define as r11.
57331         (strcmp): Add little-endian support.  Optimise tail.
57332         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
57333         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
57334         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
57335         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
57336         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
57337         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
57338         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
57339
57340 2013-10-04  Alan Modra  <amodra@gmail.com>
57341
57342         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
57343         little-endian support.  Remove unnecessary "are we done" tests.
57344         Handle "s" wrapping around zero and extremely large "size".
57345         Correct main loop count.  Handle single left-over word from main
57346         loop inline rather than by using small_loop.  Correct comments.
57347         Delete "zero" tail, use "end_max" instead.
57348         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
57349
57350 2013-10-04  Alan Modra  <amodra@gmail.com>
57351
57352         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
57353         support.  Don't branch over align.
57354         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
57355         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
57356         support.  Rearrange tmp reg use to suit.  Comment.
57357         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
57358
57359 2013-10-04  Alan Modra  <amodra@gmail.com>
57360
57361         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
57362
57363 2013-10-04  Alan Modra  <amodra@gmail.com>
57364
57365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
57366         conditional form of branch and link when obtaining pc.
57367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
57368
57369 2013-10-04  Alan Modra  <amodra@gmail.com>
57370
57371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
57372         HIWORD/LOWORD.
57373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
57374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
57375
57376 2013-10-04  Alan Modra  <amodra@gmail.com>
57377
57378         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
57379         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
57380         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
57381         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
57382         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
57383         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
57384         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
57385         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
57386         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
57387         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
57388
57389 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57390             Alistair Popple <alistair@ozlabs.au.ibm.com>
57391             Alan Modra <amodra@gmail.com>
57392
57393         [BZ #15723]
57394         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
57395         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
57396         _dl_hwcap access for little-endian.
57397         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
57398         destroy vmx regs when saving unaligned.
57399         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
57400         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
57401         destroy vmx regs when saving unaligned.
57402
57403 2013-10-04  Alan Modra  <amodra@gmail.com>
57404
57405         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
57406         Don't use a union to pack hi/low value.
57407
57408 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57409
57410         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
57411         for little-endian.
57412         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
57413         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
57414         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
57415         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
57416         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
57417
57418 2013-10-04  Alan Modra  <amodra@gmail.com>
57419
57420         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
57421         constants to usual value for .cst8 section, and remove redundant
57422         high address load.
57423         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
57424         constant for 0x1p52.  Load little-endian words of double from
57425         correct stack offsets.
57426
57427 2013-10-04  Alan Modra  <amodra@gmail.com>
57428
57429         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
57430         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
57431         words of double from correct stack offsets.
57432         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
57433         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
57434         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
57435         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
57436         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
57437         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
57438         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
57439         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
57440         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
57441         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
57442         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
57443         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
57444         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
57445         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
57446         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
57447         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
57448         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
57449
57450 2013-10-04  Alan Modra  <amodra@gmail.com>
57451
57452         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
57453         64-bit int/double union.
57454         (_FPU_SETCW): Likewise.
57455         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
57456         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
57457
57458 2013-10-04  Alan Modra  <amodra@gmail.com>
57459
57460         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
57461         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
57462
57463 2013-10-04  Alan Modra  <amodra@gmail.com>
57464
57465         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
57466         use vector int constants.
57467         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
57468
57469 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57470
57471         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
57472         array with long long.
57473         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
57474         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
57475         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
57476         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
57477         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
57478         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
57479         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
57480         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
57481         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
57482         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
57483         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
57484         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
57485         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
57486
57487 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
57488
57489         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
57490         (__signbit): Likewise.  Correct for little-endian.
57491         (__signbitl): Call __signbit.
57492         (lrint): Correct for little-endian.
57493         (lrintf): Call lrint.
57494
57495 2013-10-04  Alan Modra  <amodra@gmail.com>
57496
57497         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
57498         union 32-bit int array member with 64-bit int array.
57499         (t515, tm256): Double rather than long double.
57500         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
57501
57502 2013-10-04  Alan Modra  <amodra@gmail.com>
57503
57504         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
57505         Delete.
57506         (IEEE854_LONG_DOUBLE_BIAS): Delete.
57507         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
57508         version of math_ldbl.h.
57509
57510 2013-10-04  Alan Modra  <amodra@gmail.com>
57511
57512         [BZ #15734], [BZ #15735]
57513         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
57514         all uses of ieee875 long double macros and unions.  Simplify test
57515         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
57516         ldbl_extract_mantissa value for ix,iy exponents.  Properly
57517         normalize after ldbl_extract_mantissa, and don't add hidden bit
57518         already handled.  Don't treat low word of ieee854 mantissa like
57519         low word of IBM long double and mask off bit when testing for
57520         zero.
57521         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
57522         all uses of ieee875 long double macros and unions.  Simplify tests
57523         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
57524         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
57525         two1022, instead use their values.  Recognise that tests for large
57526         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
57527         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
57528         Rewrite all uses of ieee875 long double macros and unions.  Simplify
57529         test for 0.0L and nan.  Correct negation.
57530         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
57531         ieee875 long double macros and unions.  Correct output for large
57532         magnitude x.  Correct absolute value calculation.
57533         (__erfcl): Likewise.
57534         * math/libm-test.inc: Add tests for errors discovered in IBM long
57535         double versions of fmodl, remainderl, erfl and erfcl.
57536
57537 2013-10-04  Alan Modra  <amodra@gmail.com>
57538
57539         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
57540         all uses of ieee854 long double macros and unions.  Simplify tests
57541         for long doubles that are fully specified by the high double.
57542         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
57543         Likewise.
57544         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
57545         Remove dead code too.
57546         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
57547         (__ieee754_ynl): Likewise.
57548         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
57549         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
57550         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
57551         Remove dead code too.
57552         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
57553         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
57554         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
57555         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
57556         Simplify.
57557         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
57558         Simplify.
57559         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
57560         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
57561         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
57562         Comment on variable precision.
57563         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
57564         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
57565         Likewise.
57566         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
57567         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
57568         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
57569         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
57570         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
57571
57572 2013-10-04  Alan Modra  <amodra@gmail.com>
57573
57574         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
57575         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
57576         all uses of ieee854 long double macros and unions.
57577         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
57578         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
57579         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
57580         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
57581         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
57582         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
57583         Likewise.
57584         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
57585         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
57586         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
57587         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
57588         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
57589         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
57590         Simplify sign and nan test too.
57591         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
57592         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
57593         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
57594         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
57595         Likewise.
57596         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
57597         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
57598         Likewise.
57599         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
57600         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
57601         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
57602         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
57603         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
57604         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
57605
57606 2013-10-04  Alan Modra  <amodra@gmail.com>
57607
57608         * stdio-common/printf_size.c (__printf_size): Don't use
57609         union ieee854_long_double in fpnum union.
57610         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
57611         signbit macro to retrieve sign from long double.
57612         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
57613         retrieve sign from long double.
57614         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
57615         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
57616         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
57617         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
57618         * math/test-misc.c (main): Don't use union ieee854_long_double.
57619
57620 2013-10-04  Alan Modra  <amodra@gmail.com>
57621
57622         [BZ #15680]
57623         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
57624         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
57625         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
57626         calculation.  Remove unnecessary test for denormal exponent.
57627         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
57628         Correct handling of denormals.  Avoid undefined shift behaviour.
57629         Correct normalisation of low mantissa when low double is denormal.
57630         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
57631         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
57632         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
57633         Correct normalisation of low mantissa.  Test for overflow of high
57634         mantissa and normalise.
57635         (ldbl_nearbyint): Use more readable constant for two52.
57636         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
57637         (__mpn_construct_long_double): Fix test for overflow of high
57638         mantissa and correct normalisation.  Avoid undefined shift.
57639
57640 2013-10-04  Alan Modra  <amodra@gmail.com>
57641
57642         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
57643         (union ibm_extended_long_double): Define as an array of ieee754_double.
57644         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
57645         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
57646         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
57647         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
57648         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
57649         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
57650         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
57651         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
57652         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
57653         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
57654         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57655
57656 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
57657
57658         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
57659         page size instead of calling getpagesize.
57660
57661         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
57662         (LOCFILE_ALIGN_MASK): Likewise.
57663         (LOCFILE_ALIGN_UP): Likewise.
57664         (LOCFILE_ALIGNED_P): Likewise.
57665         * locale/programs/ld-collate.c (collate_output): Use the new
57666         macros instead of __alignof__ (int32_t).
57667         * locale/weight.h (findidx): Likewise.
57668
57669 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
57670
57671         [BZ #431]
57672         * manual/string.texi: Fix strncat and wcsncat.
57673
57674 2013-10-03  Brooks Moses  <bmoses@google.com>
57675
57676         [BZ #15915]
57677         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
57678         * Makerules: ...here, and adjust associated comments.
57679
57680 2013-10-02  Will Newton  <will.newton@linaro.org>
57681
57682         * malloc/Makefile: Add tst-pvalloc.
57683         * malloc/tst-pvalloc.c: New file.
57684
57685 2013-10-02  Will Newton  <will.newton@linaro.org>
57686
57687         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
57688         improve test coverage.
57689
57690 2013-10-02  Will Newton  <will.newton@linaro.org>
57691
57692         * malloc/Makefile: Add tst-posix_memalign.
57693         * malloc/tst-posix_memalign.c: New file.
57694
57695 2013-10-01  Eric Blake  <eblake@redhat.com>
57696
57697         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
57698         Use __THROWNL rather than __THROW on static functions.
57699
57700 2013-09-30  Petr Machata  <pmachata@redhat.com>
57701
57702         * elf/elf.h (R_AARCH64_ABS16): New macro.
57703         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
57704         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
57705         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
57706         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
57707         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
57708         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
57709         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
57710         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
57711         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
57712         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
57713         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
57714         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
57715         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
57716         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
57717         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
57718         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
57719         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
57720         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
57721         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
57722         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
57723         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
57724         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
57725         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
57726         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
57727         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
57728         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
57729         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
57730         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
57731         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
57732         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
57733         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
57734         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
57735         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
57736         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
57737         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
57738         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
57739         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
57740         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
57741         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
57742         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
57743         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
57744         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
57745         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
57746         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
57747         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
57748         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
57749         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
57750         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
57751         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
57752         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
57753         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
57754         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
57755         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
57756         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
57757         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
57758         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
57759         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
57760         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
57761         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
57762         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
57763         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
57764         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
57765         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
57766         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
57767         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
57768         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
57769         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
57770         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
57771         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
57772         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
57773         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
57774         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
57775         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
57776         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
57777         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
57778         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
57779         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
57780         (R_AARCH64_TLSDESC_LDR): Likewise.
57781         (R_AARCH64_TLSDESC_ADD): Likewise.
57782         (R_AARCH64_TLSDESC_CALL): Likewise.
57783
57784 2013-09-30  Andreas Schwab  <schwab@suse.de>
57785
57786         [BZ #15048]
57787         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
57788         the nss database lookup.
57789         * nscd/initgrcache.c (addinitgroupsX): Likewise.
57790         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
57791
57792 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
57793
57794         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
57795
57796 2013-09-28  P. J. McDermott  <pj@pehjota.net>
57797
57798         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
57799         ${Bash-specific parameter/pattern/string} parameter expansion.
57800         * sysdeps/unix/make-syscalls.sh: Likewise.
57801
57802 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
57803
57804         * sysdeps/sh/stackguard-macros.h: New file.
57805
57806 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
57807
57808         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
57809         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
57810         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
57811         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
57812         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57813         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
57814
57815 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
57816
57817         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
57818         Fix thread ID register.
57819
57820 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
57821
57822         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
57823         [POSIX || UNIX98]: Require rather than permitting all symbols from
57824         <time.h>.
57825         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
57826         element of struct sched_param.
57827         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
57828         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
57829         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
57830         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
57831         constant.
57832
57833 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
57834
57835         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
57836         argument calculation.
57837
57838 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57839
57840         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
57841         Expect macro.
57842         [POSIX] (pthread_attr_t): Do not require type.
57843         [POSIX] (pthread_cond_t): Likewise.
57844         [POSIX] (pthread_condattr_t): Likewise.
57845         [POSIX] (pthread_key_t): Likewise.
57846         [POSIX] (pthread_mutex_t): Likewise.
57847         [POSIX] (pthread_mutexattr_t): Likewise.
57848         [POSIX] (pthread_once_t): Likewise.
57849         [POSIX] (pthread_t): Likewise.
57850         [POSIX-based standards] (pthread_atfork): Expect function.
57851
57852 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
57853             Richard Sandiford  <richard@codesourcery.com>
57854
57855         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
57856         (swap_endianness_p): New extern variable.
57857         (set_big_endian): New inline function.
57858         (maybe_swap_uint32): Likewise.
57859         (maybe_swap_uint32_array): Likewise.
57860         (maybe_swap_uint32_obstack): Likewise.
57861         * locale/programs/locfile.c: Include <stdbool.h>.
57862         (swap_endianness_p): New variable.
57863         (add_locale_uint32): Call maybe_swap_uint32.
57864         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
57865         (write_locale_data): Call maybe_swap_uint32_array.
57866         * locale/programs/ld-collate.c (obstack_int32_grow): Call
57867         maybe_swap_uint32.
57868         (obstack_int32_grow_fast): Likewise.
57869         (output_weightwc): Call maybe_swap_uint32_obstack.
57870         (collate_output): Likewise.
57871         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
57872         (OPT_LITTLE_ENDIAN): Likewise.
57873         (options): Add --little-endian and --big-endian options.
57874         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
57875         * locale/programs/locarchive.c: Include "locfile.h".
57876         (GET): New macro.
57877         (SET): Likewise.
57878         (INC): Likewise.
57879         (create_archive): Use the new macros to access fields of
57880         structures directly mapped from or written to locale archives.
57881         (oldlocrecentcmp): Likewise.
57882         (enlarge_archive): Likewise.
57883         (insert_name): Likewise.
57884         (add_alias): Likewise.
57885         (add_locale): Likewise.
57886         (delete_locales_from_archive): Likewise.
57887         (show_archive_content): Likewise.
57888         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
57889         locale data.
57890
57891 2013-09-24  Roland McGrath  <roland@hack.frob.com>
57892
57893         * manual/freemanuals.texi: Updated from (newly) canonical copy at
57894         http://www.gnu.org/doc/freemanuals.texi.
57895         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
57896
57897 2013-09-24  Will Newton  <will.newton@linaro.org>
57898
57899         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
57900         macro.
57901
57902 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
57903
57904         * locale/hashval.h (compute_hashval): Interpret bytes of key as
57905         unsigned char.
57906
57907 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
57908
57909         * manual/threads.texi (POSIX Threads): Fix a typo.
57910
57911 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
57912
57913         [BZ #14547]
57914         * string/tst-strcoll-overflow.c: New test case.
57915         * string/Makefile (xtests): Add tst-strcoll-overflow.
57916         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
57917         cache if string sizes may cause integer overflow.
57918
57919         [BZ #14547]
57920         * string/strcoll_l.c (coll_seq): New members rule, idx,
57921         save_idx and back_us.
57922         (get_next_seq_nocache): New function.
57923         (do_compare_nocache): New function.
57924         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
57925         when malloc fails.
57926
57927 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
57928
57929         [BZ #15754]
57930         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
57931         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
57932         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
57933
57934         [BZ #15754]
57935         * elf/Makefile (tests): Add tst-ptrguard1.
57936         (tests-static): Add tst-ptrguard1-static.
57937         (tst-ptrguard1-ARGS): Define.
57938         (tst-ptrguard1-static-ARGS): Define.
57939         * elf/tst-ptrguard1.c: New file.
57940         * elf/tst-ptrguard1-static.c: New file.
57941         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
57942         * sysdeps/i386/stackguard-macros.h: Likewise.
57943         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
57944         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
57945         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
57946         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
57947         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
57948         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
57949
57950 2013-09-23  Hector Marco  <hecmargi@upv.es>
57951             Ismael Ripoll  <iripoll@disca.upv.es>
57952             Carlos O'Donell  <carlos@redhat.com>
57953
57954         [BZ #15754]
57955         * sysdeps/generic/stackguard-macros.h: Define
57956         __pointer_chk_guard_local and POINTER_CHK_GUARD.
57957         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
57958         Define __pointer_chk_guard_local.
57959         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
57960         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
57961
57962 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
57963
57964         [BZ #15859]
57965         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
57966
57967 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
57968
57969         * include/string.h (__ffs): Declare as hidden.
57970         * string/ffs.c (__ffs): Define as hidden.
57971         * sysdeps/i386/ffs.c (__ffs): Likewise.
57972         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
57973         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
57974         * sysdeps/s390/ffs.c (__ffs): Likewise.
57975         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
57976
57977 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
57978
57979         * NEWS: Mention malloc probes.
57980
57981         * malloc/arena.c (new_heap): New memory_heap_new probe.
57982         (grow_heap): New memory_heap_more probe.
57983         (shrink_heap): New memory_heap_less probe.
57984         (heap_trim): New memory_heap_free probe.
57985         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
57986         (systrim): New memory_sbrk_less probe.
57987         * manual/probes.texi: Document them.
57988
57989         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
57990         * manual/probes.texi: Document it.
57991
57992         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
57993         (__libc_realloc): Add memory_realloc_retry probe.
57994         (__libc_memalign): Add memory_memalign_retry probe.
57995         (__libc_valloc): Add memory_valloc_retry probe.
57996         (__libc_pvalloc): Add memory_pvalloc_retry probe.
57997         (__libc_calloc): Add memory_calloc_retry probe.
57998         * manual/probes.texi: Document them.
57999
58000         * malloc/arena.c (get_free_list): Add probe
58001         memory_arena_reuse_free_list.
58002         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
58003         and memory_arena_reuse.
58004         (arena_get2) [!PER_THREAD]: Likewise.
58005         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
58006         memory_arena_reuse_realloc.
58007         * manual/probes.texi: Document them.
58008
58009         * malloc/malloc.c (__libc_free): Add
58010         memory_mallopt_free_dyn_thresholds probe.
58011         (__libc_mallopt): Add multiple memory_mallopt probes.
58012         * manual/probes.texi: Document them.
58013
58014         * malloc/malloc.c: Include stap-probe.h.
58015         (__libc_mallopt): Add memory_mallopt probe.
58016         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
58017         * manual/probes.texi: New.
58018         * manual/Makefile (chapters): Add probes.
58019         * manual/threads.texi: Set next node.
58020
58021 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
58022
58023         [BZ #15963, #13985]
58024         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
58025         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
58026         Add `Chinese' to `nan' entry name.
58027
58028 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58029
58030         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
58031         (POLYNOMIAL): Likewise.
58032         (TAYLOR_SINCOS): Likewise.
58033         (TAYLOR_SLOW): Likewise.
58034         (__sin): Use TAYLOR_SINCOS.
58035         (__cos): Likewise.
58036         (slow): Use TAYLOR_SLOW.
58037         (sloww): Likewise.
58038         (bsloww): Likewise.
58039         (csloww): Likewise.
58040
58041 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58042
58043         * stdlib/strtod_l.c: Fix buffer overrun.
58044
58045 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
58046
58047         * benchtests/Makefile (bench): Add sincos.
58048         * benchtests/bench-sincos.c: New file.
58049
58050         * math/libm-test.inc (cos_test_data): New test inputs.
58051         (sin_test_data): Likewise.
58052
58053         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
58054         macro.
58055         (__sin): Use it.
58056         (__cos): Likewise.
58057         (slow1): Likewise.
58058         (slow2): Likewise.
58059         (sloww1): Likewise.
58060         (sloww2): Likewise.
58061         (bsloww1): Likewise.
58062         (bsloww2): Likewise.
58063         (cslow2): Likewise.
58064         (csloww1): Likewise.
58065         (csloww2): Likewise.
58066
58067         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
58068         function.
58069         (__sin): Use it.
58070         (__cos): Likewise.
58071
58072         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
58073         gotos.
58074         (__cos): Likewise.
58075
58076 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
58077
58078         * config.h.in (HAVE_MIPS_NAN2008): New macro.
58079         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
58080         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
58081         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
58082         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
58083         * elf/cache.c (print_entry): Handle the new cache flags.
58084
58085 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
58086             Aldy Hernandez  <aldyh@redhat.com>
58087
58088         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
58089         Change condition to [_SOFT_FLOAT].
58090         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
58091         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
58092         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
58093         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
58094         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
58095         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
58096         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
58097         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
58098         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
58099         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
58100         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
58101         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
58102         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
58103         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
58104         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
58105         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
58106         declaration.
58107
58108 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
58109
58110         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
58111         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
58112         (__longjmp): Use LOAD_GP to load saved GPRs.
58113         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
58114         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
58115         (__sigsetjmp): Use SAVE_GP to save GPRs.
58116
58117         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
58118         Do not append -msoft-float.
58119         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
58120
58121 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
58122
58123         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
58124
58125 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
58126
58127         [BZ #15966]
58128         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
58129         (_FPU_GETCW): Use initial "__" on variable and field names but not
58130         on macro parameter name.
58131         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
58132         parentheses around reference to macro parameter.
58133
58134 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
58135
58136         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
58137         prototype.
58138         (ctype_startup): Use uint32_t in cast and sizeof for
58139         ctype->charnames.
58140
58141 2013-09-11  Jia Liu  <proljc@gmail.com>
58142
58143         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
58144         __daddr_t_defined.
58145         [__FreeBSD__]: Likewise.
58146
58147 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
58148
58149         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
58150         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
58151         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
58152         (strchr): Remove __strchr_sse42 ifunc selection.
58153         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
58154         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
58155
58156 2013-09-11  Will Newton  <will.newton@linaro.org>
58157
58158         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
58159         parameter to RES. Remove hardcoded 1000 value.
58160         * benchtests/bench-skeleton.c (main): Pass RES parameter
58161         to TIMING_INIT and multiply result by 1000.
58162
58163 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58164
58165         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
58166
58167 2013-09-11  Andreas Schwab  <schwab@suse.de>
58168
58169         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
58170         if not defined.
58171         (O_TMPFILE) [__USE_GNU]: Define.
58172         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
58173         Define.
58174
58175 2013-09-11  Will Newton  <will.newton@linaro.org>
58176
58177         [BZ #15857]
58178         * malloc/malloc.c (__libc_memalign): Check the value of bytes
58179         does not overflow.
58180
58181 2013-09-11  Will Newton  <will.newton@linaro.org>
58182
58183         [BZ #15856]
58184         * malloc/malloc.c (__libc_valloc): Check the value of bytes
58185         does not overflow.
58186
58187 2013-09-11  Will Newton  <will.newton@linaro.org>
58188
58189         [BZ #15855]
58190         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
58191         does not overflow.
58192
58193 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
58194
58195         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
58196         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
58197         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
58198         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
58199         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
58200
58201 2013-09-10  Allan McRae  <allan@archlinux.org>
58202
58203         [BZ #15748]
58204         * manual/arith.texi (Parsing of Floats): Clarify
58205         cross-reference.
58206
58207         [BZ #15849]
58208         * manual/install.texi (Running make install): Mention
58209         --enable-pt-chown.
58210         * INSTALL: Regenerated.
58211
58212 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
58213
58214         * csu/init-first.c (_init): Remove the !SHARED condition around
58215         FPU control word initialization.
58216         * elf/dl-support.c (_dl_fpu_control): New variable.
58217         (_dl_aux_init) <AT_FPUCW>: Initialize it.
58218         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
58219         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
58220         * math/test-fpucw-static.c: New file.
58221         * math/test-fpucw-ieee.c: New file.
58222         * math/test-fpucw-ieee-static.c: New file.
58223         * math/Makefile (tests): Add `test-fpucw-ieee' and
58224         `$(tests-static)'.
58225         (tests-static): New variable.
58226         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
58227         dependency to...
58228         [($(build-shared),yes)]
58229         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
58230         ... this.
58231         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
58232         New dependency.
58233
58234 2013-09-09  Allan McRae  <allan@archlinux.org>
58235
58236         [BZ #15939]
58237         * manual/string.texi (Collation Functions): Fix typo in
58238         strcoll example.
58239         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
58240
58241         [BZ #15893]
58242         * stdlib/isomac.c (get_null_defines): Fix memory leak.
58243
58244         [BZ #15892]
58245         * libio/memstream.c (open_memstream): Fix memory leak.
58246         * libio/wmemstream.c (open_wmemstream): Likewise.
58247
58248         [BZ #15895]
58249         * nscd/netgroupcache.c: Fix nesting of ifdefs.
58250
58251 2013-09-09  Will Newton  <will.newton@linaro.org>
58252
58253         * malloc/Makefile: Add tst-realloc to tests.
58254         * malloc/tst-realloc.c: New file.
58255
58256 2013-09-09  Allan McRae  <allan@archlinux.org>
58257
58258         [BZ #15844]
58259         * COPYING: Update from GNU website to fix FSF address.
58260         * COPYING.LIB: Likewise.
58261
58262 2013-09-06  David S. Miller  <davem@davemloft.net>
58263
58264         * po/zh_TW.po: Update Chinese (traditional) translation from
58265         translation project.
58266
58267 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
58268             Joseph Myers  <joseph@codesourcery.com>
58269
58270         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
58271         "localeinfo.h".
58272         (obstack_chunk_alloc): New macro.
58273         (obstack_chunk_free): Likewise.
58274         (record_offset): New function.
58275         (init_locale_data): Likewise.
58276         (align_locale_data): Likewise.
58277         (add_locale_empty): Likewise.
58278         (add_locale_raw_data): Likewise.
58279         (add_locale_raw_obstack): Likewise.
58280         (add_locale_string): Likewise.
58281         (add_locale_wstring): Likewise.
58282         (add_locale_uint32): Likewise.
58283         (add_locale_uint32_array): Likewise.
58284         (add_locale_char): Likewise.
58285         (start_locale_structure): Likewise.
58286         (end_locale_structure): Likewise.
58287         (start_locale_prelude): Likewise.
58288         (end_locale_prelude): Likewise.
58289         (write_locale_data): Take locale_file structure rather than an
58290         iovec.
58291         * locale/programs/locfile.h: Include "obstack.h".
58292         (struct locale_file): Change to store locale file contents instead
58293         of header.
58294         (init_locale_data): New prototype.
58295         (align_locale_data): Likewise.
58296         (add_locale_empty): Likewise.
58297         (add_locale_raw_data): Likewise.
58298         (add_locale_raw_obstack): Likewise.
58299         (add_locale_string): Likewise.
58300         (add_locale_wstring): Likewise.
58301         (add_locale_uint32): Likewise.
58302         (add_locale_uint32_array): Likewise.
58303         (add_locale_char): Likewise.
58304         (start_locale_structure): Likewise.
58305         (end_locale_structure): Likewise.
58306         (start_locale_prelude): Likewise.
58307         (end_locale_prelude): Likewise.
58308         (write_locale_data): Update prototype.
58309         * locale/programs/3level.h (struct TABLE): Remove result field.
58310         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
58311         Use new locale_file interface.
58312         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
58313         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
58314         * locale/programs/ld-address.c (address_output): Use new
58315         locale_file interface.
58316         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
58317         NO_ADD_LOCALE.
58318         (collate_finish): Don't call collseq_table_finalize.
58319         (collate_output): Use new locale_file interface.
58320         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
58321         in file.
58322         (NO_FINALIZE): Change to NO_ADD_LOCALE.
58323         (TABLE): Move defines earlier in file.
58324         (ELEMENT): Likewise.
58325         (DEFAULT): Likewise.
58326         (wctrans_table_add): Move macro and inline function earlier in
58327         file.
58328         (struct wctype_table): Move type earlier in file.
58329         (add_locale_wctype_table): New static prototype.
58330         (struct locale_ctype_t): Use logical types instead of struct iovec
58331         pointers for members.
58332         (ctype_output): Use new locale_file interface.
58333         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
58334         new locale_file interface.
58335         (allocate_arrays): Update for use of new locale_file interface.
58336         * locale/programs/ld-identification.c (identification_output): Use
58337         new locale_file interface.
58338         * locale/programs/ld-measurement.c (measurement_output): Likewise.
58339         * locale/programs/ld-messages.c (messages_output): Likewise.
58340         * locale/programs/ld-monetary.c (monetary_output): Likewise.
58341         * locale/programs/ld-name.c (name_output): Likewise.
58342         * locale/programs/ld-numeric.c (numeric_output): Likewise.
58343         * locale/programs/ld-paper.c (paper_output): Likewise.
58344         * locale/programs/ld-telephone.c (telephone_output): Likewise.
58345         * locale/programs/ld-time.c (time_output): Likewise.
58346
58347 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58348
58349         * benchtests/Makefile: Add memrchr benchmark.
58350         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
58351         benchmark as memrchr.
58352         * benchtests/bench-memrchr-ifunc.c: New file.
58353         * benchtests/bench-memrchr.c: New file.
58354
58355 2013-09-06   Will Newton  <will.newton@linaro.org>
58356
58357         * benchtests/Makefile (string-bench): Add memcpy.
58358
58359 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
58360             Cong Wang  <amwang@redhat.com>
58361
58362         [BZ #15850]
58363         * sysdeps/unix/sysv/linux/bits/in.h
58364         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
58365         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
58366         before __USE_KERNEL_IPV6_DEFS uses.
58367         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
58368         IPPROTO_BEETPH.
58369         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
58370         sockaddr_in6, or ipv6_mreq.
58371
58372 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58373
58374         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
58375         memory access for final bytes in some large inputs.
58376         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
58377
58378 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58379
58380         * string/test-memrchr.c: New file.
58381         * string/test-memrchr-ifunc.c: New file.
58382         * string/Makefile: Add new memrchr testcase.
58383
58384 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
58385
58386         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
58387         fanotify_init returns EPERM.
58388
58389 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58390
58391         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
58392         errors.
58393         (top level): Treat second token from macro or constant entries for
58394         allowed headers as allowed.
58395         * include/complex.h: Condition internal declarations on
58396         [!_ISOMAC].
58397         * include/fenv.h: Condition include of <stdbool.h> and internal
58398         declarations on [!_ISOMAC].
58399
58400 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
58401
58402         [BZ #15923]
58403         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
58404
58405 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
58406
58407         * configure.in (--enable-versioning): Remove configure option.
58408         (libc_cv_asm_symver_directive): Remove configure test.
58409         (libc_cv_ld_version_script_option): Likewise.
58410         (VERSIONING): Remove variable and AC_SUBST.
58411         (DO_VERSIONING): Remove AC_DEFINE.
58412         * configure: Regenerated.
58413         * config.h.in (DO_VERSIONING): Remove macro.
58414         * Makerules [$(versioning) = yes]: Change conditionals to
58415         [$(build-shared) = yes].
58416         * config.make.in (versioning): Remove variable.
58417         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
58418         [$(build-shared) = yes].
58419         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
58420         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
58421         * elf/Makefile [$(versioning) = yes]: Change conditionals to
58422         [$(build-shared) = yes].
58423         * extra-lib.mk [$(versioning) = yes]: Likewise.
58424         * hurd/Makefile [$(versioning) = yes]: Likewise.
58425         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
58426         [SHARED].
58427         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
58428         [SHARED].
58429         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58430         [SHARED && !NO_HIDDEN].
58431         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
58432         [SHARED].
58433         [SHARED && DO_VERSIONING]: Likewise..
58434         * libio/Makefile [$(versioning) = yes]: Change conditionals to
58435         [$(build-shared) = yes].
58436         * manual/install.texi (--disable-versioning): Remove
58437         documentation.
58438         * INSTALL: Regenerated.
58439         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
58440         to [SHARED].
58441         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
58442         [$(build-shared) = yes].
58443         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
58444         * sysdeps/i386/i686/multiarch/strstr-c.c
58445         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
58446         [SHARED && !NO_HIDDEN].
58447         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
58448         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
58449         * sysdeps/powerpc/powerpc32/dl-machine.c
58450         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
58451         * sysdeps/powerpc/powerpc32/sysdep.h
58452         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
58453         to [SHARED && PIC && !NO_HIDDEN].
58454         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
58455         conditional to [SHARED].
58456
58457 2013-09-04   Will Newton  <will.newton@linaro.org>
58458
58459         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
58460         * benchtests/bench-string.h: Include bench-timing.h instead
58461         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
58462         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
58463         call to HP_TIMING_DIFF_INIT.
58464         * benchtests/bench-memccpy.c: Use bench-timing.h macros
58465         instead of hp-timing.h macros.
58466         * benchtests/bench-memchr.c: Likewise.
58467         * benchtests/bench-memcmp.c: Likewise.
58468         * benchtests/bench-memcpy.c: Likewise.
58469         * benchtests/bench-memmem.c: Likewise.
58470         * benchtests/bench-memmove.c: Likewise.
58471         * benchtests/bench-memset.c: Likewise.
58472         * benchtests/bench-rawmemchr.c: Likewise.
58473         * benchtests/bench-strcasecmp.c: Likewise.
58474         * benchtests/bench-strcasestr.c: Likewise.
58475         * benchtests/bench-strcat.c: Likewise.
58476         * benchtests/bench-strchr.c: Likewise.
58477         * benchtests/bench-strcmp.c: Likewise.
58478         * benchtests/bench-strcpy.c: Likewise.
58479         * benchtests/bench-strcpy_chk.c: Likewise.
58480         * benchtests/bench-strlen.c: Likewise.
58481         * benchtests/bench-strncasecmp.c: Likewise.
58482         * benchtests/bench-strncat.c: Likewise.
58483         * benchtests/bench-strncmp.c: Likewise.
58484         * benchtests/bench-strncpy.c: Likewise.
58485         * benchtests/bench-strnlen.c: Likewise.
58486         * benchtests/bench-strpbrk.c: Likewise.
58487         * benchtests/bench-strrchr.c: Likewise.
58488         * benchtests/bench-strspn.c: Likewise.
58489         * benchtests/bench-strstr.c: Likewise.
58490
58491 2013-09-04  Will Newton  <will.newton@linaro.org>
58492
58493         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
58494
58495 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
58496
58497         [BZ #15427]
58498         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
58499         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
58500         * math/libm-test.inc (lgamma_test_data): Add more tests.
58501         * sysdeps/i386/fpu/libm-test-ulps: Update.
58502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58503
58504 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
58505
58506         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
58507         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
58508         Add ifunc.
58509         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
58510         Add strcmp-sse2-unaligned
58511         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
58512
58513 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58514
58515         * Versions.def (libc): Add GLIBC_2.19.
58516
58517 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
58518
58519         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
58520         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
58521
58522 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
58523
58524         [BZ #14155]
58525         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
58526         intermediate calculations in recurrence.
58527         (__ieee754_ynf): Likewise.
58528         * math/libm-test.inc (jn_test_data): Do not allow spurious
58529         underflow exception.  Add more tests.
58530         (yn_test_data): Add more tests.
58531         * sysdeps/i386/fpu/libm-test-ulps: Update.
58532         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
58533
58534 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
58535
58536         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
58537
58538 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58539
58540         * csu/init-first.c: Fix then/than typos.
58541         * locale/programs/ld-collate.c: Likewise.
58542         * locale/programs/linereader.h: Likewise.
58543         * manual/charset.texi: Likewise.
58544         * manual/filesys.texi: Likewise.
58545         * manual/stdio.texi: Likewise.
58546         * manual/string.texi: Likewise.
58547         * stdlib/fmtmsg.c: Likewise.
58548         * sysdeps/i386/stpncpy.S: Likewise.
58549         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
58550         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
58551         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
58552         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
58553
58554 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
58555
58556         * elf/dl-open.c: Fix typos.
58557         * iconvdata/gbbig5.c: Likewise.
58558         * iconvdata/iso-2022-jp.c: Likewise.
58559         * iconv/gconv_int.h: Likewise.
58560         * iconv/loop.c: Likewise.
58561         * nis/rpcsvc/nis.h: Likewise.
58562         * resolv/ns_name.c: Likewise.
58563         * stdio-common/vfscanf.c: Likewise.
58564         * streams/stropts.h: Likewise.
58565         * sunrpc/rpc_thread.c: Likewise.
58566         * sysdeps/i386/strpbrk.S: Likewise.
58567         * sysdeps/ieee754/k_standard.c: Likewise.
58568         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
58569         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
58570         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
58571         * sysdeps/mach/hurd/profil.c: Likewise.
58572         * sysdeps/s390/dl-procinfo.h: Likewise.
58573         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
58574         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
58575         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
58576         * sysdeps/x86_64/dl-trampoline.S: Likewise.
58577         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
58578
58579 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
58580
58581         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
58582         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
58583
58584 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
58585
58586         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
58587         aix specific files.
58588         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
58589         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
58590         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
58591         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
58592         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
58593         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
58594         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
58595         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
58596
58597 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58598             Roland McGrath  <roland@hack.frob.com>
58599
58600         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
58601         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
58602
58603 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
58604
58605         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
58606         __executable_start symbol instead of _start.
58607
58608 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
58609
58610         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
58611         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
58612         Move macros to...
58613         * sysdeps/gnu/ldsodefs.h: ... this new file.
58614
58615         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
58616         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
58617         instead of ELFOSABI_LINUX.
58618
58619         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
58620         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
58621         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
58622         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
58623         Likewise.
58624         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
58625         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
58626         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
58627         Likewise.
58628         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
58629         (ibm_extended_long_double): Add ieee_nan member.
58630         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
58631         (do_test): New function.
58632
58633         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
58634         TEST_TRUNC.
58635         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
58636         functions, renamed from truncdfsf_test, trunctfsf_test,
58637         trunctfdf_test.
58638         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
58639         functions.
58640         (do_test): Run all these.
58641
58642 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
58643
58644         * argp/argp-help.c: Fix typos.
58645         * argp/argp-parse.c: Likewise.
58646         * debug/backtracesyms.c: Likewise.
58647         * elf/elf.h: Likewise.
58648         * malloc/malloc.c: Likewise.
58649         * nis/nis_print.c: Likewise.
58650         * resolv/res_comp.c: Likewise.
58651         * stdlib/stdlib.h: Likewise.
58652         * sunrpc/clnt_tcp.c: Likewise.
58653         * sunrpc/clnt_udp.c: Likewise.
58654         * sunrpc/clnt_unix.c: Likewise.
58655         * sysdeps/unix/bsd/ptsname.c: Likewise.
58656         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
58657         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
58658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
58659         Likewise.
58660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
58661         Likewise.
58662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
58663         Likewise.
58664         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
58665
58666 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
58667
58668         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
58669         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
58670
58671 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
58672
58673         [BZ #15897]
58674         * dlfcn/Makefile (tests): Add bug-dl-leaf.
58675         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
58676         ($(objpfx)bug-dl-leaf): New rule.
58677         ($(objpfx)bug-dl-leaf.so): Likewise.
58678         ($(objpfx)bug-dl-leaf.out): Likewise.
58679         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
58680         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
58681         * dlfcn/bug-dl-leaf.c: New test.
58682         * dlfcn/bug-dl-leaf-lib.c: Likewise.
58683         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
58684         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
58685         (dlclose): Likewise.
58686         (dlmopen): Likewise.
58687
58688 2013-08-27  Roland McGrath  <roland@hack.frob.com>
58689
58690         * include/netdb.h [!_ISOMAC]:
58691         Don't include <tls.h>.
58692         (h_errno, __libc_h_errno): Move declaration and macros out of
58693         [_LIBC_REENTRANT].
58694
58695         * include/resolv.h [_RESOLV_H_]:
58696         Don't include <tls.h>.
58697         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
58698         * resolv/res_libc.c: Don't include <tls.h>.
58699         (_res): Use __attribute__ ((nocommon)) in place of
58700         __attribute__ ((section (".bss"))).
58701
58702         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
58703         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
58704
58705         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
58706
58707         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
58708         only under [SIOCGIFCONF && SIOCGIFNETMASK].
58709
58710         * resolv/res_mkquery.c: Include <sys/time.h>.
58711
58712         * inet/ifreq.c: Moved to ...
58713         * sysdeps/unix/ifreq.c: ... here.
58714         * inet/ifreq.c: New file, true stub version.
58715
58716         * socket/sa_len.c: New file.
58717         * socket/Makefile (aux): Add it.
58718         * sysdeps/unix/sysv/linux/Makefile
58719         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
58720         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
58721         and #include <socket/sa_len.c>.
58722         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
58723         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
58724
58725         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
58726         * bits/socket.h: ... here.
58727
58728         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
58729         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
58730         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
58731
58732 2013-08-27  Andreas Schwab  <schwab@suse.de>
58733
58734         [BZ #15736]
58735         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
58736         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
58737         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
58738         * string/test-strcasecmp.c (test_main): Run tests in several
58739         locales.
58740         * string/test-strncasecmp.c (test_main): Likewise.
58741
58742         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
58743         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
58744         to __strcasecmp_nonascii and __strncasecmp_nonascii.
58745         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
58746         (__strncasecmp_ssse3) [PIC]: Likewise.
58747
58748 2013-08-26  Roland McGrath  <roland@hack.frob.com>
58749
58750         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
58751
58752         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
58753         instead of explicitly declaring xdecrypt.
58754         * nis/nss_nis/nis-publickey.c: Likewise.
58755
58756 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58757
58758         [BZ #15890]
58759         * nscd/aicache.c: Include res_hconf.h.
58760         (addhstaiX): Initialize res_hconf.
58761
58762 2013-08-26  Andreas Schwab  <schwab@suse.de>
58763
58764         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
58765         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
58766
58767 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
58768
58769         * nscd/aicache.c (addhstaiX): Fix indentation.
58770
58771 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
58772
58773         * configure.ac: Quote $build_pt_chown test.
58774         * configure: Regenerated.
58775
58776 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
58777
58778         [BZ #15532]
58779         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
58780         * math/s_cexpf.c (__cexpf): Likewise.
58781         * math/s_cexpl.c (__cexpl): Likewise.
58782         * math/libm-test.inc (cexp_test_data): Correct expected return
58783         value for NaN + i0.  Add another test.
58784
58785 2013-08-22  David S. Miller  <davem@davemloft.net>
58786
58787         * po/ca.po: Update Catalan translation from translation project.
58788         * po/uk.po: Add Ukrainian translations from translation project.
58789
58790 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
58791
58792         [BZ #15797]
58793         * math/s_fdim.c (__fdim): Check for infinite arguments if result
58794         is infinite, not alongside NaN test.
58795         * math/s_fdimf.c (__fdimf): Likewise.
58796         * math/s_fdiml.c (__fdiml): Likewise.
58797         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
58798         errno is unchanged.
58799
58800 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
58801
58802         * argp/argp-help.c: Fix typos.
58803         * crypt/speeds.c: Likewise.
58804         * csu/check_fds.c: Likewise.
58805         * elf/dl-load.c: Likewise.
58806         * elf/dl-open.c: Likewise.
58807         * elf/reldep3.c: Likewise.
58808         * elf/reldep.c: Likewise.
58809         * elf/sprof.c: Likewise.
58810         * iconv/iconv_charmap.c: Likewise.
58811         * iconv/skeleton.c: Likewise.
58812         * iconv/strtab.c: Likewise.
58813         * io/lockf64.c: Likewise.
58814         * libio/libioP.h: Likewise.
58815         * resolv/gai_notify.c: Likewise.
58816         * resolv/ns_name.c: Likewise.
58817         * resolv/ns_samedomain.c: Likewise.
58818         * resolv/res_send.c: Likewise.
58819         * stdlib/random.c: Likewise.
58820         * sunrpc/rpc/xdr.h: Likewise.
58821         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
58822         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
58823         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
58824         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
58825         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
58826         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
58827         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
58828         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
58829         * sysdeps/mach/hurd/check_fds.c: Likewise.
58830         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
58831         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
58832         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
58833         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
58834         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
58835         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
58836         * sysdeps/pthread/aio_notify.c: Likewise.
58837         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
58838         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
58839         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
58840         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
58841         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
58842
58843 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
58844
58845         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
58846         version if bit_Slow_SSE4_2 is set.
58847         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
58848         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
58849
58850 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58851
58852         [BZ #15867]
58853         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
58854         trampoline stack frame information.
58855         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
58856         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
58857         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
58858         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
58859         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
58860         * sysdeps/unix/sysv/linux/powerpc/init-first.c
58861         (_libc_vdso_platform_setup): Initialize the signal trampolines.
58862         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
58863         sa_flags value.
58864         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
58865         interrupting a syscall and set with option SA_SIGINFO.
58866
58867 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58868
58869         [BZ #15531]
58870         * math/s_cproj.c (__cproj): Only return an infinity if one part of
58871         argument is infinite.
58872         * math/s_cprojf.c (__cprojf): Likewise.
58873         * math/s_cprojl.c (__cprojl): Likewise.
58874         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
58875         * math/libm-test.inc (cproj_test_data): Add more tests.
58876
58877         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
58878
58879         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
58880         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
58881         size.  Use __ffs to determine corresponding shift.
58882
58883 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
58884             Roland McGrath  <roland@hack.frob.com>
58885
58886         * Makefile (INSTALL): Remove trailing blank lines from output of
58887         makeinfo.
58888
58889 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58890
58891         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
58892         Align 32 bit compat elf_greg to 8 bytes.
58893
58894 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
58895
58896         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
58897
58898 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
58899
58900         * string/strcoll_l.c (coll_seq): New structure.
58901         (get_next_seq_cached): New function.
58902         (get_next_seq): New function.
58903         (do_compare): New function.
58904         (STRCOLL): Use GNU style definition.  Simplify implementation
58905         by using get_next_seq, get_next_seq_cached and do_compare.
58906
58907 2013-08-16  Florian Weimer  <fweimer@redhat.com>
58908
58909         [BZ #14699]
58910         CVE-2013-4237
58911         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
58912         member.
58913         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
58914         member.
58915         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
58916         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
58917         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
58918         conditional.
58919         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
58920         GETDENTS_64BIT_ALIGNED.
58921         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
58922         * manual/filesys.texi (Reading/Closing Directory): Document
58923         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
58924         strongly.
58925         * manual/conf.texi (Limits for Files): Add portability note to
58926         NAME_MAX, PATH_MAX.
58927         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
58928
58929 2013-08-13  Andreas Schwab  <schwab@suse.de>
58930
58931         [BZ #15749]
58932         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
58933         of fabs.
58934         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
58935         LDBL_MAX_EXP >= 16384]: Add tests for it.
58936
58937 2013-08-12  David S. Miller  <davem@davemloft.net>
58938
58939         * version.h (RELEASE): Set to "development".
58940         (VERSION): Set to "2.18.90".
58941         * NEWS: Add 2.19 section.
58942
58943 2013-08-03  David S. Miller  <davem@davemloft.net>
58944
58945         * po/ko.po: Update Korean translation from translation project.
58946
58947 2013-08-01  David S. Miller  <davem@davemloft.net>
58948
58949         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
58950         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
58951         Bilka.
58952
58953 2013-07-30  David S. Miller  <davem@davemloft.net>
58954
58955         * po/fr.po: Update French translation from translation project.
58956
58957 2013-07-28  David S. Miller  <davem@davemloft.net>
58958
58959         * po/cs.po: Update Czech translation from translation project.
58960
58961         * po/sv.po: Update Swedish translation from translation project.
58962
58963 2013-07-27  David S. Miller  <davem@davemloft.net>
58964
58965         * po/eo.po: Update Esperanto translation from translation project.
58966
58967         * po/vi.po: Update Vietnamese translation from translation project.
58968
58969         * po/de.po: Update German translation from translation project.
58970
58971 2013-07-26  David S. Miller  <davem@davemloft.net>
58972
58973         * po/bg.po: Update Bulgarian translation from translation project.
58974
58975         * po/nl.po: Update Dutch translation from translation project.
58976         * po/pl.po: Update Polish translation from translation project.
58977         * po/ru.po: Update Russian translation from translation project.
58978
58979 2013-07-24  David S. Miller  <davem@davemloft.net>
58980
58981         * po/libc.pot: Update.
58982
58983 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
58984
58985         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
58986         variable page size.
58987         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
58988         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
58989         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
58990
58991 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58992
58993         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
58994
58995 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
58996             Andreas Schwab  <schwab@suse.de>
58997             Roland McGrath  <roland@hack.frob.com>
58998             Joseph Myers  <joseph@codesourcery.com>
58999             Carlos O'Donell  <carlos@redhat.com>
59000
59001         [BZ #15755]
59002         * config.h.in: Define HAVE_PT_CHOWN.
59003         * config.make.in (build-pt-chown): New variable.
59004         * configure.in (--enable-pt_chown): New configure option.
59005         * configure: Regenerate.
59006         * login/Makefile: Include Makeconfig.  Build pt_chown only if
59007         build-pt-chown is enabled.
59008         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
59009         pt_chown to fix pty ownership.
59010         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
59011         CLOSE_ALL_FDS.
59012         * manual/install.texi (Configuring and compiling): Mention
59013         --enable-pt_chown. Add @findex for grantpt.
59014         * INSTALL: Regenerate.
59015
59016 2013-07-20  David S. Miller  <davem@davemloft.net>
59017
59018         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
59019         difference between 32-bit and 64-bit.
59020
59021 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
59022
59023         [BZ #15711]
59024         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
59025         Avoid system header dependency with -ffreestanding.
59026         ($(objpfx)bits/syscall%d): Likewise.
59027
59028 2013-07-13  David S. Miller  <davem@davemloft.net>
59029
59030         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
59031         underflows from atanl/atan2l due to bug 15319.
59032         (casinh_test_data): Likewise.
59033
59034 2013-07-07  David S. Miller  <davem@davemloft.net>
59035
59036         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
59037
59038 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
59039
59040         * sysdeps/i386/fpu/libm-test-ulps: Update.
59041         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59042
59043 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
59044
59045         * configure.in (--enable-lock-elision): Fix message text.
59046         * INSTALL: Regenerate.
59047         * configure: Regenerate.
59048
59049 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59050
59051         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
59052
59053 2013-07-03  Andreas Jaeger  <aj@suse.de>
59054
59055         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
59056         define.
59057         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
59058         (ptrace_peeksiginfo_args): Add.
59059         (__ptrace_peeksiginfo_flags): Add.
59060         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
59061         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
59062         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
59063
59064 2013-07-03  Allan McRae  <allan@archlinux.org>
59065
59066         * sysdeps/i386/fpu/libm-test-ulps: Update.
59067
59068 2013-07-02  David S. Miller  <davem@davemloft.net>
59069
59070         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59071
59072 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
59073
59074         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59075
59076 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
59077
59078         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
59079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59080
59081 2013-07-02  Andi Kleen <ak@linux.intel.com>
59082
59083         * config.h.in (ENABLE_LOCK_ELISION): Add.
59084         * configure.in (--enable-lock-elision): Add option.
59085         * manual/install.texi: Document --enable lock elision.
59086         * configure: Regenerate
59087         * INSTALL: Regenerate.
59088
59089 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
59090
59091         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
59092         SSE4.2 strcasecmp for libc.a.
59093         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
59094
59095 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
59096
59097         [BZ #13304]
59098         * soft-fp/op-common.h (_FP_FMA): New macro.
59099         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
59100         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
59101         (_FP_MUL_MEAT_1_imm): ... here.
59102         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
59103         (_FP_MUL_MEAT_1_wide): ... here.
59104         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
59105         (_FP_MUL_MEAT_1_hard): ... here.
59106         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
59107         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
59108         (_FP_MUL_MEAT_2_wide): ... here.
59109         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
59110         (_FP_MUL_MEAT_2_wide_3mul): ... here.
59111         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
59112         (_FP_MUL_MEAT_2_gmp): ... here.
59113         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
59114         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
59115         (_FP_MUL_MEAT_4_wide): ... here.
59116         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
59117         (_FP_MUL_MEAT_4_gmp): ... here.
59118         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
59119         (_FP_WFRACBITS_DW_S): Likewise.
59120         (_FP_WFRACXBITS_DW_S): Likewise.
59121         (_FP_HIGHBIT_DW_S): Likewise.
59122         (FP_FMA_S): Likewise.
59123         (_FP_FRAC_HIGH_DW_S): Likewise.
59124         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
59125         (_FP_WFRACBITS_DW_D): Likewise.
59126         (_FP_WFRACXBITS_DW_D): Likewise.
59127         (_FP_HIGHBIT_DW_D): Likewise.
59128         (FP_FMA_D): Likewise.
59129         (_FP_FRAC_HIGH_DW_D): Likewise.
59130         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
59131         (_FP_WFRACBITS_DW_E): Likewise.
59132         (_FP_WFRACXBITS_DW_E): Likewise.
59133         (_FP_HIGHBIT_DW_E): Likewise.
59134         (FP_FMA_E): Likewise.
59135         (_FP_FRAC_HIGH_DW_E): Likewise.
59136         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
59137         (_FP_WFRACBITS_DW_Q): Likewise.
59138         (_FP_WFRACXBITS_DW_Q): Likewise.
59139         (_FP_HIGHBIT_DW_Q): Likewise.
59140         (FP_FMA_Q): Likewise.
59141         (_FP_FRAC_HIGH_DW_Q): Likewise.
59142         * soft-fp/fmasf4.c: New file.
59143         * soft-fp/fmadf4.c: Likewise.
59144         * soft-fp/fmatf4.c: Likewise.
59145
59146 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59147
59148         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
59149         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
59150         Silvermont.
59151         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
59152         macro.
59153         (index_Slow_SSE4_2): Likewise.
59154         (index_Prefer_PMINUB_for_stringop): Likewise.
59155         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
59156         bit_Slow_SSE4_2 is set.
59157         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
59158         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
59159
59160 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59161
59162         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
59163         rtld_global._dl_hwcap2.
59164         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
59165         POWER8.
59166         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
59167         POWER8 feature descriptions defined in _dl_hwcap2.
59168         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
59169         string handling for POWER8 feature bits.
59170         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
59171         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
59172         _dl_powerpc_cap_flags.
59173         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
59174         * sysdeps/powerpc/rtld-global-offsets.sym
59175         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
59176         _dl_hwcap2 in the rtld_global_ro structure.
59177
59178 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59179
59180         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
59181         hardware capabilities in support of AT_HWCAP2.
59182         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
59183         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
59184         GLRO(dl_hwcap2).
59185         (_dl_show_auxv): Add support for calling _dl_procinfo to display
59186         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
59187         explicitly the unknown a_type display mechanism is used.
59188         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
59189         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
59190         struct member.
59191         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
59192         to macro prototype for AT_HWCAP2 support.
59193         * sysdeps/i386/dl-procinfo.h: Likewise.
59194         * sysdeps/s390/dl-procinfo.h: Likewise.
59195         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
59196         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
59197         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
59198         return -1 for unknown a_type display fallback.
59199         * sysdeps/sparc/dl-procinfo.h: Likewise.
59200         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
59201         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
59202
59203 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
59204
59205         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
59206         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
59207
59208 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
59209
59210         [BZ #12492]
59211         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
59212         mprotect making __stack_prot writable.
59213
59214 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
59215             Joseph Myers  <joseph@codesourcery.com>
59216
59217         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
59218         as being properly aligned.
59219
59220 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
59221
59222         * dlfcn/modstatic5.c: New file.
59223         * dlfcn/tststatic5.c: New file.
59224         * dlfcn/Makefile (tests): Add tststatic5.
59225         (tests-static): Likewise.
59226         (modules-names): Add modstatic5.
59227         (tststatic5-ENV): New variable.
59228         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
59229
59230         [BZ #15022]
59231         * elf/dl-support.c (_dl_main_map): New variable.
59232         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
59233         (_dl_nns, _dl_load_adds): Set to 1.
59234         (_dl_initial_searchlist): Refer to _dl_main_map.
59235         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
59236         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
59237         call to _dl_get_origin.
59238         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
59239         around call_map.
59240         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
59241         * dlfcn/modstatic3.c: New file.
59242         * dlfcn/tststatic3.c: New file.
59243         * dlfcn/tststatic4.c: New file.
59244         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
59245         (tests-static): Likewise.
59246         (modules-names): Add modstatic3.
59247         (tststatic3-ENV, tststatic4-ENV): New variables.
59248         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
59249         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
59250
59251 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
59252
59253         * configure.in (CC): Require GCC version 4.4 or later.
59254         * configure: Regenerated.
59255         * manual/install.texi (Tools for Compilation): Update GCC version
59256         requirement.
59257         * INSTALL: Regenerated.
59258
59259 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59260
59261         [BZ #15674]
59262         * string/test-memcmp.c (check2): New.
59263         (main): Call check2.
59264
59265         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
59266
59267 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
59268
59269         [BZ #15022]
59270         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
59271         over to...
59272         (dl_open_worker) [!SHARED]: ... here.
59273
59274 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59275
59276         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
59277
59278 2013-06-25  Richard Henderson  <rth@redhat.com>
59279
59280         * locale/programs/locarchive.c: Include <libc-internal.h>
59281
59282 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
59283
59284         * manual/texinfo.tex: Update to version 2013-06-21.17, with
59285         trailing whitespace removed.
59286
59287 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59288
59289         [BZ #10283]
59290         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
59291         * locale/programs/locarchive.c: Include libc-mmap.h.
59292         (prepare_address_space): Take two new outputs (the mmap base and len).
59293         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
59294         values.
59295         (create_archive): Declare new mmap base and len values for
59296         prepare_address_space, and store the result in ah.
59297         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
59298         (enlarge_archive): If ah->mmap_base is not NULL, use that and
59299         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59300         Declare new mmap base and len values for
59301         prepare_address_space, and store the result in new_ah.
59302         (open_archive): Declare new mmap base and len values for
59303         prepare_address_space, and store the result in ah.
59304         (close_archive): If ah->mmap_base is not NULL, use that and
59305         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
59306         * sysdeps/generic/libc-mmap.h: New file.
59307
59308 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
59309
59310         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
59311         (ALIGN_UP): Likewise.
59312         (PTR_ALIGN_DOWN): Likewise.
59313         (PTR_ALIGN_UP): Likewise.
59314
59315 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59316
59317         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
59318         entry mapped to PPC_PLATFORM_POWER8.
59319         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
59320         POWER8.
59321         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
59322         (_dl_string_platform): Add case for exporting platform position for
59323         POWER8.
59324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
59325         search path to sysdeps/powerpc/powerpc32/power8 directory.
59326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
59327         search path to sysdeps/powerpc/powerpc64/power8 directory.
59328         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
59329         power7 directories.
59330         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
59331         power7 directories.
59332
59333 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
59334
59335         * INSTALL: Regenerate.
59336
59337         * nscd/connections.c (nscd_init): Fix comment.
59338
59339 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
59340
59341         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
59342
59343         [BZ #15667]
59344         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
59345         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
59346
59347 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59348
59349         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
59350         DL_DST_REQ_STATIC.
59351         (DL_DST_REQ_STATIC): Remove macro.
59352
59353 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
59354
59355         [BZ #7006]
59356         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
59357         with a shift of 0 bits.
59358
59359 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
59360
59361         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
59362         $(tststatic-ENV).
59363
59364 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
59365
59366         [BZ #15655]
59367         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
59368
59369 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59370
59371         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
59372         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
59373         accepts -fno-tree-loop-distribute-patterns.
59374         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
59375         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
59376         recursive call.
59377         * string/memset.c (memset): Likewise.
59378         * string/test-memmove.c (simple_memmove): Disable loop transformation
59379         to library calls.
59380         * string/test-memset.c (simple_memset): Likewise.
59381         * benchtests/bench-memmove.c (simple_memmove): Likewise.
59382         * benchtests/bench-memset.c (simple_memset): Likewise.
59383         * configure: Regenerated.
59384
59385 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
59386
59387         * math/test-misc.c (main): Ignore fesetround failure when failures
59388         of subsequent rounding tests would be ignored.
59389
59390         [BZ #15654]
59391         * math/fedisblxcpt.c (fedisableexcept): Return 0.
59392         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
59393         * math/fegetenv.c (__fegetenv): Return 0.
59394         * math/fegetexcept.c (fegetexcept): Return 0.
59395         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
59396         FE_TONEAREST.
59397         * math/feholdexcpt.c (feholdexcept): Return 0.
59398         * math/fesetenv.c (__fesetenv): Return 0.
59399         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
59400         argument FE_TONEAREST.
59401         * math/feupdateenv.c (__feupdateenv): Return 0.
59402         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
59403
59404 2013-06-18  Roland McGrath  <roland@hack.frob.com>
59405
59406         * elf/rtld-Rules (rtld-compile-command.S): New variable.
59407         (rtld-compile-command.s, rtld-compile-command.c): New variables.
59408         ($(objpfx)rtld-%.os rules): Use them.
59409
59410 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59411
59412         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
59413         fields.
59414
59415 2013-06-17  Roland McGrath  <roland@hack.frob.com>
59416
59417         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
59418         length of target pattern, then descending length of dependency pattern.
59419         * configure.in (AWK): Require gawk 3.1.2 or newer.
59420         * manual/install.texi (Tools for Compilation): Say that we do.
59421         * configure: Regenerated.
59422
59423         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
59424         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
59425         * scripts/sysd-rules.awk: ... this new script.
59426         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
59427         than a glob-style pattern.
59428
59429 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
59430
59431         * math/test-misc.c (main): Do not treat incorrectly rounded
59432         conversions as failure unless ROUNDING_TESTS passes.
59433
59434 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
59435
59436         [BZ #15631]
59437         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
59438         restore exception state around main square root computation, then
59439         check for inexactness explicitly.
59440
59441         * math/libm-test.inc (fma_test_data): Add another test.
59442
59443 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
59444
59445         * manual/threads.texi (Non-POSIX Extensions): New document
59446         node.  Document pthread_getattr_default_np and
59447         pthread_setattr_default_np.
59448
59449         * Versions.def (libpthread): Add GLIBC_2.18.
59450         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
59451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
59452         Likewise.
59453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
59454         Likewise.
59455         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
59456         Likewise.
59457         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
59458         Likewise.
59459         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
59460         Likewise.
59461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
59462         Likewise.
59463         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
59464         Likewise.
59465         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
59466         Likewise.
59467         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
59468         Likewise.
59469
59470 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
59471
59472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
59473         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
59474
59475 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
59476             H.J. Lu  <hjl.tools@gmail.com>
59477
59478         [BZ #15627]
59479         * sysdeps/x86_64/rtld-memset.c: Remove file.
59480         * sysdeps/x86_64/rtld-memset.S: New file.
59481
59482 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
59483
59484         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
59485         (test_in_one_mode): Take arguments for whether the rounding mode
59486         is supported for each floating-point type.
59487         (do_test): Pass new arguments to test_in_one_mode using
59488         ROUNDING_TESTS.
59489
59490 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59491
59492         * posix/tst-waitid.c (do_test): Distinguish different instances of
59493         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
59494         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
59495         before entering the kernel for waitpid.
59496
59497 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59498
59499         * NEWS: Fix note on clock function precision.  Text by Roland
59500         McGrath.
59501
59502 2013-06-13  Roland McGrath  <roland@hack.frob.com>
59503
59504         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
59505         it into place only when and if the sanity check passes.
59506
59507 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
59508
59509         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
59510         output for whether conversion result is exact.  Take argument
59511         indicating whether type is IBM long double.
59512         (round_for_all): Change need_exact field to ibm_ld.
59513         * stdlib/tst-strtod-round.c (struct exactness): New type.
59514         (struct test): Change bool ld_ok field to struct exactness exact.
59515         (TEST): Update all definitions for change to field.
59516         (tests): Regenerate array contents.
59517         (test_in_one_mode): Take pointer to new field instead of old ld_ok
59518         field value.  Check for IBM long double here.
59519         (do_test): Update calls to test_in_one_mode.
59520
59521 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
59522
59523         [BZ #12515]
59524         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
59525         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
59526
59527 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
59528
59529         [BZ #15605]
59530         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
59531         generated by the compiler on loop optimizations.
59532         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
59533         general definitions.
59534
59535 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
59536
59537         * math/bug-nextafter.c: Include <math-tests.h>.
59538         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59539         the relevant type.
59540         * math/bug-nexttoward.c: Include <math-tests.h>.
59541         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59542         the relevant type.
59543         * math/test-misc.c: Include <math-tests.h>.
59544         (main): Only test for exceptions if EXCEPTION_TESTS is true for
59545         the relevant type.
59546
59547 2013-06-12  Andreas Jaeger  <aj@suse.de>
59548
59549         * po/ia.po: Update Interlingua translation from translation
59550         project.
59551
59552 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
59553
59554         * include/fenv.h: Include stdbool.h.
59555         (struct rm_ctx): New structure.
59556         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
59557         Define macro.
59558         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
59559         (SET_RESTORE_ROUNDF): Likewise.
59560         (SET_RESTORE_ROUNDL): Likewise.
59561         (SET_RESTORE_ROUND_NOEX): Likewise.
59562         (SET_RESTORE_ROUND_NOEXF): Likewise.
59563         (SET_RESTORE_ROUND_NOEXL): Likewise.
59564         (SET_RESTORE_ROUND_53BIT): Likewise.
59565         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
59566         (libc_feresetround_noexf_ctx): Likewise.
59567         (libc_feresetround_noexl_ctx): Likewise.
59568         (libc_feholdsetround_53bit_ctx): Likewise.
59569         (libc_feresetround_53bit_ctx): Likewise.
59570         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
59571         (libc_feholdexcept_setround_sse_ctx): New function.
59572         (libc_fesetenv_sse_ctx): Likewise.
59573         (libc_feupdateenv_sse_ctx): Likewise.
59574         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
59575         (libc_feholdexcept_setround_387_ctx): Likewise.
59576         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
59577         (libc_feholdsetround_387_prec_ctx): Likewise.
59578         (libc_feholdsetround_387_ctx): Likewise.
59579         (libc_feholdsetround_387_53bit_ctx): Likewise.
59580         (libc_feholdsetround_sse_ctx): Likewise.
59581         (libc_feresetround_sse_ctx): Likewise.
59582         (libc_feresetround_387_ctx): Likewise.
59583         (libc_feupdateenv_387_ctx): Likewise.
59584         (libc_feholdexcept_setroundf_ctx): Define macro.
59585         (libc_fesetenvf_ctx): Likewise.
59586         (libc_feupdateenvf_ctx): Likewise.
59587         (libc_feholdsetroundf_ctx): Likewise.
59588         (libc_feresetroundf_ctx): Likewise.
59589         (libc_feholdexcept_setround_ctx): Likewise.
59590         (libc_fesetenv_ctx): Likewise.
59591         (libc_feupdateenv_ctx): Likewise.
59592         (libc_feholdsetround_ctx): Likewise.
59593         (libc_feresetround_ctx): Likewise.
59594         (libc_feholdexcept_setroundl_ctx): Likewise.
59595         (libc_feupdateenvl_ctx): Likewise.
59596         (libc_feholdsetroundl_ctx): Likewise.
59597         (libc_feresetroundl_ctx): Likewise.
59598         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
59599         (libc_feresetround_53bit_ctx): Likewise.
59600
59601 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59602
59603         * locale/iso-639.def: Convert to UTF-8.
59604
59605 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
59606
59607         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
59608         (EXCEPTION_TESTS_double): Likewise.
59609         (EXCEPTION_TESTS_long_double): Likewise.
59610         (EXCEPTION_TESTS): Likewise.
59611         * math/libm-test.inc (test_exceptions): Only test exceptions if
59612         EXCEPTION_TESTS (FLOAT).
59613
59614 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59615
59616         * benchtests/Makefile (string-bench): Add strcpy_chk and
59617         stpcpy_chk.
59618         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
59619         * benchtests/bench-stpcpy_chk.c: New file.
59620         * benchtests/bench-strcpy_chk-ifunc.c: New file.
59621         * benchtests/bench-strcpy_chk.c: New file.
59622         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
59623         code.
59624         (do_test): Likewise.
59625
59626 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
59627
59628         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
59629         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
59630         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
59631         with tabs where appropriate.
59632         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
59633         dl-procinfo.h.
59634         [PPC_PLATFORM_PPC440]: Likewise.
59635         [PPC_PLATFORM_PPC464]: Likewise.
59636         [PPC_PLATFORM_PPC476]: Likewise.
59637         (_dl_string_platform): Add support for detecting ppc405, ppc440,
59638         ppc464, and ppc476 platform strings merging from ports/
59639         dl-procinfo.h.
59640
59641 2013-06-11  Andreas Schwab  <schwab@suse.de>
59642
59643         [BZ #14991]
59644         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
59645         (from_ucs4_idx): Regenerate.
59646         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
59647         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
59648         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
59649         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
59650         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
59651         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
59652         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
59653         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
59654         from FROM_LOOP and TO_LOOP specific macros.
59655         (BODY): Handle combining characters.
59656         * iconvdata/BIG5HKSCS.irreversible: Update.
59657         * iconvdata/BIG5HKSCS.precomposed: New file.
59658         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
59659         characters.
59660         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
59661
59662 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59663
59664         * include/sys/time.h: Fix indentation and add copyright header.
59665
59666         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
59667         (do_test): Likewise.
59668         * string/test-memchr.c (do_one_test): Likewise.
59669         (do_test): Likewise.
59670         * string/test-memcmp.c (do_one_test): Likewise.
59671         (do_test): Likewise.
59672         * string/test-memcpy.c (do_one_test): Likewise.
59673         (do_test): Likewise.
59674         * string/test-memmem.c (do_one_test): Likewise.
59675         (do_test): Likewise.
59676         (do_random_tests): Likewise.
59677         * string/test-memmove.c (do_one_test): Likewise.
59678         (do_test): Likewise.
59679         * string/test-memset.c (do_one_test): Likewise.
59680         (do_test): Likewise.
59681         * string/test-rawmemchr.c (do_one_test): Likewise.
59682         (do_test): Likewise.
59683         * string/test-strcasecmp.c (do_one_test): Likewise.
59684         (do_test): Likewise.
59685         * string/test-strcasestr.c (do_one_test): Likewise.
59686         (do_test): Likewise.
59687         * string/test-strcat.c (do_one_test): Likewise.
59688         (do_test): Likewise.
59689         * string/test-strchr.c (do_one_test): Likewise.
59690         (do_test): Likewise.
59691         * string/test-strcmp.c (do_one_test): Likewise.
59692         (do_test): Likewise.
59693         * string/test-strcpy.c (do_one_test): Likewise.
59694         (do_test): Likewise.
59695         * string/test-string.h: Likewise.
59696         (test_init): Likewise.
59697         * string/test-strlen.c (do_one_test): Likewise.
59698         (do_test): Likewise.
59699         * string/test-strncasecmp.c (do_one_test): Likewise.
59700         (do_test): Likewise.
59701         * string/test-strncat.c (do_one_test): Likewise.
59702         (do_test): Likewise.
59703         * string/test-strncmp.c (do_one_test): Likewise.
59704         (do_test_limit): Likewise.
59705         (do_test): Likewise.
59706         * string/test-strncpy.c (do_one_test): Likewise.
59707         (do_test): Likewise.
59708         * string/test-strnlen.c (do_one_test): Likewise.
59709         (do_test): Likewise.
59710         * string/test-strpbrk.c (do_one_test): Likewise.
59711         (do_test): Likewise.
59712         * string/test-strrchr.c (do_one_test): Likewise.
59713         (do_test): Likewise.
59714         * string/test-strspn.c (do_one_test): Likewise.
59715         (do_test): Likewise.
59716         * string/test-strstr.c (do_one_test): Likewise.
59717         (do_test): Likewise.
59718
59719         * benchtests/Makefile (string-bench): Add string benchmarks.
59720         * benchtests/bench-bcopy-ifunc.c: New file.
59721         * benchtests/bench-bcopy.c: New file.
59722         * benchtests/bench-bzero-ifunc.c: New file.
59723         * benchtests/bench-bzero.c: New file.
59724         * benchtests/bench-memccpy-ifunc.c: New file.
59725         * benchtests/bench-memccpy.c: New file.
59726         * benchtests/bench-memchr-ifunc.c: New file.
59727         * benchtests/bench-memchr.c: New file.
59728         * benchtests/bench-memcmp-ifunc.c: New file.
59729         * benchtests/bench-memcmp.c: New file.
59730         * benchtests/bench-memmem-ifunc.c: New file.
59731         * benchtests/bench-memmem.c: New file.
59732         * benchtests/bench-memmove-ifunc.c: New file.
59733         * benchtests/bench-memmove.c: New file.
59734         * benchtests/bench-mempcpy-ifunc.c: New file.
59735         * benchtests/bench-mempcpy.c: New file.
59736         * benchtests/bench-memset-ifunc.c: New file.
59737         * benchtests/bench-memset.c: New file.
59738         * benchtests/bench-rawmemchr-ifunc.c: New file.
59739         * benchtests/bench-rawmemchr.c: New file.
59740         * benchtests/bench-stpcpy-ifunc.c: New file.
59741         * benchtests/bench-stpcpy.c: New file.
59742         * benchtests/bench-stpncpy-ifunc.c: New file.
59743         * benchtests/bench-stpncpy.c: New file.
59744         * benchtests/bench-strcasecmp-ifunc.c: New file.
59745         * benchtests/bench-strcasecmp.c: New file.
59746         * benchtests/bench-strcasestr-ifunc.c: New file.
59747         * benchtests/bench-strcasestr.c: New file.
59748         * benchtests/bench-strcat-ifunc.c: New file.
59749         * benchtests/bench-strcat.c: New file.
59750         * benchtests/bench-strchr-ifunc.c: New file.
59751         * benchtests/bench-strchr.c: New file.
59752         * benchtests/bench-strchrnul-ifunc.c: New file.
59753         * benchtests/bench-strchrnul.c: New file.
59754         * benchtests/bench-strcmp-ifunc.c: New file.
59755         * benchtests/bench-strcmp.c: New file.
59756         * benchtests/bench-strcpy-ifunc.c: New file.
59757         * benchtests/bench-strcpy.c: New file.
59758         * benchtests/bench-strcspn-ifunc.c: New file.
59759         * benchtests/bench-strcspn.c: New file.
59760         * benchtests/bench-strlen-ifunc.c: New file.
59761         * benchtests/bench-strlen.c: New file.
59762         * benchtests/bench-strncasecmp-ifunc.c: New file.
59763         * benchtests/bench-strncasecmp.c: New file.
59764         * benchtests/bench-strncat-ifunc.c: New file.
59765         * benchtests/bench-strncat.c: New file.
59766         * benchtests/bench-strncmp-ifunc.c: New file.
59767         * benchtests/bench-strncmp.c: New file.
59768         * benchtests/bench-strncpy-ifunc.c: New file.
59769         * benchtests/bench-strncpy.c: New file.
59770         * benchtests/bench-strnlen-ifunc.c: New file.
59771         * benchtests/bench-strnlen.c: New file.
59772         * benchtests/bench-strpbrk-ifunc.c: New file.
59773         * benchtests/bench-strpbrk.c: New file.
59774         * benchtests/bench-strrchr-ifunc.c: New file.
59775         * benchtests/bench-strrchr.c: New file.
59776         * benchtests/bench-strspn-ifunc.c: New file.
59777         * benchtests/bench-strspn.c: New file.
59778         * benchtests/bench-strstr-ifunc.c: New file.
59779         * benchtests/bench-strstr.c: New file.
59780
59781         * benchtests/Makefile: Disable parallel execution of targets.
59782         (string-bench): Add memcpy.
59783         (benchset): New variable to store a list of benchmark sets.
59784         (bench-func): Renamed from bench.
59785         (bench-set): New target.
59786         (bench): Depend on bench-func and bench-set.
59787         * benchtests/README: Add section on benchmark sets.
59788         * benchtests/bench-memcpy-ifunc.c: New file.
59789         * benchtests/bench-memcpy.c: New file.
59790         * benchtests/bench-string.h: New file.
59791
59792 2013-06-11  Andreas Schwab  <schwab@suse.de>
59793
59794         [BZ #15577]
59795         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
59796         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
59797         values in the triple.
59798         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
59799         terminator in the group key.
59800
59801 2013-06-11  Andreas Jaeger  <aj@suse.de>
59802
59803         * po/zh_TW.po: Update Chinese (traditional) translation from
59804         translation project.
59805
59806 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
59807
59808         * include/time.h (__clock_gettime): Add libc_hidden_proto.
59809         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
59810         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
59811         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
59812         (clock_getcpuclockid): Likewise.
59813         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
59814         Add weak_alias and libc_hidden_def.
59815         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
59816         * rt/clock_gettime.c (clock_gettime): Rename to
59817         __clock_gettime.  Add weak_alias and libc_hidden_def.
59818         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
59819         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
59820         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
59821         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
59822         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
59823         Likewise.
59824         * rt/clock_settime.c (clock_settime): Rename to
59825         __clock_settime.  Add weak_alias and libc_hidden_def.
59826         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
59827
59828 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
59829
59830         * mach/err_boot.sub: Remove trailing whitespace.
59831         * mach/err_ipc.sub: Likewise.
59832         * mach/err_mach.sub: Likewise.
59833
59834         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
59835         (ROUNDING_TESTS_double): Likewise.
59836         (ROUNDING_TESTS_long_double): Likewise.
59837         (ROUNDING_TESTS): Likewise.
59838         * math/libm-test.inc: Include <math-tests.h>.
59839         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
59840         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
59841         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
59842         (IF_ROUND_INIT_FE_UPWARD): Likewise.
59843
59844 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
59845
59846         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
59847         of assigning.
59848
59849 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
59850
59851         * sysdeps/gnu/errlist.awk: Do not generate space at end of
59852         otherwise empty TRANS lines.
59853         * sysdeps/gnu/errlist.c: Regenerated.
59854
59855         * catgets/gencat.c (error_print): Use (void) in function
59856         definition.
59857         * crypt/crypt_util.c (__init_des): Likewise.
59858         * crypt/speeds.c (Stop): Likewise.
59859         (main): Likewise.
59860         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
59861         * inet/ruserpass.c (token): Likewise.
59862         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
59863         * intl/localealias.c (extend_alias_table): Likewise.
59864         * intl/plural-exp.c (init_germanic_plural): Likewise.
59865         * libio/fcloseall.c (__fcloseall): Likewise.
59866         * libio/genops.c (_IO_flush_all): Likewise.
59867         (_IO_flush_all_linebuffered): Likewise.
59868         (_IO_cleanup): Likewise.
59869         (_IO_iter_begin): Likewise.
59870         (_IO_iter_end): Likewise.
59871         (_IO_list_lock): Likewise.
59872         (_IO_list_unlock): Likewise.
59873         (_IO_list_resetlock): Likewise.
59874         * libio/getchar.c (getchar): Likewise.
59875         * libio/getchar_u.c (getchar_unlocked): Likewise.
59876         * libio/getwchar.c (getwchar): Likewise.
59877         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
59878         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
59879         * login/getpt.c (__getpt): Likewise.
59880         * login/tst-utmp.c (main): Likewise.
59881         * malloc/hooks.c (__malloc_check_init): Likewise.
59882         * malloc/malloc.c (__malloc_stats): Likewise.
59883         * malloc/mtrace.c (tr_break): Likewise.
59884         (mtrace): Likewise.
59885         (muntrace): Likewise.
59886         * misc/fstab.c (endfsent): Likewise.
59887         * misc/getclktck.c (__getclktck): Likewise.
59888         * misc/getdtsz.c (__getdtablesize): Likewise.
59889         * misc/gethostid.c (gethostid): Likewise.
59890         * misc/getpagesize.c (__getpagesize): Likewise.
59891         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
59892         (__get_nprocs): Likewise.
59893         (__get_phys_pages): Likewise.
59894         (__get_avphys_pages): Likewise.
59895         * misc/getttyent.c (getttyent): Likewise.
59896         (setttyent): Likewise.
59897         (endttyent): Likewise.
59898         * misc/getusershell.c (getusershell): Likewise.
59899         (endusershell): Likewise.
59900         (setusershell): Likewise.
59901         (initshells): Likewise.
59902         * misc/hsearch.c (__hdestroy): Likewise.
59903         * misc/sync.c (sync): Likewise.
59904         * misc/syslog.c (closelog_internal): Likewise.
59905         (closelog): Likewise.
59906         * misc/ttyslot.c (ttyslot): Likewise.
59907         * misc/vhangup.c (vhangup): Likewise.
59908         * posix/fork.c (__fork): Likewise.
59909         * posix/getegid.c (__getegid): Likewise.
59910         * posix/geteuid.c (__geteuid): Likewise.
59911         * posix/getgid.c (__getgid): Likewise.
59912         * posix/getpid.c (__getpid): Likewise.
59913         * posix/getppid.c (__getppid): Likewise.
59914         * posix/getuid.c (__getuid): Likewise.
59915         * posix/pause.c (pause): Likewise.
59916         * posix/setpgrp.c (setpgrp): Likewise.
59917         * posix/setsid.c (__setsid): Likewise.
59918         * posix/test-vfork.c (noop): Likewise.
59919         * resolv/gethnamaddr.c (_endhtent): Likewise.
59920         (_gethtent): Likewise.
59921         (ht_endhostent): Likewise.
59922         (gethostent): Likewise.
59923         (dns_service): Likewise.
59924         * stdlib/drand48.c (drand48): Likewise.
59925         * stdlib/lrand48.c (lrand48): Likewise.
59926         * stdlib/mrand48.c (mrand48): Likewise.
59927         * stdlib/rand.c (rand): Likewise.
59928         * stdlib/random.c (__random): Likewise.
59929         * stdlib/setenv.c (clearenv): Likewise.
59930         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
59931         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
59932         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
59933         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
59934         (__get_nprocs): Likewise.
59935         (__get_phys_pages): Likewise.
59936         (__get_avphys_pages): Likewise.
59937         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
59938         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
59939         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
59940         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
59941         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
59942         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
59943         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
59944         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
59945         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
59946         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
59947         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
59948         * sysdeps/mach/hurd/sync.c (sync): Likewise.
59949         * sysdeps/posix/clock.c (clock): Likewise.
59950         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
59951         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
59952         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
59953         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
59954         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
59955         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
59956         (__get_nprocs_conf): Likewise.
59957         (__get_phys_pages): Likewise.
59958         (__get_avphys_pages): Likewise.
59959         * time/clock.c (clock): Likewise.
59960         * time/tzset.c (__tzname_max): Likewise.
59961
59962 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
59963
59964         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
59965         (__bswap_32): Do not use "register".
59966         * crypt/crypt.c (_ufc_doit_r): Likewise.
59967         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
59968         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
59969         * gmon/gmon.c (__monstartup): Likewise.
59970         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
59971         * hurd/hurdmalloc.c (more_memory): Likewise.
59972         (malloc): Likewise.
59973         (free): Likewise.
59974         (realloc): Likewise.
59975         (malloc_fork_prepare): Likewise.
59976         (malloc_fork_parent): Likewise.
59977         (malloc_fork_child): Likewise.
59978         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
59979         (_svcauth_des): Likewise.
59980         * inet/inet_lnaof.c (inet_lnaof): Likewise.
59981         * inet/inet_net.c (inet_network): Likewise.
59982         * inet/inet_netof.c (inet_netof): Likewise.
59983         * inet/rcmd.c (__validuser2_sa): Likewise.
59984         * io/fts.c (fts_open): Likewise.
59985         (fts_load): Likewise.
59986         (fts_close): Likewise.
59987         (fts_read): Likewise.
59988         (fts_children): Likewise.
59989         (fts_build): Likewise.
59990         (fts_stat): Likewise.
59991         (fts_sort): Likewise.
59992         (fts_alloc): Likewise.
59993         (fts_lfree): Likewise.
59994         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
59995         (_IO_file_xsgetn): Likewise.
59996         (_IO_file_xsgetn_mmap): Likewise.
59997         * libio/iofopncook.c (_IO_cookie_read): Likewise.
59998         (_IO_cookie_write): Likewise.
59999         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
60000         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
60001         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
60002         * malloc/obstack.c (_obstack_begin): Likewise.
60003         (_obstack_begin_1): Likewise.
60004         (_obstack_newchunk): Likewise.
60005         (_obstack_allocated_p): Likewise.
60006         (obstack_free): Likewise.
60007         (_obstack_memory_used): Likewise.
60008         * misc/getttyent.c (getttynam): Likewise.
60009         (getttyent): Likewise.
60010         (skip): Likewise.
60011         (value): Likewise.
60012         * misc/getusershell.c (initshells): Likewise.
60013         * misc/syslog.c (__vsyslog_chk): Likewise.
60014         * misc/ttyslot.c (ttyslot): Likewise.
60015         * nis/nis_hash.c (__nis_hash): Likewise.
60016         * posix/fnmatch_loop.c (FCT): Likewise.
60017         * posix/getconf.c (print_all): Likewise.
60018         (main): Likewise.
60019         * posix/getopt.c (exchange): Likewise.
60020         * posix/glob.c (globfree): Likewise.
60021         (prefix_array): Likewise.
60022         (__glob_pattern_type): Likewise.
60023         * resolv/arpa/nameser.h (NS_GET16): Likewise.
60024         (NS_GET32): Likewise.
60025         (NS_PUT16): Likewise.
60026         (NS_PUT32): Likewise.
60027         * resolv/gethnamaddr.c (getanswer): Likewise.
60028         (gethostbyname2): Likewise.
60029         (gethostbyaddr): Likewise.
60030         (_gethtent): Likewise.
60031         (_gethtbyname2): Likewise.
60032         (_gethtbyaddr): Likewise.
60033         * resolv/ns_print.c (dst_s_get_int16): Likewise.
60034         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
60035         * resolv/res_init.c (__res_vinit): Likewise.
60036         (net_mask): Likewise.
60037         * resolv/res_mkquery.c (outchar): Likewise.
60038         (PRINT): Likewise.
60039         * stdio-common/printf_fp.c (outchar): Likewise.
60040         (PRINT): Likewise.
60041         * stdio-common/printf_fphex.c (outchar): Likewise.
60042         (PRINT): Likewise.
60043         * stdio-common/printf_size.c (outchar): Likewise.
60044         (PRINT): Likewise.
60045         * stdio-common/test_rdwr.c (main): Likewise.
60046         * stdio-common/tfformat.c (matches): Likewise.
60047         * stdio-common/vfprintf.c (outchar): Likewise.
60048         (printf_unknown): Likewise.
60049         (buffered_vfprintf): Likewise.
60050         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
60051         * stdio-common/xbug.c (AppendToBuffer): Likewise.
60052         (ReadFile): Likewise.
60053         * stdlib/qsort.c (SWAP): Likewise.
60054         (_quicksort): Likewise.
60055         * stdlib/setenv.c (__add_to_environ): Likewise.
60056         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
60057         * stdlib/strtol_l.c (__strtol_l): Likewise.
60058         * stdlib/tst-strtod.c (main): Likewise.
60059         * stdlib/tst-strtol.c (main): Likewise.
60060         * stdlib/tst-strtoll.c (main): Likewise.
60061         * string/bits/string2.h (__strcmp_cc): Likewise.
60062         (__strcmp_cg): Likewise.
60063         (__strcspn_c1): Likewise.
60064         (__strcspn_c2): Likewise.
60065         (__strcspn_c3): Likewise.
60066         (__strspn_c1): Likewise.
60067         (__strspn_c2): Likewise.
60068         (__strspn_c3): Likewise.
60069         (__strsep_1c): Likewise.
60070         (__strsep_2c): Likewise.
60071         (__strsep_3c): Likewise.
60072         * string/memccpy.c (__memccpy): Likewise.
60073         * string/stpcpy.c (__stpcpy): Likewise.
60074         * string/strcmp.c (strcmp): Likewise.
60075         * string/strrchr.c (strrchr): Likewise.
60076         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
60077         Likewise.
60078         * sysdeps/mach/hurd/getcwd.c
60079         (_hurd_canonicalize_directory_name_internal): Likewise.
60080         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
60081         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
60082         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
60083         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
60084         Likewise, in both definitions.
60085         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
60086         definitions.
60087         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
60088         64] (__bswap_64): Likewise.
60089         * time/test_time.c (main): Likewise.
60090         * time/tzfile.c (__tzfile_read): Likewise.
60091         (__tzfile_compute): Likewise.
60092         * time/tzset.c (__tzset_parse_tz): Likewise.
60093         (tzset_internal): Likewise.
60094         (compute_change): Likewise.
60095         * wcsmbs/wcscat.c (__wcscat): Likewise.
60096         * wcsmbs/wcschr.c (wcschr): Likewise.
60097         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
60098         * wcsmbs/wcscspn.c (wcscspn): Likewise.
60099         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
60100         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
60101         * wcsmbs/wcsspn.c (wcsspn): Likewise.
60102         * wcsmbs/wcsstr.c (wcsstr): Likewise.
60103         * wcsmbs/wmemchr.c (wmemchr): Likewise.
60104         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
60105         * wcsmbs/wmemset.c (wmemset): Likewise.
60106
60107 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
60108
60109         * scripts/config.guess: Update to version 2013-05-16.
60110         * scripts/config.sub: Update to version 2013-04-24.
60111         * scripts/install-sh: Update to version 2011-11-20.07.
60112         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
60113         * scripts/move-if-change: Update to version 2012-01-06 07:23.
60114
60115 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
60116
60117         * debug/fgetws_u_chk.c: Fix leading whitespaces.
60118         * elf/sln.c: Likewise.
60119         * hurd/hurd/ioctl.h: Likewise.
60120         * hurd/hurdmalloc.c: Likewise.
60121         * hurd/xattr.c: Likewise.
60122         * include/shlib-compat.h: Likewise.
60123         * inet/ruserpass.c: Likewise.
60124         * libio/iofgets_u.c: Likewise.
60125         * libio/iofgetws_u.c: Likewise.
60126         * locale/programs/ld-identification.c: Likewise.
60127         * locale/programs/ld-time.c: Likewise.
60128         * mach/msg-destroy.c: Likewise.
60129         * nss/nss_files/files-netgrp.c: Likewise.
60130         * resolv/res_data.c: Likewise.
60131         * soft-fp/op-1.h: Likewise.
60132         * soft-fp/op-2.h: Likewise.
60133         * soft-fp/op-4.h: Likewise.
60134         * soft-fp/op-common.h: Likewise.
60135         * stdio-common/printf_fphex.c: Likewise.
60136         * stdlib/strtod_l.c: Likewise.
60137         * sunrpc/rpc/clnt.h: Likewise.
60138         * sysdeps/generic/framestate.c: Likewise.
60139         * sysdeps/i386/bsd-_setjmp.S: Likewise.
60140         * sysdeps/i386/bsd-setjmp.S: Likewise.
60141         * sysdeps/i386/__longjmp.S: Likewise.
60142         * sysdeps/i386/setjmp.S: Likewise.
60143         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
60144         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
60145         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
60146         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
60147         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
60148         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
60149         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
60150         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
60151         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
60152         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
60153         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
60154         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
60155         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
60156         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
60157         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
60158         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
60159         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
60160         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
60161         * sysdeps/ieee754/support.c: Likewise.
60162         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
60163         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
60164         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
60165         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
60166         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
60167         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
60168         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
60169         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
60170         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
60171         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
60172         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
60173         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
60174         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
60175         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
60176         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
60177         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
60178         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
60179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
60180
60181 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
60182
60183         * posix/transbug.c: Remove executable mode.
60184
60185 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
60186
60187         * crypt/speeds.c: Remove trailing whitespace.
60188         * dlfcn/default.c: Likewise.
60189         * elf/ifuncdep2.c: Likewise.
60190         * elf/ifuncmain1.c: Likewise.
60191         * elf/ifuncmain1vis.c: Likewise.
60192         * elf/testobj.h: Likewise.
60193         * elf/tst-stackguard1.c: Likewise.
60194         * gmon/sys/gmon.h: Likewise.
60195         * hurd/hurdmsg.c: Likewise.
60196         * hurd/new-fd.c: Likewise.
60197         * hurd/ports-get.c: Likewise.
60198         * iconvdata/ibm1008_420.c: Likewise.
60199         * inet/tst-getni1.c: Likewise.
60200         * inet/tst-getni2.c: Likewise.
60201         * libio/ioungetc.c: Likewise.
60202         * libio/wfiledoalloc.c: Likewise.
60203         * manual/libm-err-tab.pl: Likewise.
60204         * math/w_dremf.c: Likewise.
60205         * misc/ftruncate.c: Likewise.
60206         * posix/bug-glob2.c: Likewise.
60207         * posix/tst-pcre.c: Likewise.
60208         * posix/wait4.c: Likewise.
60209         * resolv/README: Likewise.
60210         * resolv/res_debug.h: Likewise.
60211         * resolv/tst-inet_ntop.c: Likewise.
60212         * setjmp/bug269-setjmp.c: Likewise.
60213         * soft-fp/extended.h: Likewise.
60214         * soft-fp/op-1.h: Likewise.
60215         * soft-fp/op-2.h: Likewise.
60216         * soft-fp/op-4.h: Likewise.
60217         * soft-fp/op-8.h: Likewise.
60218         * soft-fp/testit.c: Likewise.
60219         * stdio-common/bug16.c: Likewise.
60220         * stdlib/random.c: Likewise.
60221         * sunrpc/rpcsvc/rquota.x: Likewise.
60222         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
60223         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
60224         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
60225         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
60226         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
60227         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
60228         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
60229         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
60230         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
60231         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
60232         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
60233         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
60234         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
60235         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
60236         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
60237         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
60238         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
60239         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
60240         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
60241         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
60242         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
60243         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
60244         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
60245         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
60246         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
60247         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
60248         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
60249         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
60250         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
60251         * sysdeps/ieee754/s_lib_version.c: Likewise.
60252         * sysdeps/mach/hurd/check_fds.c: Likewise.
60253         * sysdeps/mach/hurd/getsockname.c: Likewise.
60254         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
60255         * sysdeps/mach/hurd/recvfrom.c: Likewise.
60256         * sysdeps/powerpc/bits/link.h: Likewise.
60257         * sysdeps/powerpc/dl-procinfo.c: Likewise.
60258         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
60259         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
60260         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
60261         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
60262         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
60263         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
60264         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
60265         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
60266         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
60267         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
60268         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
60269         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
60270         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
60271         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
60272         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
60273         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
60274         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
60275         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
60276         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
60277         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
60278         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
60279         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
60280         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
60281         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
60282         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
60283         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
60284         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
60285         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
60286         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
60287         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
60288         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
60289         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
60290         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
60291         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
60292         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
60293         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
60294         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
60295         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
60296         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
60297         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
60298         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
60299         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
60300         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
60301         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
60302         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
60303         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
60304         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
60305         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
60306         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
60307         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
60308         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
60309         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
60310         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
60311         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
60312         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
60313         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
60314         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
60315         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
60316         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
60317         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
60318         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
60319         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
60320         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
60321         * sysdeps/powerpc/sysdep.h: Likewise.
60322         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60323         * sysdeps/s390/s390-64/sub_n.S: Likewise.
60324         * sysdeps/sh/dl-trampoline.S: Likewise.
60325         * sysdeps/sh/memset.S: Likewise.
60326         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
60327         * sysdeps/sh/strlen.S: Likewise.
60328         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
60329         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
60330         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
60331         * sysdeps/sparc/sparc32/rem.S: Likewise.
60332         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
60333         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
60334         * sysdeps/sparc/sparc32/strchr.S: Likewise.
60335         * sysdeps/sparc/sparc32/udiv.S: Likewise.
60336         * sysdeps/sparc/sparc32/urem.S: Likewise.
60337         * sysdeps/sparc/sparc64/add_n.S: Likewise.
60338         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
60339         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
60340         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
60341         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
60342         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
60343         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
60344         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
60345         * sysdeps/unix/bsd/times.c: Likewise.
60346         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
60347         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
60348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
60349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
60350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
60351         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
60352         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
60353         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
60354         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
60355         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
60356         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
60357         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
60358         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
60359         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
60360         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
60361         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
60362         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
60363         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
60364         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
60365         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
60366         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
60367         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
60368         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
60369         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
60370         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
60371         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
60372         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
60373         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
60374         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
60375         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
60376         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
60377         * sysdeps/x86_64/strcspn.S: Likewise.
60378
60379 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
60380
60381         * locale/C-translit.h: Revert #include <stdint.h> because this is a
60382         generated file.  Regenerate properly from gen-translit.pl.
60383         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
60384         locale/C-translit.h.
60385
60386 2013-06-05  Andreas Schwab  <schwab@suse.de>
60387
60388         [BZ #15100]
60389         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
60390         week as 6 instead of -1.
60391         * time/tst-strptime.c (day_tests): Add test case.
60392
60393 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
60394
60395         * sysdeps/generic/math_private.h
60396         (libc_feholdexcept_setround_53bit): Replace with
60397         libc_feholdsetround_53bit.
60398         (libc_feupdateenv_53bit): Replace with
60399         libc_feresetround_53bit.
60400         (SET_RESTORE_ROUND_53BIT): Adjust.
60401
60402 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
60403
60404         * string/test-strchrnul.c: Add copyright header.
60405
60406         * posix/tst-getaddrinfo4.c: Increase test timeout.
60407
60408 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
60409
60410         [BZ #15536]
60411         * math/libm-test.inc (MAX_EXP): Remove
60412         (MIN_EXP): Define.
60413         (ulp): Use MIN_EXP - MANT_DIG.
60414         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
60415
60416 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
60417
60418         * po/be.po: Revert last change.
60419         * po/zh_CN.po: Likewise.
60420         * po/header.pot: Likewise.
60421
60422 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
60423
60424         * Makefile ($(common-objpfx)linkobj/libc.so): Define
60425         link-libc-deps to empty as target-specific variable.
60426         * Makerules (link-libc-args): New variable.
60427         (libc-for-link): Likewise.
60428         (link-libc-deps): Likewise.
60429         (lib%.so): Depend on $(link-libc-deps).  Link with
60430         $(link-libc-args).
60431         (build-module): Link with $(link-libc-args).
60432         (build-module-asneeded): Likewise.
60433         (build-module-helper-objlist): Filter out $(link-libc-deps) from
60434         list of objects.
60435         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
60436         target-specific variable.
60437         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
60438         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
60439         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
60440         libc.
60441         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
60442         libc and ld.so.
60443         ($(objpfx)libpcprofile.so): Likewise.
60444         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
60445         libc_nonshared.a.
60446         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
60447         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
60448         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
60449         $(link-libc-deps).
60450         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
60451         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
60452         * login/Makefile ($(objpfx)libutil.so): Likewise.
60453         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
60454         * math/Makefile ($(objpfx)libm.so): Likewise.
60455         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
60456         $(objpfx)libnsl.so): Define libc-for-link as target-specific
60457         variable instead of depending directly on libc.
60458         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
60459         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
60460         $(link-libc-deps).
60461         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
60462         libc.
60463         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
60464         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
60465         ($(objpfx)libanl.so): Likewise.
60466         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
60467         ld.so.
60468         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
60469         $(link-libc-deps).
60470         * sysdeps/i386/fpu/Makefile: Remove file.
60471         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
60472         ($(objpfx)libm.so): Remove dependency on ld.so.
60473
60474 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
60475
60476         [BZ # 15553]
60477         * nis/yp_xdr.c (XDRMAXNAME): Define.
60478         (XDRMAXRECORD): Define.
60479         (xdr_domainname): Use XDRMAXNAME.
60480         (xdr_mapname): Likewise.
60481         (xdr_peername): Likewise.
60482         (xdr_keydat): Use XDRMAXRECORD.
60483         (xdr_valdat): Likewise.
60484
60485 2013-05-30  Jeff Law  <law@redhat.com>
60486
60487         [BZ #14256]
60488         * manual/errno.texi (ESTALE): Update to account for more than
60489         just NFS file systems.
60490         * sysdeps/gnu/errlist.c: Regenerated.
60491
60492 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
60493
60494         [BZ #15465]
60495         * elf/Makefile (tests): Add tst-null-argv.
60496         (modules-names):  Add tst-null-argv-lib.
60497         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
60498         (tst-null-argv-ENV): Set environment for tst-null-argv.
60499         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
60500         (RTLD_PROGNAME): New macro.
60501         * elf/tst-null-argv.c: New test case.
60502         * elf/tst-null-argv-lib.c: Library for test case.
60503         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
60504         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
60505         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
60506         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
60507         * elf/dl-init.c (call_init): Likewise.
60508         (_dl_init): Likewise.
60509         * elf/dl-load.c (print_search_path): Likewise.
60510         (_dl_map_object): Likewise.
60511         * elf/dl-lookup.c (do_lookup_x): Likewise.
60512         (add_dependency): Likewise.
60513         (_dl_lookup_symbol_x): Likewise.
60514         (_dl_debug_bindings): Likewise.
60515         * elf/dl-open.c (_dl_show_scope): Likewise.
60516         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
60517         * elf/dl-version.c (match_symbol): Likewise.
60518         (_dl_check_map_versions): Likewise.
60519         * elf/rtld.c (dl_main): Likewise.
60520         (print_unresolved): Use RTLD_PROGNAME.
60521         (print_missing_version): Likewise.
60522         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
60523         (elf_machine_rela): Likewise.
60524         * sysdeps/powerpc/powerpc32/dl-machine.c
60525         (__process_machine_rela): Likewise.
60526         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
60527         Likewise.
60528         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60529         Likewise.
60530         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
60531         Likewise.
60532         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
60533         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
60534         Likewise.
60535         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
60536         Likewise.
60537         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
60538
60539 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
60540
60541         * po/be.po: Add descriptive title.
60542         * po/zh_CN.po: Likewise.
60543         * po/header.pot: Likewise.
60544
60545 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
60546
60547         * locale/programs/locarchive.c (create_archive): Inlucde fname in
60548         error message.
60549         (enlarge_archive): Likewise.
60550
60551 2013-05-28  Ben North  <ben@redfrontdoor.org>
60552
60553         * manual/arith.texi (frexp): It is the magnitude of the return
60554         value which lies in [0.5, 1), not the return value itself.
60555
60556 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60557
60558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60559
60560 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
60561
60562         * stdio-common/bug26.c (main): Correct fscanf template.
60563
60564         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
60565         declare _dl_skip_args.
60566
60567         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
60568         Don't declare.
60569
60570         * manual/platform.texi: Add missing @end deftypefun.
60571
60572 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60573
60574         [BZ #15529]
60575         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
60576         bit of mantissa of 2^16382.
60577         * math/libm-test.inc (hypot_test_data): Add more tests.
60578
60579         * math/libm-test.inc: Add drem and pow10 to list of tested
60580         functions.
60581         (pow10_test): New function.
60582         (drem_test): Likewise.
60583         (drem_test_tonearest): Likewise.
60584         (drem_test_towardzero): Likewise.
60585         (drem_test_downward): Likewise.
60586         (drem_test_upward): Likewise.
60587         (main): Call the new functions.
60588
60589         * math/libm-test.inc (finite_test_data): Remove.
60590         (finite_test): Run tests from isfinite_test_data.
60591         (gamma_test_data): Remove.
60592         (gamma_test): Run tests from lgamma_test_data.
60593         * sysdeps/i386/fpu/libm-test-ulps: Update.
60594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60595
60596 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60597
60598         * manual/platform.texi: Add PowerPC PPR function set documentation.
60599         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
60600         implementation.
60601
60602 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
60603
60604         * math/libm-test.inc (MAX_EXP): Define.
60605         (ULPDIFF): Define.
60606         (ulp): New function.
60607         (check_float_internal): Use ULPDIFF.
60608         (cpow_test): Disable failing test.
60609         (check_ulp): Test ulp() implementation.
60610         (main): Call check_ulp before starting tests.
60611
60612 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
60613
60614         * math/gen-libm-test.pl (generate_testfile): Do not handle
60615         START_DATA and END_DATA.
60616         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
60617         END_DATA.
60618         (acos_tonearest_test_data): Likewise.
60619         (acos_towardzero_test_data): Likewise.
60620         (acos_downward_test_data): Likewise.
60621         (acos_upward_test_data): Likewise.
60622         (acosh_test_data): Likewise.
60623         (asin_test_data): Likewise.
60624         (asin_tonearest_test_data): Likewise.
60625         (asin_towardzero_test_data): Likewise.
60626         (asin_downward_test_data): Likewise.
60627         (asin_upward_test_data): Likewise.
60628         (asinh_test_data): Likewise.
60629         (atan_test_data): Likewise.
60630         (atanh_test_data): Likewise.
60631         (atan2_test_data): Likewise.
60632         (cabs_test_data): Likewise.
60633         (cacos_test_data): Likewise.
60634         (cacosh_test_data): Likewise.
60635         (carg_test_data): Likewise.
60636         (casin_test_data): Likewise.
60637         (casinh_test_data): Likewise.
60638         (catan_test_data): Likewise.
60639         (catanh_test_data): Likewise.
60640         (cbrt_test_data): Likewise.
60641         (ccos_test_data): Likewise.
60642         (ccosh_test_data): Likewise.
60643         (ceil_test_data): Likewise.
60644         (cexp_test_data): Likewise.
60645         (cimag_test_data): Likewise.
60646         (clog_test_data): Likewise.
60647         (clog10_test_data): Likewise.
60648         (conj_test_data): Likewise.
60649         (copysign_test_data): Likewise.
60650         (cos_test_data): Likewise.
60651         (cos_tonearest_test_data): Likewise.
60652         (cos_towardzero_test_data): Likewise.
60653         (cos_downward_test_data): Likewise.
60654         (cos_upward_test_data): Likewise.
60655         (cosh_test_data): Likewise.
60656         (cosh_tonearest_test_data): Likewise.
60657         (cosh_towardzero_test_data): Likewise.
60658         (cosh_downward_test_data): Likewise.
60659         (cosh_upward_test_data): Likewise.
60660         (cpow_test_data): Likewise.
60661         (cproj_test_data): Likewise.
60662         (creal_test_data): Likewise.
60663         (csin_test_data): Likewise.
60664         (csinh_test_data): Likewise.
60665         (csqrt_test_data): Likewise.
60666         (ctan_test_data): Likewise.
60667         (ctan_tonearest_test_data): Likewise.
60668         (ctan_towardzero_test_data): Likewise.
60669         (ctan_downward_test_data): Likewise.
60670         (ctan_upward_test_data): Likewise.
60671         (ctanh_test_data): Likewise.
60672         (ctanh_tonearest_test_data): Likewise.
60673         (ctanh_towardzero_test_data): Likewise.
60674         (ctanh_downward_test_data): Likewise.
60675         (ctanh_upward_test_data): Likewise.
60676         (erf_test_data): Likewise.
60677         (erfc_test_data): Likewise.
60678         (exp_test_data): Likewise.
60679         (exp_tonearest_test_data): Likewise.
60680         (exp_towardzero_test_data): Likewise.
60681         (exp_downward_test_data): Likewise.
60682         (exp_upward_test_data): Likewise.
60683         (exp10_test_data): Likewise.
60684         (exp2_test_data): Likewise.
60685         (expm1_test_data): Likewise.
60686         (fabs_test_data): Likewise.
60687         (fdim_test_data): Likewise.
60688         (finite_test_data): Likewise.
60689         (floor_test_data): Likewise.
60690         (fma_test_data): Likewise.
60691         (fma_towardzero_test_data): Likewise.
60692         (fma_downward_test_data): Likewise.
60693         (fma_upward_test_data): Likewise.
60694         (fmax_test_data): Likewise.
60695         (fmin_test_data): Likewise.
60696         (fmod_test_data): Likewise.
60697         (fpclassify_test_data): Likewise.
60698         (frexp_test_data): Likewise.
60699         (gamma_test_data): Likewise.
60700         (hypot_test_data): Likewise.
60701         (ilogb_test_data): Likewise.
60702         (isfinite_test_data): Likewise.
60703         (isgreater_test_data): Likewise.
60704         (isgreaterequal_test_data): Likewise.
60705         (isinf_test_data): Likewise.
60706         (isless_test_data): Likewise.
60707         (islessequal_test_data): Likewise.
60708         (islessgreater_test_data): Likewise.
60709         (isnan_test_data): Likewise.
60710         (isnormal_test_data): Likewise.
60711         (issignaling_test_data): Likewise.
60712         (isunordered_test_data): Likewise.
60713         (j0_test_data): Likewise.
60714         (j1_test_data): Likewise.
60715         (jn_test_data): Likewise.
60716         (ldexp_test_data): Likewise.
60717         (lgamma_test_data): Likewise.
60718         (lrint_test_data): Likewise.
60719         (lrint_tonearest_test_data): Likewise.
60720         (lrint_towardzero_test_data): Likewise.
60721         (lrint_downward_test_data): Likewise.
60722         (lrint_upward_test_data): Likewise.
60723         (llrint_test_data): Likewise.
60724         (llrint_tonearest_test_data): Likewise.
60725         (llrint_towardzero_test_data): Likewise.
60726         (llrint_downward_test_data): Likewise.
60727         (llrint_upward_test_data): Likewise.
60728         (log_test_data): Likewise.
60729         (log10_test_data): Likewise.
60730         (log1p_test_data): Likewise.
60731         (log2_test_data): Likewise.
60732         (logb_test_data): Likewise.
60733         (logb_downward_test_data): Likewise.
60734         (lround_test_data): Likewise.
60735         (llround_test_data): Likewise.
60736         (modf_test_data): Likewise.
60737         (nearbyint_test_data): Likewise.
60738         (nextafter_test_data): Likewise.
60739         (nexttoward_test_data): Likewise.
60740         (pow_test_data): Likewise.
60741         (pow_tonearest_test_data): Likewise.
60742         (pow_towardzero_test_data): Likewise.
60743         (pow_downward_test_data): Likewise.
60744         (pow_upward_test_data): Likewise.
60745         (remainder_test_data): Likewise.
60746         (remainder_tonearest_test_data): Likewise.
60747         (remainder_towardzero_test_data): Likewise.
60748         (remainder_downward_test_data): Likewise.
60749         (remainder_upward_test_data): Likewise.
60750         (remquo_test_data): Likewise.
60751         (rint_test_data): Likewise.
60752         (rint_tonearest_test_data): Likewise.
60753         (rint_towardzero_test_data): Likewise.
60754         (rint_downward_test_data): Likewise.
60755         (rint_upward_test_data): Likewise.
60756         (round_test_data): Likewise.
60757         (scalb_test_data): Likewise.
60758         (scalbn_test_data): Likewise.
60759         (scalbln_test_data): Likewise.
60760         (signbit_test_data): Likewise.
60761         (sin_test_data): Likewise.
60762         (sin_tonearest_test_data): Likewise.
60763         (sin_towardzero_test_data): Likewise.
60764         (sin_downward_test_data): Likewise.
60765         (sin_upward_test_data): Likewise.
60766         (sincos_test_data): Likewise.
60767         (sinh_test_data): Likewise.
60768         (sinh_tonearest_test_data): Likewise.
60769         (sinh_towardzero_test_data): Likewise.
60770         (sinh_downward_test_data): Likewise.
60771         (sinh_upward_test_data): Likewise.
60772         (sqrt_test_data): Likewise.
60773         (tan_test_data): Likewise.
60774         (tan_tonearest_test_data): Likewise.
60775         (tan_towardzero_test_data): Likewise.
60776         (tan_downward_test_data): Likewise.
60777         (tan_upward_test_data): Likewise.
60778         (tanh_test_data): Likewise.
60779         (tgamma_test_data): Likewise.
60780         (trunc_test_data): Likewise.
60781         (y0_test_data): Likewise.
60782         (y1_test_data): Likewise.
60783         (yn_test_data): Likewise.
60784         (significand_test_data): Likewise.
60785
60786         * math/gen-libm-test.pl (@functions): Remove variable.
60787         (generate_testfile): Don't handle START and END lines.
60788         * math/libm-test.inc (START): New macro.
60789         (END): Likewise.
60790         (END_COMPLEX): Likewise.
60791         (acos_test): Use END macro without arguments.
60792         (acos_test_tonearest): Likewise.
60793         (acos_test_towardzero): Likewise.
60794         (acos_test_downward): Likewise.
60795         (acos_test_upward): Likewise.
60796         (acosh_test): Likewise.
60797         (asin_test): Likewise.
60798         (asin_test_tonearest): Likewise.
60799         (asin_test_towardzero): Likewise.
60800         (asin_test_downward): Likewise.
60801         (asin_test_upward): Likewise.
60802         (asinh_test): Likewise.
60803         (atan_test): Likewise.
60804         (atanh_test): Likewise.
60805         (atan2_test): Likewise.
60806         (cabs_test): Likewise.
60807         (cacos_test): Use END_COMPLEX macro without arguments.
60808         (cacosh_test): Likewise.
60809         (carg_test): Use END macro without arguments.
60810         (casin_test): Use END_COMPLEX macro without arguments.
60811         (casinh_test): Likewise.
60812         (catan_test): Likewise.
60813         (catanh_test): Likewise.
60814         (cbrt_test): Use END macro without arguments.
60815         (ccos_test): Use END_COMPLEX macro without arguments.
60816         (ccosh_test): Likewise.
60817         (ceil_test): Use END macro without arguments.
60818         (cexp_test): Use END_COMPLEX macro without arguments.
60819         (cimag_test): Use END macro without arguments.
60820         (clog_test): Use END_COMPLEX macro without arguments.
60821         (clog10_test): Likewise.
60822         (conj_test): Likewise.
60823         (copysign_test): Use END macro without arguments.
60824         (cos_test): Likewise.
60825         (cos_test_tonearest): Likewise.
60826         (cos_test_towardzero): Likewise.
60827         (cos_test_downward): Likewise.
60828         (cos_test_upward): Likewise.
60829         (cosh_test): Likewise.
60830         (cosh_test_tonearest): Likewise.
60831         (cosh_test_towardzero): Likewise.
60832         (cosh_test_downward): Likewise.
60833         (cosh_test_upward): Likewise.
60834         (cpow_test): Use END_COMPLEX macro without arguments.
60835         (cproj_test): Likewise.
60836         (creal_test): Use END macro without arguments.
60837         (csin_test): Use END_COMPLEX macro without arguments.
60838         (csinh_test): Likewise.
60839         (csqrt_test): Likewise.
60840         (ctan_test): Likewise.
60841         (ctan_test_tonearest): Likewise.
60842         (ctan_test_towardzero): Likewise.
60843         (ctan_test_downward): Likewise.
60844         (ctan_test_upward): Likewise.
60845         (ctanh_test): Likewise.
60846         (ctanh_test_tonearest): Likewise.
60847         (ctanh_test_towardzero): Likewise.
60848         (ctanh_test_downward): Likewise.
60849         (ctanh_test_upward): Likewise.
60850         (erf_test): Use END macro without arguments.
60851         (erfc_test): Likewise.
60852         (exp_test): Likewise.
60853         (exp_test_tonearest): Likewise.
60854         (exp_test_towardzero): Likewise.
60855         (exp_test_downward): Likewise.
60856         (exp_test_upward): Likewise.
60857         (exp10_test): Likewise.
60858         (exp2_test): Likewise.
60859         (expm1_test): Likewise.
60860         (fabs_test): Likewise.
60861         (fdim_test): Likewise.
60862         (finite_test): Likewise.
60863         (floor_test): Likewise.
60864         (fma_test): Likewise.
60865         (fma_test_towardzero): Likewise.
60866         (fma_test_downward): Likewise.
60867         (fma_test_upward): Likewise.
60868         (fmax_test): Likewise.
60869         (fmin_test): Likewise.
60870         (fmod_test): Likewise.
60871         (fpclassify_test): Likewise.
60872         (frexp_test): Likewise.
60873         (gamma_test): Likewise.
60874         (hypot_test): Likewise.
60875         (ilogb_test): Likewise.
60876         (isfinite_test): Likewise.
60877         (isgreater_test): Likewise.
60878         (isgreaterequal_test): Likewise.
60879         (isinf_test): Likewise.
60880         (isless_test): Likewise.
60881         (islessequal_test): Likewise.
60882         (islessgreater_test): Likewise.
60883         (isnan_test): Likewise.
60884         (isnormal_test): Likewise.
60885         (issignaling_test): Likewise.
60886         (isunordered_test): Likewise.
60887         (j0_test): Likewise.
60888         (j1_test): Likewise.
60889         (jn_test): Likewise.
60890         (ldexp_test): Likewise.
60891         (lgamma_test): Likewise.
60892         (lrint_test): Likewise.
60893         (lrint_test_tonearest): Likewise.
60894         (lrint_test_towardzero): Likewise.
60895         (lrint_test_downward): Likewise.
60896         (lrint_test_upward): Likewise.
60897         (llrint_test): Likewise.
60898         (llrint_test_tonearest): Likewise.
60899         (llrint_test_towardzero): Likewise.
60900         (llrint_test_downward): Likewise.
60901         (llrint_test_upward): Likewise.
60902         (log_test): Likewise.
60903         (log10_test): Likewise.
60904         (log1p_test): Likewise.
60905         (log2_test): Likewise.
60906         (logb_test): Likewise.
60907         (logb_test_downward): Likewise.
60908         (lround_test): Likewise.
60909         (llround_test): Likewise.
60910         (modf_test): Likewise.
60911         (nearbyint_test): Likewise.
60912         (nextafter_test): Likewise.
60913         (nexttoward_test): Likewise.
60914         (pow_test): Likewise.
60915         (pow_test_tonearest): Likewise.
60916         (pow_test_towardzero): Likewise.
60917         (pow_test_downward): Likewise.
60918         (pow_test_upward): Likewise.
60919         (remainder_test): Likewise.
60920         (remainder_test_tonearest): Likewise.
60921         (remainder_test_towardzero): Likewise.
60922         (remainder_test_downward): Likewise.
60923         (remainder_test_upward): Likewise.
60924         (remquo_test): Likewise.
60925         (rint_test): Likewise.
60926         (rint_test_tonearest): Likewise.
60927         (rint_test_towardzero): Likewise.
60928         (rint_test_downward): Likewise.
60929         (rint_test_upward): Likewise.
60930         (round_test): Likewise.
60931         (scalb_test): Likewise.
60932         (scalbn_test): Likewise.
60933         (scalbln_test): Likewise.
60934         (signbit_test): Likewise.
60935         (sin_test): Likewise.
60936         (sin_test_tonearest): Likewise.
60937         (sin_test_towardzero): Likewise.
60938         (sin_test_downward): Likewise.
60939         (sin_test_upward): Likewise.
60940         (sincos_test): Likewise.
60941         (sinh_test): Likewise.
60942         (sinh_test_tonearest): Likewise.
60943         (sinh_test_towardzero): Likewise.
60944         (sinh_test_downward): Likewise.
60945         (sinh_test_upward): Likewise.
60946         (sqrt_test): Likewise.
60947         (tan_test): Likewise.
60948         (tan_test_tonearest): Likewise.
60949         (tan_test_towardzero): Likewise.
60950         (tan_test_downward): Likewise.
60951         (tan_test_upward): Likewise.
60952         (tanh_test): Likewise.
60953         (tgamma_test): Likewise.
60954         (trunc_test): Likewise.
60955         (y0_test): Likewise.
60956         (y1_test): Likewise.
60957         (yn_test): Likewise.
60958         (significand_test): Likewise.
60959
60960 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
60961
60962         [BZ #15381]
60963         * libio/genops.c (_IO_no_init): Initialize wide struct info.
60964
60965 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
60966
60967         [BZ #14894]
60968         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
60969         __ppc_mdoio and __ppc_mdoom.
60970         * manual/platform.texi: Document new functions __ppc_yield,
60971         __ppc_mdoio and __ppc_mdoom.
60972
60973 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
60974
60975         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
60976         (main): Mention "tls" pseudo-hwcap is legacy.
60977         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
60978
60979 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
60980
60981         * math/gen-libm-test.pl (parse_args): Output only string of
60982         arguments as text for test name, not full call or descriptions of
60983         tests for extra outputs.
60984         (generate_testfile): Do not pass function name to parse_args.
60985         Generate this_func variable from START.
60986         * math/libm-test.inc (struct test_f_f_data): Rename test_name
60987         field to arg_str.
60988         (struct test_ff_f_data): Likewise.
60989         (test_ff_f_data_nexttoward): Likewise.
60990         (struct test_fi_f_data): Likewise.
60991         (struct test_fl_f_data): Likewise.
60992         (struct test_if_f_data): Likewise.
60993         (struct test_fff_f_data): Likewise.
60994         (struct test_c_f_data): Likewise.
60995         (struct test_f_f1_data): Likewise.  Remove field extra_name.
60996         (struct test_fF_f1_data): Likewise.
60997         (struct test_ffI_f1_data): Likewise.
60998         (struct test_c_c_data): Rename test_name field to arg_str.
60999         (struct test_cc_c_data): Likewise.
61000         (struct test_f_i_data): Likewise.
61001         (struct test_ff_i_data): Likewise.
61002         (struct test_f_l_data): Likewise.
61003         (struct test_f_L_data): Likewise.
61004         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
61005         and extra2_name.
61006         (COMMON_TEST_SETUP): New macro.
61007         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
61008         (COMMON_TEST_CLEANUP): Likewise.
61009         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
61010         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
61011         macros.
61012         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
61013         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
61014         macros.
61015         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
61016         (RUN_TEST_fff_f): Take argument string.  Call new setup and
61017         cleanup macros.
61018         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
61019         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
61020         macros.
61021         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
61022         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
61023         macros.
61024         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
61025         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
61026         cleanup macros.
61027         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
61028         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
61029         cleanup macros.
61030         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
61031         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
61032         cleanup macros.
61033         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
61034         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
61035         macros.
61036         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
61037         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
61038         macros.
61039         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
61040         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
61041         macros.
61042         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
61043         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
61044         cleanup macros.
61045         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
61046         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
61047         cleanup macros.
61048         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
61049         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
61050         macros.
61051         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
61052         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
61053         cleanup macros.
61054         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
61055         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
61056         macros.
61057         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
61058         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
61059         macros.
61060         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
61061         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
61062         cleanup macros.
61063         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
61064
61065 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
61066
61067         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
61068         to _sifields.sigfault.
61069         (si_addr_lsb): Define new macro.
61070         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61071         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
61072         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
61073
61074 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
61075
61076         [BZ #15441]
61077         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
61078         returns -1.
61079         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
61080         null return -1.
61081         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
61082         loading the domain.
61083
61084 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
61085
61086         * math/gen-libm-test.pl (parse_args): Do not include expected
61087         result in test name.
61088         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
61089         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61090         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61091         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
61092         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61094
61095 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
61096
61097         * benchtests/Makefile: Sort function entries.
61098
61099         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
61100         tanh, asinh, acosh, atanh.
61101         * benchtests/acos-inputs: New file.
61102         * benchtests/acosh-inputs: New file.
61103         * benchtests/asin-inputs: New file.
61104         * benchtests/asinh-inputs: New file.
61105         * benchtests/atanh-inputs: New file.
61106         * benchtests/cosh-inputs: New file.
61107         * benchtests/log-inputs: New file.
61108         * benchtests/sinh-inputs: New file.
61109         * benchtests/tanh-inputs: New file.
61110
61111 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
61112
61113         [BZ #15339]
61114         * posix/tst-getaddrinfo4.c: New test.
61115         * posix/Makefile (tests): Add it.
61116
61117 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
61118
61119         [BZ #15339]
61120         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
61121         when no services were used.
61122         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
61123         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
61124
61125 2013-05-21  Andreas Schwab  <schwab@suse.de>
61126
61127         [BZ #15014]
61128         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
61129         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
61130         successful.
61131         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
61132         redundant variable declarations and reallocation of buffer when
61133         parsing as IPv6 address.  Always set NSS status when called from
61134         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
61135         buffer too small.  Correct computation of needed size.
61136         * nss/Makefile (tests): Add test-digits-dots.
61137         * nss/test-digits-dots.c: New test.
61138
61139 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
61140
61141         * benchtests/Makefile: Remove instructions for adding
61142         benchmark tests.
61143         * benchtests/README: New file to explain how to execute and
61144         enhance the benchmark tests.
61145
61146 2013-05-21  Andreas Schwab  <schwab@suse.de>
61147
61148         [BZ #15493]
61149         * setjmp/Makefile (tests): Add tst-sigsetjmp.
61150         * setjmp/tst-sigsetjmp.c: New test.
61151
61152 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
61153
61154         * sysdeps/x86_64/memset.S (memset): New implementation.
61155         (__bzero): Likewise.
61156         (__memset_tail): New function.
61157
61158 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
61159
61160         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
61161         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
61162         __memcpy_sse2_unaligned ifunc selection.
61163         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
61164         Add memcpy-sse2-unaligned.S.
61165         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
61166         Add: __memcpy_sse2_unaligned.
61167
61168 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
61169
61170         [BZ #15490]
61171         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
61172         math_force_eval before restoring floating-point envrionment.
61173         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
61174         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
61175         Likewise.
61176         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
61177         <math_private.h>.
61178         (__nearbyintl): Use math_force_eval before restoring
61179         floating-point environment.
61180         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
61181
61182         * math/gen-libm-test.pl (special_functions): Remove.
61183         (parse_args): Don't handle TEST_extra.  Handle functions with no
61184         return value.
61185         * math/libm-test.inc (struct test_sincos_data): Replace with
61186         struct test_fFF_11_data.
61187         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
61188         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
61189         (sincos_test_data): Change element type to struct
61190         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
61191         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
61192         RUN_TEST_LOOP_sincos.
61193         * math/README.libm-test: Don't mention special handling of
61194         individual functions.
61195         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
61196         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
61197         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
61198         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
61199         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
61200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
61201
61202         * math/gen-libm-test.pl (get_variable): Remove function.
61203         (parse_args): Don't show pointer parameters to call in test
61204         names.  Use "extra output N" in test names for extra outputs
61205         rather than naming variables.
61206
61207 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
61208
61209         [BZ #15488]
61210         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
61211         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
61212         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
61213         double tests.
61214         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
61215         disable.
61216         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
61217         check_long_double.
61218
61219         * math/gen-libm-test.pl (@tests): Remove variable.
61220         ($count): Likewise.
61221         (new_test): Remove function.
61222         (show_exceptions): New function.
61223         (special_functions): Use show_exceptions instead of new_test.
61224         (parse_args): Likewise.
61225         (generate_testfile): Pass only function name in generated call to
61226         print_max_error or print_complex_max_error.
61227         (get_ulps): Do not handle complex tests specially.
61228         (output_test): Rename to ...
61229         (get_all_ulps_for_test): ... this.  Return a string rather than
61230         printing to a file.  Require ulps to be present.
61231         (output_ulps): Generate arrays rather than #defines.
61232         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
61233         (struct ulp_data): New type.
61234         (BUILD_COMPLEX_ULP): Remove macro.
61235         (compare_ulp_data): New function.
61236         (find_ulps): Likewise.
61237         (find_test_ulps): Likewise.
61238         (find_function_ulps): Likewise.
61239         (find_complex_function_ulps): Likewise.
61240         (print_max_error): Determine allowed ulps using
61241         find_function_ulps.
61242         (print_complex_max_error): Determine allowed ulps using
61243         find_complex_function_ulps.
61244         (check_float_internal): Determine max ulps using find_test_ulps.
61245         (check_float): Do not take max_ulp parameter.  Update call to
61246         check_float_internal.
61247         (check_complex): Likewise.
61248         (check_int): Do not take max_ulp parameter.
61249         (check_long): Likewise.
61250         (check_bool): Likewise.
61251         (check_longlong): Likewise.
61252         (struct test_f_f_data): Remove max_ulp field.
61253         (struct test_ff_f_data): Likewise.
61254         (struct test_ff_f_data_nexttoward): Likewise.
61255         (struct test_fi_f_data): Likewise.
61256         (struct test_fl_f_data): Likewise.
61257         (struct test_if_f_data): Likewise.
61258         (struct test_fff_f_data): Likewise.
61259         (struct test_c_f_data): Likewise.
61260         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
61261         (struct test_fF_f1_data): Likewise.
61262         (struct test_ffI_f1_data): Likewise.
61263         (struct test_c_c_data): Remove max_ulp field.
61264         (struct test_cc_c_data): Likewise.
61265         (struct test_f_i_data): Likewise.
61266         (struct test_ff_i_data): Likewise.
61267         (struct test_f_l_data): Likewise.
61268         (struct test_f_L_data): Likewise.
61269         (struct test_sincos_data): Likewise.
61270         (RUN_TEST_f_f): Do not handle ulps.
61271         (RUN_TEST_LOOP_f_f): Likewise.
61272         (RUN_TEST_2_f): Likewise.
61273         (RUN_TEST_LOOP_2_f): Likewise.
61274         (RUN_TEST_fff_f): Likewise.
61275         (RUN_TEST_LOOP_fff_f): Likewise.
61276         (RUN_TEST_c_f): Likewise.
61277         (RUN_TEST_LOOP_c_f): Likewise.
61278         (RUN_TEST_f_f1): Likewise.
61279         (RUN_TEST_LOOP_f_f1): Likewise.
61280         (RUN_TEST_fF_f1): Likewise.
61281         (RUN_TEST_LOOP_fF_f1): Likewise.
61282         (RUN_TEST_fI_f1): Likewise.
61283         (RUN_TEST_LOOP_fI_f1): Likewise.
61284         (RUN_TEST_ffI_f1): Likewise.
61285         (RUN_TEST_LOOP_ffI_f1): Likewise.
61286         (RUN_TEST_c_c): Likewise.
61287         (RUN_TEST_LOOP_c_c): Likewise.
61288         (RUN_TEST_cc_c): Likewise.
61289         (RUN_TEST_LOOP_cc_c): Likewise.
61290         (RUN_TEST_f_i): Likewise.
61291         (RUN_TEST_LOOP_f_i): Likewise.
61292         (RUN_TEST_f_i_tg): Likewise.
61293         (RUN_TEST_LOOP_f_i_tg): Likewise.
61294         (RUN_TEST_ff_i_tg): Likewise.
61295         (RUN_TEST_LOOP_ff_i_tg): Likewise.
61296         (RUN_TEST_f_b): Likewise.
61297         (RUN_TEST_LOOP_f_b): Likewise.
61298         (RUN_TEST_f_b_tg): Likewise.
61299         (RUN_TEST_LOOP_f_b_tg): Likewise.
61300         (RUN_TEST_f_l): Likewise.
61301         (RUN_TEST_LOOP_f_l): Likewise.
61302         (RUN_TEST_f_L): Likewise.
61303         (RUN_TEST_LOOP_f_L): Likewise.
61304         (RUN_TEST_sincos): Likewise.
61305         (RUN_TEST_LOOP_sincos): Likewise.
61306
61307 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
61308
61309         [BZ #15480]
61310         [BZ #15485]
61311         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
61312         main case of finite arguments, set rounding mode to FE_TONEAREST
61313         and discard exceptions.
61314         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
61315         exceptions.
61316         (remainder_tonearest_test_data): New variable.
61317         (remainder_test_tonearest): New function.
61318         (remainder_towardzero_test_data): New variable.
61319         (remainder_test_towardzero): New function.
61320         (remainder_downward_test_data): New variable.
61321         (remainder_test_downward): New function.
61322         (remainder_upward_test_data): New variable.
61323         (remainder_test_upward): New function.
61324         (main): Call the new test functions.
61325
61326         * math/libm-test.inc (struct test_f_f1_data): Remove field
61327         extra_init.
61328         (struct test_fF_f1_data): Likewise.
61329         (struct test_ffI_f1_data): Likewise.
61330         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
61331         based on value of EXTRA_EXPECTED.
61332         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
61333         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
61334         EXTRA_VAR based on value of EXTRA_EXPECTED.
61335         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
61336         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
61337         EXTRA_VAR based on value of EXTRA_EXPECTED.
61338         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
61339         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
61340         EXTRA_VAR based on value of EXTRA_EXPECTED.
61341         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
61342         * math/gen-libm-test.pl (parse_args): Don't output initializers
61343         for extra output values.
61344
61345         * math/libm-test.inc (check_int): Expect result to be exactly
61346         equal to expected value and do not handle ulps.
61347         (check_long): Likewise.
61348         (check_longlong): Likewise.
61349
61350         * math/libm-test.inc (ceil_test_data): Test for "inexact"
61351         exceptions.
61352         (cimag_test_data): Likewise.
61353         (conj_test_data): Likewise.
61354         (copysign_test_data): Likewise.
61355         (cproj_test_data): Likewise.
61356         (creal_test_data): Likewise.
61357         (fabs_test_data): Likewise.
61358         (fdim_test_data): Likewise.
61359         (finite_test_data): Likewise.
61360         (floor_test_data): Likewise.
61361         (fmax_test_data): Likewise.
61362         (fmin_test_data): Likewise.
61363         (fmod_test_data): Likewise.
61364         (fpclassify_test_data): Likewise.
61365         (frexp_test_data): Likewise.
61366         (ilogb_test_data): Likewise.
61367         (isfinite_test_data): Likewise.
61368         (isgreater_test_data): Likewise.
61369         (isgreaterequal_test_data): Likewise.
61370         (isinf_test_data): Likewise.
61371         (isless_test_data): Likewise.
61372         (islessequal_test_data): Likewise.
61373         (islessgreater_test_data): Likewise.
61374         (isnan_test_data): Likewise.
61375         (isnormal_test_data): Likewise.
61376         (issignaling_test_data): Likewise.
61377         (isunordered_test_data): Likewise.
61378         (ldexp_test_data): Likewise.
61379         (lrint_test_data): Likewise.
61380         (lrint_test_data) [TEST_FLOAT]: Disable one test.
61381         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
61382         (lrint_tonearest_test_data): Test for "inexact" exceptions.
61383         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61384         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
61385         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61386         test input.
61387         (lrint_towardzero_test_data): Test for "inexact" exceptions.
61388         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61389         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
61390         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
61391         that test input.
61392         (lrint_downward_test_data): Test for "inexact" exceptions.
61393         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61394         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
61395         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
61396         test input.
61397         (lrint_upward_test_data): Test for "inexact" exceptions.
61398         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
61399         test input.
61400         (llrint_test_data): Test for "inexact" exceptions.
61401         (llrint_test_data) [TEST_FLOAT]: Disable one test.
61402         (llrint_tonearest_test_data): Test for "inexact" exceptions.
61403         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
61404         (llrint_towardzero_test_data): Test for "inexact" exceptions.
61405         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
61406         (llrint_downward_test_data): Test for "inexact" exceptions.
61407         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
61408         (llrint_upward_test_data): Test for "inexact" exceptions.
61409         (logb_test_data): Likewise.
61410         (logb_downward_test_data): Likewise.
61411         (nextafter_test_data): Likewise.
61412         (nexttoward_test_data): Likewise.
61413         (remainder_test_data): Likewise.
61414         (remquo_test_data): Likewise.
61415         (scalbn_test_data): Likewise.
61416         (scalbln_test_data): Likewise.
61417         (signbit_test_data): Likewise.
61418         (sqrt_test_data): Likewise.
61419         (significand_test_data): Likewise.
61420
61421 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
61422
61423         [BZ #15424]
61424         * benchtests/bench-modf.c (struct args): Mark arg0 as
61425         volatile.
61426         * scripts/bench.pl: Mark members of struct args as volatile.
61427
61428 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61429
61430         [BZ # 15497]
61431         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
61432         negative infinity on POWER6 or lower.
61433         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
61434
61435 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
61436
61437         [BZ #15442]
61438         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
61439         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
61440         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
61441         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
61442         (_FP_SETQNAN): New macro.
61443         (_FP_SETQNAN_SEMIRAW): Likewise.
61444         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
61445         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
61446         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
61447         (FP_EXTEND): Use _FP_FRAC_SNANP.
61448         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
61449         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
61450         into account.
61451         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61452         New macro.
61453         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
61454         Likewise.
61455
61456 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61457
61458         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
61459         with DIVIDE_BY_ZERO_EXCEPTION.
61460         (gamma_test_data): Likewise.
61461         (lgamma_test_data): Likewise.
61462         (log_test_data): Likewise.
61463         (log10_test_data): Likewise.
61464         (log2_test_data): Likewise.
61465         (tgamma_test_data): Likewise.
61466
61467         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
61468         (acos_test_tonearest): Likewise.
61469         (acos_test_towardzero): Likewise.
61470         (acos_test_downward): Likewise.
61471         (acos_test_upward): Likewise.
61472         (acosh_test): Likewise.
61473         (asin_test): Likewise.
61474         (asin_test_tonearest): Likewise.
61475         (asin_test_towardzero): Likewise.
61476         (asin_test_downward): Likewise.
61477         (asin_test_upward): Likewise.
61478         (asinh_test): Likewise.
61479         (atan_test): Likewise.
61480         (atanh_test): Likewise.
61481         (atan2_test): Likewise.
61482         (cabs_test): Likewise.
61483         (cacos_test): Likewise.
61484         (cacosh_test): Likewise.
61485         (casin_test): Likewise.
61486         (casinh_test): Likewise.
61487         (catan_test): Likewise.
61488         (catanh_test): Likewise.
61489         (cbrt_test): Likewise.
61490         (ccos_test): Likewise.
61491         (ccosh_test): Likewise.
61492         (cexp_test): Likewise.
61493         (clog_test): Likewise.
61494         (clog10_test): Likewise.
61495         (cos_test): Likewise.
61496         (cos_test_tonearest): Likewise.
61497         (cos_test_towardzero): Likewise.
61498         (cos_test_downward): Likewise.
61499         (cos_test_upward): Likewise.
61500         (cosh_test): Likewise.
61501         (cosh_test_tonearest): Likewise.
61502         (cosh_test_towardzero): Likewise.
61503         (cosh_test_downward): Likewise.
61504         (cosh_test_upward): Likewise.
61505         (cpow_test): Likewise.
61506         (csin_test): Likewise.
61507         (csinh_test): Likewise.
61508         (csqrt_test): Likewise.
61509         (ctan_test): Likewise.
61510         (ctan_test_tonearest): Likewise.
61511         (ctan_test_towardzero): Likewise.
61512         (ctan_test_downward): Likewise.
61513         (ctan_test_upward): Likewise.
61514         (ctanh_test): Likewise.
61515         (ctanh_test_tonearest): Likewise.
61516         (ctanh_test_towardzero): Likewise.
61517         (ctanh_test_downward): Likewise.
61518         (ctanh_test_upward): Likewise.
61519         (erf_test): Likewise.
61520         (erfc_test): Likewise.
61521         (exp_test): Likewise.
61522         (exp_test_tonearest): Likewise.
61523         (exp_test_towardzero): Likewise.
61524         (exp_test_downward): Likewise.
61525         (exp_test_upward): Likewise.
61526         (exp10_test): Likewise.
61527         (exp2_test): Likewise.
61528         (expm1_test): Likewise.
61529         (fmod_test): Likewise.
61530         (gamma_test): Likewise.
61531         (hypot_test): Likewise.
61532         (j0_test): Likewise.
61533         (j1_test): Likewise.
61534         (jn_test): Likewise.
61535         (lgamma_test): Likewise.
61536         (log_test): Likewise.
61537         (log10_test): Likewise.
61538         (log1p_test): Likewise.
61539         (log2_test): Likewise.
61540         (logb_test_downward): Likewise.
61541         (pow_test): Likewise.
61542         (pow_test_tonearest): Likewise.
61543         (pow_test_towardzero): Likewise.
61544         (pow_test_downward): Likewise.
61545         (pow_test_upward): Likewise.
61546         (remainder_test): Likewise.
61547         (remquo_test): Likewise.
61548         (sin_test): Likewise.
61549         (sin_test_tonearest): Likewise.
61550         (sin_test_towardzero): Likewise.
61551         (sin_test_downward): Likewise.
61552         (sin_test_upward): Likewise.
61553         (sincos_test): Likewise.
61554         (sinh_test): Likewise.
61555         (sinh_test_tonearest): Likewise.
61556         (sinh_test_towardzero): Likewise.
61557         (sinh_test_downward): Likewise.
61558         (sinh_test_upward): Likewise.
61559         (sqrt_test): Likewise.
61560         (tan_test): Likewise.
61561         (tan_test_tonearest): Likewise.
61562         (tan_test_towardzero): Likewise.
61563         (tan_test_downward): Likewise.
61564         (tan_test_upward): Likewise.
61565         (tanh_test): Likewise.
61566         (tgamma_test): Likewise.
61567         (y0_test): Likewise.
61568         (y1_test): Likewise.
61569         (yn_test): Likewise.
61570
61571         * math/gen-libm-test.pl (adjust_arg): Remove function.
61572         (special_function): Remove argument $in_func.  Only handle
61573         generating output for tables of tests, not inside functions.
61574         (parse_args): Likewise.
61575         (generate_testfile): Remove variable $in_func.  Update call to
61576         parse_args.
61577         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
61578         (MINUS_ZERO_INIT): Rename macro to minus_zero.
61579         (PLUS_INFTY_INIT): Rename macro to plus_infty.
61580         (MINUS_INFTY_INIT): Rename macro to minus_infty.
61581         (QNAN_VALUE_INIT): Rename macro to qnan_value.
61582         (MAX_VALUE_INIT): Rename macro to max_value.
61583         (MIN_VALUE_INIT): Rename macro to min_value.
61584         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
61585         (plus_zero): Remove variable.
61586         (minus_zero): Likewise.
61587         (plus_infty): Likewise.
61588         (minus_infty): Likewise.
61589         (qnan_value): Likewise.
61590         (max_value): Likewise.
61591         (min_value): Likewise.
61592         (min_subnorm_value): Likewise.
61593
61594 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
61595
61596         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
61597         uint64_t or uint32_t usage.
61598         * crypt/sha256-block.c: Likewise.
61599         * crypt/sha256-crypt.c: Likewise.
61600         * crypt/sha256.c: Likewise.
61601         * crypt/sha512-block.c: Likewise.
61602         * crypt/sha512-crypt.c: Likewise.
61603         * crypt/sha512.c: Likewise.
61604         * debug/backtrace-tst.c: Likewise.
61605         * debug/pcprofiledump.c: Likewise.
61606         * elf/cache.c: Likewise.
61607         * elf/dl-cache.c: Likewise.
61608         * elf/dl-misc.c: Likewise.
61609         * elf/dl-profile.c: Likewise.
61610         * elf/dl-support.c: Likewise.
61611         * elf/ldconfig.c: Likewise.
61612         * elf/sprof.c: Likewise.
61613         * iconv/dummy-repertoire.c: Likewise.
61614         * iconv/iconv_charmap.c: Likewise.
61615         * iconv/skeleton.c: Likewise.
61616         * iconvdata/8bit-generic.c: Likewise.
61617         * iconvdata/cp737.h: Likewise.
61618         * iconvdata/cp775.h: Likewise.
61619         * iconvdata/ibm1008.h: Likewise.
61620         * iconvdata/ibm1025.h: Likewise.
61621         * iconvdata/ibm1046.h: Likewise.
61622         * iconvdata/ibm1097.h: Likewise.
61623         * iconvdata/ibm1112.h: Likewise.
61624         * iconvdata/ibm1122.h: Likewise.
61625         * iconvdata/ibm1123.h: Likewise.
61626         * iconvdata/ibm1124.h: Likewise.
61627         * iconvdata/ibm1129.h: Likewise.
61628         * iconvdata/ibm1130.h: Likewise.
61629         * iconvdata/ibm1132.h: Likewise.
61630         * iconvdata/ibm1133.h: Likewise.
61631         * iconvdata/ibm1137.h: Likewise.
61632         * iconvdata/ibm1140.h: Likewise.
61633         * iconvdata/ibm1141.h: Likewise.
61634         * iconvdata/ibm1142.h: Likewise.
61635         * iconvdata/ibm1143.h: Likewise.
61636         * iconvdata/ibm1144.h: Likewise.
61637         * iconvdata/ibm1145.h: Likewise.
61638         * iconvdata/ibm1146.h: Likewise.
61639         * iconvdata/ibm1147.h: Likewise.
61640         * iconvdata/ibm1148.h: Likewise.
61641         * iconvdata/ibm1149.h: Likewise.
61642         * iconvdata/ibm1153.h: Likewise.
61643         * iconvdata/ibm1154.h: Likewise.
61644         * iconvdata/ibm1155.h: Likewise.
61645         * iconvdata/ibm1156.h: Likewise.
61646         * iconvdata/ibm1157.h: Likewise.
61647         * iconvdata/ibm1158.h: Likewise.
61648         * iconvdata/ibm1160.h: Likewise.
61649         * iconvdata/ibm1161.h: Likewise.
61650         * iconvdata/ibm1162.h: Likewise.
61651         * iconvdata/ibm1163.h: Likewise.
61652         * iconvdata/ibm1164.h: Likewise.
61653         * iconvdata/ibm1166.h: Likewise.
61654         * iconvdata/ibm1167.h: Likewise.
61655         * iconvdata/ibm12712.h: Likewise.
61656         * iconvdata/ibm1390.h: Likewise.
61657         * iconvdata/ibm1399.h: Likewise.
61658         * iconvdata/ibm16804.h: Likewise.
61659         * iconvdata/ibm4517.h: Likewise.
61660         * iconvdata/ibm4899.h: Likewise.
61661         * iconvdata/ibm4909.h: Likewise.
61662         * iconvdata/ibm4971.h: Likewise.
61663         * iconvdata/ibm5347.h: Likewise.
61664         * iconvdata/ibm803.h: Likewise.
61665         * iconvdata/ibm856.h: Likewise.
61666         * iconvdata/ibm901.h: Likewise.
61667         * iconvdata/ibm902.h: Likewise.
61668         * iconvdata/ibm9030.h: Likewise.
61669         * iconvdata/ibm9066.h: Likewise.
61670         * iconvdata/ibm921.h: Likewise.
61671         * iconvdata/ibm922.h: Likewise.
61672         * iconvdata/ibm9448.h: Likewise.
61673         * iconvdata/isiri-3342.h: Likewise.
61674         * iconvdata/jis0201.h: Likewise.
61675         * include/link.h: Likewise.
61676         * include/netdb.h: Likewise.
61677         * inet/check_native.c: Likewise.
61678         * inet/check_pf.c: Likewise.
61679         * inet/getipv4sourcefilter.c: Likewise.
61680         * inet/getnameinfo.c: Likewise.
61681         * inet/getsourcefilter.c: Likewise.
61682         * inet/htonl.c: Likewise.
61683         * inet/setipv4sourcefilter.c: Likewise.
61684         * inet/setsourcefilter.c: Likewise.
61685         * inet/test-inet6_opt.c: Likewise.
61686         * inet/tst-network.c: Likewise.
61687         * locale/C-collate.c: Likewise.
61688         * locale/C-ctype.c: Likewise.
61689         * locale/C-time.c: Likewise.
61690         * locale/C-translit.h: Likewise.
61691         * locale/loadarchive.c: Likewise.
61692         * locale/programs/3level.h: Likewise.
61693         * locale/programs/charmap.c: Likewise.
61694         * locale/programs/charmap.h: Likewise.
61695         * locale/programs/ld-address.c: Likewise.
61696         * locale/programs/ld-collate.c: Likewise.
61697         * locale/programs/ld-ctype.c: Likewise.
61698         * locale/programs/ld-identification.c: Likewise.
61699         * locale/programs/ld-measurement.c: Likewise.
61700         * locale/programs/ld-messages.c: Likewise.
61701         * locale/programs/ld-monetary.c: Likewise.
61702         * locale/programs/ld-name.c: Likewise.
61703         * locale/programs/ld-numeric.c: Likewise.
61704         * locale/programs/ld-paper.c: Likewise.
61705         * locale/programs/ld-telephone.c: Likewise.
61706         * locale/programs/ld-time.c: Likewise.
61707         * locale/programs/linereader.c: Likewise.
61708         * locale/programs/locale.c: Likewise.
61709         * locale/programs/locarchive.c: Likewise.
61710         * locale/programs/locfile.h: Likewise.
61711         * locale/programs/repertoire.c: Likewise.
61712         * locale/programs/simple-hash.c: Likewise.
61713         * locale/programs/simple-hash.h: Likewise.
61714         * malloc/memusage.c: Likewise.
61715         * malloc/memusagestat.c: Likewise.
61716         * nis/nis_defaults.c: Likewise.
61717         * nis/nis_hash.c: Likewise.
61718         * nis/nis_print.c: Likewise.
61719         * nis/nis_xdr.c: Likewise.
61720         * nscd/connections.c: Likewise.
61721         * nscd/hstcache.c: Likewise.
61722         * nscd/nscd_gethst_r.c: Likewise.
61723         * nscd/nscd_getserv_r.c: Likewise.
61724         * nscd/nscd_helper.c: Likewise.
61725         * nscd/servicescache.c: Likewise.
61726         * nss/makedb.c: Likewise.
61727         * nss/nss_db/db-XXX.c: Likewise.
61728         * nss/nss_db/db-initgroups.c: Likewise.
61729         * nss/nss_db/db-netgrp.c: Likewise.
61730         * nss/nss_files/files-network.c: Likewise.
61731         * nss/nss_files/files-parse.c: Likewise.
61732         * posix/bug-regex5.c: Likewise.
61733         * posix/fnmatch_loop.c: Likewise.
61734         * posix/regcomp.c: Likewise.
61735         * posix/regexec.c: Likewise.
61736         * posix/tst-rfc3484-2.c: Likewise.
61737         * posix/tst-rfc3484-3.c: Likewise.
61738         * posix/tst-rfc3484.c: Likewise.
61739         * resolv/nss_dns/dns-canon.c: Likewise.
61740         * resolv/nss_dns/dns-network.c: Likewise.
61741         * resolv/res_init.c: Likewise.
61742         * resolv/res_mkquery.c: Likewise.
61743         * resolv/tst-aton.c: Likewise.
61744         * stdlib/cxa_atexit.c: Likewise.
61745         * stdlib/cxa_finalize.c: Likewise.
61746         * stdlib/gen-fpioconst.c: Likewise.
61747         * stdlib/strtol_l.c: Likewise.
61748         * string/tst-endian.c: Likewise.
61749         * sunrpc/auth_des.c: Likewise.
61750         * sunrpc/clnt_udp.c: Likewise.
61751         * sunrpc/rtime.c: Likewise.
61752         * sunrpc/svcauth_des.c: Likewise.
61753         * sunrpc/xdr.c: Likewise.
61754         * sunrpc/xdr_intXX_t.c: Likewise.
61755         * sunrpc/xdr_rec.c: Likewise.
61756         * sysdeps/generic/ldconfig.h: Likewise.
61757         * sysdeps/generic/ldsodefs.h: Likewise.
61758         * sysdeps/generic/memusage.h: Likewise.
61759         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
61760         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
61761         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
61762         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
61763         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
61764         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
61765         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
61766         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
61767         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
61768         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
61769         * sysdeps/posix/getaddrinfo.c: Likewise.
61770         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
61771         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
61772         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
61773         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
61774         * sysdeps/powerpc/test-gettimebase.c: Likewise.
61775         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
61776         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
61777         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
61778         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
61779         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
61780         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
61781         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
61782         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
61783         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
61784         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
61785         * sysdeps/x86_64/dl-tls.h: Likewise.
61786         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
61787         * time/alt_digit.c: Likewise.
61788         * time/era.c: Likewise.
61789         * wcsmbs/tst-c16c32-1.c: Likewise.
61790
61791 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61792
61793         * math/libm-test.inc (struct test_sincos_data): New type.
61794         (RUN_TEST_LOOP_sincos): New macro.
61795         (sincos_test_data): New variable.
61796         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
61797
61798 2013-05-16  Richard Henderson  <rth@redhat.com>
61799
61800         * math/atest-exp2.c (LIMB64): New macro.
61801         (CONSTSZ): New macro.
61802         (mp_exp1, mp_exp_m1, mp_log2): New variables.
61803         (hexdig): Move ...
61804         (print_mpn_fp): ... to function scope.
61805         (read_mpn_hex): Remove.
61806         (get_log2): Remove.
61807         (exp2_mpn): Use mp_log2.
61808         (main): Use mp_exp1.
61809
61810 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
61811
61812         * math/libm-test.inc: Remove comment about not testing "inexact"
61813         exceptions.
61814         (INEXACT_EXCEPTION): New macro.
61815         (NO_INEXACT_EXCEPTION): Likewise.
61816         (INVALID_EXCEPTION_OK): Update value.
61817         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
61818         (OVERFLOW_EXCEPTION_OK): Likewise.
61819         (UNDERFLOW_EXCEPTION_OK): Likewise.
61820         (IGNORE_ZERO_INF_SIGN): Likewise.
61821         (ERRNO_UNCHANGED): Likewise.
61822         (ERRNO_EDOM): Likewise.
61823         (ERRNO_ERANGE): Likewise.
61824         (test_exceptions): Handle testing "inexact" exceptions.
61825         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
61826         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
61827         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
61828         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
61829         INEXACT_EXCEPTION.
61830         (rint_towardzero_test_data): Likewise.
61831         (rint_downward_test_data): Likewise.
61832         (rint_upward_test_data): Likewise.
61833
61834         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
61835         with OVERFLOW_EXCEPTION.
61836         (exp10_test_data): Likewise.
61837         (exp2_test_data): Likewise.
61838         (expm1_test_data): Likewise.
61839         (lgamma_test_data): Likewise.
61840         (pow_test_data): Likewise.
61841         (tgamma_test_data): Likewise.
61842         (yn_test_data): Remove duplicate test of overflow.
61843
61844         * math/libm-test.inc (struct test_cc_c_data): New type.
61845         (RUN_TEST_LOOP_cc_c): New macro.
61846         (cpow_test_data): New variable.
61847         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
61848
61849         * math/libm-test.inc (struct test_f_L_data): New type.
61850         (RUN_TEST_LOOP_f_L): New macro.
61851         (llrint_test_data): New variable.
61852         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
61853         (llrint_tonearest_test_data): New variable.
61854         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
61855         (llrint_towardzero_test_data): New variable.
61856         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
61857         (llrint_downward_test_data): New variable.
61858         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
61859         (llrint_upward_test_data): New variable.
61860         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
61861         (llround_test_data): New variable.
61862         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
61863
61864 2013-05-13  Peter Collingbourne  <pcc@google.com>
61865
61866         * math/atest-exp2.c (get_log2): Remove const attribute.
61867
61868 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61869
61870         * math/libm-test.inc (struct test_f_l_data): New type.
61871         (RUN_TEST_LOOP_f_l): New macro.
61872         (lrint_test_data): New variable.
61873         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
61874         (lrint_tonearest_test_data): New variable.
61875         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
61876         (lrint_towardzero_test_data): New variable.
61877         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
61878         (lrint_downward_test_data): New variable.
61879         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
61880         (lrint_upward_test_data): New variable.
61881         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
61882         (lround_test_data): New variable.
61883         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
61884
61885 2013-05-15  Peter Collingbourne  <pcc@google.com>
61886
61887         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
61888         (EXTRACT_WORDS64) Use where appropriate.
61889         (INSERT_WORDS64) Likewise.
61890
61891         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
61892         constraints with x constraints.
61893         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
61894
61895         * malloc/obstack.c (_obstack_compat): Add initializer.
61896
61897 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
61898
61899         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
61900         si_trapno and add si_addr_lsb to _sifields.sigfault.
61901         (si_trapno): Remove macro.
61902         (si_addr_lsb): Define new macro.
61903         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
61904
61905 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
61906
61907         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
61908         instead of TEST_f_l.
61909         (llrint_test_tonearest): Likewise.
61910         (llrint_test_towardzero): Likewise.
61911         (llrint_test_downward): Likewise.
61912         (llrint_test_upward): Likewise.
61913         (llround_test): Likewise.
61914
61915         * math/libm-test.inc (struct test_f_i_data): Add comment.
61916         (RUN_TEST_LOOP_f_b): New macro.
61917         (RUN_TEST_LOOP_f_b_tg): Likewise.
61918         (finite_test_data): New variable.
61919         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
61920         (isfinite_test_data): New variable.
61921         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61922         (isinf_test_data): New variable.
61923         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61924         (isnan_test_data): New variable.
61925         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61926         (isnormal_test_data): New variable.
61927         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61928         (issignaling_test_data): New variable.
61929         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61930         (signbit_test_data): New variable.
61931         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
61932
61933         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
61934         with INVALID_EXCEPTION.
61935         (acosh_test_data): Likewise.
61936         (asin_test_data): Likewise.
61937         (atanh_test_data): Likewise.
61938         (fmod_test_data): Likewise.
61939         (log_test_data): Likewise.
61940         (log10_test_data): Likewise.
61941         (log2_test_data): Likewise.
61942         (pow_test_data): Likewise.
61943         (sqrt_test_data): Likewise.
61944         (y0_test_data): Likewise.
61945         (y1_test_data): Likewise.
61946         (yn_test_data): Likewise.
61947
61948         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
61949         function contents.
61950
61951         * math/libm-test.inc (struct test_ff_i_data): New type.
61952         (RUN_TEST_LOOP_ff_i_tg): New macro.
61953         (isgreater_test_data): New variable.
61954         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61955         (isgreaterequal_test_data): New variable.
61956         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61957         (isless_test_data): New variable.
61958         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61959         (islessequal_test_data): New variable.
61960         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61961         (islessgreater_test_data): New variable.
61962         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61963         (isunordered_test_data): New variable.
61964         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
61965
61966 2013-05-14  David S. Miller  <davem@davemloft.net>
61967
61968         * sysdeps/sparc/fpu/libm-test-ulps: Update.
61969
61970 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
61971
61972         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
61973
61974         * math/libm-test.inc (struct test_fF_f1_data): Change type of
61975         extra_test to int.
61976         (struct test_f_i_data): Change type of max_ulp to int.
61977
61978         * math/libm-test.inc (test_ffI_f1_data): New type.
61979         (RUN_TEST_LOOP_ffI_f1): New macro.
61980         (remquo_test_data): New variable.
61981         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
61982
61983         * setjmp/tst-setjmp-fp.c: New file.
61984         * setjmp/Makefile (tests): Add tst-setjmp-fp.
61985         (link-libm): New variable.
61986         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
61987
61988         * math/libm-test.inc (struct test_f_i_data): New type.
61989         (RUN_TEST_LOOP_f_i): New macro.
61990         (RUN_TEST_LOOP_f_i_tg): Likewise.
61991         (fpclassify_test_data): New variable.
61992         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
61993         (ilogb_test_data): New variable.
61994         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
61995
61996         * math/libm-test.inc (scalbln_test): Correct function name in END
61997         call.
61998
61999         * math/libm-test.inc (struct test_f_f1_data): Add comment.
62000         (RUN_TEST_LOOP_fI_f1): New macro.
62001         (frexp_test_data): New variable.
62002         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
62003
62004         * math/libm-test.inc (struct test_fF_f1_data): New type.
62005         (RUN_TEST_LOOP_fF_f1): New macro.
62006         (modf_test_data): New variable.
62007         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
62008
62009         * math/libm-test.inc (struct test_f_f1_data): New type.
62010         (RUN_TEST_LOOP_f_f1): New macro.
62011         (gamma_test_data): New variable.
62012         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
62013         (lgamma_test_data): New variable.
62014         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
62015
62016 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
62017
62018         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
62019         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
62020         (main): Comment "tls" pseudo-hwcap.
62021
62022 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
62023
62024         * math/libm-test.inc (struct test_fl_f_data): New type.
62025         (RUN_TEST_LOOP_fl_f): New variable.
62026         (scalbln_test_data): New variable.
62027         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
62028
62029         * math/libm-test.inc (struct test_fi_f_data): New type.
62030         (RUN_TEST_LOOP_fi_f): New macro.
62031         (ldexp_test_data): New variable.
62032         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
62033         (scalbn_test_data): New variable.
62034         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
62035
62036         * math/libm-test.inc (struct test_c_f_data): New type.
62037         (RUN_TEST_LOOP_c_f): New macro.
62038         (cabs_test_data): New variable.
62039         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
62040         (carg_test_data): New variable.
62041         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
62042         (cimag_test_data): New variable.
62043         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
62044         (creal_test_data): New variable.
62045         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
62046
62047         * math/libm-test.inc (struct test_if_f_data): New type.
62048         (RUN_TEST_LOOP_if_f): New macro.
62049         (jn_test_data): New variable.
62050         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
62051         (yn_test_data): New variable.
62052         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
62053
62054         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
62055
62056 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62057
62058         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
62059         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
62060
62061 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
62062
62063         * benchtests/Makefile (CPPFLAGS-nonlib): Add
62064         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
62065         (bench-deps): Add bench-timing.h.
62066         * benchtests-bench-skeleton.c: Include bench-timing.h.
62067         (main): Use TIMING_* macros instead of clock_gettime.
62068         * benchtests/bench-timing.h: New file.
62069
62070         [BZ #14582]
62071         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
62072         Renamed from _LIB_VERSION.
62073         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
62074
62075 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
62076
62077         * math/libm-test.inc (struct test_fff_f_data): New type.
62078         (RUN_TEST_LOOP_fff_f): New macro.
62079         (fma_test_data): New variable.
62080         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
62081         (fma_towardzero_test_data): New variable.
62082         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
62083         (fma_downward_test_data): New variable.
62084         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
62085         (fma_upward_test_data): New variable.
62086         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
62087
62088         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
62089         (struct test_c_c_data): New type.
62090         (RUN_TEST_LOOP_c_c): New macro.
62091         (cacos_test_data): New variable.
62092         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
62093         (cacosh_test_data): New variable.
62094         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
62095         (casin_test_data): New variable.
62096         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
62097         (casinh_test_data): New variable.
62098         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
62099         (catan_test_data): New variable.
62100         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
62101         (catanh_test_data): New variable.
62102         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
62103         (ccos_test_data): New variable.
62104         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
62105         (ccosh_test_data): New variable.
62106         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
62107         (cexp_test_data): New variable.
62108         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
62109         (clog_test_data): New variable.
62110         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
62111         (clog10_test_data): New variable.
62112         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
62113         (conj_test_data): New variable.
62114         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
62115         (cproj_test_data): New variable.
62116         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
62117         (csin_test_data): New variable.
62118         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
62119         (csinh_test_data): New variable.
62120         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
62121         (csqrt_test_data): New variable.
62122         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
62123         (ctan_test_data): New variable.
62124         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
62125         (ctan_tonearest_test_data): New variable.
62126         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
62127         (ctan_towardzero_test_data): New variable.
62128         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
62129         (ctan_downward_test_data): New variable.
62130         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
62131         (ctan_upward_test_data): New variable.
62132         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
62133         (ctanh_test_data): New variable.
62134         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
62135         (ctanh_tonearest_test_data): New variable.
62136         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
62137         (ctanh_towardzero_test_data): New variable.
62138         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
62139         (ctanh_downward_test_data): New variable.
62140         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
62141         (ctanh_upward_test_data): New variable.
62142         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
62143         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
62144         of BUILD_COMPLEX.
62145
62146         * math/libm-test.inc (struct test_ff_f_data): New type.
62147         (struct test_ff_f_data_nexttoward): Likewise.
62148         (RUN_TEST_LOOP_2_f): New macro.
62149         (RUN_TEST_LOOP_ff_f): Likewise.
62150         (atan2_test_data): New variable.
62151         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
62152         (copysign_test_data): New variable.
62153         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
62154         (fdim_test_data): New variable.
62155         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
62156         (fmax_test_data): New variable.
62157         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
62158         (fmin_test_data): New variable.
62159         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
62160         (fmod_test_data): New variable.
62161         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
62162         (hypot_test_data): New variable.
62163         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
62164         (nextafter_test_data): New variable.
62165         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
62166         (nexttoward_test_data): New variable.
62167         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
62168         (pow_test_data): New variable.
62169         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
62170         (pow_tonearest_test_data): New variable.
62171         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
62172         (pow_towardzero_test_data): New variable.
62173         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
62174         (pow_downward_test_data): New variable.
62175         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
62176         (pow_upward_test_data): New variable.
62177         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
62178         (remainder_test_data): New variable.
62179         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
62180         (scalb_test_data): New variable.
62181         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
62182         * sysdeps/i386/fpu/libm-test-ulps: Update.
62183
62184 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
62185
62186         * math/libm-test.inc (fma_test): Use max_value instead of local
62187         variable fltmax.
62188         (nextafter_test): Likewise.
62189
62190         * math/libm-test.inc (acos_towardzero_test_data): New variable.
62191         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62192         (acos_downward_test_data): New variable.
62193         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62194         (acos_upward_test_data): New variable.
62195         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62196         (acosh_test_data): New variable.
62197         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
62198         (asin_test_data): New variable.
62199         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
62200         (asin_tonearest_test_data): New variable.
62201         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62202         (asin_towardzero_test_data): New variable.
62203         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62204         (asin_downward_test_data): New variable.
62205         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62206         (asin_upward_test_data): New variable.
62207         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62208         (asinh_test_data): New variable.
62209         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
62210         (atan_test_data): New variable.
62211         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
62212         (atanh_test_data): New variable.
62213         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
62214         (cbrt_test_data): New variable.
62215         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
62216         (ceil_test_data): New variable.
62217         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
62218         (cos_test_data): New variable.
62219         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
62220         (cos_tonearest_test_data): New variable.
62221         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62222         (cos_towardzero_test_data): New variable.
62223         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62224         (cos_downward_test_data): New variable.
62225         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62226         (cos_upward_test_data): New variable.
62227         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62228         (cosh_test_data): New variable.
62229         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
62230         (cosh_tonearest_test_data): New variable.
62231         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62232         (cosh_towardzero_test_data): New variable.
62233         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62234         (cosh_downward_test_data): New variable.
62235         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62236         (cosh_upward_test_data): New variable.
62237         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62238         (erf_test_data): New variable.
62239         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
62240         (erfc_test_data): New variable.
62241         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
62242         (exp_test_data): New variable.
62243         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
62244         (exp_tonearest_test_data): New variable.
62245         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62246         (exp_towardzero_test_data): New variable.
62247         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62248         (exp_downward_test_data): New variable.
62249         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62250         (exp_upward_test_data): New variable.
62251         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62252         (exp10_test_data): New variable.
62253         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
62254         (exp2_test_data): New variable.
62255         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
62256         (expm1_test_data): New variable.
62257         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
62258         (fabs_test_data): New variable.
62259         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
62260         (floor_test_data): New variable.
62261         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
62262         (j0_test_data): New variable.
62263         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
62264         (j1_test_data): New variable.
62265         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
62266         (log_test_data): New variable.
62267         (log_test): Run tests with RUN_TEST_LOOP_f_f.
62268         (log10_test_data): New variable.
62269         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
62270         (log1p_test_data): New variable.
62271         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
62272         (log2_test_data): New variable.
62273         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
62274         (logb_test_data): New variable.
62275         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
62276         (logb_downward_test_data): New variable.
62277         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62278         (nearbyint_test_data): New variable.
62279         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
62280         (rint_test_data): New variable.
62281         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
62282         (rint_tonearest_test_data): New variable.
62283         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62284         (rint_towardzero_test_data): New variable.
62285         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62286         (rint_downward_test_data): New variable.
62287         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62288         (rint_upward_test_data): New variable.
62289         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62290         (round_test_data): New variable.
62291         (round_test): Run tests with RUN_TEST_LOOP_f_f.
62292         (sin_test_data): New variable.
62293         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
62294         (sin_tonearest_test_data): New variable.
62295         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62296         (sin_towardzero_test_data): New variable.
62297         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62298         (sin_downward_test_data): New variable.
62299         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62300         (sin_upward_test_data): New variable.
62301         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62302         (sinh_test_data): New variable.
62303         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
62304         (sinh_tonearest_test_data): New variable.
62305         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62306         (sinh_towardzero_test_data): New variable.
62307         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62308         (sinh_downward_test_data): New variable.
62309         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62310         (sinh_upward_test_data): New variable.
62311         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62312         (sqrt_test_data): New variable.
62313         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
62314         (tan_test_data): New variable.
62315         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
62316         (tan_tonearest_test_data): New variable.
62317         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62318         (tan_towardzero_test_data): New variable.
62319         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
62320         (tan_downward_test_data): New variable.
62321         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
62322         (tan_upward_test_data): New variable.
62323         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
62324         (tanh_test_data): New variable.
62325         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
62326         (tgamma_test_data): New variable.
62327         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
62328         (trunc_test_data): New variable.
62329         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
62330         (y0_test_data): New variable.
62331         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
62332         (y1_test_data): New variable.
62333         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
62334         (significand_test_data): New variable.
62335         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
62336
62337 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
62338
62339         [BZ #12387]
62340         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
62341
62342 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
62343
62344         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
62345
62346 2013-05-10  Andreas Jaeger  <aj@suse.de>
62347
62348         [BZ #15448]
62349         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
62350         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
62351
62352 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62353
62354         * math/gen-libm-test.pl (adjust_arg): New function.
62355         (special_functions): Handle generating output in both functions
62356         and arrays.
62357         (parse_args): Likewise.
62358         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
62359         $in_func argument to parse_args.
62360         * math/libm-test.inc (struct test_f_f_data): New type.
62361         (IF_ROUND_INIT_): New macro.
62362         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
62363         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
62364         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
62365         (IF_ROUND_INIT_FE_UPWARD): Likewise.
62366         (ROUND_RESTORE_): Likewise.
62367         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
62368         (ROUND_RESTORE_FE_TONEAREST): Likewise.
62369         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
62370         (ROUND_RESTORE_FE_UPWARD): Likewise.
62371         (RUN_TEST_LOOP_f_f): New macro.
62372         (acos_test_data): New variable.
62373         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
62374         (acos_tonearest_test_data): New variable.
62375         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
62376
62377 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
62378
62379         * benchtests/bench-skeleton.c (startup): Fix coding style.
62380
62381 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
62382
62383         [BZ #6809]
62384         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
62385         negative infinity argument.
62386         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
62387         negative infinity argument.
62388         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
62389         negative infinity argument.
62390         * math/libm-test.inc (tgamma_test): Expect errno to be set for
62391         domain errors.
62392
62393 2013-05-10  Florian Weimer  <fweimer@redhat.com>
62394
62395         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
62396         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
62397         * iconv/iconv_prog.c (main): Likewise.
62398         * locale/programs/charmap-dir.c (charmap_readdir)
62399         (fopen_uncompressed): Likewise.
62400         * locale/programs/locfile.c (siblings_uncached)
62401         (write_locale_data): Use lstat64 instead of lstat.
62402         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
62403         stat.
62404
62405 2013-05-10  Andreas Jaeger  <aj@suse.de>
62406
62407         [BZ #15395]
62408         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
62409         localization.
62410         Include <locale.h>.
62411
62412 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
62413
62414         * elf/dl-close.c (_dl_close_worker): Add comments.
62415
62416 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
62417
62418         [BZ #15359]
62419         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
62420         high part of pi/2.
62421         (__ieee754_rem_pio2l): Update comments.
62422
62423         [BZ #15429]
62424         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
62425         high part of pi/2.
62426         (__ieee754_rem_pio2l): Update comments.
62427
62428         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
62429         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
62430
62431         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
62432         M_PI_4l.
62433
62434         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
62435         (M_PI_34_LOG10El): Likewise.
62436         (M_PI2_LOG10El): Likewise.
62437         (M_PI4_LOG10El): Likewise.
62438         (M_PI_LOG10El): Likewise.
62439
62440 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62441
62442         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62443
62444 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
62445
62446         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
62447         (MINUS_ZERO_INIT): Likewise.
62448         (PLUS_INFTY_INIT): Likewise.
62449         (MINUS_INFTY_INIT): Likewise.
62450         (QNAN_VALUE_INIT): Likewise.
62451         (MAX_VALUE_INIT): Likewise.
62452         (MIN_VALUE_INIT): Likewise.
62453         (MIN_SUBNORM_VALUE_INIT): Likewise.
62454         (plus_zero): Initialize with PLUS_ZERO_INIT.
62455         (minus_zero): Initialize with MINUS_ZERO_INIT.
62456         (plus_infty): Initialize with PLUS_INFTY_INIT.
62457         (minus_infty): Initialize with MINUS_INFTY_INIT.
62458         (qnan_value): Initialize with QNAN_VALUE_INIT.
62459         (max_value): Initialize with MAX_VALUE_INIT.
62460         (min_value): Initialize with MIN_VALUE_INIT.
62461         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
62462
62463         * math/libm-test.inc (RUN_TEST_if_f): New macro.
62464         (jn_test): Use TEST_if_f instead of TEST_ff_f.
62465         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
62466         (yn_test): Use TEST_if_f instead of TEST_ff_f.
62467
62468         * math/libm-test.inc (RUN_TEST_f_f): New macro.
62469         (RUN_TEST_2_f): Likewise.
62470         (RUN_TEST_ff_f): Likewise.
62471         (RUN_TEST_fi_f): Likewise.
62472         (RUN_TEST_fl_f): Likewise.
62473         (RUN_TEST_fff_f): Likewise.
62474         (RUN_TEST_c_f): Likewise.
62475         (RUN_TEST_f_f1): Likewise.
62476         (RUN_TEST_fF_f1): Likewise.
62477         (RUN_TEST_fI_f1): Likewise.
62478         (RUN_TEST_ffI_f1): Likewise.
62479         (RUN_TEST_c_c): Likewise.
62480         (RUN_TEST_cc_c): Likewise.
62481         (RUN_TEST_f_i): Likewise.
62482         (RUN_TEST_f_i_tg): Likewise.
62483         (RUN_TEST_ff_i_tg): Likewise.
62484         (RUN_TEST_f_b): Likewise.
62485         (RUN_TEST_f_b_tg): Likewise.
62486         (RUN_TEST_f_l): Likewise.
62487         (RUN_TEST_f_L): Likewise.
62488         (RUN_TEST_sincos): Likewise.
62489         * math/gen-libm-test.pl (new_test): Take new argument to indicate
62490         whether to show exceptions.  Do not include ");\n" in return
62491         value.
62492         (special_functions): Output call to RUN_TEST_sincos instead of
62493         check_float calls.  Update calls to new_test.
62494         (parse_args): Output call to single RUN_TEST_* macro instead of
62495         check_* calls and other assignments.  Update calls to new_test.
62496
62497         [BZ #2546]
62498         [BZ #2560]
62499         [BZ #5159]
62500         [BZ #15426]
62501         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
62502         input to result for tgamma overflow.
62503         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
62504         (gamma_coeff): New variable.
62505         (NCOEFF): New macro.
62506         (gamma_positive): New function.
62507         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
62508         underflow here.  Use gamma_positive instead of exp (lgamma) for
62509         other arguments.
62510         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
62511         (gamma_coeff): New variable.
62512         (NCOEFF): New macro.
62513         (gammaf_positive): New function.
62514         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
62515         underflow here.  Use gamma_positive instead of exp (lgamma) for
62516         other arguments.
62517         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
62518         (gamma_coeff): New variable.
62519         (NCOEFF): New macro.
62520         (gammal_positive): New function.
62521         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
62522         underflow here.  Use gamma_positive instead of exp (lgamma) for
62523         other arguments.
62524         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
62525         (gamma_coeff): New variable.
62526         (NCOEFF): New macro.
62527         (gammal_positive): New function.
62528         (__ieee754_gammal_r): Handle positive infinity, overflow and
62529         underflow here.  Handle NaN the same as positive infinity.  Remove
62530         check x < 0xffffffff for negative integers.  Use gamma_positive
62531         instead of exp (lgamma) for other arguments.
62532         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
62533         (gamma_coeff): New variable.
62534         (NCOEFF): New macro.
62535         (gammal_positive): New function.
62536         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
62537         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
62538         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
62539         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
62540         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
62541         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
62542         * sysdeps/generic/math_private.h (__gamma_productf): New
62543         prototype.
62544         (__gamma_product): Likewise.
62545         (__gamma_productl): Likewise.
62546         * math/Makefile (libm-calls): Add gamma_product.
62547         * math/libm-test.inc (tgamma_test): Add more tests.
62548         * sysdeps/i386/fpu/libm-test-ulps: Update.
62549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62550
62551 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
62552
62553         * benchtests/bench-skeleton.c (main): Preheat CPU.
62554
62555 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
62556
62557         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
62558
62559 2013-05-07  Roland McGrath  <roland@hack.frob.com>
62560
62561         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
62562         and _dl_skip_args_internal.
62563
62564 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
62565
62566         * manual/message.texi (Message Translation): Talk about users.
62567         Message to key mapping impacts design.
62568
62569 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62570
62571         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
62572
62573         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
62574
62575         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
62576         * sysdeps/wordsize-64/glob64.c: ... here.
62577
62578         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
62579         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
62580         New macros.
62581
62582         * debug/getlogin_r_chk.c: Moved to ...
62583         * login/getlogin_r_chk.c: ... here.
62584         * debug/Makefile (routines): Move getlogin_r_chk to ...
62585         * login/Makefile (routines): ... here.
62586         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
62587         * login/Versions (libc: GLIBC_2.4): ... here.
62588
62589         * io/poll.c (__poll): Renamed from poll.
62590         Add libc_hidden_def.
62591         (poll): Define as weak alias.
62592
62593         * debug/ptsname_r_chk.c: Moved to ...
62594         * login/ptsname_r_chk.c: ... here.
62595         * debug/Makefile (routines): Move ptsname_r_chk to ...
62596         * login/Makefile (routines): ... here.
62597         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
62598         * login/Versions (libc: GLIBC_2.4): ... here.
62599
62600         * posix/getlogin.c: Moved to ...
62601         * login/getlogin.c: ... here.
62602         * posix/getlogin_r.c: Moved to ...
62603         * login/getlogin_r.c: ... here.
62604         * posix/getlogin_r.c: Moved to ...
62605         * login/getlogin_r.c: ... here.
62606         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
62607         * login/Makefile (routines): ... here.
62608         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
62609         * login/Versions (libc: GLIBC_2.0): ... here.
62610
62611         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
62612         (setrlimit): Define as weak alias.
62613
62614         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
62615         Call __ names for open, ftruncate, and close.
62616         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
62617         (truncate): Define as weak alias.
62618
62619 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
62620
62621         * math/gen-libm-test.pl (parse_args): Initialize x before each
62622         test of frexp, modf and remquo.
62623
62624         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
62625         test signgam value.
62626
62627 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62628
62629         [BZ #15418]
62630         [BZ #15419]
62631         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
62632         internal tests.
62633         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
62634
62635 2013-05-06  Roland McGrath  <roland@hack.frob.com>
62636
62637         * elf/dl-writev.h: New file.
62638         * elf/dl-misc.c: Include it.
62639         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
62640         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
62641
62642 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
62643
62644         * math/libm-test.inc (noXFails): Remove variable.
62645         (noXPasses): Likewise.
62646         (BUILD_COMPLEX_INT): Remove macro.
62647         (print_screen): Remove xfail argument.
62648         (print_screen_max_error): Likewise.
62649         (update_stats): Likewise.
62650         (print_max_error): Likewise.  Update calls to other affected
62651         functions.
62652         (print_complex_max_error): Likewise.
62653         (test_single_exception): Update calls to print_screen.
62654         (test_single_errno): Likewise.
62655         (check_float_internal): Remove xfail argument.  Update calls to
62656         other affected functions.
62657         (check_float): Likewise.
62658         (check_complex): Likewise.
62659         (check_int): Likewise.
62660         (check_long): Likewise.
62661         (check_bool): Likewise.
62662         (check_longlong): Likewise.
62663         (main): Don't print noXFails and noXPasses.
62664         * math/gen-libm-test.pl (top level): Don't mention expected
62665         failure handling in comment.
62666         (new_test): Don't handle expected failures.
62667         (parse_args): Don't mention expected failure handling in comment.
62668         (generate_testfile): Don't handle expected failures.
62669         (parse_ulps): Likewise.
62670         (print_ulps_file): Likewise.
62671         (get_failure): Remove function.
62672         (output_test): Don't handle expected failures.
62673         * make/README.libm-test: Don't mention expected failure handling.
62674
62675         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
62676         (minus_zero): Likewise.
62677         (plus_infty): Likewise.
62678         (minus_infty): Likewise.
62679         (qnan_value): Likewise.
62680         (max_value): Likewise.
62681         (min_value): Likewise.
62682         (min_subnorm_value): Likewise.
62683         (initialize): Do not initialize those variables dynamically.
62684
62685 2013-05-03  Roland McGrath  <roland@hack.frob.com>
62686
62687         * io/open.c (__open_2): Moved to ...
62688         * io/open_2.c: ... this new file.
62689         * io/open64.c (__open64_2): Moved to ...
62690         * io/open64_2.c: ... this new file.
62691         * io/openat.c (__openat_2): Moved to ...
62692         * io/openat_2.c: ... this new file.
62693         * io/openat64.c (__openat64_2): Moved to ...
62694         * io/openat64_2.c: ... this new file.
62695         * io/Makefile (routines): Add them.
62696         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
62697         * sysdeps/unix/sysv/linux/open_2.c: File removed.
62698         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
62699         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
62700         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
62701         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
62702         (__openat64): Add hidden_ver.
62703         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
62704         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
62705
62706         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
62707         Separately conditionalize setting of GLRO(dl_sysinfo) so
62708         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
62709         as well, but the actual setting is only under [NEED_DL_SYSINFO].
62710
62711 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62712
62713         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
62714         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
62715         definition.
62716         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
62717         * sysdeps/unix/sysv/linux/powerpc/init-first.c
62718         (_libc_vdso_platform_setup): Add __vdso_time initialization.
62719         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
62720         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
62721
62722 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
62723
62724         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
62725         test signgam value.
62726
62727         * math/libm-test.inc (hypot_test): Do not use
62728         IGNORE_ZERO_INF_SIGN.
62729
62730 2013-05-03  Andreas Jaeger  <aj@suse.de>
62731
62732         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
62733         Linux 3.9.
62734         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
62735         (PF_MAX): Adjust for VSOCK change.
62736
62737 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62738
62739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62740
62741 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
62742
62743         [BZ #15264]
62744         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
62745         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
62746         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
62747
62748 2013-05-02  David S. Miller  <davem@davemloft.net>
62749
62750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62751
62752 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
62753
62754         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
62755
62756 2013-05-01  Roland McGrath  <roland@hack.frob.com>
62757
62758         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
62759
62760 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
62761
62762         [BZ #14952]
62763         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
62764         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62765         Use __attribute__ ((__gnu_inline__)).
62766         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
62767         Don't use __attribute__ ((__gnu_inline__)).
62768
62769 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
62770
62771         [BZ #15423]
62772         * math/s_catan.c (__catan): Handle small real or imaginary part of
62773         input specially to avoid spurious underflow.
62774         * math/s_catanf.c (__catanf): Likewise.
62775         * math/s_catanh.c (__catanh): Likewise.
62776         * math/s_catanhf.c (__catanhf): Likewise.
62777         * math/s_catanhl.c (__catanhl): Likewise.
62778         * math/s_catanl.c (__catanl): Likewise.
62779         * math/libm-test.inc (catan_test): Add more tests.
62780         (catanh_test): Likewise.
62781         * sysdeps/i386/fpu/libm-test-ulps: Update.
62782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62783
62784 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62785
62786         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62787
62788 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
62789
62790         [BZ #15416]
62791         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
62792         accurately for denominator in atan2.
62793         * math/s_catanf.c (__catanf): Likewise.
62794         * math/s_catanh.c (__catanh): Likewise.
62795         * math/s_catanhf.c (__catanhf): Likewise.
62796         * math/s_catanhl.c (__catanhl): Likewise.
62797         * math/s_catanl.c (__catanl): Likewise.
62798         * math/libm-test.inc (catan_test): Add more tests.
62799         (catanh_test): Likewise.
62800         * sysdeps/i386/fpu/libm-test-ulps: Update.
62801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62802
62803 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
62804
62805         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
62806
62807         * benchtests/Makefile (bench): Remove slow benchmarks.
62808         * benchtests/atan-inputs: Add slow benchmark inputs.
62809         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
62810         (BENCH_FUNC): Accept variant offset.
62811         (VARIANT): Define.
62812         * benchtests/bench-skeleton.c (main): Run benchmark for each
62813         variant.
62814         * benchtests/cos-inputs: Add slow benchmark inputs.
62815         * benchtests/exp-inputs: Likewise.
62816         * benchtests/pow-inputs: Likewise.
62817         * benchtests/sin-inputs: Likewise.
62818         * benchtests/slowatan-inputs: Remove.
62819         * benchtests/slowatan.c: Remove.
62820         * benchtests/slowcos-inputs: Remove.
62821         * benchtests/slowcos.c: Remove.
62822         * benchtests/slowexp-inputs: Remove.
62823         * benchtests/slowexp.c: Remove.
62824         * benchtests/slowpow-inputs: Remove.
62825         * benchtests/slowpow.c: Remove.
62826         * benchtests/slowsin-inputs: Remove.
62827         * benchtests/slowsin.c: Remove.
62828         * benchtests/slowtan-inputs: Remove.
62829         * benchtests/slowtan.c: Remove.
62830         * benchtests/tan-inputs: Add slow benchmark inputs.
62831         * scripts/bench.pl: Parse comments and directives.
62832
62833         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
62834         in CPPFLAGS.
62835         ($(objpfx)bench-%.c): Remove *-ITER.
62836         * benchtests/bench-modf.c: Remove definition of ITER.
62837         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
62838         (main): Loop for DURATION seconds instead of fixed number of
62839         iterations.
62840         * scripts/bench.pl: Don't expect iterations in parameters.
62841
62842 2013-04-29  Roland McGrath  <roland@hack.frob.com>
62843
62844         * io/fchdir.c (__fchdir): Renamed from fchdir.
62845         (fchdir): Define as weak alias.
62846
62847 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62848
62849         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
62850         (ERRNO_EDOM): Likewise.
62851         (ERRNO_ERANGE): Likewise.
62852         (noErrnoTests): New variable.
62853         (init_max_error): Set errno to 0.
62854         (test_single_errno): New function.
62855         (test_errno): Likewise.
62856         (check_float_internal): Call test_errno.  Set errno to 0.
62857         (check_complex): Refer to errno tests in comment.
62858         (check_int): Call test_errno.  Set errno to 0.
62859         (check_long): Likewise.
62860         (check_bool): Likewise.
62861         (check_longlong): Likewise.
62862         (cos_test): Use ERRNO_* flags for errno tests instead of
62863         check_int.
62864         (expm1_test): Likewise.
62865         (fmod_test): Likewise.
62866         (ilogb_test): Likewise.
62867         (lgamma_test): Likewise.
62868         (pow_test): Likewise.
62869         (remainder_test): Likewise.
62870         (sin_test): Likewise.
62871         (tan_test): Likewise.
62872         (yn_test): Likewise.
62873         (initialize): Set errno to 0.
62874         (main): Print number of errno tests.
62875         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
62876
62877 2013-04-29  Andreas Jaeger  <aj@suse.de>
62878
62879         [BZ #15084]
62880         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
62881         and RES_USEVC.
62882
62883         [BZ #15085]
62884         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
62885         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
62886         unimplemented.
62887
62888         [BZ #15380]
62889         * stdlib/random.c (__initstate): Return NULL if
62890         __initstate fails.
62891
62892         [BZ #15086]
62893         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
62894         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
62895         RES_SNGLKUPREOP.
62896
62897 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62898
62899         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62900
62901 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
62902
62903         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
62904         of individual tests.
62905         (casin_test): Likewise.
62906         (casinh_test): Likewise.
62907
62908 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
62909
62910         [BZ #15409]
62911         * math/s_catan.c (__catan): Handle arguments with large real or
62912         imaginary part separately without squaring.
62913         * math/s_catanf.c (__catanf): Likewise.
62914         * math/s_catanh.c (__catanh): Likewise.
62915         * math/s_catanhf.c (__catanhf): Likewise.
62916         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62917         and redefine.
62918         (__catanhl): Handle arguments with large real or imaginary part
62919         separately without squaring.
62920         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
62921         and redefine.
62922         (__catanl): Handle arguments with large real or imaginary part
62923         separately without squaring.
62924         * math/libm-test.inc (catan_test): Add more tests.
62925         (catanh_test): Likewise.
62926         * sysdeps/i386/fpu/libm-test-ulps: Update.
62927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62928
62929 2013-04-27  Andreas Jaeger  <aj@suse.de>
62930
62931         [BZ #15007]
62932         * stdlib/stdlib.h: Update guards for qecvt.
62933         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
62934         <stdlib.h>.
62935
62936 2013-04-27  Allan McRae  <allan@archlinux.org>
62937
62938         * sysdeps/i386/fpu/libm-test-ulps: Update.
62939
62940 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
62941
62942         [BZ #15406]
62943         * math/s_catan.c: Include <float.h>.
62944         (__catan): Ensure underflow exception occurs for underflowed
62945         result.
62946         * math/s_catanf.c: Include <float.h>.
62947         (__catanf): Ensure underflow exception occurs for underflowed
62948         result.
62949         * math/s_catanh.c: Include <float.h>.
62950         (__catanh): Ensure underflow exception occurs for underflowed
62951         result.
62952         * math/s_catanhf.c: Include <float.h>.
62953         (__catanhf): Ensure underflow exception occurs for underflowed
62954         result.
62955         * math/s_catanhl.c: Include <float.h>.
62956         (__catanhl): Ensure underflow exception occurs for underflowed
62957         result.
62958         * math/s_catanl.c: Include <float.h>.
62959         (__catanl): Ensure underflow exception occurs for underflowed
62960         result.
62961         * math/libm-test.inc (catan_test): Add more tests.
62962         (catanh_test): Likewise.
62963
62964         [BZ #15405]
62965         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
62966         underflowed result.
62967         * math/s_ccoshf.c (__ccoshf): Likewise.
62968         * math/s_ccoshl.c (__ccoshl): Likewise.
62969         * math/s_csin.c (__csin): Likewise.
62970         * math/s_csinf.c (__csinf): Likewise.
62971         * math/s_csinh.c (__csinh): Likewise.
62972         * math/s_csinhf.c (__csinhf): Likewise.
62973         * math/s_csinhl.c (__csinhl): Likewise.
62974         * math/s_csinl.c (__csinl): Likewise.
62975         * math/libm-test.inc (ccos_test): Add more tests.
62976         (ccosh_test): Likewise.
62977         (csin_test): Likewise.
62978         (csinh_test): Likewise.
62979
62980 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62981
62982         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
62983         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
62984         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
62985         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
62986         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
62987         powerpc/power5+/fpu folders.
62988         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
62989
62990
62991 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
62992
62993         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
62994
62995 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
62996
62997         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
62998         additions to variable.
62999         [$(config-machine) = x86_64] (modules-names): Likewise.
63000         ($(objpfx)tst-audit3): Remove dependency.
63001         ($(objpfx)tst-audit3.out): Likewise.
63002         ($(objpfx)tst-audit4): Likewise.
63003         ($(objpfx)tst-audit4.out): Likewise.
63004         ($(objpfx)tst-audit5): Likewise.
63005         ($(objpfx)tst-audit5.out): Likewise.
63006         ($(objpfx)tst-audit6): Likewise.
63007         ($(objpfx)tst-audit6.out): Likewise.
63008         ($(objpfx)tst-audit7): Likewise.
63009         ($(objpfx)tst-audit7.out): Likewise.
63010         (tst-audit3-ENV): Remove variable.
63011         (tst-audit4-ENV): Likewise.
63012         (tst-audit5-ENV): Likewise.
63013         (tst-audit6-ENV): Likewise.
63014         (tst-audit7-ENV): Likewise.
63015         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
63016         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
63017         addition to variable.
63018         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
63019         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
63020         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
63021         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
63022         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
63023         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
63024         tst-audit3, tst-audit4 and tst-audit5.
63025         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
63026         tst-audit6 and tst-audit7.
63027         [$(subdir) = elf] (modules-names): Add audit modules for those
63028         tests.
63029         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
63030         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
63031         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
63032         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
63033         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
63034         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
63035         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
63036         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
63037         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
63038         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
63039         [$(subdir) = elf] (tst-audit3-ENV): New variable.
63040         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
63041         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
63042         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
63043         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
63044         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
63045         Likewise.
63046         [$(subdir) = elf && $(config-cflags-avx) = yes]
63047         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
63048         [$(subdir) = elf && $(config-cflags-avx) = yes]
63049         (CFLAGS-tst-auditmod4a.c): Likewise.
63050         [$(subdir) = elf && $(config-cflags-avx) = yes]
63051         (CFLAGS-tst-auditmod4b.c): Likewise.
63052         [$(subdir) = elf && $(config-cflags-avx) = yes]
63053         (CFLAGS-tst-auditmod6b.c): Likewise.
63054         [$(subdir) = elf && $(config-cflags-avx) = yes]
63055         (CFLAGS-tst-auditmod6c.c): Likewise.
63056         [$(subdir) = elf && $(config-cflags-avx) = yes]
63057         (CFLAGS-tst-auditmod7b.c): Likewise.
63058         * elf/tst-audit3.c: Move to ...
63059         * sysdeps/x86_64/tst-audit3.c: ... here.
63060         * elf/tst-audit4.c: Move to ...
63061         * sysdeps/x86_64/tst-audit4.c: ... here.
63062         * elf/tst-audit5.c: Move to ...
63063         * sysdeps/x86_64/tst-audit5.c: ... here.
63064         * elf/tst-audit6.c: Move to ...
63065         * sysdeps/x86_64/tst-audit6.c: ... here.
63066         * elf/tst-audit7.c: Move to ...
63067         * sysdeps/x86_64/tst-audit7.c: ... here.
63068         * elf/tst-auditmod3a.c: Move to ...
63069         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
63070         * elf/tst-auditmod3b.c: Move to ...
63071         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
63072         * elf/tst-auditmod4a.c: Move to ...
63073         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
63074         * elf/tst-auditmod4b.c: Move to ...
63075         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
63076         * elf/tst-auditmod5a.c: Move to ...
63077         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
63078         * elf/tst-auditmod5b.c: Move to ...
63079         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
63080         * elf/tst-auditmod6a.c: Move to ...
63081         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
63082         * elf/tst-auditmod6b.c: Move to ...
63083         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
63084         * elf/tst-auditmod6c.c: Move to ...
63085         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
63086         * elf/tst-auditmod7a.c: Move to ...
63087         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
63088         * elf/tst-auditmod7b.c: Move to ...
63089         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
63090
63091 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
63092
63093         [BZ #15366]
63094         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
63095         define unconditionally.
63096         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
63097         define unconditionally.
63098         (INT8_C, INT16_C, etc.): Likewise.
63099
63100 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
63101
63102         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
63103         __ehdr_start with hidden visibility.
63104
63105         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
63106
63107 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
63108
63109         * math/libm-test.inc (cos_test): Use accurate hex constants.
63110         (sincost_test): Likewise.
63111
63112 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
63113
63114         * math/libm-test.inc (catan_test): Add more tests.
63115         (catanh_test): Likewise.
63116
63117         * math/s_catanf.c (__catanf): Use suffixed floating-point
63118         constants.
63119         * math/s_catanhf.c (__catanhf): Likewise.
63120         * math/s_catanhl.c (__catanhl): Likewise.
63121         * math/s_catanl.c (__catanl): Likewise.
63122
63123         [BZ #15394]
63124         * math/s_catan.c (__catan): Calculate imaginary part of result
63125         with log1p not log unless computing log of number close to 0.
63126         * math/s_catanf.c (__catanf): Likewise.
63127         * math/s_catanl.c (__catanl): Likewise.
63128         * math/s_catanh.c (__catanh): Calculate real part of result with
63129         log1p not log unless computing log of number close to 0.
63130         * math/s_catanhf.c (__catanhf): Likewise.
63131         * math/s_catanhl.c (__catanhl): Likewise.
63132         * math/libm-test.inc (catan_test): Add more tests.
63133         (catanh_test): Likewise.
63134         * sysdeps/i386/fpu/libm-test-ulps: Update.
63135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63136
63137 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
63138
63139         * benchtests/Makefile: Mention files in which fast and slow
63140         paths of math functions are implemented.
63141
63142 2013-04-23  Roland McGrath  <roland@hack.frob.com>
63143
63144         * sysdeps/posix/timespec_get.c: New file.
63145
63146 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63147
63148         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
63149         POWER.
63150         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
63151         for POWER.
63152         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
63153         powerpc/power5/fpu folders.
63154         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
63155         * benchtests/Makefile: Add modf testcase.
63156         * benchtests/bench-modf.c: New file: Benchmark test for mo
63157
63158 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
63159
63160         [BZ #14888]
63161         * time/Makefile (tests): Add tst-strptime-whitespace.
63162         * time/strptime_l.c (get_number): Use ISSPACE.
63163         (__strptime_internal): Likewise.
63164         * time/tst-strptime-whitespace.c: New test case.
63165
63166 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
63167
63168         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
63169         member.
63170         (_nss_files_init): Set it here.
63171
63172 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
63173
63174         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
63175         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
63176         unsigned.
63177
63178 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
63179
63180         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
63181
63182 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
63183
63184         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
63185         size just once.
63186
63187 2013-04-21  David S. Miller  <davem@davemloft.net>
63188
63189         * po/ru.po: Update Russion translation from translation project.
63190
63191 2013-04-17  Adam Conrad  <adconrad@0c3.net>
63192
63193         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
63194         and setfsgid.
63195
63196 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
63197
63198         * configure.in: Remove i386 configure warning. Remove i386 case.
63199         * configure: Regenerate.
63200         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
63201         Add example to error message.
63202         * sysdeps/i386/configure: Regenerate.
63203
63204 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
63205
63206         * benchtests/Makefile (bench): Add cos, tan, slowcos and
63207         slowtan.
63208         * benchtests/cos-inputs: New file.
63209         * benchtests/slowcos-inputs: New file.
63210         * benchtests/slowcos.c: New file.
63211         * benchtests/slowtan-inputs: New file.
63212         * benchtests/slowtan.c: New file.
63213         * benchtests/tan-inputs: New file.
63214
63215 2013-04-16  Roland McGrath  <roland@hack.frob.com>
63216
63217         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
63218         considered kosher.
63219
63220 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
63221
63222         * benchtests/Makefile: Include cppflags-iterator.mk to add
63223         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
63224
63225         * Makefile.in (bench-clean): New target.
63226         * benchtests/Makefile (bench-clean): Likewise.
63227
63228 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
63229
63230         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
63231
63232 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
63233
63234         * stdio-common/tstdiomisc.c: Fix coding-style violation.
63235
63236 2013-04-15  Andreas Schwab  <schwab@suse.de>
63237
63238         * nscd/grpcache.c (cache_addgr): Properly check for short write.
63239         * nscd/initgrcache.c (addinitgroupsX): Likewise.
63240         * nscd/pwdcache.c (cache_addpw): Likewise.
63241         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
63242         more than recsize.
63243
63244 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63245
63246         * benchtests/Makefile (bench): Write all output to
63247         bench-out.tmp together.
63248
63249 2013-04-15  Andreas Schwab  <schwab@suse.de>
63250
63251         * nscd/nscd.c (main): Don't fork again after closing files.
63252
63253 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
63254
63255         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
63256
63257         * benchtests/Rules (bench-deps): Collect dependencies into a
63258         single variable.  Add Makefile to dependencies.
63259         ($(objpfx)bench-%.c): Depend on bench-deps.
63260
63261 2013-04-12  Roland McGrath  <roland@hack.frob.com>
63262             Xavier Roche  <roche+kml2@exalead.com>
63263
63264         [BZ #15361]
63265         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
63266         just that it's a file descriptor.
63267         * manual/llio.texi (Synchronizing AIO Operations): Update description
63268         for EBADF error from aio_fsync.
63269
63270 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
63271
63272         * Rules (bench): Move target definition...
63273         * benchtests/Makefile: ... here.
63274
63275 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
63276
63277         * math/libm-test.inc (cos_test): Fix PI/2 test.
63278         (sincos_test): Likewise.
63279         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
63280         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
63281
63282 2013-04-11  Andreas Schwab  <schwab@suse.de>
63283
63284         [BZ #13988]
63285         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
63286         accept exponent character only when digits were seen.
63287         * stdio-common/Makefile (tests): Add bug26.
63288         * stdio-common/bug26.c: New file.
63289
63290         [BZ #14293]
63291         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
63292         non-freeable.
63293
63294 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
63295
63296         * Makeconfig (rtld-prefix): Define built linker prefix.
63297         * Rules (run-bench): Use it.
63298         * math/Makefile (run-regen-ulps): Likewise.
63299
63300         * Rules (bench): Remove eval.
63301
63302 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
63303             Roland McGrath  <roland@hack.frob.com>
63304             Ondrej Bilka  <neleai@seznam.cz>
63305
63306         [BZ #15346]
63307         * time/getdate.c: Include ctype.h and alloca.h.
63308         (__getdate_r): Trim leading and trailing spaces of input.
63309         * time/tst-getdate.c (tests): Add tests with leading and
63310         trailing spaces.
63311
63312 2013-04-08  Roland McGrath  <roland@hack.frob.com>
63313
63314         [BZ #14280]
63315         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
63316         when computing value.
63317
63318 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63319
63320         * math/README.libm-test (How can I generate "libm-test-ulps"?):
63321         Use testrun.sh to run libm tests.
63322
63323         [BZ #15309]
63324         * elf/dl-open.c (dl_open_worker): memset all of seen array.
63325
63326 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
63327
63328         [BZ #15264]
63329         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
63330
63331 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63332
63333         * Makefile.in (regen-ulps): New target.
63334         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
63335         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
63336         [ifneq (no,$(PERL)] (regen-ulps): New target.
63337         [ifeq (no,$(PERL)] (regen-ulps): New target.
63338         * math/libm-test.inc (ulps_file_name): Define.
63339         (output_dir): New variable.
63340         (options): Add "output-dir" option.
63341         (parse_opt): Handle 'o' case.
63342         (main): If output_dir is non-NULL use it as a prefix
63343         otherwise use "".
63344         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
63345
63346 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63347
63348         [BZ #10060, #10062]
63349         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
63350         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
63351         fail configure if __sync_val_compare_and_swap is not inlined.
63352         * sysdeps/i386/configure: Regenerate.
63353         * configure.in: Build for i686 when configured for i386.
63354         * configure: Regenerate.
63355         * README: Remove i386 reference.
63356
63357 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
63358
63359         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
63360         * sysdeps/s390/s390-64/sysdep.h: Likewise.
63361
63362 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
63363
63364         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
63365         (lmsnanval): New variables.
63366         (F): Add conversion tests.
63367         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
63368         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
63369
63370         * stdio-common/tstdiomisc.c (F): Properly collect individual
63371         tests' results.
63372
63373         [BZ #14686, #15336]
63374         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
63375         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
63376         Instead, use input NaN values or generate a qNaN by arithmetic
63377         operation.  Also fix bugs to comply with the standard.
63378         * math/libm-test.inc (remainder_test): Add more tests.
63379
63380         [BZ #15335, #15342]
63381         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
63382         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
63383         input NaN values or generate a qNaN by arithmetic operation.
63384
63385         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
63386         unreachable code.
63387
63388         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
63389         definitions.
63390
63391 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
63392
63393         [BZ #14478]
63394         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
63395         underflowed result.
63396         * math/s_cexpf.c (__cexpf): Likewise.
63397         * math/s_cexpl.c (__cexpl): Likewise.
63398         * math/libm-test.inc (cexp_test): Add more tests.
63399
63400 2013-04-03  Andreas Schwab  <schwab@suse.de>
63401
63402         [BZ #15330]
63403         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
63404         order arrays from heap if bigger than alloca cutoff.
63405
63406 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
63407
63408         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
63409         (SNAN_TESTS_double): Refer to GCC PR56831.
63410         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
63411         GCC PR56828.
63412
63413 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
63414
63415         * Rules (bench): Move bench.out after the run is complete.
63416
63417         * Rules (bench): Echo currently running benchmark.
63418
63419         * benchtests/Makefile (bench): Add atan and slowatan.
63420         * benchtests/atan-inputs: New file.
63421         * benchtests/slowatan-inputs: New file.
63422         * benchtests/slowatan.c: New file.
63423
63424         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
63425         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
63426         its value.
63427
63428         [BZ #15305]
63429         * sysdeps/unix/sysv/linux/kernel-features.h
63430         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
63431         __ASSUME_XFS_RESTRICTED_CHOWN.
63432         * sysdeps/unix/sysv/linux/pathconf.c
63433         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
63434         Save and restore errno.
63435
63436 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
63437
63438         [BZ #15327]
63439         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
63440         arguments using __kernel_casinh.
63441         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
63442         arguments using __kernel_casinhf.
63443         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
63444         arguments using __kernel_casinhl.
63445         * math/libm-test.inc (cacosh_test): Add more tests.
63446         * sysdeps/i386/fpu/libm-test-ulps: Update.
63447         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63448
63449 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
63450
63451         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
63452         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
63453
63454         * bench/Makefile (bench): Add sin and slowsin.
63455         * benchtests/sin-inputs: New file.
63456         * benchtests/slowsin-inputs: New file.
63457         * benchtests/slowsin.c: New file.
63458
63459         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
63460         (bench): Add slowexp and slowpow.
63461         (exp-ITER): Increase iterations.
63462         (pow-ITER): Likewise.
63463         * benchtests/exp-inputs: Change input.
63464         * benchtests/pow-inputs: Likewise.
63465         * benchtests/slowexp-inputs: New file.
63466         * benchtests/slowexp.c: New file.
63467         * benchtests/slowpow-inputs: New file.
63468         * benchtests/slowpow.c: New file.
63469
63470 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63471
63472         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
63473         instructions.
63474         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
63475         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
63476         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
63477         * benchtests/Makefile: Add rint benchtest.
63478         * benchtests/rint-inputs: Input for rint benchtest.
63479
63480 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
63481
63482         * Versions.def (libm): Add GLIBC_2.18.
63483         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
63484         hidden libm prototypes.
63485         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
63486         * math/Makefile (libm-calls): Add s_issignaling.
63487         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
63488         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
63489         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
63490         declaration.
63491         * math/math.h [__USE_GNU] (issignaling): New macro.
63492         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
63493         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
63494         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
63495         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
63496         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
63497         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
63498         * manual/arith.texi (issignaling): New section.
63499         * manual/libm-err-tab.pl (@all_functions): Update comment.
63500         * math/gen-libm-test.pl (parse_args): Apply special handling for
63501         issignaling.
63502         * math/libm-test.inc (print_float, issignaling_test): New
63503         functions.
63504         (check_float_internal): Add issignaling checks.
63505         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
63506         default definition.
63507         * sysdeps/powerpc/math-tests.h: New file.
63508         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
63509         tests.
63510         * math/test-snan.c (TEST_FUNC): Likewise.
63511
63512 2013-03-30  David S. Miller  <davem@davemloft.net>
63513
63514         * po/de.po: Update from translation team.
63515
63516 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
63517
63518         [BZ #10357]
63519         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63520         imaginary part less than 1.0 and real part less than 0.5
63521         specially.
63522         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63523         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63524         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
63525         (cacos_test): Add more tests.
63526         (casin_test): Likewise.
63527         (casinh_test): Likewise.
63528         * sysdeps/i386/fpu/libm-test-ulps: Update.
63529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63530
63531 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
63532
63533         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
63534         ONE with its value.
63535
63536         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
63537         (__pow_mp): Replace ONE and MONE with their values.
63538         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63539         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
63540         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63541         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
63542         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63543         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63544
63545         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
63546
63547         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
63548         (__pow_mp): Replace ZERO and MZERO with their values.
63549         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63550         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63551         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
63552         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
63553         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63554         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
63555         (__sqr): Likewise.
63556
63557         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
63558
63559         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
63560
63561 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63562
63563         * include/stdlib.h [!SHARED] (__call_tls_dtors):
63564         Declare with __attribute__ ((weak)).
63565         * stdlib/exit.c (__libc_atexit) [!SHARED]:
63566         Call __call_tls_dtors only if it's not NULL.
63567
63568 2013-03-28  Roland McGrath  <roland@hack.frob.com>
63569
63570         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
63571         didn't do it already, then set _dl_phdr and _dl_phnum based on the
63572         magic __ehdr_start linker symbol if it's defined.
63573         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
63574         them up here if it was already done.
63575
63576         * elf/dl-support.c (_dl_phdr): Make pointer to const.
63577         (_dl_aux_init): Use const in cast when setting it.
63578         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
63579         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
63580         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
63581
63582         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
63583         Declare them here.
63584         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
63585         * csu/libc-tls.c: Nor here.
63586         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
63587
63588         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
63589         (__libc_message): Never call vsyslog.
63590
63591 2013-03-28  Alan Modra  <amodra@gmail.com>
63592
63593         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
63594         Define as empty.
63595         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
63596         Likewise.
63597
63598 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63599
63600         [BZ #15214]
63601         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
63602         underflow.
63603         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
63604
63605 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
63606
63607         [BZ #15304]
63608         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
63609         Don't add gid passed as argument.
63610
63611         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
63612
63613 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
63614
63615         [BZ #15307]
63616         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63617         imaginary part between 1.0 and 1.5 and real part less than 0.5
63618         specially.
63619         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63620         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63621         * math/libm-test.inc (cacos_test): Add more tests.
63622         (casin_test): Likewise.
63623         (casinh_test): Likewise.
63624         * sysdeps/i386/fpu/libm-test-ulps: Update.
63625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63626
63627 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
63628
63629         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
63630         constants.
63631         (norm): Likewise.
63632         (denorm): Likewise.
63633         (__dbl_mp): Likewise.
63634         (add_magnitudes): Likewise.
63635         (sub_magnitudes): Likewise.
63636         (__add): Likewise.
63637         (__sub): Likewise.
63638         (__mul): Likewise.
63639         (__sqr): Likewise.
63640         (__inv): Likewise.
63641         (__dvd): Likewise.
63642
63643         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
63644         commented code.
63645         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
63646         (__dubcos): Likewise.
63647         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
63648         (__ieee754_acos): Likewise.
63649         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
63650         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
63651         (__exp1): Likewise.
63652         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
63653         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
63654         (log1): Likewise.
63655         (my_log2): Likewise.
63656         (checkint): Likewise.
63657         * sysdeps/ieee754/dbl-64/e_remainder.c
63658         (__ieee754_remainder): Likewise.
63659         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
63660         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
63661         (bsloww): Likewise.
63662         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
63663
63664         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
63665         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
63666         MANTISSA_STORE_T to store computations on mantissa.  Use
63667         macros for rounding and division.
63668         (denorm): Likewise.
63669         (__dbl_mp): Likewise.
63670         (add_magnitudes): Likewise.
63671         (sub_magnitudes): Likewise.
63672         (__mul): Likewise.
63673         (__sqr): Likewise.
63674         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
63675         powers of two in terms of TWOPOW macro.
63676         (mp_no): Make type of mantissa as MANTISSA_T.
63677         [!RADIXI]: Define RADIXI.
63678         [!TWO52]: Define TWO52.
63679         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
63680
63681 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63682
63683         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
63684         llroundl symbol when building for PPC32.
63685
63686 2013-03-24  Mark H Weaver  <mhw@netris.org>
63687
63688         * manual/arith.texi (Normalization Functions): Fix prototypes for
63689         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
63690
63691 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63692
63693         [BZ #13889]
63694         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
63695         high value to check if expl overflow.
63696         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
63697         to check for underflow and overflow.
63698         * math/libm-test.inc: Add exp test.
63699
63700 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
63701
63702         [BZ #11120]
63703         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
63704         with NOT_IN_libc.
63705
63706 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63707
63708         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
63709         symbol.
63710
63711 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
63712
63713         * math/gen-libm-test.pl (parse_args, special_functions): Properly
63714         wrap blocks consisting of several statements.
63715
63716         * sysdeps/generic/math-tests.h: New file.
63717         * sysdeps/i386/fpu/math-tests.h: Likewise.
63718         * math/test-snan.c: Include it.
63719         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
63720
63721 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63722
63723         [BZ #15285]
63724         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
63725         (__ieee754_j0l): Do not improve calculations using cos of twice
63726         input for inputs above LDBL_MAX / 2.0L.
63727         (__ieee754_y0l): Likewise.
63728         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
63729         (__ieee754_j1l): Do not improve calculations using cos of twice
63730         input for inputs above LDBL_MAX / 2.0L.
63731         (__ieee754_y1l): Likewise.
63732         * math/libm-test.inc (j0_test): Add another test.
63733         (j1_test): Likewise.
63734         (y0_test): Likewise.
63735         (y1_test): Likewise.
63736         * sysdeps/i386/fpu/libm-test-ulps: Update.
63737
63738 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63739
63740         * Rules ($(objpfx)bench-%.c): Include code from a C source
63741         file.
63742
63743 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
63744
63745         [BZ #15287]
63746         * math/k_casinh.c (__kernel_casinh): Handle arguments with
63747         imaginary part 1.0 and real part less than 0.5 specially.
63748         * math/k_casinhf.c (__kernel_casinhf): Likewise.
63749         * math/k_casinhl.c (__kernel_casinhl): Likewise.
63750         * math/libm-test.inc (cacos_test): Add more tests.
63751         (casin_test): Likewise.
63752         (casinh_test): Likewise.
63753         * sysdeps/i386/fpu/libm-test-ulps: Update.
63754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63755
63756 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
63757
63758         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
63759         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
63760
63761 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
63762
63763         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
63764         * config.make.in (config-cflags-sse4): Remove variable.
63765         (config-cflags-avx): Likewise.
63766         (config-cflags-sse2avx): Likewise.
63767         (config-cflags-novzeroupper): Likewise.
63768         (config-asflags-i686): Likewise.
63769         (have-mfma4): Likewise.
63770         (have-as-vis3): Likewise.
63771         (MIG): Likewise.
63772         * configure.in (MIG): Do not AC_SUBST.
63773         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
63774         (libc_cv_cc_sse4): Do not AC_SUBST.
63775         (libc_cv_cc_avx): Likewise.
63776         (libc_cv_cc_sse2avx): Likewise.
63777         (libc_cv_cc_novzeroupper): Likewise.
63778         (libc_cv_cc_fma4): Likewise.
63779         (libc_cv_as_i686): Likewise.
63780         (libc_cv_sparc_as_vis3): Likewise.
63781         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
63782         LIBC_CONFIG_VAR.
63783         (config-asflags-i686): Likewise.
63784         (config-cflags-avx): Likewise.
63785         (config-cflags-sse2avx): Likewise.
63786         (have-mfma4): Likewise.
63787         (config-cflags-novzeroupper): Likewise.
63788         * sysdeps/mach/configure.in (MIG): Likewise.
63789         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
63790         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
63791         LIBC_CONFIG_VAR.
63792         (config-cflags-avx): Likewise.
63793         (config-cflags-sse2avx): Likewise.
63794         (have-mfma4): Likewise.
63795         (config-cflags-novzeroupper): Likewise.
63796         * configure: Regenerated.
63797         * sysdeps/i386/configure: Likewise.
63798         * sysdeps/mach/configure: Likewise.
63799         * sysdeps/sparc/configure: Likewise.
63800         * sysdeps/x86_64/configure: Likewise.
63801
63802 2013-03-20  Roland McGrath  <roland@hack.frob.com>
63803
63804         [BZ #14812]
63805         * locale/programs/localedef.c (options): Put N_ translation marker
63806         on argument names, not just descriptions.
63807
63808 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
63809
63810         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
63811
63812 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
63813
63814         [BZ #14176]
63815         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
63816
63817 2013-03-19  Roland McGrath  <roland@hack.frob.com>
63818
63819         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
63820         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
63821         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
63822         [!BEFORE_ABORT] (before_abort): New function.
63823         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
63824         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
63825         (writev_for_fatal): New function.
63826         (WRITEV_FOR_FATAL): New macro; call that.
63827         (backtrace_and_maps): New function.
63828         (BEFORE_ABORT): New macro; call that.
63829         (struct str_list): Type removed.
63830         (__libc_message, __libc_fatal): Functions removed.
63831         Include <sysdeps/posix/libc_fatal.c> instead.
63832
63833 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
63834
63835         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
63836         constants.
63837         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
63838         double constants.
63839
63840 2013-03-19  Andreas Schwab  <schwab@suse.de>
63841
63842         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
63843         * sysdeps/gnu/configure: Regenerate.
63844
63845         * configure.in: Substitute libc_cv_rtlddir.
63846         * configure: Regenerate.
63847         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
63848         * Makeconfig (rtlddir, inst_rtlddir): New variables.
63849         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
63850         * elf/Makefile (install-others, CFLAGS-interp.c)
63851         (ldso_install, common-ldd-rewrite): Likewise.
63852         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
63853         $(inst_slibdir)/$(rtld-installed-name).
63854         * scripts/rellns-sh: Add -p option.
63855         * Makerules (make-shlib-link): Use rellns-sh to get relative name
63856         for source.
63857
63858 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
63859
63860         * manual/nptl.texi: Renamed to ...
63861         * manual/threads.texi: ... this.
63862         * manual/Makefile (chapters): Update.
63863
63864 2013-03-18  Roland McGrath  <roland@hack.frob.com>
63865
63866         [BZ #14812]
63867         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
63868         on argument names, not just descriptions.
63869         * malloc/memusagestat.c (options): Likewise.
63870         * nss/getent.c (options): Likewise.
63871
63872 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
63873
63874         [BZ #14812]
63875         * iconv/iconv_prog.c (options): Put N_ translation marker
63876         on argument names, not just descriptions.
63877         * iconv/iconvconfig.c (options): Likewise.
63878
63879 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
63880
63881         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
63882         implementation which is faster on all x86_64 architectures.
63883         Tested on AMD, Intel Nehalem, SNB, IVB.
63884         * sysdeps/x86_64/strnlen.S: Likewise.
63885
63886         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
63887         Remove all multiarch strlen and strnlen versions.
63888         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
63889         Remove strlen and strnlen related parts.
63890
63891         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
63892         Inline strlen part.
63893         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
63894
63895         * sysdeps/x86_64/multiarch/strlen.S: Remove.
63896         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
63897         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
63898         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
63899         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
63900         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
63901
63902 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
63903
63904         * manual/memory.texi (Malloc Tunable Parameters):
63905         Sort parameters alphabetically. Add comments for missing entries.
63906
63907 2013-03-17  David S. Miller  <davem@davemloft.net>
63908
63909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
63910
63911 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
63912
63913         [BZ #15283]
63914         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
63915         for arguments at most half maximum finite value.
63916         * math/libm-test.inc (j0_test): Add more tests.
63917         (j1_test): Likewise.
63918         (y0_test): Likewise.
63919         (y1_test): Likewise.
63920         * sysdeps/i386/fpu/libm-test-ulps: Update.
63921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
63922
63923         [BZ #14155]
63924         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
63925         1 / x and functions P and Q for arguments above 0x1p256L.
63926         (__ieee754_y0l): Likewise.
63927         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
63928         (__ieee754_y1l): Likewise.
63929         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
63930         (j1_test): Likewise.
63931         (y0_test): Likewise.
63932         (y1_test): Likewise.
63933
63934 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
63935
63936         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
63937         variable.
63938
63939 2013-03-15  Roland McGrath  <roland@hack.frob.com>
63940
63941         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
63942         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
63943         zero since it's initialized to EXEC_PAGESIZE.
63944
63945         * sysdeps/unix/sysv/linux/ldsodefs.h
63946         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
63947         * sysdeps/generic/ldsodefs.h: ... here.
63948
63949 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
63950
63951         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
63952
63953         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
63954         math/test-snan.c.
63955         * math/test-snan.c: Renamed from
63956         sysdeps/powerpc/fpu/test-powerpc-snan.c.
63957         * math/Makefile (tests): Add test-snan.
63958         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
63959         test-powerpc-snan.
63960
63961         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
63962         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
63963         functions.
63964         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
63965         __builtin_nan family of functions.
63966         * math/libm-test.inc (initialize): Initialize qnan_value with
63967         __builtin_nan family of functions.
63968         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
63969         Remove variables.
63970         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
63971         Remove functions.
63972         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
63973         storage class.  Initialize qNaN_var and sNaN_var with
63974         __builtin_nan and __builtin_nans families of functions,
63975         respectively.
63976
63977         * math/libm-test.inc (acosh_test): Also test with qNaN input.
63978         (sqrt_test): Remove duplicate test with qNaN input.
63979         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
63980         (round_test, signbit_test, significand_test): Note missing +/-Inf
63981         as well as qNaN tests.
63982
63983         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
63984         qNaN_var.  Fix a few strings, too.
63985         * math/libm-test.inc (nan_value): Rename to qnan_value.
63986         * math/gen-libm-test.pl (%beautify): Adjust to that.
63987         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
63988         * math/test-misc.c (main): Likewise.
63989         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
63990         to __qnan_bytes, and __qnan_union, respectively.
63991         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
63992         Likewise.
63993         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
63994         and lqnanval, respectively.
63995         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
63996         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
63997         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
63998         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
63999
64000         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
64001         * math/test-misc.c (main) [__x86_64__]: Enable test for long
64002         doubles.
64003
64004         * math/test-misc.c (main): Fix copy'n'pastos.
64005         * misc/tst-efgcvt.c (special): Likewise.
64006
64007         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
64008         Remove declarations.
64009
64010 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64011
64012         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
64013         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
64014         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
64015         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
64016
64017 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64018
64019         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
64020         macro to return vdso values correctly in IFUNC implementations.
64021         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
64022         Optimization by using IFUNC.
64023
64024 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64025             Richard Henderson  <rth@redhat.com>
64026             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
64027
64028         * Makefile.in (bench): New target.
64029         * NEWS: Mention the benchmark framework.
64030         * Rules (bench): Likewise.
64031         (binaries-bench): Generate binaries for functions to
64032         benchmark.
64033         * benchtests/Makefile: New makefile for benchmark tests.
64034         * benchtests/bench-skeleton.c: New skeleton file for benchmark
64035         programs.
64036         * benchtests/exp-inputs: New input file for EXP function.
64037         * benchtests/pow-inputs: New input file for POW function.
64038         * scripts/bench.pl: New script to generate source files for
64039         benchmark programs.
64040
64041 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
64042
64043         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
64044         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
64045         computations on mantissa.  Use macros for rounding and
64046         division.
64047         (denorm): Likewise.
64048         (__dbl_mp): Likewise.
64049         (add_magnitudes): Likewise.
64050         (sub_magnitudes): Likewise.
64051         (__mul): Likewise.
64052         (__sqr): Likewise.
64053         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
64054         powers of two in terms of TWOPOW macro.
64055         (mp_no): Make type of mantissa as MANTISSA_T.
64056         [!RADIXI]: Define RADIXI.
64057         [!TWO52]: Define TWO52.
64058         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
64059
64060         * manual/nptl.texi (cindex): Modify threads to pthreads.
64061
64062 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
64063
64064         * sysdeps/x86_64/preconfigure: Regenerated.
64065
64066 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
64067
64068         [BZ #14155]
64069         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
64070         0x1p28 and above.
64071         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
64072         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
64073         0x1p28 and above.
64074         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
64075         * math/libm-test.inc (j0_test): Do not allow one spurious
64076         underflow exception.
64077         (y1_test): Likewise.
64078
64079 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
64080
64081         * manual/Makefile (chapters): Add nptl.
64082         * manual/debug.texi (Debugging Support): Add link to Threads
64083         chapter.
64084         * manual/nptl.texi: New file.
64085
64086         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
64087
64088 2013-03-14  Petr Baudis  <pasky@ucw.cz>
64089
64090         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
64091         for non-NULL pointer before the memory validity test. Pointed
64092         out by Holger Brunck <holger.brunck@keymile.com>.
64093
64094 2013-03-13  Andreas Schwab  <schwab@suse.de>
64095
64096         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
64097         instead of .os.
64098
64099 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
64100
64101         * timezone/zic.c: Update from tzcode 2013b.
64102
64103 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
64104
64105         * manual/install.texi (Configuring and compiling):
64106         Mention i686 and i586.
64107         * INSTALL: Regenerate.
64108
64109 2013-03-12  Roland McGrath  <roland@hack.frob.com>
64110
64111         * sysdeps/init_array/elf-init.c: New file.
64112         * csu/elf-init.c
64113         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
64114         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
64115
64116         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
64117         __gmon_start__ as global, but as static with a .preinit_array pointer.
64118         * sysdeps/init_array/gmon-start.c: New file.  Use that.
64119         * sysdeps/init_array/crti.S: New file, empty except for comments.
64120         * sysdeps/init_array/crtn.S: Likewise.
64121
64122 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
64123
64124         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
64125         definining bcopy.
64126         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
64127         Remove Prefer_SSE_for_memop.
64128         * sysdeps/x86_64/multiarch/init-arch.h: Remove
64129         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
64130         HAS_PREFER_SSE_FOR_MEMOP.
64131         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
64132         memset-x86-64.
64133         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
64134         Remove bzero, memset ifunc support.
64135         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
64136         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
64137         * sysdeps/x86_64/multiarch/memset.S: Likewise.
64138         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
64139
64140 2013-03-11  Andreas Schwab  <schwab@suse.de>
64141
64142         [BZ #15234]
64143         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
64144         by SHLIB_COMPAT.
64145         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
64146         (GLIBC_2.16): Remove pthread_atfork.
64147
64148 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
64149
64150         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
64151         (ptestcases.h): Likewise.
64152
64153 2013-03-08  Roland McGrath  <roland@hack.frob.com>
64154
64155         * Makeconfig ($(common-objpfx)config.status): Depend on
64156         sysdeps/*/preconfigure{,.in} too.
64157
64158 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
64159
64160         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
64161         (__free_hook): Use void * instead of __malloc_ptr_t.
64162         (__malloc_hook): Likewise.
64163         (__realloc_hook): Likewise.
64164         (__memalign_hook): Likewise.
64165         (__after_morecore_hook): Likewise.
64166         * malloc/arena.c (save_malloc_hook): Likewise.
64167         (save_free_hook): Likewise.
64168         * malloc/hooks.c (malloc_hook_ini): Likewise.
64169         (realloc_hook_ini): Likewise.
64170         (memalign_hook_ini): Likewise.
64171         * malloc/malloc.c (malloc_hook_ini): Likewise.
64172         (realloc_hook_ini): Likewise.
64173         (memalign_hook_ini): Likewise.
64174         (__free_hook): Likewise.
64175         (__malloc_hook): Likewise.
64176         (__realloc_hook): Likewise.
64177         (__memalign_hook): Likewise.
64178         (__libc_malloc): Likewise.
64179         (__libc_free): Likewise.
64180         (__libc_realloc): Likewise.
64181         (__libc_memalign): Likewise.
64182         (__libc_valloc): Likewise.
64183         (__libc_pvalloc): Likewise.
64184         (__libc_calloc): Likewise.
64185         (__posix_memalign): Likewise.
64186         * malloc/morecore.c (__sbrk): Likewise.
64187         (__default_morecore): Likewise.
64188
64189         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
64190
64191         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
64192         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
64193         __malloc_ptrdiff_t.
64194
64195         * malloc/malloc.h (__malloc_size_t): Remove macro.
64196         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
64197         __malloc_size_t.
64198         (old_memalign_hook): Likewise.
64199         (old_realloc_hook): Likewise.
64200         (struct hdr): Likewise.
64201         (flood): Likewise.
64202         (mallochook): Likewise.
64203         (memalignhook): Likewise.
64204         (reallochook): Likewise.
64205         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
64206         (tr_old_realloc_hook): Likewise.
64207         (tr_old_memalign_hook): Likewise.
64208         (tr_mallochook): Likewise.
64209         (tr_reallochook): Likewise.
64210         (tr_memalignhook): Likewise.
64211
64212 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64213
64214         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
64215         default_ldbl_pack and using as default implementation.
64216         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
64217         implementation.
64218         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
64219         redundant definition.
64220         (ldbl_insert_mantissa): Likewise.
64221         (ldbl_canonicalize): Likewise.
64222         (ldbl_nearbyint): Likewise.
64223         (ldbl_pack): Rename to ldbl_pack_ppc.
64224         (ldbl_unpack): Rename to ldbl_unpack_ppc.
64225         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
64226         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
64227
64228 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
64229
64230         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
64231         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
64232         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
64233         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
64234         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
64235         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
64236         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
64237         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
64238
64239 2013-03-07  Andreas Jaeger  <aj@suse.de>
64240
64241         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
64242         bits/mman-linux.h.
64243
64244 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
64245
64246         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
64247         Include mpa.h and declare __MPEXP.
64248         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
64249         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
64250         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
64251         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
64252         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
64253         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
64254         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
64255
64256         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
64257         (__slowpow): Use long double EXPL and LOGL functions to
64258         compute POW.
64259         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
64260         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
64261         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
64262         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
64263         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
64264         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
64265
64266         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
64267         intermediate variable to calculate exponent.
64268         (__sqr): Likewise.
64269         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
64270         Likewise.
64271         (__sqr): Likewise.
64272
64273         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
64274         [!NO__SQR]: Define __sqr.
64275         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
64276         and NO__SQR.  Remove all code except __mul and __sqr.  Include
64277         sysdeps/ieee754/dbl-64/mpa.c.
64278         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
64279
64280         [BZ #12723]
64281         * posix/Makefile (tests): Add tst-pathconf.
64282         * posix/tst-pathconf.c: New test case.
64283         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
64284         _PC_PIPE_BUF.
64285         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
64286
64287 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
64288
64289         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
64290
64291 2013-03-06  Andreas Jaeger  <aj@suse.de>
64292
64293         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
64294         definition via __MAP_ANONYMOUS.
64295
64296         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
64297         it's not part of Linux headers.
64298
64299         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
64300         (MAP_HUGE_MASK): Define.
64301
64302         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64303         Define.
64304         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64305         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64306         Define.
64307         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64308         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
64309         Define.
64310         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64311         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
64312         Define.
64313         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
64314
64315         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
64316         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
64317         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
64318         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
64319         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
64320         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
64321
64322         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
64323         Handle f2fs.
64324
64325         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
64326         Handle f2fs and efivarfs.
64327
64328         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
64329         f2fs.
64330
64331         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
64332         (EFIVARFS_MAGIC): Add.
64333         (F2FS_LINK_MAX): Add.
64334
64335 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
64336
64337         * stdio-common/vfprintf.c: Replace __builtin_expect with
64338         __glibc_unlikely.
64339
64340 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
64341
64342         [BZ #13550]
64343         * sysdeps/generic/bp-sym.h: Remove file.
64344         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
64345         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
64346         <bp-sym.h> and <bp-asm.h>.
64347         (__longjmp): Don't use BP_SYM.
64348         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
64349         and <bp-asm.h>.
64350         (memcpy): Don't use BP_SYM.
64351         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
64352         <bp-sym.h> and <bp-asm.h>.
64353         (memcpy): Don't use BP_SYM.
64354         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
64355         <bp-asm.h>.
64356         (memcpy): Don't use BP_SYM.
64357         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
64358         <bp-asm.h>.
64359         (memset): Don't use BP_SYM.
64360         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64361         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64362         (__bzero): Don't use BP_SYM.
64363         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64364         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64365         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
64366         <bp-sym.h> and <bp-asm.h>.
64367         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64368         pointers.
64369         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
64370         <bp-sym.h> and <bp-asm.h>.
64371         (memcpy): Don't use BP_SYM.
64372         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
64373         <bp-sym.h> and <bp-asm.h>.
64374         (memset): Don't use BP_SYM.
64375         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64376         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64377         (__bzero): Don't use BP_SYM.
64378         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64379         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64380         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
64381         <bp-sym.h> and <bp-asm.h>.
64382         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64383         pointers.
64384         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
64385         <bp-sym.h> and <bp-asm.h>.
64386         (memcpy): Don't use BP_SYM.
64387         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
64388         <bp-sym.h> and <bp-asm.h>.
64389         (memset): Don't use BP_SYM.
64390         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64391         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64392         (__bzero): Don't use BP_SYM.
64393         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64394         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64395         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
64396         <bp-sym.h> and <bp-asm.h>.
64397         (__memchr): Don't use BP_SYM.
64398         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
64399         <bp-sym.h> and <bp-asm.h>.
64400         (memcmp): Don't use BP_SYM.  Remove comment about bounded
64401         pointers.
64402         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
64403         <bp-sym.h> and <bp-asm.h>.
64404         (memcpy): Don't use BP_SYM.
64405         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
64406         <bp-sym.h> and <bp-asm.h>.
64407         (__mempcpy): Don't use BP_SYM.
64408         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
64409         <bp-sym.h> and <bp-asm.h>.
64410         (__memrchr): Don't use BP_SYM.
64411         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
64412         <bp-sym.h> and <bp-asm.h>.
64413         (memset): Don't use BP_SYM.
64414         (__bzero): Likewise.
64415         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
64416         <bp-sym.h> and <bp-asm.h>.
64417         (__rawmemchr): Don't use BP_SYM.
64418         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
64419         <bp-sym.h> and <bp-asm.h>.
64420         (__STRCMP): Don't use BP_SYM.
64421         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
64422         <bp-sym.h> and <bp-asm.h>.
64423         (strchr): Don't use BP_SYM.
64424         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
64425         <bp-sym.h> and <bp-asm.h>.
64426         (__strchrnul): Don't use BP_SYM.
64427         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
64428         <bp-sym.h> and <bp-asm.h>.
64429         (strlen): Don't use BP_SYM.
64430         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
64431         <bp-sym.h> and <bp-asm.h>.
64432         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64433         pointers.
64434         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
64435         <bp-sym.h> and <bp-asm.h>.
64436         (__strnlen): Don't use BP_SYM.
64437         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
64438         <bp-sym.h> and <bp-asm.h>.
64439         (__GI__setjmp): Don't use BP_SYM.
64440         (_setjmp): Likewise.
64441         (__sigsetjmp): Likewise.
64442         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
64443         (L(start_addresses)): Don't use BP_SYM.
64444         (_start): Likewise.
64445         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
64446         <bp-asm.h>.
64447         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
64448         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
64449         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64450         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64451         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
64452         <bp-asm.h>.
64453         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
64454         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
64455         about bounded pointers.
64456         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64457         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64458         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
64459         <bp-asm.h>.
64460         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64461         about bounded pointers.  Remove GKM FIXME comments.
64462         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64463         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
64464         <bp-asm.h>.
64465         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
64466         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
64467         Remove GKM FIXME comments.
64468         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64469         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64470         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
64471         <bp-asm.h>.
64472         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
64473         about bounded pointers.  Remove GKM FIXME comment.
64474         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
64475         and <bp-asm.h>.
64476         (strncmp): Don't use BP_SYM.  Remove comment about bounded
64477         pointers.
64478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
64479         <bp-sym.h> and <bp-asm.h>.
64480         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
64482         <bp-sym.h> and <bp-asm.h>.
64483         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64484         comment.
64485
64486 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
64487
64488         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
64489         call free(NULL).
64490
64491 2013-03-05  David S. Miller  <davem@davemloft.net>
64492
64493         * po/es.po: Update from translation team.
64494
64495 2013-03-05  Andreas Jaeger  <aj@suse.de>
64496
64497         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
64498         <bits/mman-linux.h>.
64499         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64500         is fine.
64501         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
64502         <bits/mman-linux.h> to end of file.
64503         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64504         is fine.
64505         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
64506         <bits/mman-linux.h> to end of file.
64507         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
64508         is fine.
64509         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
64510         <bits/mman-linux.h> to end of file.
64511
64512         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
64513         (MCL_CURRENT, MCL_FUTURE): Define here.
64514
64515 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64516
64517         [BZ #15232]
64518         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
64519         attribute_hidden.
64520         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
64521
64522 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64523
64524         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
64525         fourth parameter needed for rt_sigprocmask syscall.
64526         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
64527         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
64528         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
64529         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
64530         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
64531         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
64532
64533 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
64534
64535         [BZ #13550]
64536         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
64537         comment about bounded pointers.
64538         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
64539         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
64540
64541 2013-03-04  Andreas Jaeger  <aj@suse.de>
64542
64543         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
64544         common definitions.
64545
64546         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
64547         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
64548         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
64549         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
64550         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
64551         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
64552
64553 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64554
64555         [BZ #15055]
64556         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
64557         __ieee754_sqrl instead of __sqrl.
64558
64559 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
64560
64561         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
64562         * sysdeps/powerpc/fpu_control.h: ... here.
64563         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
64564         * sysdeps/powerpc/bits/fenvinline.h: ... here.
64565         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
64566         * sysdeps/powerpc/bits/mathinline.h: ... here.
64567
64568 2013-03-01  Roland McGrath  <roland@hack.frob.com>
64569
64570         * elf/dl-hwcaps.c (_dl_important_hwcaps):
64571         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
64572         to just [NEED_DL_SYSINFO_DSO].
64573         * elf/dl-support.c: Likewise.
64574         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
64575         * elf/rtld.c (dl_main): Likewise.
64576         * elf/setup-vdso.h (setup_vdso): Likewise.
64577         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
64578         * sysdeps/unix/sysv/linux/dl-sysdep.c
64579         (_dl_discover_osversion): Likewise.
64580
64581 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
64582
64583         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
64584         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64585
64586 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
64587
64588         * NEWS: Mention libm performance improvements and non-x86 PI
64589         futex support.
64590
64591         * csu/libc-start.c (__pthread_initialize_minimal): Change
64592         function arguments.
64593         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
64594
64595 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
64596
64597         [BZ #13550]
64598         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
64599         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
64600         <bp-sym.h> and <bp-asm.h>.
64601         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64602         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
64603         and <bp-asm.h>.
64604         (memcpy): Don't use BP_SYM.
64605         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
64606         <bp-asm.h>.
64607         (__mpn_add_n): Don't use BP_SYM.
64608         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
64609         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
64610         and <bp-asm.h>.
64611         (__mpn_addmul_1): Don't use BP_SYM.
64612         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64613         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
64614         <bp-sym.h>.
64615         (_setjmp): Don't use BP_SYM.
64616         (__novmx_setjmp): Likewise.
64617         (__GI__setjmp): Likewise.
64618         (__vmx_setjmp): Likewise.
64619         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
64620         <bp-sym.h>.
64621         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
64622         (__bzero): Don't use BP_SYM.
64623         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
64624         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
64625         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
64626         <bp-sym.h> and <bp-asm.h>.
64627         (memcpy): Don't use BP_SYM.
64628         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
64629         <bp-sym.h> and <bp-asm.h>.
64630         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64631         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
64632         <bp-sym.h> and <bp-asm.h>.
64633         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
64634         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
64635         <bp-asm.h>.
64636         (__mpn_lshift): Don't use BP_SYM.
64637         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64638         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
64639         <bp-asm.h>.
64640         (memset): Don't use BP_SYM.
64641         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
64642         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
64643         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
64644         <bp-asm.h>.
64645         (__mpn_mul_1): Don't use BP_SYM.
64646         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64647         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
64648         <bp-sym.h> and <bp-asm.h>.
64649         (memcmp): Don't use BP_SYM.
64650         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
64651         <bp-sym.h> and <bp-asm.h>.
64652         (memcpy): Don't use BP_SYM.
64653         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
64654         <bp-sym.h> and <bp-asm.h>.
64655         (memset): Don't use BP_SYM.
64656         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
64657         <bp-sym.h> and <bp-asm.h>.
64658         (strncmp): Don't use BP_SYM.
64659         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
64660         <bp-sym.h> and <bp-asm.h>.
64661         (memcpy): Don't use BP_SYM.
64662         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
64663         <bp-sym.h> and <bp-asm.h>.
64664         (memset): Don't use BP_SYM.
64665         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
64666         <bp-sym.h> and <bp-asm.h>.
64667         (__memchr): Don't use BP_SYM.
64668         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
64669         <bp-sym.h> and <bp-asm.h>.
64670         (memcmp): Don't use BP_SYM.
64671         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
64672         <bp-sym.h> and <bp-asm.h>.
64673         (memcpy): Don't use BP_SYM.
64674         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
64675         <bp-sym.h> and <bp-asm.h>.
64676         (__mempcpy): Don't use BP_SYM.
64677         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
64678         <bp-sym.h> and <bp-asm.h>.
64679         (__memrchr): Don't use BP_SYM.
64680         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
64681         <bp-sym.h> and <bp-asm.h>.
64682         (memset): Don't use BP_SYM.
64683         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
64684         <bp-sym.h> and <bp-asm.h>.
64685         (__rawmemchr): Don't use BP_SYM.
64686         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
64687         <bp-sym.h> and <bp-asm.h>.
64688         (__STRCMP): Don't use BP_SYM.
64689         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
64690         <bp-sym.h> and <bp-asm.h>.
64691         (strchr): Don't use BP_SYM.
64692         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
64693         <bp-sym.h> and <bp-asm.h>.
64694         (__strchrnul): Don't use BP_SYM.
64695         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
64696         <bp-sym.h> and <bp-asm.h>.
64697         (strlen): Don't use BP_SYM.
64698         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
64699         <bp-sym.h> and <bp-asm.h>.
64700         (strncmp): Don't use BP_SYM.
64701         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
64702         <bp-sym.h> and <bp-asm.h>.
64703         (__strnlen): Don't use BP_SYM.
64704         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
64705         <bp-asm.h>.
64706         (__mpn_rshift): Don't use BP_SYM.
64707         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
64708         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
64709         <bp-sym.h> and <bp-asm.h>.
64710         (__sigsetjmp): Don't use BP_SYM.
64711         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
64712         (L(start_addresses)): Don't use BP_SYM.
64713         (_start): Likewise.
64714         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
64715         <bp-asm.h>.
64716         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
64717         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64718         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64719         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
64720         <bp-asm.h>.
64721         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
64722         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
64723         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
64724         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
64725         <bp-asm.h>.
64726         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64727         comments.
64728         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
64729         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
64730         <bp-asm.h>.
64731         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
64732         FIXME comments.
64733         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
64734         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
64735         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
64736         <bp-asm.h>.
64737         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
64738         comment.
64739         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
64740         and <bp-asm.h>.
64741         (strncmp): Don't use BP_SYM,
64742         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
64743         <bp-asm.h>.
64744         (__mpn_sub_n): Don't use BP_SYM.
64745         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
64746         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
64747         and <bp-asm.h>.
64748         (__mpn_submul_1): Don't use BP_SYM.
64749         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
64750         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
64751         <bp-sym.h> and <bp-asm.h>.
64752         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
64753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
64754         <bp-sym.h> and <bp-asm.h>.
64755         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
64756         comment.
64757
64758 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
64759
64760         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
64761         Use ZK to minimize writes to Z.
64762         (sub_magnitudes): Simplify code a bit.
64763         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
64764         Use ZK to minimize writes to Z.
64765         (sub_magnitudes): Simplify code a bit.
64766
64767 2013-02-27  Roland McGrath  <roland@hack.frob.com>
64768
64769         * csu/gmon-start.c: Add special exception to license text.
64770
64771 2013-02-27  Richard Henderson  <rth@redhat.com>
64772
64773         * scripts/config.guess: Update from config.git.
64774         * scripts/config.sub: Likewise.
64775
64776 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
64777
64778         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
64779
64780         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
64781
64782         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
64783
64784         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
64785
64786         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
64787
64788 2013-02-26  Roland McGrath  <roland@hack.frob.com>
64789
64790         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
64791         [$(build-shared = yes].
64792
64793 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64794
64795         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
64796         (__mul): Reduce iterations for calculating mantissa.
64797
64798         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
64799         MPTWO.
64800         (__mpranred): Likewise.
64801
64802         [BZ #15160]
64803         * malloc/memusagestat.c (main): Draw graphs for heap and stack
64804         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
64805
64806 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
64807
64808         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
64809         Define __attribute__.
64810
64811 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
64812
64813         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
64814         unused.
64815         * posix/regex_internal.h (__attribute): Remove.
64816         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
64817         (re_string_context_at): Likewise.
64818         (bitset_not): Use __attribute__ and mark function as possibly
64819         unused.
64820         (bitset_merge): Likewise.
64821         (bitset_mask): Likewise.
64822         (re_string_char_size_at): Likewise.
64823         (re_string_wchar_at): Likewise.
64824         (re_string_elem_size_at): Likewise.
64825
64826 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
64827
64828         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
64829         code.
64830         (cc32): Likewise.
64831
64832         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
64833         (__acr): Likewise.
64834         (__cpy): Likewise.
64835         (norm): Likewise.
64836         (denorm): Likewise.
64837         (__dbl_mp): Likewise.
64838         (add_magnitudes): Likewise.
64839         (sub_magnitudes): Likewise.
64840         (__mul): Likewise.
64841         (__inv): Likewise.
64842
64843         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
64844         style.
64845
64846         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
64847         style.
64848
64849         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
64850         code.
64851
64852         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
64853         up changes with default code.
64854         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
64855         Likewise.
64856
64857 2013-02-24  Allan McRae  <allan@archlinux.org>
64858
64859         * manual/socket.texi (The Internet Namespace): Order menu items
64860         to match that in the file.
64861
64862         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
64863         node listing of the info page menu.
64864
64865 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
64866
64867         [BZ #13550]
64868         * sysdeps/i386/bp-asm.h: Remove file.
64869         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
64870         (PARMS): Do not use macros from bp-asm.h.
64871         (S1): Likewise.
64872         (S2): Likewise.
64873         (SIZE): Likewise.
64874         (__mpn_add_n): Do not use BP_SYM
64875         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
64876         "bp-asm.h".
64877         (PARMS): Do not use macros from bp-asm.h.
64878         (S1): Likewise.
64879         (SIZE): Likewise.
64880         (__mpn_addmul_1): Do not use BP_SYM
64881         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
64882         "bp-asm.h".
64883         (PARMS): Do not use macros from bp-asm.h.
64884         (SIGMSK): Likewise.
64885         (_setjmp): Likewise.  Do not use BP_SYM.
64886         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
64887         "bp-asm.h".
64888         (PARMS): Do not use macros from bp-asm.h.
64889         (SIGMSK): Likewise.
64890         (setjmp): Likewise.  Do not use BP_SYM.
64891         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
64892         "bp-asm.h".
64893         (PARMS): Do not use macros from bp-asm.h.
64894         (__frexp): Do not use BP_SYM.
64895         (frexp): Likewise.
64896         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
64897         "bp-asm.h".
64898         (PARMS): Do not use macros from bp-asm.h.
64899         (__frexpf): Do not use BP_SYM.
64900         (frexpf): Likewise.
64901         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
64902         "bp-asm.h".
64903         (PARMS): Do not use macros from bp-asm.h.
64904         (__frexpl): Do not use BP_SYM.
64905         (frexpl): Likewise.
64906         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
64907         "bp-asm.h".
64908         (PARMS): Do not use macros from bp-asm.h.
64909         (__remquo): Do not use BP_SYM.
64910         (remquo): Likewise.
64911         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
64912         "bp-asm.h".
64913         (PARMS): Do not use macros from bp-asm.h.
64914         (__remquof): Do not use BP_SYM.
64915         (remquof): Likewise.
64916         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
64917         "bp-asm.h".
64918         (PARMS): Do not use macros from bp-asm.h.
64919         (__remquol): Do not use BP_SYM.
64920         (remquol): Likewise.
64921         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
64922         "bp-asm.h".
64923         (PARMS): Do not use macros from bp-asm.h.
64924         (DEST): Likewise.
64925         (SRC): Likewise.
64926         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
64927         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
64928         "bp-asm.h".
64929         (PARMS): Do not use macros from bp-asm.h.
64930         (strlen): Do not use BP_SYM.
64931         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
64932         "bp-asm.h".
64933         (PARMS): Do not use macros from bp-asm.h.
64934         (S1): Likewise.
64935         (S2): Likewise.
64936         (SIZE): Likewise.
64937         (__mpn_add_n): Do not use BP_SYM.
64938         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
64939         "bp-asm.h".
64940         (PARMS): Do not use macros from bp-asm.h.
64941         (S1): Likewise.
64942         (SIZE): Likewise.
64943         (__mpn_addmul_1): Do not use BP_SYM.
64944         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
64945         weak_alias.
64946         (bzero): Likewise.
64947         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
64948         "bp-asm.h".
64949         (PARMS): Do not use macros from bp-asm.h.
64950         (S): Likewise.
64951         (SIZE): Likewise.
64952         (__mpn_lshift): Do not use BP_SYM.
64953         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
64954         "bp-asm.h".
64955         (PARMS): Do not use macros from bp-asm.h.
64956         (DEST): Likewise.
64957         (SRC): Likewise.
64958         (LEN): Likewise.
64959         (memcpy): Likewise.  Do not use BP_SYM.
64960         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
64961         libc_hidden_def and weak_alias.
64962         (mempcpy): Do not use BP_SYM in weak_alias.
64963         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
64964         "bp-asm.h".
64965         (PARMS): Do not use macros from bp-asm.h.
64966         (DEST): Likewise.
64967         (LEN): Likewise.
64968         [!BZERO_P] (CHR): Likewise.
64969         (memset): Likewise.  Do not use BP_SYM.
64970         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
64971         "bp-asm.h".
64972         (PARMS): Do not use macros from bp-asm.h.
64973         (S1): Likewise.
64974         (SIZE): Likewise.
64975         (__mpn_mul_1): Do not use BP_SYM.
64976         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
64977         "bp-asm.h".
64978         (PARMS): Do not use macros from bp-asm.h.
64979         (S): Likewise.
64980         (SIZE): Likewise.
64981         (__mpn_rshift): Do not use BP_SYM.
64982         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
64983         "bp-asm.h".
64984         (PARMS): Do not use macros from bp-asm.h.
64985         (STR): Likewise.
64986         (CHR): Likewise.
64987         (strchr): Likewise.  Do not use BP_SYM.
64988         (index): Do not use BP_SYM in weak_alias.
64989         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
64990         "bp-asm.h".
64991         (PARMS): Do not use macros from bp-asm.h.
64992         (DEST): Likewise.
64993         (SRC): Likewise.
64994         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
64995         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
64996         "bp-asm.h".
64997         (PARMS): Do not use macros from bp-asm.h.
64998         (strlen): Do not use BP_SYM.
64999         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
65000         "bp-asm.h".
65001         (PARMS): Do not use macros from bp-asm.h.
65002         (S1): Likewise.
65003         (S2): Likewise.
65004         (SIZE): Likewise.
65005         (__mpn_sub_n): Do not use BP_SYM.
65006         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
65007         "bp-asm.h".
65008         (PARMS): Do not use macros from bp-asm.h.
65009         (S1): Likewise.
65010         (SIZE): Likewise.
65011         (__mpn_submul_1): Do not use BP_SYM.
65012         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
65013         "bp-asm.h".
65014         (PARMS): Do not use macros from bp-asm.h.
65015         (S1): Likewise.
65016         (S2): Likewise.
65017         (SIZE): Likewise.
65018         (__mpn_add_n): Do not use BP_SYM.
65019         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
65020         weak_alias.
65021         (bzero): Likewise.
65022         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
65023         "bp-asm.h".
65024         (PARMS): Do not use macros from bp-asm.h.
65025         (BLK2): Likewise.
65026         (LEN): Likewise.
65027         (memcmp): Do not use BP_SYM.
65028         (bcmp): Do not use BP_SYM in weak_alias.
65029         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
65030         "bp-asm.h".
65031         (PARMS): Do not use macros from bp-asm.h.
65032         (DEST): Likewise.
65033         (SRC): Likewise.
65034         (LEN): Likewise.
65035         (memcpy): Likewise.  Do not use BP_SYM.
65036         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
65037         "bp-asm.h".
65038         (PARMS): Do not use macros from bp-asm.h.
65039         (DEST): Likewise.
65040         (SRC): Likewise.
65041         (LEN): Likewise.
65042         (memmove): Likewise.  Do not use BP_SYM.
65043         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
65044         "bp-asm.h".
65045         (PARMS): Do not use macros from bp-asm.h.
65046         (DEST): Likewise.
65047         (SRC): Likewise.
65048         (LEN): Likewise.
65049         (__mempcpy): Likewise.  Do not use BP_SYM.
65050         (mempcpy): Do not use BP_SYM in weak_alias.
65051         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
65052         "bp-asm.h".
65053         (PARMS): Do not use macros from bp-asm.h.
65054         (DEST): Likewise.
65055         (LEN): Likewise.
65056         [!BZERO_P] (CHR): Likewise.
65057         (memset): Likewise.  Do not use BP_SYM.
65058         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
65059         "bp-asm.h".
65060         (PARMS): Do not use macros from bp-asm.h.
65061         (STR2): Likewise.
65062         (strcmp): Do not use BP_SYM.
65063         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
65064         "bp-asm.h".
65065         (PARMS): Do not use macros from bp-asm.h.
65066         (STR): Likewise.
65067         (DELIM): Likewise.
65068         [USE_AS_STRTOK_R] (SAVE): Likewise.
65069         (FUNCTION): Likewise.  Do not use BP_SYM.
65070         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
65071         aliases.
65072         (strtok_r): Likewise.
65073         (__GI___strtok_r): Likewise.
65074         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
65075         (PARMS): Do not use macros from bp-asm.h.
65076         (S): Likewise.
65077         (SIZE): Likewise.
65078         (__mpn_lshift): Do not use BP_SYM.
65079         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
65080         (PARMS): Do not use macros from bp-asm.h.
65081         (STR): Likewise.
65082         (CHR): Likewise.
65083         (__memchr): Do not use BP_SYM.
65084         (memchr): Do not use BP_SYM in weak_alias.
65085         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
65086         (PARMS): Do not use macros from bp-asm.h.
65087         (BLK2): Likewise.
65088         (LEN): Likewise.
65089         (memcmp): Do not use BP_SYM.
65090         (bcmp): Do not use BP_SYM in weak_alias.
65091         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
65092         (PARMS): Do not use macros from bp-asm.h.
65093         (S1): Likewise.
65094         (SIZE): Likewise.
65095         (__mpn_mul_1): Do not use BP_SYM.
65096         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
65097         "bp-asm.h".
65098         (PARMS): Do not use macros from bp-asm.h.
65099         (STR): Likewise.
65100         (CHR): Likewise.
65101         (__rawmemchr): Do not use BP_SYM.
65102         (rawmemchr): Do not use BP_SYM in weak_alias.
65103         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
65104         (PARMS): Do not use macros from bp-asm.h.
65105         (S): Likewise.
65106         (SIZE): Likewise.
65107         (__mpn_rshift): Do not use BP_SYM.
65108         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
65109         (PARMS): Do not use macros from bp-asm.h.
65110         (SIGMSK): Likewise.
65111         (__sigsetjmp): Likewise.  Do not use BP_SYM.
65112         * sysdeps/i386/start.S: Do not include "bp-sym.h".
65113         (_start): Do not use BP_SYM.
65114         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
65115         (PARMS): Do not use macros from bp-asm.h.
65116         (DEST): Likewise.
65117         (SRC): Likewise.
65118         (__stpcpy): Likewise.  Do not use BP_SYM.
65119         (stpcpy): Do not use BP_SYM in weak_alias.
65120         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
65121         "bp-asm.h".
65122         (PARMS): Do not use macros from bp-asm.h.
65123         (DEST): Likewise.
65124         (SRC): Likewise.
65125         (LEN): Likewise.
65126         (__stpncpy): Likewise.  Do not use BP_SYM.
65127         (stpncpy): Do not use BP_SYM in weak_alias.
65128         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
65129         (PARMS): Do not use macros from bp-asm.h.
65130         (STR): Likewise.
65131         (CHR): Likewise.
65132         (strchr): Likewise.  Do not use BP_SYM.
65133         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
65134         "bp-asm.h".
65135         (PARMS): Do not use macros from bp-asm.h.
65136         (STR): Likewise.
65137         (CHR): Likewise.
65138         (__strchrnul): Likewise.  Do not use BP_SYM.
65139         (strchrnul): Do not use BP_SYM in weak_alias.
65140         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
65141         "bp-asm.h".
65142         (PARMS): Do not use macros from bp-asm.h.
65143         (STOP): Likewise.
65144         (strcspn): Do not use BP_SYM.
65145         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
65146         "bp-asm.h".
65147         (PARMS): Do not use macros from bp-asm.h.
65148         (STR): Likewise.
65149         (STOP): Likewise.
65150         (strpbrk): Likewise.  Do not use BP_SYM.
65151         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
65152         "bp-asm.h".
65153         (PARMS): Do not use macros from bp-asm.h.
65154         (STR): Likewise.
65155         (CHR): Likewise.
65156         (strrchr): Likewise.  Do not use BP_SYM.
65157         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
65158         (PARMS): Do not use macros from bp-asm.h.
65159         (SKIP): Likewise.
65160         (strspn): Do not use BP_SYM.
65161         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
65162         (PARMS): Do not use macros from bp-asm.h.
65163         (STR): Likewise.
65164         (DELIM): Likewise.
65165         (SAVE): Likewise.
65166         (FUNCTION): Likewise.  Do not use BP_SYM.
65167         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
65168         aliases.
65169         (strtok_r): Likewise.
65170         (__GI___strtok_r): Likewise.
65171         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
65172         (PARMS): Do not use macros from bp-asm.h.
65173         (S1): Likewise.
65174         (S2): Likewise.
65175         (SIZE): Likewise.
65176         (__mpn_sub_n): Do not use BP_SYM.
65177         * sysdeps/i386/submul_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_submul_1): Do not use BP_SYM.
65183         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
65184         <bp-sym.h>.
65185         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
65186         and <bp-asm.h>.
65187         (PARMS): Do not use macros from bp-asm.h.
65188         (FLAGS): Likewise.
65189         (PTID): Likewise.
65190         (TLS): Likewise.
65191         (CTID): Likewise.
65192         (__clone): Do not use BP_SYM.
65193         (clone): Do not use BP_SYM in weak_alias.
65194         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
65195         and <bp-asm.h>.
65196         (PARMS): Do not use macros from bp-asm.h.
65197         (LEN): Likewise.
65198         (__mmap64): Do not use BP_SYM.
65199         (mmap64): Do not use BP_SYM in weak_alias.
65200         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
65201         <bp-sym.h> and <bp-asm.h>.
65202         (PARMS): Do not use macros from bp-asm.h.
65203         (__posix_fadvise64_l64): Do not use BP_SYM.
65204         * sysdeps/unix/sysv/linux/i386/semtimedop.S
65205         (PARMS): Do not use macros from bp-asm.h.
65206         (NSOPS): Likewise.
65207         (semtimedop): Do not use BP_SYM.
65208         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
65209         and <bp-asm.h>.
65210
65211 2013-02-21  Allan McRae  <allan@archlinux.org>
65212
65213         * manual/message.texi (Charset conversion in gettext):
65214         Move @end statement to beginning of line.
65215
65216 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
65217
65218         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
65219         static.
65220         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
65221         Likewise.
65222
65223         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
65224         (denorm): Likewise.
65225         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
65226         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
65227
65228 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65229
65230         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
65231         tail-call to the resolved function if pltexit isn't needed.
65232
65233 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
65234
65235         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
65236         or Y being zero as being unlikely.
65237         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
65238         Likewise.
65239
65240 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
65241
65242         * manual/nss.texi (System Databases and Name Service Switch):
65243         Remove frobnicate @pxref.
65244
65245 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65246
65247         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65248         __attribute__ ((unused)) to __attribute__ ((__unused__)).
65249
65250 2013-02-20  Petr Machata  <pmachata@redhat.com>
65251
65252         * elf/elf.h (R_ARM_TARGET1): New macro.
65253         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
65254         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
65255         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
65256         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
65257         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
65258         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
65259         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
65260         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
65261         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
65262         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
65263         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
65264         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
65265         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
65266         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
65267         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
65268         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
65269         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
65270         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
65271         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
65272         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
65273         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
65274         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
65275         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
65276         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
65277         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
65278         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
65279         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
65280         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
65281         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
65282         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
65283         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
65284         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
65285         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
65286         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
65287         (R_ARM_THM_GOT_BREL12): Likewise.
65288         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
65289         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
65290         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
65291         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
65292         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
65293         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
65294         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
65295         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
65296         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
65297
65298 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
65299
65300         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
65301         __attribute_used__ to __attribute__ ((unused)).
65302
65303 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
65304
65305         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
65306         powerpc mpa.c.
65307         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
65308         comment formatting.
65309         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
65310
65311 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
65312
65313         [BZ #13550]
65314         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
65315         Remove macro.
65316         (ENTER): Remove both macro definitions.
65317         (LEAVE): Likewise.
65318         (CHECK_BOUNDS_LOW): Likewise.
65319         (CHECK_BOUNDS_HIGH): Likewise.
65320         (CHECK_BOUNDS_BOTH): Likewise.
65321         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
65322         (RETURN_BOUNDED_POINTER): Likewise.
65323         (RETURN_NULL_BOUNDED_POINTER): Likewise.
65324         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
65325         (POP_ERRNO_LOCATION_RETURN): Likewise.
65326         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
65327         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65328         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
65329         macros.
65330         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65331         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
65332         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
65333         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
65334         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
65335         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
65336         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
65337         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
65338         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
65339         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
65340         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
65341         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
65342         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65343         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
65344         removed macros.
65345         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65346         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
65347         macros.
65348         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65349         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
65350         * sysdeps/i386/i586/memset.S (memset): Likewise.
65351         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
65352         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65353         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
65354         macros.
65355         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65356         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
65357         Change uses of L(2) to L(out).
65358         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
65359         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
65360         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
65361         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65362         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
65363         removed macros.
65364         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65365         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
65366         macros.
65367         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65368         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
65369         (RETURN): Do not use macro LEAVE.
65370         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
65371         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
65372         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
65373         * sysdeps/i386/i686/memset.S (memset): Likewise.
65374         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
65375         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
65376         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
65377         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
65378         Likewise.
65379         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65380         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
65381         L(1_2) and L(1_3) into L(1).
65382         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65383         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
65384         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65385         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
65386         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
65387         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
65388         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
65389         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65390         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
65391         macros.
65392         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
65393         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
65394         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
65395         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
65396         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
65397         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
65398         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
65399         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
65400         * sysdeps/i386/strcspn.S (strcspn): Likewise.
65401         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
65402         * sysdeps/i386/strrchr.S (strrchr): Likewise.
65403         * sysdeps/i386/strspn.S (strspn): Likewise.
65404         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
65405         conditional code.
65406         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
65407         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
65408         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
65409         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
65410         L(1_3) into L(1_1).
65411         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
65412         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
65413         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
65414         macros.
65415         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
65416
65417 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
65418
65419         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
65420         macro.
65421
65422 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
65423
65424         * math/atest-exp.c (exp_mpn): Remove ROUND.
65425         * math/atest-exp2.c (exp_mpn): Likewise.
65426         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
65427
65428         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
65429         * stdlib/tst-tls-atexit-lib.c: Likewise.
65430         * stdlib/tst-tls-atexit.c: Likewise.
65431
65432 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65433
65434         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
65435         and __attribute_alloc_size__.
65436
65437 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65438
65439         * include/programs/xmalloc.h: Change __attribute_alloc_size to
65440         __attribute_alloc_size__.
65441         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
65442         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
65443
65444 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
65445
65446         * include/programs/xmalloc.h: New file.
65447         * catgets/gencat.c: Include it.
65448         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
65449         * elf/pldd.c: Likewise.
65450         * iconv/iconv_charmap.c: Likewise.
65451         * iconv/iconvconfig.c: Likewise.
65452         * iconv/strtab.c: Likewise.
65453         * locale/programs/locale.c: Likewise.
65454         * locale/programs/localedef.h: Likewise.
65455         * locale/programs/simple-hash.c: Likewise.
65456         * nscd/nscd.h: Likewise.
65457         * nss/makedb.c: Likewise.
65458         * sysdeps/generic/ldconfig.h: Likewise.
65459
65460 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
65461
65462         * Versions.def: Add GLIBC_2.18.
65463         * include/link.h (struct link_map): New member l_tls_dtor_count.
65464         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
65465         (__call_tls_dtors): Likewise.
65466         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
65467         __cxa_thread_atexit_impl.
65468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
65469         Likewise.
65470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
65471         Likewise.
65472         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
65473         Likewise.
65474         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
65475         Likewise.
65476         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
65477         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
65478         Likewise.
65479         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
65480         Likewise.
65481         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
65482         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
65483         Likewise.
65484         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
65485         (tests): Add test case tst-tls-atexit.
65486         (modules-names): Add shared library for tst-tls-atexit.
65487         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
65488         (GLIBC_PRIVATE): Add __call_tls_dtors.
65489         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
65490         for libstdc++.
65491         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
65492         * stdlib/tst-tls-atexit.c: New test case.
65493         * stdlib/tst-tls-atexit-lib.c: New test case.
65494
65495         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
65496
65497         * elf/Versions (ld): Add _dl_find_dso_for_object.
65498         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
65499         * elf/dl-open.c (_dl_find_dso_for_object): New function.
65500         (dl_open_worker): Use _dl_find_dso_for_object.
65501         * elf/dl-sym.c (do_sym): Likewise.
65502         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
65503
65504 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
65505
65506         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
65507         Syntactic changes only.
65508         (_dl_runtime_profile): Do a tail-call to the resolved function.
65509
65510 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
65511
65512         [BZ #13550]
65513         * sysdeps/x86_64/bp-asm.h: Remove file.
65514         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
65515         <bp-sym.h> and <bp-asm.h>.
65516         (__clone): Do not use BP_SYM.
65517         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
65518         <bp-sym.h> and <bp-asm.h>.
65519         * sysdeps/unix/x86_64/sysdep.S: Likewise.
65520         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
65521         "bp-asm.h".
65522         (_setjmp): Do not use BP_SYM.
65523         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
65524         "bp-asm.h".
65525         (setjmp): Do not use BP_SYM.
65526         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
65527         libc_hidden_def.
65528         (mempcpy): Do not use BP_SYM in weak_alias.
65529         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
65530         "bp-asm.h".
65531         (strchr): Do not use BP_SYM.
65532         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
65533         "bp-asm.h".
65534         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
65535         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
65536         (_start): Do not use BP_SYM.
65537         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
65538         "bp-asm.h".
65539         (strcat): Do not use BP_SYM.
65540         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
65541         "bp-asm.h".
65542         (STRCMP): Do not use BP_SYM.
65543         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
65544         "bp-asm.h".
65545         (STRCPY): Do not use BP_SYM.
65546         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
65547         "bp-asm.h".
65548         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
65549         "bp-asm.h".
65550         (FUNCTION): Do not use BP_SYM.
65551         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
65552         weak_alias.
65553         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
65554
65555 2013-02-17  Andreas Jaeger  <aj@suse.de>
65556
65557         * time/Versions: Sort entries.
65558         * string/Versions: Likewise.
65559         * resolv/Versions: Likewise.
65560         * posix/Versions: Likewise.
65561         * iconv/Versions: Likewise.
65562         * elf/Versions: Likewise.
65563         * wcsmbs/Versions: Likewise.
65564
65565 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
65566
65567         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
65568         loop termination condition.
65569
65570         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
65571         variable to calculate EZ.
65572         (__sqr): Likewise.
65573
65574         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
65575         the lower precision input.
65576
65577 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
65578
65579         [BZ #13550]
65580         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
65581         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
65582         (run-via-rtld-prefix): Do not handle %-bp tests.
65583         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
65584         (all-object-suffixes): Remove .ob.
65585         (bppfx): Remove variable.
65586         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
65587         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
65588         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
65589         [$(build-bounded) = yes] (libtype.ob): Likewise.
65590         * Makerules (elide-routines.ob): Remove variable.
65591         (do-tests-clean): Do not handle *-bp.out.
65592         (common-mostlyclean): Do not handle *-bp and *-bp.out.
65593         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
65594         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
65595         (tests): Do not include $(tests-bp.out).
65596         (xtests): Do not include $(xtests-bp.out).
65597         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
65598         [$(build-bounded) = yes] ($(addprefix
65599         $(objpfx),$(binaries-bounded))): Remove rule.
65600         ($(objpfx)%-bp.out): Remove rule.
65601         * config.make.in (build-bounded): Remove variable.
65602         * crypt/Makefile [$(build-bounded) = yes]
65603         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
65604         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
65605         append to variable.
65606         [$(build-bounded) = yes] (install-lib): Likewise.
65607         [$(build-bounded) = yes] (generated): Likewise.
65608         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
65609         Remove rule.
65610         * intl/Makefile [$(build-bounded) = yes]
65611         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
65612         * math/Makefile [$(build-bounded) = yes]
65613         ($(tests:%=$(objpfx)%-bp): Likewise.
65614         * misc/Makefile [$(build-bounded) = yes]
65615         ($(objpfx)tst-tsearch-bp): Likewise.
65616         * nptl/Makeconfig (bounded-thread-library): Remove variable.
65617         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
65618         Remove dependency.
65619         * string/Makefile (o-objects.ob): Remove variable.
65620         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
65621         (CFLAGS-.ob): Remove variable.
65622         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
65623         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
65624         both definitions of variable.
65625         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
65626         (ASFLAGS-.ob): Remove variable.
65627
65628 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
65629
65630         [BZ #13550]
65631         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
65632         Remove __BOUNDED_POINTERS__ from condition.
65633         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
65634         * string/bits/string2.h [!__NO_STRING_INLINES &&
65635         !__BOUNDED_POINTERS__]: Likewise.
65636         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
65637         Likewise.
65638         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
65639         Remove conditional code.
65640         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
65641         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
65642         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
65643         condition.
65644
65645         [BZ #13550]
65646         * csu/libc-start.c: Do not include <bp-sym.h>.
65647         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
65648         * elf/dl-open.c: Do not include <bp-sym.h>.
65649         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
65650         * math/fegetenv.c: Do not include <bp-sym.h>.
65651         (fegetenv): Do not use BP_SYM in versioned symbols.
65652         * nptl/sysdeps/pthread/bits/libc-lockP.h
65653         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
65654         <bp-sym.h>.
65655         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65656         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
65657         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65658         (__pthread_mutex_destroy): Likewise.
65659         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65660         (__pthread_mutex_lock): Likewise.
65661         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65662         (__pthread_mutex_trylock): Likewise.
65663         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65664         (__pthread_mutex_unlock): Likewise.
65665         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65666         (__pthread_mutexattr_init): Likewise.
65667         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65668         (__pthread_mutexattr_destroy): Likewise.
65669         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65670         (__pthread_mutexattr_settype): Likewise.
65671         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65672         (__pthread_rwlock_init): Likewise.
65673         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65674         (__pthread_rwlock_destroy): Likewise.
65675         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65676         (__pthread_rwlock_rdlock): Likewise.
65677         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65678         (__pthread_rwlock_tryrdlock): Likewise.
65679         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65680         (__pthread_rwlock_wrlock): Likewise.
65681         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65682         (__pthread_rwlock_trywrlock): Likewise.
65683         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65684         (__pthread_rwlock_unlock): Likewise.
65685         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65686         (__pthread_key_create): Likewise.
65687         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65688         (__pthread_setspecific): Likewise.
65689         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65690         (__pthread_getspecific): Likewise.
65691         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
65692         Likewise.
65693         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65694         (_pthread_cleanup_push_defer): Likewise.
65695         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65696         (_pthread_cleanup_pop_restore): Likewise.
65697         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
65698         (pthread_setcancelstate): Likewise.
65699         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
65700         <bp-sym.h>.
65701         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
65702         (memchr): Do not use BP_SYM in weak_alias.
65703         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
65704         (fegetenv): Do not use BP_SYM in versioned symbols.
65705         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
65706         (fesetenv): Do not use BP_SYM in versioned symbols.
65707         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65708         (feupdateenv): Do not use BP_SYM in versioned symbols.
65709         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65710         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65711         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
65712         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
65713         (open64): Do not use BP_SYM in weak_alias.
65714         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
65715         (fegetenv): Do not use BP_SYM in versioned symbols.
65716         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
65717         (fesetenv): Do not use BP_SYM in versioned symbols.
65718         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
65719         (feupdateenv): Do not use BP_SYM in versioned symbols.
65720         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
65721         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
65722         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
65723         (feraiseexcept): Do not use BP_SYM in versioned symbols.
65724         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
65725         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
65726         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
65727         <bp-sym.h>.
65728         (__libc_start_main): Do not use BP_SYM.
65729
65730 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
65731
65732         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
65733         redundant return line.
65734         (norm): Likewise.
65735         (denorm): Likewise.
65736         (dbl_mp): Likewise.
65737         (sub_magnitudes): Likewise.
65738         (__add): Likewise.
65739         (__sub): Likewise.
65740         (__mul): Likewise.
65741         (__inv): Likewise.
65742         (__dvd): Likewise.
65743         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
65744         (norm): Likewise.
65745         (denorm): Likewise.
65746         (dbl_mp): Likewise.
65747         (sub_magnitudes): Likewise.
65748         (__add): Likewise.
65749         (__sub): Likewise.
65750         (__mul): Likewise.
65751         (__inv): Likewise.
65752         (__dvd): Likewise.
65753
65754         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
65755         instead of __mul.
65756         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
65757         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
65758         (cc32): Likewise.
65759
65760         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
65761         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
65762         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
65763         of __mul for squares.
65764         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
65765         function
65766         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
65767         Likewise.
65768         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
65769         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
65770
65771 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
65772
65773         [BZ #13550]
65774         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
65775         code.
65776         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
65777         prototype or function definition.  Rename ubp_* variables and
65778         parameters.  Remove argv definitions conditional on
65779         [__BOUNDED_POINTERS__].
65780         * debug/backtrace.c (__backtrace): Do not use __unbounded.
65781         * elf/dl-runtime.c (_dl_fixup): Likewise.
65782         * include/set-hooks.h (RUN_HOOK): Likewise.
65783         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
65784         definition.
65785         * string/strcpy.c (strcpy): Do not use __unbounded.
65786         * sysdeps/generic/frame.h (struct layout): Likewise.
65787         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
65788         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
65789         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
65790         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
65791         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
65792         (__backtrace): Likewise.
65793         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
65794         use __ptrvalue.
65795         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
65796         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
65797         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
65798         Likewise.
65799         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
65800         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
65801         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
65802         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
65803         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
65804         Do not use __unbounded.
65805         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
65806         Rename __unboundedrlimits parameter to rlimits in prototype.
65807         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
65808         Do not use __unbounded.
65809         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
65810         not use __ptrvalue.
65811         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
65812         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
65813         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
65814         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
65815         __ptrvalue or __unbounded.
65816         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
65817         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
65818         use __unbounded.
65819         (__new_msgctl): Do not use __ptrvalue.
65820         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
65821         __unbounded.
65822         (__libc_msgrcv): Do not use __ptrvalue.
65823         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
65824         startup_info): Do not use __unbounded.
65825         (__libc_start_main): Likewise.  Rename ubp_* variables and
65826         parameters.  Remove argv definitions conditional on
65827         [__BOUNDED_POINTERS__].
65828         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
65829         __ptrvalue.
65830         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
65831         use __unbounded.
65832         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
65833         or __ptrvalue.
65834         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
65835         use __unbounded.
65836         (__new_shmctl): Do not use __ptrvalue.
65837         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
65838         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
65839         Likewise.
65840         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
65841         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
65842         (__libc_sigaction): Likewise.
65843         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
65844         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
65845         Likewise.
65846         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
65847
65848 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
65849
65850         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
65851
65852         * string/mempcpy.c: Implement by calling memcpy.
65853
65854 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
65855
65856         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
65857
65858         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
65859         evaluation.
65860
65861         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
65862         values in the mantissa.
65863
65864         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
65865         minimize writes to Z.
65866         (sub_magnitudes): Simplify code a bit.
65867
65868 2013-02-12  Roland McGrath  <roland@hack.frob.com>
65869
65870         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
65871         from the message.  The linker prefixes all warnings with that already.
65872
65873 2013-02-12  Andreas Schwab  <schwab@suse.de>
65874
65875         [BZ #15078]
65876         * posix/regexec.c (extend_buffers): Add parameter min_len.
65877         (check_matching): Pass minimum needed length.
65878         (clean_state_log_if_needed): Likewise.
65879         (get_subexp): Likewise.
65880         * posix/Makefile (tests): Add bug-regex34.
65881         (bug-regex34-ENV): Define.
65882         * posix/bug-regex34.c: New file.
65883
65884         [BZ #11561]
65885         * posix/regcomp.c (parse_bracket_exp): When looking up collating
65886         elements compare against the byte sequence of it, not its name.
65887         * posix/Makefile (tests): Add bug-regex35.
65888         (bug-regex35-ENV): Define.
65889         * posix/bug-regex35.c: New file.
65890
65891 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65892
65893         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
65894         comment.
65895         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
65896         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
65897         (CHECK_EOL): Add undef.
65898
65899 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
65900
65901         * bits/stdlib-bsearch.h: New file.
65902         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
65903         * stdlib/stdlib.h: Likewise.
65904
65905 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65906
65907         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
65908         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
65909         declaration.
65910         * manual/search.texi (Array Search Function): Add missing const in
65911         lfind prototype.
65912         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
65913         declaration to use rlim_t.
65914         (Basic Scheduling Functions): Remove erroneous const from
65915         sched_getparam prototype.  Remove erroneous * from
65916         sched_get_priority_max and sched_get_priority_min prototypes.
65917         (Resource Usage): Fix summary @comment on vtimes to refer to
65918         sys/vtimes.h rather than vtimes.h.
65919         Add missing *s in vtimes prototype.
65920         (Limits on Resources): Fix ulimit prototype to return long int.
65921         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
65922         prototypes to use long int rather than double.
65923         (BSD Random): Fix initstate and setstate to use char *, not void *.
65924         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
65925         prototype to make second argument 'struct aiocb64 *const[]'.
65926         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
65927         (Status of AIO Operations): Remove erroneous const in aio_return and
65928         aio_return64 prototypes.
65929         (Synchronizing I/O): Fix sync prototype to return void.
65930         * manual/startup.texi (Suboptions): Remove an erroneous const in
65931         getsubopt prototype.
65932         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
65933         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
65934         use size_t rather than int.
65935         (Scanning All Users): Likewise for getpwent_r.
65936         (Setting Groups): Add missing const to setgroups prototype.
65937         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
65938         * manual/socket.texi (Host Names): Fix gethostbyaddr and
65939         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
65940         'const void *' rather than 'const char *'.
65941         (Host Address Functions): Likewise for inet_ntop.
65942         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
65943         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
65944         ssize_t for return value.
65945         (Sending Data): Likewise for send, sendto, sendmsg.
65946         (Socket Option Functions): Add a missing const in setsockopt prototype.
65947         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
65948         use wchar_t for the argument.
65949         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
65950         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
65951         take no arguments.
65952         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
65953         double/float/long double for second argument.
65954         Fix return types of significand, significandf, significandl.
65955         * manual/filesys.texi (Setting Permissions): Use mode_t for second
65956         argument in fchmod prototype.
65957         (File Owner): Use uid_t and gid_t in fchown prototype.
65958         (File Times): Add const to utimes, futimes, and lutimes prototypes.
65959         (Making Special Files): Use mode_t and dev_t in mknod prototype.
65960         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
65961         use 'const struct dirent **' as argument types to CMP function pointer
65962         argument.
65963         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
65964         (File Times): Fix summary magic @comment for struct utimbuf and utime
65965         to refer to utime.h, not time.h.
65966         * manual/string.texi (Argz Functions): Add missing const in
65967         argz_extract and argz_next prototypes.
65968         (Finding Tokens in a String): Likewise for basename.
65969         (String/Array Comparison): Fix typo in wcscasecmp prototype.
65970         (Copying and Concatenation): Fix typo in wmemmove prototype.
65971         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
65972         (Signal Stack): Remove erroneous const in sigstack prototype.
65973         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
65974         prototype.
65975         (Simple Calendar Time): Likewise for stime.
65976         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
65977         prototype.
65978         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
65979         say sys/sysctl.h instead.
65980         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
65981         and vsyslog prototypes.
65982
65983 2013-02-11  Tom de Vries  <tom@codesourcery.com>
65984
65985         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
65986         Remove.
65987
65988 2013-02-11  Roland McGrath  <roland@hack.frob.com>
65989
65990         * misc/sys/mman.h: Fix typo in mremap comment.
65991
65992 2013-02-08  Roland McGrath  <roland@hack.frob.com>
65993
65994         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
65995         the '\0' terminator.
65996
65997 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
65998
65999         [BZ #13550]
66000         * debug/segfault.c: Don't include <bp-checks.h>.
66001         * sysdeps/generic/bp-checks.h: Remove file.
66002         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
66003         (__GETDENTS): Don't use CHECK_N.
66004         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
66005         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
66006         (__getgroups): Don't use CHECK_N.
66007         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
66008         (setgroups): Don't use CHECK_N.
66009         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
66010         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
66011         (__libc_msgrcv): Don't use CHECK_N.
66012         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
66013         (__libc_msgsnd): Don't use CHECK_N.
66014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
66015         <bp-checks.h>.
66016         (__libc_pread): Don't use CHECK_N.
66017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
66018         include <bp-checks.h>.
66019         (__libc_pread64): Don't use CHECK_N.
66020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
66021         include <bp-checks.h>.
66022         (__libc_pwrite): Don't use CHECK_N.
66023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
66024         include <bp-checks.h>.
66025         (__libc_pwrite64): Don't use CHECK_N.
66026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
66027         <bp-checks.h>.
66028         (__libc_pread): Don't use CHECK_N.
66029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
66030         include <bp-checks.h>.
66031         (__libc_pread64): Don't use CHECK_N.
66032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
66033         include <bp-checks.h>.
66034         (__libc_pwrite): Don't use CHECK_N.
66035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
66036         include <bp-checks.h>.
66037         (__libc_pwrite64): Don't use CHECK_N.
66038         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
66039         (do_pread): Don't use CHECK_N.
66040         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
66041         (do_pread64): Don't use CHECK_N.
66042         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
66043         (do_pwrite): Don't use CHECK_N.
66044         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
66045         (do_pwrite64): Don't use CHECK_N.
66046         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
66047         (__libc_readv): Don't use CHECK_N.
66048         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
66049         (semop): Don't use CHECK_N.
66050         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
66051         <bp-checks.h>.
66052         (semtimedop): Don't use CHECK_N.
66053         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
66054         (__libc_pread): Don't use CHECK_N.
66055         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
66056         <bp-checks.h>.
66057         (__libc_pread64): Don't use CHECK_N.
66058         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
66059         <bp-checks.h>.
66060         (__libc_pwrite): Don't use CHECK_N.
66061         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
66062         <bp-checks.h>.
66063         (__libc_pwrite64): Don't use CHECK_N.
66064         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
66065         <bp-checks.h>.
66066         (__libc_msgrcv): Don't use CHECK_N.
66067         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
66068         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
66069         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
66070         (__libc_writev): Don't use CHECK_N.
66071
66072 2013-02-08  Roland McGrath  <roland@hack.frob.com>
66073
66074         * string/strcpy.c: Removed unused variable.
66075
66076         * Makeconfig (+sysdep-includes): Define with := rather than =.
66077         Use an existing include/ subdir of each sysdeps dir before it.
66078
66079 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
66080
66081         * nscd/connection.c (register_traced_file): Comment function.
66082         [HAVE_INOTIFY] (union __inev): Define.
66083         [HAVE_INOTIFY] (inotify_check_files): New function.
66084         [HAVE_INOTIFY] (clear_db_cache): Likewise.
66085         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
66086         clear_db_cache.
66087         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
66088
66089 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
66090
66091         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
66092         loaded if not already and that a failure is permanent.
66093
66094 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
66095
66096         [BZ #15006]
66097         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
66098         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
66099
66100 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
66101
66102         [BZ #13550]
66103         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
66104         (CHECK_1_NULL_OK): Likewise.
66105         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
66106         (__fxstat): Do not use CHECK_1.
66107         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
66108         <bp-checks.h>.
66109         (___fxstat64): Do not use CHECK_1.
66110         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
66111         <bp-checks.h>.
66112         (__fxstatat): Do not use CHECK_1.
66113         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
66114         <bp-checks.h>.
66115         (__fxstatat64): Do not use CHECK_1.
66116         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
66117         <bp-checks.h>.
66118         (__fxstat): Do not use CHECK_1.
66119         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
66120         <bp-checks.h>.
66121         (__fxstatat): Do not use CHECK_1.
66122         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
66123         <bp-checks.h>.
66124         (__getresgid): Do not use CHECK_1.
66125         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
66126         <bp-checks.h>.
66127         (__getresuid): Do not use CHECK_1.
66128         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
66129         <bp-checks.h>.
66130         (__lxstat): Do not use CHECK_1.
66131         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
66132         <bp-checks.h>.
66133         (__old_msgctl): Do not use CHECK_1.
66134         (__new_msgctl): Likewise.
66135         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
66136         <bp-checks.h>.
66137         (__new_setrlimit): Do not use CHECK_1.
66138         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
66139         <bp-checks.h>.
66140         (__old_shmctl): Do not use CHECK_1.
66141         (__new_shmctl): Likewise.
66142         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
66143         <bp-checks.h>.
66144         (__xstat): Do not use CHECK_1.
66145         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
66146         (__lxstat): Do not use CHECK_1.
66147         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
66148         <bp-checks.h>.
66149         (___lxstat64): Do not use CHECK_1.
66150         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
66151         (__old_msgctl): Do not use CHECK_1.
66152         (__new_msgctl): Likewise.
66153         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
66154         <bp-checks.h>.
66155         (__gettimeofday): Do not use CHECK_1.
66156         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
66157         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
66158         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
66159         <bp-checks.h>.
66160         (__gettimeofday): Do not use CHECK_1.
66161         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
66162         (__old_shmctl): Do not use CHECK_1_NULL_OK.
66163         (__new_shmctl): Do not use CHECK_1.
66164         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
66165         <bp-checks.h>.
66166         (do_sigtimedwait): Do not use CHECK_1.
66167         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
66168         <bp-checks.h>.
66169         (do_sigwaitinfo): Do not use CHECK_1.
66170         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
66171         <bp-checks.h>.
66172         (msgctl): Do not use CHECK_1.
66173         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
66174         <bp-checks.h>.
66175         (shmctl): Do not use CHECK_1.
66176         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
66177         (ustat): Do not use CHECK_1.
66178         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
66179         <bp-checks.h>.
66180         (__fxstat): Do not use CHECK_1.
66181         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
66182         <bp-checks.h>.
66183         (__fxstatat): Do not use CHECK_1.
66184         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
66185         <bp-checks.h>.
66186         (__lxstat): Do not use CHECK_1.
66187         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
66188         <bp-checks.h>.
66189         (__xstat): Do not use CHECK_1.
66190         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
66191         (__xstat): Do not use CHECK_1.
66192         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
66193         (___xstat64): Do not use CHECK_1.
66194
66195         [BZ #13550]
66196         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
66197         definitions.
66198         (CHECK_BOUNDS_HIGH): Likewise.
66199         * string/strcpy.c: Do not include <bp-checks.h>.
66200         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
66201
66202 2013-02-07  Roland McGrath  <roland@hack.frob.com>
66203
66204         * nscd/nscd-client.h (__nscd_drop_map_ref):
66205         Add __attribute__ ((unused)).
66206         * nis/nss-nisplus.h (niserr2nss): Likewise.
66207
66208         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
66209         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
66210
66211         * csu/libc-tls.c (init_static_tls, init_slotinfo):
66212         Remove inline keyword.
66213         * include/rounding-mode.h (round_away): Likewise.
66214         * libio/wfileops.c (adjust_wide_data): Likewise.
66215         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
66216         (__m128i_strloadu_tolower): Likewise.
66217         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
66218         (__m128i_strloadu_tolower): Likewise.
66219         * time/mktime.c (ydhms_diff): Likewise.
66220         * locale/elem-hash.h (elem_hash): Likewise.
66221         * locale/setlocale.c (setdata): Likewise.
66222         * posix/regex_internal.h (re_string_char_size_at): Likewise.
66223         (re_string_wchar_at): Likewise.
66224         (bitset_not, bitset_merge, bitset_mask): Likewise.
66225         [!(__GNUC__ > 3)] (inline): Remove macro.
66226         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
66227         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
66228         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
66229         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
66230         * string/memcmp.c (memcmp_bytes): Likewise.
66231         * locale/programs/locarchive.c (compute_hashval): Likewise.
66232         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
66233         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
66234         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
66235         * nss/getent.c (print_rpc, print_protocols): Likewise.
66236         (print_passwd, print_group, print_aliases): Likewise.
66237         * nis/nss-nisplus.h (niserr2nss): Likewise.
66238         * nscd/connections.c (restart_p): Likewise.
66239         Change return type to bool.
66240
66241 2013-02-05  Roland McGrath  <roland@hack.frob.com>
66242
66243         * Makeconfig (all-Depend-files): Add existing
66244         $(sorted-subdirs:=/Depend) files.
66245         (all-subdirs): Remove nss.
66246         * sysdeps/unix/inet/Subdirs: Add it here instead.
66247         * hesiod/Depend: New file.
66248
66249         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
66250         instead of calling alloca.
66251
66252         * io/lseek.c (__lseek): Rename to __libc_lseek.
66253         Define __lseek as an alias.
66254
66255         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
66256
66257 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
66258
66259         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
66260         else clause and remove check for non-standard endianness.
66261
66262 2013-02-04  David S. Miller  <davem@davemloft.net>
66263
66264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66265
66266 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
66267
66268         [BZ #13550]
66269         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
66270         (__ubp_memchr): Remove prototype.
66271         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
66272         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
66273         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
66274         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
66275         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
66276         Remove alias.
66277         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
66278         (__ubp_memchr): Likewise.
66279         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
66280         (__ubp_memchr): Likewise.
66281         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
66282         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
66283         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
66284         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
66285         CHECK_STRING.
66286         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
66287         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
66288         (__getcwd): Do not use CHECK_STRING.
66289         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
66290         <bp-checks.h>.
66291         (__real_chown): Do not use CHECK_STRING.
66292         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
66293         <bp-checks.h>.
66294         (fchownat): Do not use CHECK_STRING.
66295         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
66296         CHECK_STRING.
66297         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
66298         <bp-checks.h>.
66299         (__lchown): Do not use CHECK_STRING.
66300         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
66301         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
66302         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
66303         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
66304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
66305         include <bp-checks.h>.
66306         (truncate64): Do not use CHECK_STRING.
66307         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
66308         <bp-checks.h>.
66309         (__real_chown): Do not use CHECK_STRING.
66310         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
66311         <bp-checks.h>.
66312         (__lchown): Do not use CHECK_STRING.
66313         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
66314         <bp-checks.h>.
66315         (__chown): Do not use CHECK_STRING.
66316         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
66317         <bp-checks.h>.
66318         (truncate64): Do not use CHECK_STRING.
66319         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
66320         Likewise.
66321         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
66322         (__xmknod): Do not use CHECK_STRING.
66323         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
66324         <bp-checks.h>.
66325         (__xmknodat): Do not use CHECK_STRING.
66326         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
66327         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
66328
66329 2013-02-04  Andreas Schwab  <schwab@suse.de>
66330
66331         [BZ #14142]
66332         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
66333         * include/netdb.h: Likewise for h_errno.
66334         * elf/tst-stackguard1.c: Include <tls.h>.
66335
66336 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
66337
66338         * elf/link.h (struct link_map): Extend the l_addr comment.
66339         * include/link.h (struct link_map): Likewise.
66340
66341 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
66342
66343         [BZ #13550]
66344         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
66345         (BOUNDED_1): Remove macro.
66346         * debug/backtrace.c: Don't include <bp-checks.h>.
66347         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
66348         (__backtrace): Likewise.
66349         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
66350         <bp-checks.h>.
66351         (__backtrace): Don't use BOUNDED_1.
66352         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
66353         <bp-checks.h>.
66354         (__backtrace): Don't use BOUNDED_1.
66355         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
66356         (__backtrace): Don't use BOUNDED_1.
66357         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
66358         (shmat): Don't use BOUNDED_N.
66359
66360 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
66361
66362         [BZ #13550]
66363         * sysdeps/generic/bp-start.h: Remove file.
66364         * csu/libc-start.c: Don't include <bp-start.h>.
66365         (LIBC_START_MAIN): Set up __environ directly instead of using
66366         INIT_ARGV_and_ENVIRON.
66367         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
66368         <bp-start.h>.
66369
66370         [BZ #13550]
66371         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
66372         definitions.
66373         (CHECK_FCNTL): Likewise.
66374         (CHECK_N_PAGES): Likewise.
66375
66376         [BZ #13550]
66377         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
66378         definitions.
66379         (CHECK_SIGSET_NULL_OK): Likewise.
66380         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
66381         <bp-checks.h>.
66382         (sigpending): Don't use CHECK_SIGSET.
66383         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
66384         <bp-checks.h>.
66385         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66386         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
66387         <bp-checks.h>.
66388         (do_sigsuspend): Don't use CHECK_SIGSET.
66389         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
66390         use CHECK_SIGSET.
66391         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
66392         (do_sigwait): Don't use CHECK_SIGSET.
66393         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
66394         use CHECK_SIGSET.
66395         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
66396         include <bp-checks.h>.
66397         (sigpending): Don't use CHECK_SIGSET.
66398         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
66399         include <bp-checks.h>.
66400         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66401         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
66402         <bp-checks.h>.
66403         (sigpending): Don't use CHECK_SIGSET.
66404         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
66405         <bp-checks.h>.
66406         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
66407
66408         [BZ #13550]
66409         * sysdeps/generic/bp-semctl.h: Remove file.
66410         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
66411         <bp-checks.h> and <bp-semctl.h>.
66412         (__old_semctl): Don't use CHECK_SEMCTL.
66413         (__new_semctl): Likewise.
66414         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
66415         and <bp-semctl.h>.
66416         (__old_semctl): Don't use CHECK_SEMCTL.
66417         (__new_semctl): Likewise.
66418         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
66419         <bp-checks.h> and <bp-semctl.h>.
66420         (__old_semctl): Don't use CHECK_SEMCTL.
66421         (__new_semctl): Likewise.
66422         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
66423         <bp-checks.h> and <bp-semctl.h>.
66424         (semctl): Don't use CHECK_SEMCTL.
66425
66426         [BZ #13550]
66427         * Makerules (elide-bp-thunks): Remove variable.
66428         (elide-routines.oS): Don't use $(elide-bp-thunks).
66429         (elide-routines.os): Likewise.
66430         (elide-routines.o): Likewise.
66431         (elide-routines.op): Likewise.
66432         (elide-routines.og): Likewise.
66433         (objects): Don't use $(bp-thunks).
66434         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
66435         include.
66436         (common-generated): Do not add s-proto-bp.d.
66437         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
66438         (int): Likewise.
66439         (typ): Likewise.
66440         Do not generate makefile rules for bounded-pointer thunks.
66441         * sysdeps/generic/bp-thunks.h: Remove file.
66442         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
66443         * sysdeps/unix/s-proto-bp.S: Likewise.
66444
66445         [BZ #15062]
66446         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
66447         parts of result separately when argument is not close to line from
66448         -i to i and one part of argument is small.
66449         * math/k_casinhf.c (__kernel_casinhf): Likewise.
66450         * math/k_casinhl.c (__kernel_casinhl): Likewise.
66451         * math/libm-test.inc (cacos_test): Add more tests.
66452         (casin_test): Likewise.
66453         (casinh_test): Likewise.
66454         * sysdeps/i386/fpu/libm-test-ulps: Update.
66455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66456
66457 2013-01-31  David S. Miller  <davem@davemloft.net>
66458
66459         * po/de.po: Update from translation team.
66460
66461 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
66462
66463         * time/tzfile.c: Include stdint.h for SIZE_MAX.
66464
66465 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
66466
66467         * configure.in (_AC_PROG_CC_C89): New definition.
66468         * configure: Regenerate.
66469
66470         * configure.in (AC_PROG_CPP): New definition.
66471         * configure: Regenerate.
66472
66473 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66474
66475         * debug/tst-backtrace.h: New file.
66476         * debug/tst-backtrace2.c: Include tst-backtrace.h.
66477         (ret): Remove variable.
66478         (x): Likewise.
66479         (FAIL): Remove macro.
66480         (NO_INLINE): Likewise.
66481         (fn1): Use match function instead of strstr.
66482         * debug/tst-backtrace3.c: Include tst-backtrace.h.
66483         (ret): Remove variable.
66484         (x): Likewise.
66485         (FAIL): Remove macro.
66486         (NO_INLINE): Likewise.
66487         (fn): Use match function instead of strstr.
66488         * debug/tst-backtrace4.c: Include tst-backtrace.h.
66489         (ret): Remove variable.
66490         (x): Likewise.
66491         (FAIL): Remove macro.
66492         (NO_INLINE): Likewise.
66493         (handle_signal): Use match function instead of strstr.
66494         * debug/tst-backtrace5.c: Include tst-backtrace.h.
66495         (ret): Remove variable.
66496         (x): Likewise.
66497         (FAIL): Remove macro.
66498         (NO_INLINE): Likewise.
66499         (handle_signal): Use match function instead of strstr.
66500
66501 2013-01-23  Roland McGrath  <roland@hack.frob.com>
66502
66503         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
66504
66505 2013-01-23  David S. Miller  <davem@davemloft.net>
66506
66507         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
66508         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
66509         argument of CAS if possible.
66510         * sysdeps/sparc/sparc64/bits/atomic.h
66511         (__arch_compare_and_exchange_val_32_acq): Likewise.
66512         (__arch_compare_and_exchange_val_64_acq): Likewise.
66513
66514 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
66515
66516         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
66517         * sysdeps/posix/ulimit.c: ... this.
66518         Include <limits.h>.
66519         * sysdeps/unix/bsd/ulimit.c: Remove file.
66520
66521 2013-01-23  Adam Conrad  <adconrad@0c3.net>
66522
66523         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
66524         (LDFLAGS-tst-array5): Likewise.
66525
66526 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
66527
66528         [BZ #15036]
66529         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
66530         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
66531         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
66532         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
66533
66534 2013-01-21  David S. Miller  <davem@davemloft.net>
66535
66536         * sysdeps/sparc/backtrace.c: New file.
66537         * sysdeps/sparc/sparc32/backtrace.h: New file.
66538         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
66539         * sysdeps/sparc/sparc64/backtrace.h: New file.
66540         * sysdeps/sparc/sparc64/backtrace.c: Delete.
66541         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
66542         -funwind-tables.
66543
66544 2013-01-21  Andreas Schwab  <schwab@suse.de>
66545
66546         [BZ #15020]
66547         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
66548         closed its stdout.
66549
66550 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
66551
66552         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
66553         "mpa2.h".
66554         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66555
66556 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
66557             Mark Mitchell  <mark@codesourcery.com>
66558             Tom de Vries  <tom@codesourcery.com>
66559             Paul Pluzhnikov  <ppluzhnikov@google.com>
66560
66561         * debug/tst-backtrace2.c: New file.
66562         * debug/tst-backtrace3.c: Likewise.
66563         * debug/tst-backtrace4.c: Likewise.
66564         * debug/tst-backtrace5.c: Likewise.
66565         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
66566         (CFLAGS-tst-backtrace3.c): Likewise.
66567         (CFLAGS-tst-backtrace4.c): Likewise.
66568         (CFLAGS-tst-backtrace5.c): Likewise.
66569         (LDFLAGS-tst-backtrace2): Likewise.
66570         (LDFLAGS-tst-backtrace3): Likewise.
66571         (LDFLAGS-tst-backtrace4): Likewise.
66572         (LDFLAGS-tst-backtrace5): Likewise.
66573         (tests): Add new tests tst-backtrace2, tst-backtrace3,
66574         tst-backtrace4 and tst-backtrace5.
66575
66576 2013-01-18  Anton Blanchard  <anton@samba.org>
66577             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
66578
66579         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
66580         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
66581         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
66582         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
66583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
66584         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
66585         "+r" and remove output regs list as redundant.  Add explicit inline
66586         asm to specify register of return val to work around compiler codegen
66587         bug.  Remove (int) cast on return value.  Add return type parameter to
66588         use in macro so that this macro does not truncate return value for
66589         64-bit values.
66590         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
66591         pass to INTERNAL_VSYSCALL_NCS.
66592         (INLINE_VSYSCALL): Add 'long int' as return type to
66593         INTERNAL_VSYSCALL_NCS macro invocation.
66594         (INTERNAL_VSYSCALL): Add 'long int' as return type to
66595         INTERNAL_VSYSCALL_NCS macro invocation.
66596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
66597
66598 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
66599
66600         [BZ #14496]
66601         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
66602         Fix application of SIMD FP exception mask.
66603
66604         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
66605         mp_no from a power of two.
66606         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
66607         __mpexp_twomm1.  Use __pow_mp.
66608
66609         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
66610         multiplication.
66611
66612 2013-01-17  David S. Miller  <davem@davemloft.net>
66613
66614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66615
66616 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66617
66618         [BZ #15023]
66619         * include/complex.h: Condition contents on [!_COMPLEX_H].
66620         (__kernel_casinhf): New prototype.
66621         (__kernel_casinh): Likewise.
66622         (__kernel_casinhl): Likewise.
66623         * math/Makefile (libm_calls): Add k_casinh.
66624         * math/k_casinh.c: New file.
66625         * math/k_casinhf.c: Likewise.
66626         * math/k_casinhl.c: Likewise.
66627         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
66628         finite nonzero arguments.
66629         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
66630         finite nonzero arguments.
66631         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
66632         finite nonzero arguments.
66633         * math/s_casinh.c: Do not include <float.h>.
66634         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
66635         * math/s_casinhf.c: Do not include <float.h>.
66636         (__casinhf): Move code for finite nonzero arguments to
66637         k_casinhf.c.
66638         * math/s_casinhl.c: Do not include <float.h>.
66639         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
66640         redefine.
66641         (__casinhl): Move code for finite nonzero arguments to
66642         k_casinhl.c.
66643         * math/libm-test.inc (cacos_test): Add more tests.
66644         * sysdeps/i386/fpu/libm-test-ulps: Update.
66645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66646
66647 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
66648
66649         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
66650         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
66651         [!HAVE_MREMAP]: Remove [defined linux] case.
66652         * malloc/arena.c: Do not include <malloc-sysdep.h>.
66653
66654 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
66655
66656         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
66657
66658 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
66659
66660         * elf/elf.h (R_386_SIZE32): New relocation.
66661         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
66662         R_386_SIZE32.
66663         (elf_machine_rela): Likewise.
66664         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
66665         R_X86_64_SIZE64 and R_X86_64_SIZE32.
66666
66667 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
66668
66669         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
66670         (FP_FAST_FMA): Do not define.
66671         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
66672         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
66673         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
66674         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
66675         !_SOFT_FLOAT]: Likewise.
66676         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
66677         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
66678         value.
66679         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
66680         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
66681         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
66682         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
66683         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
66684         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
66685         file.
66686
66687 2013-01-16  Andreas Schwab  <schwab@suse.de>
66688
66689         [BZ #14327]
66690         * include/stdlib.h (__mktemp): Add declaration.
66691         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
66692         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
66693
66694 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66695
66696         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
66697         definitions.
66698         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
66699         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
66700         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
66701         definitions here.
66702         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
66703         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
66704         definitions.
66705         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
66706         and ONE.
66707         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
66708         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
66709         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
66710         definitions.
66711         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
66712         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
66713         definitions.
66714         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
66715
66716         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
66717
66718 2013-01-15  David S. Miller  <davem@davemloft.net>
66719
66720         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66721         trunc{,f} to libm-sysdep_routes.
66722         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66723         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
66724         file.
66725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
66726         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
66727         file.
66728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
66729         file.
66730         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
66731         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
66732         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
66733         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
66734         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
66735         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
66736         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
66737         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
66738
66739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66740         nearbyint{,f} to libm-sysdep_routes.
66741         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
66743         New file.
66744         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
66745         file.
66746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
66747         New file.
66748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
66749         file.
66750         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
66751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
66752         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
66753         file.
66754         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
66755         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
66756         file.
66757         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
66758         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
66759         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
66760
66761         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
66762         libc_feholdexcept and libc_fesetenv.
66763
66764 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
66765
66766         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
66767
66768 2013-01-14  David S. Miller  <davem@davemloft.net>
66769
66770         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
66771         (SPARC_ASM_VIS2_IFUNC): Likewise.
66772         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
66773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
66774         use of 'siam' instruction.
66775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
66776         Likewise.
66777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
66778         Likewise.
66779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
66780         Likewise.
66781         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
66782         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
66783         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
66784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
66785         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
66786         file.
66787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
66788         file.
66789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
66790         file.
66791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
66792         file.
66793         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
66794         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
66795         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
66796         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
66797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
66798         new VIS2 routines.
66799         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
66800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
66801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
66802         Likewise.
66803         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
66804         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
66805         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
66806         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
66807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
66808         routines to libm-sysdep_routines.
66809         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
66810
66811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
66812         fdim/fdimf to libm-sysdep_routines.
66813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
66814         file.
66815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
66816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
66817         file.
66818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
66819         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
66820         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
66821         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
66822         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
66823         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
66824         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
66825
66826 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
66827
66828         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
66829         to optimize copies.
66830
66831         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
66832         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
66833         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
66834
66835         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
66836         local variable MPTWO.
66837         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
66838         Likewise.
66839
66840 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66841
66842         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
66843         GLOB_NOESCAPE.
66844
66845 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66846
66847         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
66848
66849 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
66850
66851         * manual/pattern.texi (glob_t): Document gl_flags.
66852         (glob64_t): Likewise.
66853
66854 2013-01-11  David S. Miller  <davem@davemloft.net>
66855
66856         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
66857         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
66858         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
66859         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
66860         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
66861         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
66862         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
66863         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
66864         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
66865         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
66866         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
66867         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
66868         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
66869
66870         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
66871         sparc V9 rather than using V8 code.
66872         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
66873         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
66874
66875         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
66876         Move to...
66877         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
66878         Here.
66879
66880 2013-01-11  Roland McGrath  <roland@hack.frob.com>
66881
66882         [BZ #14941]
66883         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
66884         not in the main loop.
66885         * configure: Regenerated.
66886
66887 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
66888
66889         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
66890         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
66891         to just #else.
66892         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
66893         [!__GLIBC_HAVE_LONG_LONG] case.
66894         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
66895         condition to just #else.
66896         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
66897         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
66898         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
66899         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
66900         unconditional.
66901         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
66902         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66903         #elif condition to just #else.
66904         * sysdeps/unix/sysv/linux/sys/sysmacros.h
66905         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
66906         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
66907         #elif condition to just #else.
66908
66909 2013-01-11  Steve Ellcey  <sellcey@mips.com>
66910
66911         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
66912         (EF_MIPS_ARCH_64): Fix value.
66913         (EF_MIPS_ARCH_32R2): New.
66914         (EF_MIPS_ARCH_64R2): New.
66915
66916 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
66917
66918         * Makeconfig (+link-pie-before-libc): New.
66919         (+link-pie-after-libc): Likewise.
66920         (+link-pie-tests): Likewise.
66921         (+link-pie): Rewritten.
66922         (link-before-libc): Remove $(config-LDFLAGS).
66923         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
66924         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
66925         (config-LDFLAGS): Renamed to ...
66926         (rtld-LDFLAGS): This.
66927         (rtld-tests-LDFLAGS): New macro.
66928         (link-libc-rpath-link): Likewise.
66929         (link-libc-tests-rpath-link): Likewise.
66930         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
66931         (link-libc): Prepand $(link-libc-rpath-link).
66932         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
66933         (test-program-prefix): New macro.
66934         (test-via-rtld-prefix): Likewise.
66935         (test-program-cmd): Likewise.
66936         (host-test-program-cmd): Likewise.
66937         * Makefile ($(common-objpfx)testrun.sh): Replace
66938         $(run-program-prefix) with $(test-program-prefix).
66939         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
66940         $(rtld-LDFLAGS).
66941         ($(common-objpfx)shlib.lds): Likewise.
66942         (build-module-helper): Likewise.
66943         ($(common-objpfx)format.lds): Likewise.
66944         * Rules (binaries-pie-tests): New.
66945         (binaries-pie-notests): Likewise.
66946         (binaries-pie): Rewritten.
66947         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
66948         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
66949         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
66950         (make-test-out): Replace $(host-built-program-cmd) with
66951         $(host-test-program-cmd).
66952         * config.make.in (build-hardcoded-path-in-tests): New variable.
66953         * configure.in (--enable-hardcoded-path-in-tests): New configure
66954         option.
66955         (hardcoded_path_in_tests): New AC_SUBST.
66956         * configure: Regenerated.
66957         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
66958         $(built-program-cmd) with $(test-program-cmd).
66959         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
66960         (test_program_cmd): This.
66961         * elf/Makefile ($(objpfx)order.out): Run test with
66962         $(test-program-prefix).
66963         ($(objpfx)order2.out): Likewise.
66964         ($(objpfx)tst-initorder.out): Likewise.
66965         ($(objpfx)tst-initorder2.out): Likewise.
66966         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
66967         $(test-program-cmd).
66968         ($(objpfx)tst-array1-static.out): Likewise.
66969         ($(objpfx)tst-array2.out): Likewise.
66970         ($(objpfx)tst-array3.out): Likewise.
66971         ($(objpfx)tst-array4.out): Likewise.
66972         ($(objpfx)tst-array5.out): Likewise.
66973         ($(objpfx)tst-array5-static.out): Likewise.
66974         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
66975         $(test-program-cmd).
66976         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
66977         $(run-program-prefix) with $(test-program-prefix).
66978         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
66979         (test_program_prefix): This.
66980         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
66981         $(run-program-prefix) with $(test-program-prefix).
66982         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
66983         (test_program_prefix): This.
66984         * iconvdata/tst-tables.sh: Likewise.
66985         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
66986         $(run-program-prefix) with $(test-program-prefix).
66987         ($(objpfx)tst-translit.out): Likewise.
66988         ($(objpfx)tst-gettext2.out): Likewise.
66989         ($(objpfx)tst-gettext4.out): Likewise.
66990         ($(objpfx)tst-gettext6.out): Likewise.
66991         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
66992         (test_program_prefix): This.
66993         * intl/tst-gettext2.sh: Likewise.
66994         * intl/tst-gettext4.sh  Likewise.
66995         * intl/tst-gettext6.sh: Likewise.
66996         * intl/tst-translit.sh: Likewise.
66997         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
66998         with $(test-program-cmd).
66999         * libio/Makefile ($(objpfx)test-freopen.out): Replace
67000         $(run-program-prefix) with $(test-program-prefix).
67001         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
67002         (test_program_prefix): This.
67003         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
67004         $(run-program-prefix) with $(test-program-prefix).
67005         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
67006         (test_program_prefix): This.
67007         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
67008         * posix/Makefile ($(objpfx)globtest.out): Replace
67009         $(run-via-rtld-prefix) and $(test-wrapper) with
67010         $(test-program-prefix) and $(test-via-rtld-prefix).
67011         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
67012         $(test-program-prefix).
67013         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
67014         $(host-test-program-cmd).
67015         (tst-spawn-ARGS): Likewise.
67016         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
67017         $(test-program-prefix).
67018         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
67019         (test_via_rtld_prefix): This.
67020         (test_wrapper): Renamed to ...
67021         (test_program_prefix): This.
67022         (run_program_prefix): Replaced by test_program_prefix.
67023         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
67024         (test_program_prefix): This.
67025         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
67026         with $(host-test-program-cmd).
67027         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
67028         $(run-program-prefix) with $(test-program-prefix).
67029         ($(objpfx)tst-printf.out): Likewise.
67030         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
67031         $(test-program-cmd).
67032         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
67033         (test_program_prefix): This.
67034         * stdio-common/tst-unbputc.sh: Likewise.
67035         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
67036         $(run-program-prefix) with $(test-program-prefix).
67037         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
67038         (test_program_prefix): This.
67039         * string/Makefile ($(objpfx)tst-svc.out):  Replace
67040         $(built-program-cmd) with $(test-program-cmd).
67041
67042 2013-01-11  Andreas Jaeger  <aj@suse.de>
67043
67044         [BZ #15003]
67045         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
67046         value. Sync with Linux 3.7.
67047
67048 2013-01-10  David S. Miller  <davem@davemloft.net>
67049
67050         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
67051         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
67052         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
67053
67054 2013-01-10  Roland McGrath  <roland@hack.frob.com>
67055
67056         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
67057         never set.
67058         * configure: Regenerated.
67059
67060 2013-01-10  David S. Miller  <davem@davemloft.net>
67061
67062         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
67063         sparc V9 rather than using V8 code.
67064         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
67065         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
67066
67067 2013-01-10  Roland McGrath  <roland@hack.frob.com>
67068
67069         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
67070         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
67071         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
67072         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
67073         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
67074         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
67075         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
67076         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
67077         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
67078         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
67079         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
67080         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
67081         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
67082         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
67083         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
67084         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
67085         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
67086         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
67087         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
67088         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
67089         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
67090         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
67091         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
67092         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
67093         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
67094         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
67095         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
67096
67097 2013-01-10  David S. Miller  <davem@davemloft.net>
67098
67099         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67100
67101 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
67102
67103         * posix/Makefile (tests-static): New variable.
67104         (tests): Add $(tests-static).
67105         (tst-exec-static-ARGS): New variable.
67106         (tst-spawn-static-ARGS): Likewise.
67107         * posix/tst-exec-static.c: New file.
67108         * posix/tst-spawn-static.c: Likewise.
67109         * posix/tst-exec.c: Support run directly.
67110         * posix/tst-spawn.c: Likewise.
67111
67112 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
67113
67114         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
67115         long.
67116         * math/bits/mathcalls.h (llrint): Likewise.
67117         (llround): Likewise.
67118         * stdlib/stdlib.h (struct drand48_data): Likewise.
67119         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
67120         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
67121         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
67122         Likewise.
67123         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
67124         Likewise.
67125         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
67126         (elf_greg_t): Likewise.
67127         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
67128         (__jmp_buf): Likewise.
67129         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
67130         definitions.
67131         (llrint): Likewise, for all definitions.
67132         (llrintl): Likewise.
67133
67134         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
67135         Remove [__GNUC__] condition.
67136         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
67137         condition to just [__USE_ISOC99].
67138         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
67139
67140 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
67141
67142         [BZ #14200]
67143         * sysdeps/unix/sysv/linux/x86/bits/environments.h
67144         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
67145         defined.
67146         (_POSIX_V6_ILP32_OFF32): Likewise.
67147         (_XBS5_ILP32_OFF32): Likewise.
67148         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
67149         (__ILP32_OFFBIG_LDFLAGS): Likewise.
67150
67151 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
67152
67153         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
67154
67155         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
67156         doubles __mpexp_twomm1.  Adjust usage.
67157         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
67158         Remove.
67159
67160 2013-01-10  Andreas Schwab  <schwab@suse.de>
67161
67162         [BZ #14964]
67163         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
67164         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
67165
67166 2013-01-09  David S. Miller  <davem@davemloft.net>
67167
67168         [BZ #15003]
67169         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
67170         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
67171         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
67172         (TCP_FASTOPEN): Define.
67173         (tcp_repair_opt): New structure.
67174         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
67175         enum values.
67176         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
67177         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
67178         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
67179         (tcp_cookie_transactions): New structure.
67180
67181 2013-01-09  Anton Blanchard  <anton@samba.org>
67182
67183         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
67184         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
67185         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
67186         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
67187
67188 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
67189
67190         * include/features.h (__USE_ANSI): Remove.
67191
67192 2013-01-09  Roland McGrath  <roland@hack.frob.com>
67193
67194         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
67195
67196         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
67197
67198 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
67199
67200         * sysdeps/s390/fpu/libm-test-ulps: Update.
67201
67202         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67203
67204         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
67205         (__acr): Likewise.
67206         (__cpy): Likewise.
67207         (norm): Likewise.
67208         (denorm): Likewise.
67209         (__mp_dbl): Likewise.
67210         (__dbl_mp): Likewise.
67211         (add_magnitudes): Likewise.
67212         (sub_magnitudes): Likewise.
67213         (__add): Likewise.
67214         (__sub): Likewise.
67215         (__mul): Likewise.
67216         (__inv): Likewise.
67217         (__dvd): Likewise.
67218         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
67219         (__acr): Likewise.
67220         (__cpy): Likewise.
67221         (norm): Likewise.
67222         (denorm): Likewise.
67223         (__mp_dbl): Likewise.
67224         (__dbl_mp): Likewise.
67225         (add_magnitudes): Likewise.
67226         (sub_magnitudes): Likewise.
67227         (__add): Likewise.
67228         (__sub): Likewise.
67229         (__mul): Likewise.
67230         (__inv): Likewise.
67231         (__dvd): Likewise.
67232         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
67233         (__acr): Likewise.
67234         (__cpy): Likewise.
67235         (norm): Likewise.
67236         (denorm): Likewise.
67237         (__mp_dbl): Likewise.
67238         (__dbl_mp): Likewise.
67239         (add_magnitudes): Likewise.
67240         (sub_magnitudes): Likewise.
67241         (__add): Likewise.
67242         (__sub): Likewise.
67243         (__mul): Likewise.
67244         (__inv): Likewise.
67245         (__dvd): Likewise.
67246
67247 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
67248
67249         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
67250         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
67251         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
67252         2 && __USE_EXTERN_INLINES]: Likewise.
67253
67254 2013-01-08  Andreas Jaeger  <aj@suse.de>
67255
67256         [BZ #14985]
67257         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
67258         Remove.
67259         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
67260         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
67261
67262 2013-01-07  Anton Blanchard  <anton@samba.org>
67263
67264         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
67265         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
67266         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
67267         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
67268         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
67269         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
67270         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
67271         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67272         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67273         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67274         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
67275         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
67276         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
67277         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
67278         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
67279         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
67280         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
67281         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
67282         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
67283         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
67284         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
67285         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
67286         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
67287         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
67288         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
67289         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
67290         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
67291         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
67292         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
67293         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
67294         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
67295         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67296         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67297         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
67298         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
67299         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
67300         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
67301         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
67302         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
67303         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
67304         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
67305         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
67306         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
67307
67308 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
67309
67310         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
67311         (__MALLOC_PMT): Likewise.
67312         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
67313         [__GNUC__], only on [_LIBC].
67314         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67315         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
67316         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
67317         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
67318         forward declaration.
67319         (realloc_hook_ini): Likewise.
67320         (memalign_hook_ini): Likewise.
67321         (__libc_memalign): Do not use __MALLOC_PMT in variable
67322         declaration.
67323         (__libc_valloc): Likewise.
67324         (__libc_pvalloc): Likewise.
67325         (__libc_calloc): Likewise.
67326         (__posix_memalign): Likewise.
67327
67328         [BZ #14996]
67329         * math/s_casinh.c: Include <float.h>.
67330         (__casinh): Do not do computation with squaring and square root
67331         for large arguments.
67332         * math/s_casinhf.c: Include <float.h>.
67333         (__casinhf): Do not do computation with squaring and square root
67334         for large arguments.
67335         * math/s_casinhl.c: Include <float.h>.
67336         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
67337         (__casinhl): Do not do computation with squaring and square root
67338         for large arguments.
67339         * math/libm-test.inc (casin_test): Add more tests.
67340         (casinh_test): Likewise.
67341         * sysdeps/i386/fpu/libm-test-ulps: Update.
67342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67343
67344 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
67345
67346         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
67347         (__x86_64_raw_data_cache_size): Likewise.
67348         (__x86_64_data_cache_size_half): Likewise.
67349         (__x86_64_raw_data_cache_size_half): Likewise.
67350         (__x86_64_shared_cache_size): Likewise.
67351         (__x86_64_raw_shared_cache_size): Likewise.
67352         (__x86_64_shared_cache_size_half): Likewise.
67353         (__x86_64_raw_shared_cache_size_half): Likewise.
67354         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
67355         to ...
67356         (__x86_data_cache_size): This.
67357         (__x86_64_raw_data_cache_size): Renamed to ...
67358         (__x86_raw_data_cache_size): This.
67359         (__x86_64_data_cache_size_half): Renamed to ...
67360         (__x86_data_cache_size_half): This.
67361         (__x86_64_raw_data_cache_size_half): Renamed to ...
67362         (__x86_raw_data_cache_size_half): This.
67363         (__x86_64_shared_cache_size): Renamed to ...
67364         (__x86_shared_cache_size): This.
67365         (__x86_64_raw_shared_cache_size): Renamed to ...
67366         (__x86_raw_shared_cache_size): This.
67367         (__x86_64_shared_cache_size_half): Renamed to ...
67368         (__x86_shared_cache_size_half): This.
67369         (__x86_64_raw_shared_cache_size_half): Renamed to ...
67370         (__x86_raw_shared_cache_size_half): This.
67371         * sysdeps/x86_64/memcpy.S: Updated.
67372         * sysdeps/x86_64/memset.S: Likewise.
67373         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
67374         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
67375         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
67376
67377 2013-01-04  David S. Miller  <davem@davemloft.net>
67378
67379         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67380
67381 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
67382
67383         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
67384         1 to avoid redefinition warning.
67385         (__USE_GNU): Don't define.
67386         (init_signaling_nan): Protoize.
67387
67388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67389
67390 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67391
67392         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
67393         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
67394         (__cpymn): Likewise.
67395         (norm): Remove commented code.
67396         (denorm): Likewise.
67397         (__mp_dbl): Likewise.
67398         (__inv): Likewise.
67399         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
67400         (__cpymn): Likewise.
67401         (norm): Remove commented code.
67402         (denorm): Likewise.
67403         (__mp_dbl): Likewise.
67404         (__inv): Likewise.
67405
67406         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
67407         mp_no value for 1.0 and 2.0.
67408         (norm): Use RADIXI instead of radixi.d.
67409         (denorm): Likewise.
67410         (__mul): Use 0.0 instead of zero.d.
67411         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
67412         mp_no value for 1.0 and 2.0.
67413         (norm): Use RADIXI instead of radixi.d.
67414         (denorm): Likewise.
67415         (__mul): Use 0.0 instead of zero.d.
67416
67417 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
67418
67419         [BZ #14994]
67420         * math/s_casinh.c (__casinh): Reduce finite argument to first
67421         quadrant then set signs of results at the end.
67422         * math/s_casinhf.c (__casinhf): Likewise.
67423         * math/s_casinhl.c (__casinhl): Likewise.
67424         * math/libm-test.inc (casin_test): Add more tests.
67425         (casinh_test): Likewise.
67426         * sysdeps/i386/fpu/libm-test-ulps: Update.
67427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67428
67429 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
67430
67431         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
67432
67433         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
67434
67435         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
67436         declarations.
67437         (denorm): Likewise.
67438         (__mp_dbl): Likewise.
67439         (__inv): Likewise.
67440
67441         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
67442         and adjust the header comment.
67443
67444         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
67445         variable name from declaration.
67446
67447 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
67448
67449         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
67450         Initialize COMMON_CPUID_INDEX_7 element.
67451         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
67452         (CPUID_RTM): Likewise.
67453         (HAS_RTM): Likewise.
67454         (COMMON_CPUID_INDEX_7): New enum.
67455
67456 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
67457
67458         [BZ #14981]
67459         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
67460         size is zero, record memory as freed.
67461
67462 2013-01-03  Andreas Jaeger  <aj@suse.de>
67463
67464         * po/ia.po: Add new Interlingua translation.
67465
67466 2012-01-03  Allan McRae  <allan@archlinux.org>
67467
67468         * locale/programs/localedef.c: Fix description of '--posix' flag.
67469
67470 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
67471
67472         * NEWS: Update dates in second copyright notice.
67473         * README: Update copyright dates in example.
67474         * manual/libc.texinfo: Update copyright dates.
67475         * scripts/test-installation.pl: Update copyright date in --version
67476         output.
67477
67478         * hurd/ctty-input.c: Fix copyright notice formatting.
67479         * hurd/ctty-output.c: Likewise.
67480         * hurd/dtable.c: Likewise.
67481         * hurd/hurd-raise.c: Likewise.
67482         * hurd/hurdprio.c: Likewise.
67483         * hurd/msgportdemux.c: Likewise.
67484         * misc/sys/file.h: Likewise.
67485         * misc/sys/ioctl.h: Likewise.
67486         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
67487         * sysdeps/mach/hurd/chdir.c: Likewise.
67488         * sysdeps/mach/hurd/fchdir.c: Likewise.
67489         * sysdeps/mach/hurd/rename.c: Likewise.
67490         * sysdeps/mach/hurd/rmdir.c: Likewise.
67491         * sysdeps/mach/hurd/seekdir.c: Likewise.
67492         * sysdeps/mach/hurd/setsid.c: Likewise.
67493         * sysdeps/posix/wait3.c: Likewise.
67494
67495         * All files with FSF copyright notices: Update copyright dates
67496         using scripts/update-copyrights.
67497         * intl/plural.c: Regenerated.
67498         * locale/programs/charmap-kw.h: Likewise.
67499         * locale/programs/locfile-kw.h: Likewise.
67500
67501 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
67502
67503         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
67504         four values.
67505
67506         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
67507         calculation loop and add branch prediction.
67508
67509         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
67510         check access beyond bounds of m1np.
67511
67512         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67513         MPTWO.
67514         (__inv): Remove local variable MPTWO to use the global
67515         constant.
67516         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
67517         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67518         variable MPTWO.
67519         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
67520         MP3HALFS static const.
67521
67522 2013-01-01  David S. Miller  <davem@davemloft.net>
67523
67524         * po/ca.po: Update from translation team.
67525
67526 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
67527
67528         * scripts/update-copyrights: New file.
67529         * Makeconfig: Reformat copyright notice.
67530         * ctype/ctype.h: Likewise.
67531         * debug/swprintf_chk.c: Likewise.
67532         * elf/dl-cache.c: Likewise.
67533         * elf/dl-debug.c: Likewise.
67534         * elf/dl-object.c: Likewise.
67535         * grp/initgroups.c: Likewise.
67536         * hurd/Makefile: Likewise.
67537         * hurd/hurd/signal.h: Likewise.
67538         * hurd/hurdfault.c: Likewise.
67539         * hurd/hurdioctl.c: Likewise.
67540         * hurd/hurdlookup.c: Likewise.
67541         * hurd/intr-msg.c: Likewise.
67542         * iconv/gconv_open.c: Likewise.
67543         * libio/swprintf.c: Likewise.
67544         * locale/lc-ctype.c: Likewise.
67545         * locale/nl_langinfo.c: Likewise.
67546         * mach/Machrules: Likewise.
67547         * mach/Makefile: Likewise.
67548         * malloc/obstack.h: Likewise.
67549         * manual/Makefile: Likewise.
67550         * manual/tsort.awk: Likewise.
67551         * misc/bits/stab.def: Likewise.
67552         * nis/nis_print_group_entry.c: Likewise.
67553         * nis/nis_table.c: Likewise.
67554         * nis/nss_compat/compat-pwd.c: Likewise.
67555         * nis/nss_compat/compat-spwd.c: Likewise.
67556         * po/Makefile: Likewise.
67557         * posix/fnmatch.c: Likewise.
67558         * posix/regex.h: Likewise.
67559         * resolv/Makefile: Likewise.
67560         * resolv/nss_dns/dns-network.c: Likewise.
67561         * resolv/res_hconf.c: Likewise.
67562         * scripts/gen-sorted.awk: Likewise.
67563         * soft-fp/soft-fp.h: Likewise.
67564         * stdio-common/printf.h: Likewise.
67565         * stdlib/monetary.h: Likewise.
67566         * stdlib/random.c: Likewise.
67567         * stdlib/random_r.c: Likewise.
67568         * sysdeps/generic/Makefile: Likewise.
67569         * sysdeps/gnu/Makefile: Likewise.
67570         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67571         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67572         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67573         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67574         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67575         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67576         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67577         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67578         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67579         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67580         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
67581         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
67582         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
67583         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
67584         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
67585         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
67586         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
67587         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67588         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67589         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67590         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67591         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67592         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67593         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
67594         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
67595         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
67596         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
67597         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
67598         * sysdeps/mach/hurd/errnos.awk: Likewise.
67599         * sysdeps/mach/hurd/fork.c: Likewise.
67600         * sysdeps/mach/hurd/getcwd.c: Likewise.
67601         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
67602         * sysdeps/mach/hurd/mmap.c: Likewise.
67603         * sysdeps/mach/hurd/utimes.c: Likewise.
67604         * sysdeps/mach/hurd/xmknod.c: Likewise.
67605         * sysdeps/posix/profil.c: Likewise.
67606         * sysdeps/posix/readdir_r.c: Likewise.
67607         * sysdeps/powerpc/bits/mathdef.h: Likewise.
67608         * sysdeps/powerpc/bits/setjmp.h: Likewise.
67609         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
67610         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
67611         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
67612         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67613         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67614         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
67615         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
67616         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67617         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67618         * sysdeps/pthread/lio_listio.c: Likewise.
67619         * sysdeps/sparc/dl-procinfo.h: Likewise.
67620         * sysdeps/unix/i386/sysdep.S: Likewise.
67621         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
67622         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
67623         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
67624         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
67625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
67626         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
67627         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
67628         * sysdeps/unix/sysv/linux/speed.c: Likewise.
67629         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
67630         * sysdeps/wordsize-32/divdi3.c: Likewise.
67631         * time/sys/time.h: Likewise.
67632         * wcsmbs/Makefile: Likewise.
67633
67634 2013-01-01  David S. Miller  <davem@davemloft.net>
67635
67636         * po/fr.po: Update from translation team.
67637
67638         * catgets/gencat.c: Update copyright year.
67639         * csu/version.c: Likewise.
67640         * debug/catchsegv.sh: Likewise.
67641         * debug/pcprofiledump.c: Likewise.
67642         * debug/xtrace.sh: Likewise.
67643         * elf/ldconfig.c: Likewise.
67644         * elf/ldd.bash.in: Likewise.
67645         * elf/pldd.c: Likewise.
67646         * elf/sotruss.ksh: Likewise.
67647         * elf/sprof.c: Likewise.
67648         * iconv/iconv_prog.c: Likewise.
67649         * iconv/iconvconfig.c: Likewise.
67650         * locale/programs/locale.c: Likewise.
67651         * locale/programs/localedef.c: Likewise.
67652         * login/programs/pt_chown.c: Likewise.
67653         * malloc/memusage.sh: Likewise.
67654         * malloc/memusagestat.c: Likewise.
67655         * malloc/mtrace.pl: Likewise.
67656         * nscd/nscd.c: Likewise.
67657         * nss/getent.c: Likewise.
67658         * nss/makedb.c: Likewise.
67659         * posix/getconf.c: Likewise.
67660
67661 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
67662
67663         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
67664         numbers.
67665
67666 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
67667
67668         * math/bits/mathcalls.h (modf): Use __nonnull.
67669
67670 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
67671
67672         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
67673         (split): Use macro CN instead of the bare value.
67674         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
67675         could be used.
67676         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
67677         instead of the bare value.
67678         (power1): Likewise.
67679
67680 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67681
67682         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
67683         __ATAN_TWOM.
67684         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67685
67686         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
67687         their values.
67688         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
67689         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
67690         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
67691         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
67692
67693 2012-12-28  Andreas Jaeger  <aj@suse.de>
67694
67695         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
67696         values are from Linux 3.7.
67697
67698         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
67699         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
67700
67701 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
67702
67703         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
67704         TRUE case.
67705
67706         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
67707         (norm): Likewise.
67708         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
67709         variables with preprocessor constants.
67710         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
67711         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
67712         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
67713
67714 2012-12-27  Bruno Haible  <bruno@clisp.org>
67715
67716         [BZ #14317]
67717         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
67718         only if needed.
67719
67720 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
67721
67722         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
67723         and use variable directly.
67724         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
67725
67726         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
67727         MPONE.
67728         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
67729         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
67730         variable MPONE.
67731         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
67732         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
67733         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
67734         include directive.  Remove local variable MPONE.
67735         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
67736         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
67737         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
67738
67739 2012-12-25  David S. Miller  <davem@davemloft.net>
67740
67741         * version.h (RELEASE): Set to "development".
67742         (VERSION): Set to "2.17.90".
67743         * NEWS: Add 2.18 section.
67744
67745 2012-12-21  David S. Miller  <davem@davemloft.net>
67746
67747         * po/hr.po: Update from translation team.
67748
67749 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
67750
67751         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
67752
67753 2012-12-19  Steve Ellcey  <sellcey@mips.com>
67754
67755         * NEWS:  Mention new memcpy for MIPS.
67756
67757 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
67758
67759         * manual/contrib.texi (Contributors): Spelling correction.
67760
67761 2012-12-15  David S. Miller  <davem@davemloft.net>
67762
67763         * po/ru.po: Update from translation team.
67764
67765 2012-12-13  David S. Miller  <davem@davemloft.net>
67766
67767         * NEWS: Mention IFUNC testsuite enhancements.
67768
67769         * po/pl.po: Update from translation team.
67770         * po/bg.po: Likewise.
67771
67772         * manual/contrib.texi (Contributors): Update entries for Hongjiu
67773         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
67774
67775 2012-12-11  David S. Miller  <davem@davemloft.net>
67776
67777         * po/sv.po: Update from translation team.
67778
67779         * po/vi.po: Update from translation team.
67780
67781         * po/cs.po: Update from translation team.
67782
67783         * po/de.po: Update from translation team.
67784         * po/eo.po: Likewise.
67785         * po/nl.po: Likewise.
67786
67787 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
67788
67789         [BZ #14246]
67790         * manual/argp.texi (Argp Helper Functions): Move node to follow
67791         Argp Parsing State.
67792
67793         [BZ #14872]
67794         * manual/conf.texi (Limits on File System Capacity): Mention if
67795         terminating null is included in the max size.
67796
67797 2012-12-10  Andreas Jaeger  <aj@suse.de>
67798
67799         * po/cs.po: Update from translation team.
67800
67801 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
67802
67803         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
67804         void pointer and cast to uintptr_t.
67805         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
67806         path.
67807         * sysdeps/s390/s390-64/memcpy.S: Likewise.
67808         * sysdeps/s390/s390-64/memset.S: Likewise.
67809
67810 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
67811
67812         [BZ #14833]
67813         * menual/message.texi (Message Translation): Fix typos.
67814         (Helper programs for gettext): Likewise.
67815
67816 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
67817
67818         [BZ #14898]
67819         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
67820         Change to -1.
67821
67822 2012-12-07  David S. Miller  <davem@davemloft.net>
67823
67824         * po/libc.pot: Update.
67825
67826 2012-12-07  Richard Henderson  <rth@redhat.com>
67827
67828         [BZ #10114]
67829         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
67830         normal/normal case to before the switch.
67831         (_FP_DIV): Likewise.
67832
67833 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
67834             Mike Frysinger  <vapier@gentoo.org>
67835
67836         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
67837         check for __NR_fadvise64_64.
67838
67839 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
67840
67841         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
67842         0, not just to plain "0" as a statement.
67843         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
67844         with cw.
67845
67846 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
67847
67848         * NEWS: Use sourceware.org in Bugzilla URL.
67849
67850 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
67851
67852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
67853         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67854
67855         * stdio-common/tst-put-error.c (do_test): Add newline to the
67856         padded test to ensure flush.
67857
67858 2012-12-05  Jeff Law  <law@redhat.com>
67859
67860         * sunrpc/etc.rpc (fedfs_admin): Add entry.
67861
67862 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
67863
67864         * README: Don't refer to ports add-on as distributed separately.
67865         Mention AArch64 in list of systems supported in the ports add-on.
67866
67867         * LICENSES: Add more non-FSF copyright and license notices.
67868
67869         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
67870         ((unused)).
67871
67872         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
67873
67874         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
67875         10000 as width of padded output.
67876
67877 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67878
67879         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
67880
67881         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
67882         variable LX with __attribute__ ((unused)).
67883         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
67884         Likewise.
67885         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
67886         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
67887         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
67888         with __attribute__ ((unused)).
67889
67890 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
67891
67892         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
67893
67894 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
67895
67896         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
67897         (CFLAGS-nldbl-acos.c): New variable.
67898         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
67899         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
67900         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
67901         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
67902         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
67903         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
67904         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
67905         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
67906         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
67907         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
67908         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
67909         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
67910         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
67911         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
67912         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
67913         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
67914         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
67915         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
67916         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
67917         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
67918         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
67919         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
67920         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
67921         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
67922         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
67923         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
67924         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
67925         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
67926         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
67927         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
67928         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
67929         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
67930         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
67931         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
67932         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
67933         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
67934         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
67935         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
67936         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
67937         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
67938         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
67939         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
67940         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
67941         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
67942         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
67943         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
67944         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
67945         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
67946         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
67947         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
67948         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
67949         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
67950         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
67951         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
67952         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
67953         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
67954         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
67955         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
67956         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
67957         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
67958         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
67959         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
67960         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
67961         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
67962         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
67963         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
67964         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
67965         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
67966         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
67967         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
67968         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
67969         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
67970         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
67971         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
67972         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
67973         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
67974         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
67975         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
67976         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
67977         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
67978         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
67979         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
67980         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
67981         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
67982         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
67983         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
67984         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
67985         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
67986         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
67987         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
67988         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
67989         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
67990         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
67991         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
67992         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
67993         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
67994         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
67995
67996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
67997         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
67998
67999         [BZ #14914]
68000         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
68001         whole low double instead of just low 47 bits when splitting values
68002         into two parts.
68003
68004 2012-12-03  Allan McRae  <allan@archlinux.org>
68005
68006         * manual/stdio.texi (Predefined Printf Handlers): Remove
68007         @hsep and @vsep usage.
68008
68009 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
68010
68011         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
68012         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
68013
68014 2012-12-03  Jeff Law  <law@redhat.com>
68015
68016         * time/sys/time.h (settimeofday): Do not mark TV argument
68017         as __nonnull.
68018
68019 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
68020
68021         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
68022         when currently writing and seek to current position when not.
68023         * libio/Makefile (tests): Remove bug-fclose1.
68024         * libio/bug-fclose1.c: Delete.
68025
68026 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
68027
68028         * manual/arith.texi (feenableexcept): Fix typo.
68029         (fedisableexcept): Likewise.
68030
68031 2012-11-30  Roland McGrath  <roland@hack.frob.com>
68032
68033         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
68034         second, differently-typed declaration, rather than a cast.
68035
68036 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
68037
68038         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
68039         * include/rpc/svc.h: ... here.
68040
68041 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
68042
68043         [BZ #13013]
68044         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
68045         depending n and resplen2 to catch cases where answer
68046         equals answerp2.
68047
68048 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
68049
68050         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
68051         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
68052
68053 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
68054
68055         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
68056
68057 2012-11-29  Roland McGrath  <roland@hack.frob.com>
68058
68059         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
68060
68061 2012-11-28  Jeff Law  <law@redhat.com>
68062
68063         [BZ #13761]
68064         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
68065         dataset_temporary.  Track alloca usage into alloca_used.
68066         If dataset is large allocate and release it via malloc/free.
68067
68068 2012-06-04  Florian Weimer  <fweimer@redhat.com>
68069
68070         [BZ #14197]
68071         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
68072
68073 2012-11-28  David S. Miller  <davem@davemloft.net>
68074
68075         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68076
68077 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
68078
68079         [BZ #14803]
68080         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
68081         of pi/2 rounded to nearest to 64 bits.
68082         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
68083         nearest to 64 bits.
68084         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
68085         bits.
68086
68087 2012-11-28  Jeff Law <law@redhat.com>
68088             Martin Osvald <mosvald@redhat.com>
68089
68090         [BZ #14889]
68091         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
68092         * sunrpc/svc.c: Include time.h.
68093         (__svc_accept_failed): New function.
68094         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
68095         any reason other than EINTR, call __svc_accept_failed.
68096         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
68097         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
68098
68099 2012-11-28  Andreas Schwab  <schwab@suse.de>
68100
68101         * scripts/abilist.awk: Also handle indirect functions in .opd
68102         section.
68103
68104 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
68105
68106         [BZ #13881]
68107         * sysdeps/x86/fpu/powl_helper.c: New file.
68108         * sysdeps/x86/fpu/Makefile: Likewise.
68109         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
68110         (p3): New object.
68111         (__ieee754_powl): Use __powl_helper for finite arguments except
68112         integer exponents below 8.
68113         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
68114         (p3): New object.
68115         (__ieee754_powl): Use __powl_helper for finite arguments except
68116         integer exponents below 8.
68117         * math/libm-test.inc (pow_test): Add more tests and enable some
68118         previously disabled tests.
68119         * sysdeps/i386/fpu/libm-test-ulps: Update.
68120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68121
68122 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
68123             Carlos O'Donell  <carlos_odonell@mentor.com>
68124
68125         * nss/makedb.c (is_prime): Assert that input is odd and greater
68126         than 4.  Note that fact in a comment too.
68127         (next_prime): Add 4 to input.
68128
68129 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
68130
68131         [BZ #11741]
68132         * libio/Makefile (tests): Add test case tst-fwrite-error.
68133         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
68134         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
68135         * libio/tst-fwrite-error.c: New test case.
68136
68137 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
68138
68139         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
68140         before casting to void *.
68141         * include/libc-internal.h (__pointer_type): New macro.
68142         (__integer_if_pointer_type_sub): Likewise.
68143         (__integer_if_pointer_type): Likewise.
68144         (cast_to_integer): Likewise.
68145         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
68146         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
68147         before casting to atomic64_t.
68148         (atomic_exchange_acq): Likewise.
68149         (__arch_exchange_and_add_body): Likewise.
68150         (__arch_add_body): Likewise.
68151         (atomic_add_negative): Likewise.
68152         (atomic_add_zero): Likewise.
68153
68154 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
68155
68156         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
68157         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
68158         (add_fdes): Likewise.
68159         (linear_search_fdes): Likewise.
68160         (binary_search_unencoded_fdes): Likewise.
68161
68162 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
68163
68164         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
68165
68166 2012-11-24  Adam Conrad  <adconrad@0c3.net>
68167
68168         * configure.in: Autodetect C++ header directories.
68169         * configure: Regenerated.
68170
68171 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
68172
68173         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
68174
68175 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
68176
68177         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68178
68179 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
68180
68181         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
68182         LDBL_MANT_DIG == 106]: Disable some tests.
68183         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
68184         Likewise.
68185         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
68186         Likewise.
68187
68188         [BZ #14871]
68189         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
68190         input for small inputs.  Return +/- pi/2 for large inputs.
68191         * math/libm-test.inc (atan_test): Add more tests.
68192
68193         * sysdeps/generic/unwind-dw2-fde-glibc.c
68194         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
68195         __attribute__ ((unused)).
68196
68197         [BZ #14645]
68198         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
68199         x * y if x and y are nonzero and z is zero.
68200
68201         [BZ #14811]
68202         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
68203         nonzero exponents with absolute value below 0x1p-117 to +/-
68204         0x1p-117.
68205
68206         [BZ #14869]
68207         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
68208         up arguments below 2**-450, not just those below 2**-500.
68209         * math/libm-test.inc (hypot_test): Add another test.
68210
68211         [BZ #14868]
68212         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
68213         Return a+b for ratio over 2**120, not 2**60.
68214         * math/libm-test.inc (hypot_test): Add another test.
68215
68216         * math/libm-test.inc (clog_test): Use
68217         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
68218         (clog10_test): Likewise.
68219
68220         [BZ #6778]
68221         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
68222
68223 2012-11-22  Andreas Schwab  <schwab@suse.de>
68224
68225         * sysdeps/i386/fpu/libm-test-ulps: Update.
68226
68227 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
68228
68229         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
68230         printf output with newline.
68231
68232 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
68233
68234         [BZ #14865]
68235         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
68236         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
68237         -z nodlopen, -z initfirst and -z execstack support.
68238         * configure: Regenerated.
68239
68240         * elf/elf.h (DF_1_NODIRECT): New macro.
68241         (DF_1_IGNMULDEF): Likewise.
68242         (DF_1_NOKSYMS): Likewise.
68243         (DF_1_NOHDR): Likewise.
68244         (DF_1_EDITED): Likewise.
68245         (DF_1_NORELOC): Likewise.
68246         (DF_1_SYMINTPOSE): Likewise.
68247         (DF_1_GLOBAUDIT): Likewise.
68248         (DF_1_SINGLETON): Likewise.
68249         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
68250         DT_1_SUPPORTED_MASK bits.
68251         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
68252
68253 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
68254
68255         * sysdeps/unix/make-syscalls.sh: Document prefixes.
68256
68257 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
68258
68259         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
68260         macro.
68261
68262         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
68263         (sendmmsg): Move declarations...
68264         * socket/sys/socket.h: ... here.
68265         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
68266         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
68267         include it from...
68268         * socket/recvmmsg.c: ... this new file.
68269         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
68270         (sendmmsg): Rename to __sendmmsg, create weak alias and make
68271         definition of __sendmmsg hidden.
68272         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
68273         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
68274         Move ENOSYS stub into and include it from...
68275         * socket/sendmmsg.c: ... this new file.
68276         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
68277         (sysdep_routines): Move recvmmsg and sendmmsg...
68278         * socket/Makefile (routines): ... here.
68279         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
68280         (GLIBC_PRIVATE): Add __sendmmsg.
68281         * include/sys/socket.h (__sendmmsg): Add declarations.
68282         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
68283         sendmmsg.
68284
68285 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
68286
68287         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
68288         variable I1 with __attribute__ ((unused)).
68289         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68290
68291 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68292
68293         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
68294         DUMMY variables with __attribute__ ((unused)).
68295
68296         * bits/byteswap.h: Include <bits/types.h>.
68297         (__bswap_64): Use __uint64_t instead of unsigned long long int.
68298
68299 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68300
68301         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
68302         string_t.  Do not manually set errno.
68303         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
68304         length with __strnlen.  Make sure to both set errno and return it on
68305         failure.
68306
68307 2012-11-19  David S. Miller  <davem@davemloft.net>
68308
68309         With help from Joseph Myers.
68310         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
68311         very large arguments properly.
68312         * math/libm-test.inc (atan_test): New tests.
68313         (atan2_test): New tests.
68314         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68315         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68316
68317 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
68318
68319         [BZ #14856]
68320         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
68321         Define to 3.
68322
68323         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
68324         [POSIX] (EADDRNOTAVAIL): Likewise.
68325         [POSIX] (EAFNOSUPPORT): Likewise.
68326         [POSIX] (EALREADY): Likewise.
68327         [POSIX] (ECONNABORTED): Likewise.
68328         [POSIX] (ECONNREFUSED): Likewise.
68329         [POSIX] (ECONNRESET): Likewise.
68330         [POSIX] (EDESTADDRREQ): Likewise.
68331         [POSIX] (EDQUOT): Likewise.
68332         [POSIX] (EHOSTUNREACH): Likewise.
68333         [POSIX] (EIDRM): Likewise.
68334         [POSIX] (EISCONN): Likewise.
68335         [POSIX] (ELOOP): Likewise.
68336         [POSIX] (EMULTIHOP): Likewise.
68337         [POSIX] (ENETDOWN): Likewise.
68338         [POSIX] (ENETUNREACH): Likewise.
68339         [POSIX] (ENOBUFS): Likewise.
68340         [POSIX] (ENODATA): Likewise.
68341         [POSIX] (ENOLINK): Likewise.
68342         [POSIX] (ENOMSG): Likewise.
68343         [POSIX] (ENOPROTOOPT): Likewise.
68344         [POSIX] (ENOSR): Likewise.
68345         [POSIX] (ENOSTR): Likewise.
68346         [POSIX] (ENOTCONN): Likewise.
68347         [POSIX] (ENOTSOCK): Likewise.
68348         [POSIX] (EOPNOTSUPP): Likewise.
68349         [POSIX] (EOVERFLOW): Likewise.
68350         [POSIX] (EPROTO): Likewise.
68351         [POSIX] (EPROTONOSUPPORT): Likewise.
68352         [POSIX] (EPROTOTYPE): Likewise.
68353         [POSIX] (ESTALE): Likewise.
68354         [POSIX] (ETIME): Likewise.
68355         [POSIX] (ETXTBSY): Likewise.
68356         [POSIX] (EWOULDBLOCK): Likewise.
68357         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
68358         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
68359         [POSIX] (SEEK_CUR): Likewise.
68360         [POSIX] (SEEK_END): Likewise.
68361         [POSIX || UNIX98] (mode_t): Do not require.
68362         [POSIX] (off_t): Likewise.
68363         [POSIX] (pid_t): Likewise.
68364         [POSIX] (sys/stat.h): Do not allow header.
68365         [POSIX] (unistd.h): Likewise.
68366         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
68367         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
68368         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
68369         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
68370         require.
68371         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
68372         sigevent): Specify elements.
68373         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
68374         entry.
68375         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
68376         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
68377
68378         * conform/data/cpio.h-data [POSIX]: Disable whole file.
68379         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
68380         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
68381         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
68382         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
68383         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
68384         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
68385         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
68386         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
68387         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
68388         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
68389         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
68390         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
68391         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
68392         Likewise.
68393         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
68394         Likewise.
68395         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
68396         Likewise.
68397         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
68398         Likewise.
68399         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
68400         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
68401         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
68402         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
68403         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
68404         Specify lower bound on value.
68405         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
68406         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
68407         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
68408         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
68409         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
68410         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
68411         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
68412         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
68413         value.
68414         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
68415         as optional.
68416         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
68417         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
68418         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
68419         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
68420         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
68421         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
68422         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
68423         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
68424         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
68425         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
68426         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
68427         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
68428         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
68429         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
68430         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
68431         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
68432         entry.
68433         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
68434         optional.
68435         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
68436         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
68437         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
68438         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
68439         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
68440         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
68441         Likewise.
68442         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
68443         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
68444         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
68445         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
68446         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
68447         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
68448         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
68449         as optional.
68450         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
68451         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
68452         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
68453         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
68454         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
68455         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
68456         specify as optional.
68457         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
68458         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
68459         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
68460         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
68461         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
68462         [XPG3] (NL_LANGMAX): Likewise.
68463         [POSIX || XPG3] (NL_MSGMAX): Likewise.
68464         [POSIX || XPG3] (NL_NMAX): Likewise.
68465         [POSIX || XPG3] (NL_SETMAX): Likewise.
68466         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
68467         [XPG3] (NZERO): Likewise.
68468         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
68469         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
68470         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
68471         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
68472         (REG_ERANGE): Expect.
68473         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
68474         optional-constant.
68475         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
68476         Use (void) in prototype.
68477         [POSIX] (*_t): Allow.
68478         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
68479         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
68480         (WRDE_BADVAL): Expect.
68481
68482         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
68483         expect.
68484         [XPG3 || XPG4] (O_RSYNC): Likewise.
68485         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
68486         Likewise.
68487         [XPG3 || XPG4] (pthread_sigmask): Likewise.
68488         [XPG3 || XPG4] (sigqueue): Likewise.
68489         [XPG3 || XPG4] (sigtimedwait): Likewise.
68490         [XPG3 || XPG4] (sigwaitinfo): Likewise.
68491         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
68492         [XPG3 || XPG4] (vsnprintf): Likewise.
68493         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
68494         Likewise.
68495         [XPG3 || XPG4] (blksize_t): Likewise.
68496         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
68497         Likewise.
68498         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
68499         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
68500         [XPG3 || XPG4] (struct itimerspec): Likewise.
68501         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
68502         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
68503         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
68504         [XPG3 || XPG4] (clockid_t): Likewise.
68505         [XPG3 || XPG4] (timer_t): Likewise.
68506         [XPG3 || XPG4] (clock_getres): Likewise.
68507         [XPG3 || XPG4] (clock_gettime): Likewise.
68508         [XPG3 || XPG4] (clock_settime): Likewise.
68509         [XPG3 || XPG4] (nanosleep): Likewise.
68510         [XPG3 || XPG4] (timer_create): Likewise.
68511         [XPG3 || XPG4] (timer_delete): Likewise.
68512         [XPG3 || XPG4] (timer_gettime): Likewise.
68513         [XPG3 || XPG4] (timer_getoverrun): Likewise.
68514         [XPG3 || XPG4] (timer_settime): Likewise.
68515         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
68516         [XPG3 || XPG4] (getlogin_r): Likewise.
68517         [XPG3 || XPG4] (pread): Likewise.
68518         [XPG3 || XPG4] (pthread_atfork): Likewise.
68519         [XPG3 || XPG4] (pwrite): Likewise.
68520
68521         [BZ #14835]
68522         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
68523         <bits/siginfo.h>.
68524
68525 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
68526
68527         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
68528         finalizing MALLSTREAM.
68529
68530         * sysdeps/mach/hurd/syncfs.c: New file.
68531
68532 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
68533
68534         [BZ #14719]
68535         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
68536         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
68537         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
68538         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
68539         (_nss_dns_gethostbyname4_r): Likewise.
68540         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
68541         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
68542
68543 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
68544
68545         [BZ #13763]
68546         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
68547
68548 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
68549
68550         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
68551         * elf/cache.c (print_entry): Print ",AArch64" for
68552         FLAG_AARCH64_LIB64
68553
68554         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
68555         * elf/cache.c (print_entry): Print ",hard-float" for
68556         FLAG_ARM_LIBHF.
68557
68558 2012-11-18  David S. Miller  <davem@davemloft.net>
68559
68560         With help from Joseph Myers.
68561         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
68562         cutoff to 2**-13.
68563         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
68564         cutoff to 2**-25.
68565         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
68566         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
68567         small.
68568         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
68569         * math/libm-test.inc (y0_test): New tests.
68570         (y1_test): New tests.
68571         * sysdeps/i386/fpu/libm-test-ulps: Update.
68572         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
68573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68574
68575 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
68576
68577         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
68578         64-bit targets.
68579         * configure: Regenerated.
68580
68581 2012-11-17  David S. Miller  <davem@davemloft.net>
68582
68583         [BZ #14811]
68584         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
68585         nonzero exponents with absolute value below 0x1p-128 to +/-
68586         0x1p-128.
68587
68588 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
68589
68590         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
68591
68592         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
68593
68594         * posix/getconf-speclist.c: New file.
68595         * posix/posix-envs.def: Likewise.
68596         * posix/confstr.c (START_ENV_GROUP): New macro.
68597         (END_ENV_GROUP): Likewise.
68598         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68599         (KNOWN_PRESENT_ENV_STRING): Likewise.
68600         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68601         (UNKNOWN_ENVIRONMENT): Likewise.
68602         (confstr): Include posix-envs.def instead of handling
68603         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
68604         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
68605         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
68606         (END_ENV_GROUP): Likewise.
68607         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
68608         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
68609         (UNKNOWN_ENVIRONMENT): Likewise.
68610         (__sysconf): Include posix-envs.def instead of handling associated
68611         cases directly here.
68612         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
68613         preprocessing getconf-speclist.c rather than running getconf or
68614         generating empty file.
68615
68616 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
68617
68618         * scripts/check-local-headers.sh: Ignore 'mach' headers.
68619
68620 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
68621
68622         [BZ #14672]
68623         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
68624
68625 2012-11-16  David S. Miller  <davem@davemloft.net>
68626
68627         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
68628         smaller than LDBL_EPSILON/2.0L, just return xm1.
68629
68630 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
68631
68632         * elf/tst-array1.c (init): Set constructor priority to 1000.
68633         (fini): Set destructor priority to 1000.
68634         * elf/tst-array2dep.c: Likewise.
68635
68636 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68637
68638         [BZ #11741]
68639         * libio/fileops.c (_IO_new_file_write): Correctly return error.
68640         (_IO_new_file_xsputn): Also return EOF if none of the input
68641         data was written when overflow failed.
68642         * libio/iopadn.c (_IO_padn): Likewise.
68643         * libio/iowpadn.c (_IO_wpadn): Likewise.
68644         * stdio-common/tst-put-error.c: Add copyright notice.
68645         (do_test): Add case for printing padded string.
68646         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
68647         _IO_padn returned error.
68648         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
68649         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
68650         return EOF.
68651
68652 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
68653
68654         * libio/libioP.h: Add comment note that the references to C++
68655         bits are now obsolete.
68656
68657 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68658
68659         * math/libm-test.inc (check_complex): Use asprintf.
68660
68661 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
68662
68663         * debug/pcprofiledump.c (print_version): Update copyright year.
68664         * malloc/memusagestat.c (print_version): Likewise.
68665
68666 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
68667
68668         [BZ #14831]
68669         * elf/Makefile (tests): Add tst-audit8.
68670         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
68671         ($(objpfx)tst-audit8.out): New target.
68672         (tst-audit8-ENV): New variable.
68673         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
68674         audit if l_reloc_result is NULL.
68675         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
68676         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
68677         * elf/tst-audit8.c: New file.
68678
68679 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68680
68681         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
68682         * misc/Makefile (CFLAGS-select.c): Define.
68683         * posix/Makefile (CFLAGS-pause.c): Define.
68684
68685 2012-11-13  David S. Miller  <davem@davemloft.net>
68686
68687         * crypt/Makefile: Move test targets after toplevel Rules
68688         inclusion.  Grab any necessary sysdep routines when linking.
68689         * crypt/md5.c (md5_process_block): Remove define, we will always
68690         name it __md5_process_block.
68691         (md5_finish_ctx): Update md5_process_block call.
68692         (md5_stream): Likewise.
68693         (md5_process_bytes): Likewise.
68694         (md5_process_block): Rename to __md5_process_block and move to ...
68695         * crypt/md5-block.c: ... here.
68696         * crypt/sha256.c (sha256_process_block): Move to ...
68697         * crypt/sha256-block.c: ... here.
68698         * crypt/sha512.c (sha512_process_block): Move to ...
68699         * crypt/sha512-block.c: ... here.
68700         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
68701         path.
68702         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
68703         * sysdeps/sparc/sparc64/multiarch/Makefile
68704         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
68705         crypt subdir.
68706         (localedef-aux): Add md5 crypto assembler when in locale subdir.
68707         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
68708         multiarch changes.
68709         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
68710         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
68711         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
68712         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
68713         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
68714         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
68715         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
68716         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
68717         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
68718         file.
68719         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
68720         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
68721         file.
68722         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
68723
68724 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
68725
68726         * timezone/tzselect.ksh: Update from tzcode git revision
68727         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
68728         * timezone/zdump.c: Likewise.
68729         * timezone/zic.c: Likewise.
68730         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
68731         in TZVERSION setting, not $(PKGVERSION).
68732         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
68733         REPORT_BUGS_TO settings.
68734
68735         [BZ #14838]
68736         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
68737         macro.
68738
68739 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68740
68741         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
68742         detection to immediately after _FP_ROUND().
68743         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
68744         bits are 0.
68745
68746 2012-11-11  David S. Miller  <davem@davemloft.net>
68747
68748         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
68749         inttypes.h
68750         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
68751         __close rather than their public counterparts.
68752
68753 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
68754
68755         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
68756         file.
68757         [UNIX98] (sem_timedwait): Do not expect.
68758         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
68759         [XPG4 || UNIX98] (sockatmark): Do not expect.
68760         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
68761         (clock_getcpuclockid): Do not expect.
68762         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
68763         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
68764         Do not expect.
68765         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
68766         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
68767         [UNIX98] (vwscanf): Likewise.
68768         [UNIX98] (vswscanf): Likewise.
68769
68770 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
68771
68772         * timezone/version.h: Remove file.
68773         * timezone/README: Do not refer to version.h.
68774         * timezone/Makefile ($(objpfx)zic.o): New dependency on
68775         $(objpfx)version.h.
68776         ($(objpfx)zdump.o): Likewise.
68777         ($(objpfx)version.h): New target.
68778
68779         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
68780         2012i.
68781         * timezone/README: Don't mention modification to tzselect.ksh.
68782         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
68783         work on unmodified tzselect.ksh.  Substitute version numbers in
68784         tzselect.ksh.
68785
68786         * Makefile (format-me): Remove.
68787         (INSTALL): Adjust indentation.  Use commands directly instead of
68788         using $(format-me).
68789
68790         * aclocal.m4 (ACX_PKGVERSION): New macro.
68791         (ACX_BUGURL): Likewise.
68792         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
68793         (PKGVERSION): New AC_DEFINE_UNQUOTED.
68794         (REPORT_BUGS_TO): Likewise.
68795         * configure: Regenerated.
68796         * config.h.in (PKGVERSION): New macro.
68797         (REPORT_BUGS_TO): Likewise.
68798         * config.make.in (PKGVERSION): New variable.
68799         (PKGVERSION_TEXI): Likewise.
68800         (REPORT_BUGS_TO): Likewise.
68801         (REPORT_BUGS_TEXI): Likewise.
68802         * Makefile (format-me): Use -I$(common-objpfx)manual.
68803         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
68804         ($(common-objpfx)manual/%): New target.
68805         (manual/%): Remove target.
68806         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
68807         (print_version): Use PKGVERSION.
68808         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
68809         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
68810         and REPORT_BUGS_TO.
68811         ($(objpfx)xtrace): Likewise.
68812         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
68813         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
68814         (print_version): Use PKGVERSION.
68815         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
68816         (do_version): Use PKGVERSION.
68817         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
68818         REPORT_BUGS_TO.
68819         (common-ldd-rewrite): Likewise.
68820         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
68821         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
68822         (print_version): Use PKGVERSION.
68823         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
68824         * elf/pldd.c (argp_program_bug_address): Remove variable.
68825         (more_help): New function.
68826         (argp): Use more_help.
68827         (print_version): Use PKGVERSION.
68828         * elf/sln.c (main): Use PKGVERSION.
68829         (usage): Use REPORT_BUGS_TO.
68830         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
68831         (top level): Use PKGVERSION.
68832         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
68833         (print_version): Use PKGVERSION.
68834         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
68835         (print_version): Use PKGVERSION.
68836         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
68837         (print_version): Use PKGVERSION.
68838         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
68839         (print_version): Use PKGVERSION.
68840         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
68841         (print_version): Use PKGVERSION.
68842         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
68843         (print_version): Use PKGVERSION.
68844         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
68845         and BUGURL.
68846         ($(objpfx)memusage): Likewise.
68847         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
68848         (do_version): Use PKGVERSION.
68849         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
68850         (print_version): Use PKGVERSION.
68851         * malloc/mtrace.pl ($PACKAGE): Remove variable.
68852         ($PKGVERSION): New variable.
68853         ($REPORT_BUGS_TO): Likewise.
68854         (usage): Use $REPORT_BUGS_TO.
68855         (top level): Use $PKGVERSION.
68856         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
68857         ($(objpfx)pkgvers.texi): New rule.
68858         ($(objpfx)stamp-pkgvers): Likewise.
68859         * manual/install.texi: Include pkgvers.texi.
68860         (--with-pkgversion): Document new configure option.
68861         (--with-bugurl): Likewise.
68862         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
68863         than necessarily for this particular distribution.  Use
68864         REPORT_BUGS_TO for where to report bugs.
68865         * INSTALL: Regenerated.
68866         * manual/libc.texinfo: Include pkgvers.texi.
68867         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
68868         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
68869         (print_version): Use PKGVERSION.
68870         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
68871         (print_version): Use PKGVERSION.
68872         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
68873         (print_version): Use PKGVERSION.
68874         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
68875         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
68876         macro.
68877         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
68878         (print_version): Use PKGVERSION.
68879         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
68880         (print_version): Use PKGVERSION.
68881         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
68882         and PKGVERSION.
68883
68884         * timezone/checktab.awk: Update from tzcode 2012i.
68885         * timezone/ialloc.c: Likewise.
68886         * timezone/private.h: Likewise.
68887         * timezone/scheck.c: Likewise.
68888         * timezone/tzfile.h: Likewise.
68889         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
68890         (TZVERSION): Hardcode tzcode version number.
68891         * timezone/zdump.c: Update from tzcode 2012i.
68892         * timezone/zic.c: Likewise.
68893         * timezone/version.h: New file.
68894         * timezone/README: Describe version.h.  Update upstream location.
68895
68896         [BZ #14824]
68897         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
68898         (mktemp): Enable declaration.
68899         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
68900         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
68901         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
68902         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
68903         Likewise.
68904         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
68905         Likewise.
68906         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
68907         Likewise.
68908         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
68909         Likewise.
68910         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
68911         Likewise.
68912         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
68913         Likewise.
68914
68915         [BZ #14821]
68916         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
68917         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
68918         for copies of such integer values.
68919         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
68920         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
68921
68922 2012-11-09  Andreas Jaeger  <aj@suse.de>
68923
68924         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
68925         definitions and declarations that are provided by
68926         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
68927
68928 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
68929
68930         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
68931         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
68932         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
68933         definition.
68934
68935 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
68936
68937         * elf/elf.h: Update comment before AArch64 relocations.
68938
68939 2012-11-07  David S. Miller  <davem@davemloft.net>
68940
68941         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
68942         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
68943         (__start_context): Declare.
68944         (__makecontext_ret): Delete.
68945         (__makecontext): Hook up __start_context instead of
68946         __makecontext_ret.
68947         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
68948         (sysdep_routines): Add __start_context when in stdlib.
68949
68950 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68951
68952         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
68953         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
68954         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
68955         hardcoded "nm".
68956         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
68957         (READELF): New variable.  Use it instead of hardcoded "readelf".
68958
68959 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
68960
68961         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
68962         * sysdeps/x86/Makefile: Here.
68963         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
68964         * sysdeps/x86/tst-xmmymm.sh: This.
68965
68966 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
68967
68968         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
68969         expectations.
68970         [UNIX98] (pthread_barrier_t): Do not expect.
68971         [UNIX98] (pthread_barrierattr_t): Likewise.
68972         [UNIX98] (pthread_spinlock_t): Likewise.
68973         [UNIX98] (pthread_barrier_destroy): Likewise.
68974         [UNIX98] (pthread_barrier_init): Likewise.
68975         [UNIX98] (pthread_barrier_wait): Likewise.
68976         [UNIX98] (pthread_barrierattr_destroy): Likewise.
68977         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
68978         [UNIX98] (pthread_barrierattr_init): Likewise.
68979         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
68980         [UNIX98] (pthread_getcpuclockid): Likewise.
68981         [UNIX98] (pthread_mutex_timedlock): Likewise.
68982         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
68983         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
68984         [UNIX98] (pthread_sigmask): Likewise.
68985         [UNIX98] (pthread_spin_destroy): Likewise.
68986         [UNIX98] (pthread_spin_init): Likewise.
68987         [UNIX98] (pthread_spin_lock): Likewise.
68988         [UNIX98] (pthread_spin_trylock): Likewise.
68989         [UNIX98] (pthread_spin_unlock): Likewise.
68990         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
68991         Do not expect.
68992         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
68993         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
68994         [XPG3 || XPG4] (pthread_cond_t): Likewise.
68995         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
68996         [XPG3 || XPG4] (pthread_key_t): Likewise.
68997         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
68998         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
68999         [XPG3 || XPG4] (pthread_once_t): Likewise.
69000         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
69001         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
69002         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
69003         [XPG3 || XPG4] (pthread_t): Likewise.
69004
69005         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
69006         not expect.
69007         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
69008
69009         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
69010         Change function return type to int.
69011
69012         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
69013         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
69014         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
69015         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
69016         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
69017         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
69018         [!POSIX] (posix_madvise): Likewise.
69019         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
69020         && !UNIX98].
69021         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
69022         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
69023         (mode_t): Likewise.
69024         (posix_mem_offset): Likewise.
69025         (posix_typed_mem_get_info): Likewise.
69026         (posix_typed_mem_open): Likewise.
69027
69028         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
69029         Change condition to [XOPEN2K8].
69030
69031         * conform/conformtest.pl: Preprocess allow-header data with -x c
69032         instead of from stdin.
69033         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
69034         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
69035         [C99-based standards] (cerfc): Likewise.
69036         [C99-based standards] (cexp2): Likewise.
69037         [C99-based standards] (cexpm1): Likewise.
69038         [C99-based standards] (clog10): Likewise.
69039         [C99-based standards] (clog1p): Likewise.
69040         [C99-based standards] (clog2): Likewise.
69041         [C99-based standards] (clgamma): Likewise.
69042         [C99-based standards] (ctgamma): Likewise.
69043         [C99-based standards] (cerff): Likewise.
69044         [C99-based standards] (cerfcf): Likewise.
69045         [C99-based standards] (cexp2f): Likewise.
69046         [C99-based standards] (cexpm1f): Likewise.
69047         [C99-based standards] (clog10f): Likewise.
69048         [C99-based standards] (clog1pf): Likewise.
69049         [C99-based standards] (clog2f): Likewise.
69050         [C99-based standards] (clgammaf): Likewise.
69051         [C99-based standards] (ctgammaf): Likewise.
69052         [C99-based standards] (cerfl): Likewise.
69053         [C99-based standards] (cerfcl): Likewise.
69054         [C99-based standards] (cexp2l): Likewise.
69055         [C99-based standards] (cexpm1l): Likewise.
69056         [C99-based standards] (clog10l): Likewise.
69057         [C99-based standards] (clog1pl): Likewise.
69058         [C99-based standards] (clog2l): Likewise.
69059         [C99-based standards] (clgammal): Likewise.
69060         [C99-based standards] (ctgammal): Likewise.
69061         * conform/data/inttypes.h-data [C99-based standards]: Include
69062         stdint.h-data.  Remove all expectations for stdint.h contents.
69063         [C99-based standards] (PRI*): Do not allow.
69064         [C99-based standards] (SCN*): Likewise.
69065         [C99-based standards] (*_t): Likewise.
69066         [C99-based-standards] (PRId8): Expect macro.
69067         [C99-based-standards] (PRIi8): Likewise.
69068         [C99-based-standards] (PRIo8): Likewise.
69069         [C99-based-standards] (PRIu8): Likewise.
69070         [C99-based-standards] (PRIx8): Likewise.
69071         [C99-based-standards] (PRIX8): Likewise.
69072         [C99-based-standards] (SCNd8): Likewise.
69073         [C99-based-standards] (SCNi8): Likewise.
69074         [C99-based-standards] (SCNo8): Likewise.
69075         [C99-based-standards] (SCNu8): Likewise.
69076         [C99-based-standards] (SCNx8): Likewise.
69077         [C99-based-standards] (PRIdLEAST8): Likewise.
69078         [C99-based-standards] (PRIiLEAST8): Likewise.
69079         [C99-based-standards] (PRIoLEAST8): Likewise.
69080         [C99-based-standards] (PRIuLEAST8): Likewise.
69081         [C99-based-standards] (PRIxLEAST8): Likewise.
69082         [C99-based-standards] (PRIXLEAST8): Likewise.
69083         [C99-based-standards] (SCNdLEAST8): Likewise.
69084         [C99-based-standards] (SCNiLEAST8): Likewise.
69085         [C99-based-standards] (SCNoLEAST8): Likewise.
69086         [C99-based-standards] (SCNuLEAST8): Likewise.
69087         [C99-based-standards] (SCNxLEAST8): Likewise.
69088         [C99-based-standards] (PRIdFAST8): Likewise.
69089         [C99-based-standards] (PRIiFAST8): Likewise.
69090         [C99-based-standards] (PRIoFAST8): Likewise.
69091         [C99-based-standards] (PRIuFAST8): Likewise.
69092         [C99-based-standards] (PRIxFAST8): Likewise.
69093         [C99-based-standards] (PRIXFAST8): Likewise.
69094         [C99-based-standards] (SCNdFAST8): Likewise.
69095         [C99-based-standards] (SCNiFAST8): Likewise.
69096         [C99-based-standards] (SCNoFAST8): Likewise.
69097         [C99-based-standards] (SCNuFAST8): Likewise.
69098         [C99-based-standards] (SCNxFAST8): Likewise.
69099         [C99-based-standards] (PRId16): Likewise.
69100         [C99-based-standards] (PRIi16): Likewise.
69101         [C99-based-standards] (PRIo16): Likewise.
69102         [C99-based-standards] (PRIu16): Likewise.
69103         [C99-based-standards] (PRIx16): Likewise.
69104         [C99-based-standards] (PRIX16): Likewise.
69105         [C99-based-standards] (SCNd16): Likewise.
69106         [C99-based-standards] (SCNi16): Likewise.
69107         [C99-based-standards] (SCNo16): Likewise.
69108         [C99-based-standards] (SCNu16): Likewise.
69109         [C99-based-standards] (SCNx16): Likewise.
69110         [C99-based-standards] (PRIdLEAST16): Likewise.
69111         [C99-based-standards] (PRIiLEAST16): Likewise.
69112         [C99-based-standards] (PRIoLEAST16): Likewise.
69113         [C99-based-standards] (PRIuLEAST16): Likewise.
69114         [C99-based-standards] (PRIxLEAST16): Likewise.
69115         [C99-based-standards] (PRIXLEAST16): Likewise.
69116         [C99-based-standards] (SCNdLEAST16): Likewise.
69117         [C99-based-standards] (SCNiLEAST16): Likewise.
69118         [C99-based-standards] (SCNoLEAST16): Likewise.
69119         [C99-based-standards] (SCNuLEAST16): Likewise.
69120         [C99-based-standards] (SCNxLEAST16): Likewise.
69121         [C99-based-standards] (PRIdFAST16): Likewise.
69122         [C99-based-standards] (PRIiFAST16): Likewise.
69123         [C99-based-standards] (PRIoFAST16): Likewise.
69124         [C99-based-standards] (PRIuFAST16): Likewise.
69125         [C99-based-standards] (PRIxFAST16): Likewise.
69126         [C99-based-standards] (PRIXFAST16): Likewise.
69127         [C99-based-standards] (SCNdFAST16): Likewise.
69128         [C99-based-standards] (SCNiFAST16): Likewise.
69129         [C99-based-standards] (SCNoFAST16): Likewise.
69130         [C99-based-standards] (SCNuFAST16): Likewise.
69131         [C99-based-standards] (SCNxFAST16): Likewise.
69132         [C99-based-standards] (PRId32): Likewise.
69133         [C99-based-standards] (PRIi32): Likewise.
69134         [C99-based-standards] (PRIo32): Likewise.
69135         [C99-based-standards] (PRIu32): Likewise.
69136         [C99-based-standards] (PRIx32): Likewise.
69137         [C99-based-standards] (PRIX32): Likewise.
69138         [C99-based-standards] (SCNd32): Likewise.
69139         [C99-based-standards] (SCNi32): Likewise.
69140         [C99-based-standards] (SCNo32): Likewise.
69141         [C99-based-standards] (SCNu32): Likewise.
69142         [C99-based-standards] (SCNx32): Likewise.
69143         [C99-based-standards] (PRIdLEAST32): Likewise.
69144         [C99-based-standards] (PRIiLEAST32): Likewise.
69145         [C99-based-standards] (PRIoLEAST32): Likewise.
69146         [C99-based-standards] (PRIuLEAST32): Likewise.
69147         [C99-based-standards] (PRIxLEAST32): Likewise.
69148         [C99-based-standards] (PRIXLEAST32): Likewise.
69149         [C99-based-standards] (SCNdLEAST32): Likewise.
69150         [C99-based-standards] (SCNiLEAST32): Likewise.
69151         [C99-based-standards] (SCNoLEAST32): Likewise.
69152         [C99-based-standards] (SCNuLEAST32): Likewise.
69153         [C99-based-standards] (SCNxLEAST32): Likewise.
69154         [C99-based-standards] (PRIdFAST32): Likewise.
69155         [C99-based-standards] (PRIiFAST32): Likewise.
69156         [C99-based-standards] (PRIoFAST32): Likewise.
69157         [C99-based-standards] (PRIuFAST32): Likewise.
69158         [C99-based-standards] (PRIxFAST32): Likewise.
69159         [C99-based-standards] (PRIXFAST32): Likewise.
69160         [C99-based-standards] (SCNdFAST32): Likewise.
69161         [C99-based-standards] (SCNiFAST32): Likewise.
69162         [C99-based-standards] (SCNoFAST32): Likewise.
69163         [C99-based-standards] (SCNuFAST32): Likewise.
69164         [C99-based-standards] (SCNxFAST32): Likewise.
69165         [C99-based-standards] (PRId64): Likewise.
69166         [C99-based-standards] (PRIi64): Likewise.
69167         [C99-based-standards] (PRIo64): Likewise.
69168         [C99-based-standards] (PRIu64): Likewise.
69169         [C99-based-standards] (PRIx64): Likewise.
69170         [C99-based-standards] (PRIX64): Likewise.
69171         [C99-based-standards] (SCNd64): Likewise.
69172         [C99-based-standards] (SCNi64): Likewise.
69173         [C99-based-standards] (SCNo64): Likewise.
69174         [C99-based-standards] (SCNu64): Likewise.
69175         [C99-based-standards] (SCNx64): Likewise.
69176         [C99-based-standards] (PRIdLEAST64): Likewise.
69177         [C99-based-standards] (PRIiLEAST64): Likewise.
69178         [C99-based-standards] (PRIoLEAST64): Likewise.
69179         [C99-based-standards] (PRIuLEAST64): Likewise.
69180         [C99-based-standards] (PRIxLEAST64): Likewise.
69181         [C99-based-standards] (PRIXLEAST64): Likewise.
69182         [C99-based-standards] (SCNdLEAST64): Likewise.
69183         [C99-based-standards] (SCNiLEAST64): Likewise.
69184         [C99-based-standards] (SCNoLEAST64): Likewise.
69185         [C99-based-standards] (SCNuLEAST64): Likewise.
69186         [C99-based-standards] (SCNxLEAST64): Likewise.
69187         [C99-based-standards] (PRIdFAST64): Likewise.
69188         [C99-based-standards] (PRIiFAST64): Likewise.
69189         [C99-based-standards] (PRIoFAST64): Likewise.
69190         [C99-based-standards] (PRIuFAST64): Likewise.
69191         [C99-based-standards] (PRIxFAST64): Likewise.
69192         [C99-based-standards] (PRIXFAST64): Likewise.
69193         [C99-based-standards] (SCNdFAST64): Likewise.
69194         [C99-based-standards] (SCNiFAST64): Likewise.
69195         [C99-based-standards] (SCNoFAST64): Likewise.
69196         [C99-based-standards] (SCNuFAST64): Likewise.
69197         [C99-based-standards] (SCNxFAST64): Likewise.
69198         [C99-based-standards] (PRIdMAX): Likewise.
69199         [C99-based-standards] (PRIiMAX): Likewise.
69200         [C99-based-standards] (PRIoMAX): Likewise.
69201         [C99-based-standards] (PRIuMAX): Likewise.
69202         [C99-based-standards] (PRIxMAX): Likewise.
69203         [C99-based-standards] (PRIXMAX): Likewise.
69204         [C99-based-standards] (SCNdMAX): Likewise.
69205         [C99-based-standards] (SCNiMAX): Likewise.
69206         [C99-based-standards] (SCNoMAX): Likewise.
69207         [C99-based-standards] (SCNuMAX): Likewise.
69208         [C99-based-standards] (SCNxMAX): Likewise.
69209         [C99-based-standards] (PRIdPTR): Likewise.
69210         [C99-based-standards] (PRIiPTR): Likewise.
69211         [C99-based-standards] (PRIoPTR): Likewise.
69212         [C99-based-standards] (PRIuPTR): Likewise.
69213         [C99-based-standards] (PRIxPTR): Likewise.
69214         [C99-based-standards] (PRIXPTR): Likewise.
69215         [C99-based-standards] (SCNdPTR): Likewise.
69216         [C99-based-standards] (SCNiPTR): Likewise.
69217         [C99-based-standards] (SCNoPTR): Likewise.
69218         [C99-based-standards] (SCNuPTR): Likewise.
69219         [C99-based-standards] (SCNxPTR): Likewise.
69220         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
69221         allow.
69222         * conform/data/stdint.h-data: Update comments to clarify
69223         requirements.
69224         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
69225         type.
69226         [C99-based standards] (INT8_MAX): Likewise.
69227         [C99-based standards] (INT16_MIN): Likewise.
69228         [C99-based standards] (INT16_MAX): Likewise.
69229         [C99-based standards] (INT32_MIN): Likewise.
69230         [C99-based standards] (INT32_MAX): Likewise.
69231         [C99-based standards] (INT64_MIN): Likewise.
69232         [C99-based standards] (INT64_MAX): Likewise.
69233         [C99-based standards] (UINT8_MAX): Likewise.
69234         [C99-based standards] (UINT16_MAX): Likewise.
69235         [C99-based standards] (UINT32_MAX): Likewise.
69236         [C99-based standards] (UINT64_MAX): Likewise.
69237         [C99-based standards] (INT_LEAST8_MIN): Likewise.
69238         [C99-based standards] (INT_LEAST8_MAX): Likewise.
69239         [C99-based standards] (INT_LEAST16_MIN): Likewise.
69240         [C99-based standards] (INT_LEAST16_MAX): Likewise.
69241         [C99-based standards] (INT_LEAST32_MIN): Likewise.
69242         [C99-based standards] (INT_LEAST32_MAX): Likewise.
69243         [C99-based standards] (INT_LEAST64_MIN): Likewise.
69244         [C99-based standards] (INT_LEAST64_MAX): Likewise.
69245         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
69246         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
69247         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
69248         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
69249         [C99-based standards] (INT_FAST8_MIN): Likewise.
69250         [C99-based standards] (INT_FAST8_MAX): Likewise.
69251         [C99-based standards] (INT_FAST16_MIN): Likewise.
69252         [C99-based standards] (INT_FAST16_MAX): Likewise.
69253         [C99-based standards] (INT_FAST32_MIN): Likewise.
69254         [C99-based standards] (INT_FAST32_MAX): Likewise.
69255         [C99-based standards] (INT_FAST64_MIN): Likewise.
69256         [C99-based standards] (INT_FAST64_MAX): Likewise.
69257         [C99-based standards] (UINT_FAST8_MAX): Likewise.
69258         [C99-based standards] (UINT_FAST16_MAX): Likewise.
69259         [C99-based standards] (UINT_FAST32_MAX): Likewise.
69260         [C99-based standards] (UINT_FAST64_MAX): Likewise.
69261         [C99-based standards] (INTPTR_MIN): Likewise.
69262         [C99-based standards] (INTPTR_MAX): Likewise.
69263         [C99-based standards] (UINTPTR_MAX): Likewise.
69264         [C99-based standards] (INTMAX_MIN): Likewise.
69265         [C99-based standards] (INTMAX_MAX): Likewise.
69266         [C99-based standards] (UINTMAX_MAX): Likewise.
69267         [C99-based standards] (PTRDIFF_MIN): Likewise.
69268         [C99-based standards] (PTRDIFF_MAX): Likewise.
69269         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
69270         [C99-based standards] (SIZE_MAX): Likewise.
69271         [C99-based standards] (WCHAR_MAX): Likewise.
69272         [C99-based standards] (WINT_MAX): Likewise.
69273         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
69274         constraint on value.
69275         [C99-based standards] (WCHAR_MIN): Likewise.
69276         [C99-based standards] (WINT_MIN): Likewise.
69277         [C99-based standards] (*_t): Allow.
69278         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
69279         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
69280         Include math.h-data and complex.h-data.  Remove all expectations
69281         of math.h and complex.h contents.
69282         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
69283         at end of line.
69284         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
69285         (struct tm): Expect tag.
69286         [C99-based-standards] (wcstof): Expect function.
69287         [C99-based-standards] (wcstold): Likewise.
69288         [C99-based-standards] (wcstoll): Likewise.
69289         [C99-based-standards] (wcstoull): Likewise.
69290         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
69291         macro-int-constant.  Specify type.
69292         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
69293         constraint on value.
69294         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69295         Specify type.
69296         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
69297         Specify value.
69298         [ISO C standards]: Do not allow headers.
69299         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
69300         wcs[abcdefghijklmnopqrstuvwxyz]*.
69301         [ISO C standards] (*_t): Do not allow.
69302         * conform/data/wctype.h-data [C99-based standards] (iswblank):
69303         Expect function.
69304         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
69305         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
69306         Specify type.
69307         [ISO C standards]: Do not allow headers.
69308         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
69309         is[abcdefghijklmnopqrstuvwxyz]*.
69310         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
69311         to[abcdefghijklmnopqrstuvwxyz]*.
69312         [ISO C standards] (*_t): Do not allow.
69313         * conform/data/stdalign.h-data: New file.
69314         * conform/data/stdbool.h-data: Likewise.
69315         * conform/data/stdnoreturn.h-data: Likewise.
69316
69317 2012-11-07  Roland McGrath  <roland@hack.frob.com>
69318
69319         [BZ #14815]
69320         * manual/filesys.texi (Directory Entries): Typo fix.
69321         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
69322
69323 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
69324
69325         * elf/elf.h (EM_AARCH64): New macro.
69326         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
69327         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
69328         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
69329         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
69330         (R_AARCH64_TLSDESC): Likewise.
69331         (NT_ARM_TLS): Likewise.
69332         (NT_ARM_HW_BREAK): Likewise.
69333         (NT_ARM_HW_WATCH): Likewise.
69334
69335 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69336
69337         [BZ #14811]
69338         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
69339         (__ieee754_powl): Saturate nonzero exponents with absolute value
69340         below 0x1p-79 to +/- 0x1p-79.
69341         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
69342         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
69343         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
69344         nonzero exponents with absolute value below 0x1p-32 to +/-
69345         0x1p-32.
69346         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
69347         (__ieee754_powl): Saturate nonzero exponents with absolute value
69348         below 0x1p-79 to +/- 0x1p-79.
69349         * math/libm-test.inc (pow_test): Add more tests.
69350
69351 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
69352
69353         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
69354         _dl_s390_cap_flags with kernel. Increase string length.
69355         (_dl_s390_platforms): Add z196 and zEC12.
69356
69357 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
69358
69359         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
69360         Change XOPEN21K to XOPEN2K.
69361
69362 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
69363
69364         * string/memmove.c: Use memcpy when possible.
69365
69366 2012-11-06  Andreas Jaeger  <aj@suse.de>
69367
69368         * po/eo.po: Update from translation team.
69369
69370 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
69371
69372         [BZ #14793]
69373         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
69374         exponent and small x and y exponents, scale x or y up.  Increase
69375         by 2 the exponent used in scaling up.
69376         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69377         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69378         * math/libm-test.inc (fma_test): Add more tests.
69379         (fma_test_towardzero): Likewise.
69380         (fma_test_downward): Likewise.
69381         (fma_test_upward): Likewise.
69382
69383 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
69384
69385         [BZ #14805]
69386         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
69387         fenv_t *.
69388
69389         [BZ #14801]
69390         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
69391         namespace for names of struct fields.
69392         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
69393         fenv_t fields.
69394         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
69395         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
69396
69397 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69398
69399         [BZ #3665]
69400         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
69401
69402 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69403
69404         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
69405         PTR_DEMANGLE.
69406
69407         [BZ #5246]
69408         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
69409         PTR_DEMANGLE.
69410
69411 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
69412
69413         [BZ #14797]
69414         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
69415         definitely overflow as x * y not x * y + z.
69416         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69417         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69418         * math/libm-test.inc (fma_test): Add more tests.
69419         (fma_test_towardzero): Likewise.
69420         (fma_test_downward): Likewise.
69421         (fma_test_upward): Likewise.
69422
69423 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
69424
69425         [BZ #157]
69426
69427         * include/stub-tag.h: Remove file.
69428         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
69429         '#include' of it.
69430         * manual/maint.texi (Porting): Don't reference it.
69431         * Makerules ($(objpfx)stubs): Likewise.
69432         * dirent/closedir.c: Don't include <stub-tag.h>.
69433         * dirent/dirfd.c: Likewise.
69434         * dirent/fdopendir.c: Likewise.
69435         * dirent/getdents.c: Likewise.
69436         * dirent/getdents64.c: Likewise.
69437         * dirent/opendir.c: Likewise.
69438         * dirent/readdir.c: Likewise.
69439         * dirent/readdir64.c: Likewise.
69440         * dirent/readdir64_r.c: Likewise.
69441         * dirent/readdir_r.c: Likewise.
69442         * dirent/rewinddir.c: Likewise.
69443         * dirent/seekdir.c: Likewise.
69444         * dirent/telldir.c: Likewise.
69445         * gmon/profil.c: Likewise.
69446         * grp/setgroups.c: Likewise.
69447         * inet/if_index.c: Likewise.
69448         * io/access.c: Likewise.
69449         * io/chdir.c: Likewise.
69450         * io/chmod.c: Likewise.
69451         * io/chown.c: Likewise.
69452         * io/close.c: Likewise.
69453         * io/dup.c: Likewise.
69454         * io/dup2.c: Likewise.
69455         * io/dup3.c: Likewise.
69456         * io/euidaccess.c: Likewise.
69457         * io/faccessat.c: Likewise.
69458         * io/fchdir.c: Likewise.
69459         * io/fchmod.c: Likewise.
69460         * io/fchmodat.c: Likewise.
69461         * io/fchown.c: Likewise.
69462         * io/fchownat.c: Likewise.
69463         * io/fcntl.c: Likewise.
69464         * io/flock.c: Likewise.
69465         * io/fstatfs.c: Likewise.
69466         * io/fstatfs64.c: Likewise.
69467         * io/fstatvfs.c: Likewise.
69468         * io/fstatvfs64.c: Likewise.
69469         * io/futimens.c: Likewise.
69470         * io/fxstat.c: Likewise.
69471         * io/fxstat64.c: Likewise.
69472         * io/fxstatat.c: Likewise.
69473         * io/fxstatat64.c: Likewise.
69474         * io/getcwd.c: Likewise.
69475         * io/isatty.c: Likewise.
69476         * io/lchmod.c: Likewise.
69477         * io/lchown.c: Likewise.
69478         * io/link.c: Likewise.
69479         * io/linkat.c: Likewise.
69480         * io/lseek.c: Likewise.
69481         * io/lseek64.c: Likewise.
69482         * io/lxstat64.c: Likewise.
69483         * io/mkdir.c: Likewise.
69484         * io/mkdirat.c: Likewise.
69485         * io/mkfifo.c: Likewise.
69486         * io/mkfifoat.c: Likewise.
69487         * io/open.c: Likewise.
69488         * io/open64.c: Likewise.
69489         * io/openat.c: Likewise.
69490         * io/openat64.c: Likewise.
69491         * io/pipe.c: Likewise.
69492         * io/pipe2.c: Likewise.
69493         * io/poll.c: Likewise.
69494         * io/posix_fadvise.c: Likewise.
69495         * io/posix_fadvise64.c: Likewise.
69496         * io/posix_fallocate.c: Likewise.
69497         * io/posix_fallocate64.c: Likewise.
69498         * io/read.c: Likewise.
69499         * io/readlink.c: Likewise.
69500         * io/readlinkat.c: Likewise.
69501         * io/rmdir.c: Likewise.
69502         * io/sendfile.c: Likewise.
69503         * io/sendfile64.c: Likewise.
69504         * io/statfs.c: Likewise.
69505         * io/statfs64.c: Likewise.
69506         * io/statvfs.c: Likewise.
69507         * io/statvfs64.c: Likewise.
69508         * io/symlink.c: Likewise.
69509         * io/symlinkat.c: Likewise.
69510         * io/ttyname.c: Likewise.
69511         * io/ttyname_r.c: Likewise.
69512         * io/umask.c: Likewise.
69513         * io/unlink.c: Likewise.
69514         * io/unlinkat.c: Likewise.
69515         * io/utime.c: Likewise.
69516         * io/utimensat.c: Likewise.
69517         * io/write.c: Likewise.
69518         * io/xmknod.c: Likewise.
69519         * io/xmknodat.c: Likewise.
69520         * io/xstat.c: Likewise.
69521         * io/xstat64.c: Likewise.
69522         * login/getpt.c: Likewise.
69523         * login/grantpt.c: Likewise.
69524         * login/unlockpt.c: Likewise.
69525         * math/e_acoshl.c: Likewise.
69526         * math/e_acosl.c: Likewise.
69527         * math/e_asinl.c: Likewise.
69528         * math/e_atan2l.c: Likewise.
69529         * math/e_atanhl.c: Likewise.
69530         * math/e_coshl.c: Likewise.
69531         * math/e_expl.c: Likewise.
69532         * math/e_fmodl.c: Likewise.
69533         * math/e_gammal_r.c: Likewise.
69534         * math/e_hypotl.c: Likewise.
69535         * math/e_j0l.c: Likewise.
69536         * math/e_j1l.c: Likewise.
69537         * math/e_jnl.c: Likewise.
69538         * math/e_lgammal_r.c: Likewise.
69539         * math/e_log10l.c: Likewise.
69540         * math/e_log2l.c: Likewise.
69541         * math/e_logl.c: Likewise.
69542         * math/e_powl.c: Likewise.
69543         * math/e_rem_pio2l.c: Likewise.
69544         * math/e_sinhl.c: Likewise.
69545         * math/e_sqrtl.c: Likewise.
69546         * math/fclrexcpt.c: Likewise.
69547         * math/fedisblxcpt.c: Likewise.
69548         * math/feenablxcpt.c: Likewise.
69549         * math/fegetenv.c: Likewise.
69550         * math/fegetexcept.c: Likewise.
69551         * math/fegetround.c: Likewise.
69552         * math/feholdexcpt.c: Likewise.
69553         * math/fesetenv.c: Likewise.
69554         * math/fesetround.c: Likewise.
69555         * math/feupdateenv.c: Likewise.
69556         * math/fgetexcptflg.c: Likewise.
69557         * math/fraiseexcpt.c: Likewise.
69558         * math/fsetexcptflg.c: Likewise.
69559         * math/ftestexcept.c: Likewise.
69560         * math/k_cosl.c: Likewise.
69561         * math/k_rem_pio2l.c: Likewise.
69562         * math/k_sinl.c: Likewise.
69563         * math/k_tanl.c: Likewise.
69564         * math/s_asinhl.c: Likewise.
69565         * math/s_atanl.c: Likewise.
69566         * math/s_cbrtl.c: Likewise.
69567         * math/s_erfl.c: Likewise.
69568         * math/s_expm1l.c: Likewise.
69569         * math/s_log1pl.c: Likewise.
69570         * math/s_tanhl.c: Likewise.
69571         * misc/acct.c: Likewise.
69572         * misc/brk.c: Likewise.
69573         * misc/chflags.c: Likewise.
69574         * misc/chroot.c: Likewise.
69575         * misc/fchflags.c: Likewise.
69576         * misc/fgetxattr.c: Likewise.
69577         * misc/flistxattr.c: Likewise.
69578         * misc/fremovexattr.c: Likewise.
69579         * misc/fsetxattr.c: Likewise.
69580         * misc/fsync.c: Likewise.
69581         * misc/ftruncate.c: Likewise.
69582         * misc/futimes.c: Likewise.
69583         * misc/futimesat.c: Likewise.
69584         * misc/getdomain.c: Likewise.
69585         * misc/getdtsz.c: Likewise.
69586         * misc/gethostid.c: Likewise.
69587         * misc/gethostname.c: Likewise.
69588         * misc/getloadavg.c: Likewise.
69589         * misc/getpagesize.c: Likewise.
69590         * misc/getsysstats.c: Likewise.
69591         * misc/getxattr.c: Likewise.
69592         * misc/gtty.c: Likewise.
69593         * misc/ioctl.c: Likewise.
69594         * misc/lgetxattr.c: Likewise.
69595         * misc/listxattr.c: Likewise.
69596         * misc/llistxattr.c: Likewise.
69597         * misc/lremovexattr.c: Likewise.
69598         * misc/lsetxattr.c: Likewise.
69599         * misc/lutimes.c: Likewise.
69600         * misc/madvise.c: Likewise.
69601         * misc/mincore.c: Likewise.
69602         * misc/mlock.c: Likewise.
69603         * misc/mlockall.c: Likewise.
69604         * misc/mmap.c: Likewise.
69605         * misc/mprotect.c: Likewise.
69606         * misc/msync.c: Likewise.
69607         * misc/munlock.c: Likewise.
69608         * misc/munlockall.c: Likewise.
69609         * misc/munmap.c: Likewise.
69610         * misc/preadv.c: Likewise.
69611         * misc/preadv64.c: Likewise.
69612         * misc/ptrace.c: Likewise.
69613         * misc/pwritev.c: Likewise.
69614         * misc/pwritev64.c: Likewise.
69615         * misc/readv.c: Likewise.
69616         * misc/reboot.c: Likewise.
69617         * misc/remap_file_pages.c: Likewise.
69618         * misc/removexattr.c: Likewise.
69619         * misc/revoke.c: Likewise.
69620         * misc/select.c: Likewise.
69621         * misc/setdomain.c: Likewise.
69622         * misc/setegid.c: Likewise.
69623         * misc/seteuid.c: Likewise.
69624         * misc/sethostid.c: Likewise.
69625         * misc/sethostname.c: Likewise.
69626         * misc/setregid.c: Likewise.
69627         * misc/setreuid.c: Likewise.
69628         * misc/setxattr.c: Likewise.
69629         * misc/sstk.c: Likewise.
69630         * misc/stty.c: Likewise.
69631         * misc/swapoff.c: Likewise.
69632         * misc/swapon.c: Likewise.
69633         * misc/sync.c: Likewise.
69634         * misc/syncfs.c: Likewise.
69635         * misc/syscall.c: Likewise.
69636         * misc/truncate.c: Likewise.
69637         * misc/ualarm.c: Likewise.
69638         * misc/usleep.c: Likewise.
69639         * misc/ustat.c: Likewise.
69640         * misc/utimes.c: Likewise.
69641         * misc/vhangup.c: Likewise.
69642         * misc/writev.c: Likewise.
69643         * posix/_exit.c: Likewise.
69644         * posix/alarm.c: Likewise.
69645         * posix/execve.c: Likewise.
69646         * posix/fexecve.c: Likewise.
69647         * posix/fork.c: Likewise.
69648         * posix/fpathconf.c: Likewise.
69649         * posix/getaddrinfo.c: Likewise.
69650         * posix/getegid.c: Likewise.
69651         * posix/geteuid.c: Likewise.
69652         * posix/getgid.c: Likewise.
69653         * posix/getgroups.c: Likewise.
69654         * posix/getlogin.c: Likewise.
69655         * posix/getlogin_r.c: Likewise.
69656         * posix/getpgid.c: Likewise.
69657         * posix/getpid.c: Likewise.
69658         * posix/getppid.c: Likewise.
69659         * posix/getresgid.c: Likewise.
69660         * posix/getresuid.c: Likewise.
69661         * posix/getsid.c: Likewise.
69662         * posix/getuid.c: Likewise.
69663         * posix/glob64.c: Likewise.
69664         * posix/nanosleep.c: Likewise.
69665         * posix/pathconf.c: Likewise.
69666         * posix/pause.c: Likewise.
69667         * posix/posix_madvise.c: Likewise.
69668         * posix/pread.c: Likewise.
69669         * posix/pread64.c: Likewise.
69670         * posix/pwrite.c: Likewise.
69671         * posix/pwrite64.c: Likewise.
69672         * posix/sched_getaffinity.c: Likewise.
69673         * posix/sched_getp.c: Likewise.
69674         * posix/sched_gets.c: Likewise.
69675         * posix/sched_primax.c: Likewise.
69676         * posix/sched_primin.c: Likewise.
69677         * posix/sched_rr_gi.c: Likewise.
69678         * posix/sched_setaffinity.c: Likewise.
69679         * posix/sched_setp.c: Likewise.
69680         * posix/sched_sets.c: Likewise.
69681         * posix/sched_yield.c: Likewise.
69682         * posix/setgid.c: Likewise.
69683         * posix/setlogin.c: Likewise.
69684         * posix/setpgid.c: Likewise.
69685         * posix/setresgid.c: Likewise.
69686         * posix/setresuid.c: Likewise.
69687         * posix/setsid.c: Likewise.
69688         * posix/setuid.c: Likewise.
69689         * posix/sleep.c: Likewise.
69690         * posix/spawni.c: Likewise.
69691         * posix/sysconf.c: Likewise.
69692         * posix/times.c: Likewise.
69693         * posix/wait.c: Likewise.
69694         * posix/wait3.c: Likewise.
69695         * posix/wait4.c: Likewise.
69696         * posix/waitpid.c: Likewise.
69697         * resolv/gai_sigqueue.c: Likewise.
69698         * resource/getpriority.c: Likewise.
69699         * resource/getrlimit.c: Likewise.
69700         * resource/getrusage.c: Likewise.
69701         * resource/nice.c: Likewise.
69702         * resource/setpriority.c: Likewise.
69703         * resource/setrlimit.c: Likewise.
69704         * resource/ulimit.c: Likewise.
69705         * rt/aio_cancel.c: Likewise.
69706         * rt/aio_fsync.c: Likewise.
69707         * rt/aio_read.c: Likewise.
69708         * rt/aio_sigqueue.c: Likewise.
69709         * rt/aio_suspend.c: Likewise.
69710         * rt/aio_write.c: Likewise.
69711         * rt/clock_getres.c: Likewise.
69712         * rt/clock_gettime.c: Likewise.
69713         * rt/clock_nanosleep.c: Likewise.
69714         * rt/clock_settime.c: Likewise.
69715         * rt/lio_listio.c: Likewise.
69716         * rt/mq_close.c: Likewise.
69717         * rt/mq_getattr.c: Likewise.
69718         * rt/mq_notify.c: Likewise.
69719         * rt/mq_open.c: Likewise.
69720         * rt/mq_receive.c: Likewise.
69721         * rt/mq_send.c: Likewise.
69722         * rt/mq_setattr.c: Likewise.
69723         * rt/mq_timedreceive.c: Likewise.
69724         * rt/mq_timedsend.c: Likewise.
69725         * rt/mq_unlink.c: Likewise.
69726         * rt/shm_open.c: Likewise.
69727         * rt/shm_unlink.c: Likewise.
69728         * rt/timer_create.c: Likewise.
69729         * rt/timer_delete.c: Likewise.
69730         * rt/timer_getoverr.c: Likewise.
69731         * rt/timer_gettime.c: Likewise.
69732         * rt/timer_settime.c: Likewise.
69733         * setjmp/__longjmp.c: Likewise.
69734         * setjmp/setjmp.c: Likewise.
69735         * signal/kill.c: Likewise.
69736         * signal/killpg.c: Likewise.
69737         * signal/raise.c: Likewise.
69738         * signal/sigaction.c: Likewise.
69739         * signal/sigaltstack.c: Likewise.
69740         * signal/sigblock.c: Likewise.
69741         * signal/sigignore.c: Likewise.
69742         * signal/sigintr.c: Likewise.
69743         * signal/signal.c: Likewise.
69744         * signal/sigpause.c: Likewise.
69745         * signal/sigpending.c: Likewise.
69746         * signal/sigqueue.c: Likewise.
69747         * signal/sigreturn.c: Likewise.
69748         * signal/sigset.c: Likewise.
69749         * signal/sigsetmask.c: Likewise.
69750         * signal/sigstack.c: Likewise.
69751         * signal/sigsuspend.c: Likewise.
69752         * signal/sigtimedwait.c: Likewise.
69753         * signal/sigvec.c: Likewise.
69754         * signal/sigwait.c: Likewise.
69755         * signal/sigwaitinfo.c: Likewise.
69756         * signal/sysv_signal.c: Likewise.
69757         * socket/accept.c: Likewise.
69758         * socket/accept4.c: Likewise.
69759         * socket/bind.c: Likewise.
69760         * socket/connect.c: Likewise.
69761         * socket/getpeername.c: Likewise.
69762         * socket/getsockname.c: Likewise.
69763         * socket/getsockopt.c: Likewise.
69764         * socket/isfdtype.c: Likewise.
69765         * socket/listen.c: Likewise.
69766         * socket/recv.c: Likewise.
69767         * socket/recvfrom.c: Likewise.
69768         * socket/recvmsg.c: Likewise.
69769         * socket/send.c: Likewise.
69770         * socket/sendmsg.c: Likewise.
69771         * socket/sendto.c: Likewise.
69772         * socket/setsockopt.c: Likewise.
69773         * socket/shutdown.c: Likewise.
69774         * socket/sockatmark.c: Likewise.
69775         * socket/socket.c: Likewise.
69776         * socket/socketpair.c: Likewise.
69777         * stdio-common/ctermid.c: Likewise.
69778         * stdio-common/cuserid.c: Likewise.
69779         * stdio-common/remove.c: Likewise.
69780         * stdio-common/rename.c: Likewise.
69781         * stdio-common/renameat.c: Likewise.
69782         * stdio-common/tempname.c: Likewise.
69783         * stdlib/getcontext.c: Likewise.
69784         * stdlib/makecontext.c: Likewise.
69785         * stdlib/setcontext.c: Likewise.
69786         * stdlib/swapcontext.c: Likewise.
69787         * stdlib/system.c: Likewise.
69788         * streams/fattach.c: Likewise.
69789         * streams/fdetach.c: Likewise.
69790         * streams/getmsg.c: Likewise.
69791         * streams/getpmsg.c: Likewise.
69792         * streams/putmsg.c: Likewise.
69793         * streams/putpmsg.c: Likewise.
69794         * sysdeps/unix/bsd/getpt.c: Likewise.
69795         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
69796         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
69797         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
69798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
69799         Likewise.
69800         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
69801         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
69802         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
69803         * sysvipc/msgctl.c: Likewise.
69804         * sysvipc/msgget.c: Likewise.
69805         * sysvipc/msgrcv.c: Likewise.
69806         * sysvipc/msgsnd.c: Likewise.
69807         * sysvipc/semctl.c: Likewise.
69808         * sysvipc/semget.c: Likewise.
69809         * sysvipc/semop.c: Likewise.
69810         * sysvipc/semtimedop.c: Likewise.
69811         * sysvipc/shmat.c: Likewise.
69812         * sysvipc/shmctl.c: Likewise.
69813         * sysvipc/shmdt.c: Likewise.
69814         * sysvipc/shmget.c: Likewise.
69815         * termios/tcdrain.c: Likewise.
69816         * termios/tcflow.c: Likewise.
69817         * termios/tcflush.c: Likewise.
69818         * termios/tcgetattr.c: Likewise.
69819         * termios/tcgetpgrp.c: Likewise.
69820         * termios/tcsendbrk.c: Likewise.
69821         * termios/tcsetattr.c: Likewise.
69822         * termios/tcsetpgrp.c: Likewise.
69823         * time/adjtime.c: Likewise.
69824         * time/clock.c: Likewise.
69825         * time/getitimer.c: Likewise.
69826         * time/gettimeofday.c: Likewise.
69827         * time/setitimer.c: Likewise.
69828         * time/settimeofday.c: Likewise.
69829         * time/stime.c: Likewise.
69830         * time/time.c: Likewise.
69831
69832 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
69833
69834         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
69835         /usr/old/bin.
69836
69837         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
69838         instead of spaces.
69839         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
69840
69841 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
69842
69843         [BZ #14796]
69844         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
69845         FE_TONEAREST before applying Dekker multiplication and Knuth
69846         addition.  Clear inexact exceptions and check for exact zero
69847         results afterwards.
69848         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
69849         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
69850         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
69851         * math/libm-test.inc (fma_test): Add more tests.
69852         (fma_test_towardzero): Likewise.
69853         (fma_test_downward): Likewise.
69854         (fma_test_upward): Likewise.
69855         * sysdeps/generic/math_private.h (default_libc_fesetround): New
69856         function.
69857         (libc_fesetround): New macro.
69858         (libc_fesetroundf): Likewise.
69859         (libc_fesetroundl): Likewise.
69860         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
69861         function.
69862         (libc_fesetround_387): Likewise.
69863         (libc_fesetroundf): New macro.
69864         (libc_fesetround): Likewise.
69865         (libc_fesetroundl): Likewise.
69866         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
69867         function.
69868         (libc_fesetroundf): New macro.
69869         (libc_fesetround): Likewise.
69870         (libc_fesetroundl): Likewise.
69871         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
69872         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
69873         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
69874         libm_hidden_ver.
69875         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
69876         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
69877         libm_hidden_def.
69878         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
69879         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
69880         libm_hidden_ver.
69881         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
69882         libm_hidden_def.
69883
69884         [BZ #3439]
69885         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
69886         integer constant usable in #if and use that to give value to enum
69887         constant.
69888         (FE_DIVBYZERO): Likewise.
69889         (FE_UNDERFLOW): Likewise.
69890         (FE_OVERFLOW): Likewise.
69891         (FE_INVALID): Likewise.
69892         (FE_INVALID_SNAN): Likewise.
69893         (FE_INVALID_ISI): Likewise.
69894         (FE_INVALID_IDI): Likewise.
69895         (FE_INVALID_ZDZ): Likewise.
69896         (FE_INVALID_IMZ): Likewise.
69897         (FE_INVALID_COMPARE): Likewise.
69898         (FE_INVALID_SOFTWARE): Likewise.
69899         (FE_INVALID_SQRT): Likewise.
69900         (FE_INVALID_INTEGER_CONVERSION): Likewise.
69901         (FE_TONEAREST): Likewise.
69902         (FE_TOWARDZERO): Likewise.
69903         (FE_UPWARD): Likewise.
69904         (FE_DOWNWARD): Likewise.
69905         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
69906         (FE_DIVBYZERO): Likewise.
69907         (FE_OVERFLOW): Likewise.
69908         (FE_UNDERFLOW): Likewise.
69909         (FE_INEXACT): Likewise.
69910         (FE_TONEAREST): Likewise.
69911         (FE_DOWNWARD): Likewise.
69912         (FE_UPWARD): Likewise.
69913         (FE_TOWARDZERO): Likewise.
69914         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
69915         (FE_UNDERFLOW): Likewise.
69916         (FE_OVERFLOW): Likewise.
69917         (FE_DIVBYZERO): Likewise.
69918         (FE_INVALID): Likewise.
69919         (FE_TONEAREST): Likewise.
69920         (FE_TOWARDZERO): Likewise.
69921         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
69922         (FE_OVERFLOW): Likewise.
69923         (FE_UNDERFLOW): Likewise.
69924         (FE_DIVBYZERO): Likewise.
69925         (FE_INEXACT): Likewise.
69926         (FE_TONEAREST): Likewise.
69927         (FE_TOWARDZERO): Likewise.
69928         (FE_UPWARD): Likewise.
69929         (FE_DOWNWARD): Likewise.
69930         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
69931         (FE_DIVBYZERO): Likewise.
69932         (FE_OVERFLOW): Likewise.
69933         (FE_UNDERFLOW): Likewise.
69934         (FE_INEXACT): Likewise.
69935         (FE_TONEAREST): Likewise.
69936         (FE_DOWNWARD): Likewise.
69937         (FE_UPWARD): Likewise.
69938         (FE_TOWARDZERO): Likewise.
69939
69940 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
69941
69942         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
69943
69944 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
69945
69946         * scripts/cross-test-ssh.sh (command): Use newlines to separate
69947         commands.  Quote $PWD.
69948         (blacklist_exports): Don't use remove_newlines.  Replace "declare
69949         -x" by "export".
69950         (remove_newlines): Remove.
69951
69952 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
69953
69954         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
69955         * stdlib/stdlib.h (atof): Moved to ...
69956         * include/bits/stdlib-float.h: Here.  New file.
69957         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
69958         * stdlib/bits/stdlib-float.h: New file.
69959         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
69960         -mno-sse -mno-mmx.
69961         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
69962         <xmmintrin.h>.
69963
69964 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
69965
69966         * conform/conformtest.pl (@headers): Add fenv.h.
69967         * conform/data/fenv.h-data: New file.
69968         * include/fenv.h [_ISOMAC]: Disable all contents of file except
69969         include of <math/fenv.h>.
69970
69971         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
69972         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
69973         && !UNIX98].  Enables tests for XOPEN2K8.
69974         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
69975         POSIX2008]: Likewise.
69976
69977         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
69978         (struct rusage): Do not expect type or its members.
69979
69980         [BZ #3439]
69981         * math/math.h (FP_NAN): Define macro to integer constant usable in
69982         #if and use that to give value to enum constant.
69983         (FP_INFINITE): Likewise.
69984         (FP_ZERO): Likewise.
69985         (FP_SUBNORMAL): Likewise.
69986         (FP_NORMAL): Likewise.
69987
69988 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
69989
69990         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
69991         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
69992         arguments.
69993
69994 2012-11-02  Roland McGrath  <roland@hack.frob.com>
69995
69996         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
69997         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
69998         autoconf-time if not.
69999         * configure.in: Remove AC_PREREQ.
70000
70001 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70002
70003         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
70004         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
70005         of the internal implementation.
70006
70007 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
70008
70009         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
70010         except include of <misc/sys/syslog.h>.
70011
70012 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70013
70014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
70015         function returns with a NULL context exit with zero.
70016
70017 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70018
70019         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
70020
70021 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
70022
70023         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
70024         (run_program_cmd): This.
70025         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
70026         (tst_langinfo): New variable.  Use it.
70027
70028 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
70029
70030         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
70031         floating point opcodes.
70032
70033 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
70034
70035         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
70036         variable.
70037
70038         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
70039
70040         * sysdeps/mach/hurd/powerpc: Remove directory.
70041         * sysdeps/mach/powerpc: Likewise.
70042
70043 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
70044
70045         * scripts/check-local-headers.sh: Ignore c++ headers.
70046
70047 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
70048
70049         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
70050         __libc_cleanup_region_start argument.
70051
70052 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
70053
70054         [BZ #14784]
70055         [BZ #14785]
70056         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
70057         x * y using scaling, not as x * y + z.
70058         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70059         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70060         * math/libm-test.inc (fma_test): Add more tests.
70061         (fma_test_towardzero): Likewise.
70062         (fma_test_downward): Likewise.
70063         (fma_test_upward): Likewise.
70064
70065 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
70066
70067         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
70068
70069 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
70070
70071         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
70072         New variable.
70073
70074 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
70075
70076         * rt/tst-shm.c (worker): Correct checking for mmap failure.
70077
70078 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
70079
70080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70081         Fix sort order.
70082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70083         Likewise.
70084
70085 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
70086
70087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70088         Fix the order of the list for glibc 2.17.
70089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70090         Likewise.
70091
70092 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
70093
70094         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
70095
70096 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
70097
70098         [BZ #14610]
70099         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
70100         for low part of x being zero before using __atanl (y).
70101         * math/libm-test.inc (atan2_test): Add another test.
70102
70103         * manual/install.texi (Configuring and compiling): Document
70104         general use of test-wrapper and test-wrapper-env.
70105         * INSTALL: Regenerated.
70106
70107         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
70108         (__fma): Do not extract and scale down low bits on after-rounding
70109         systems when result rounded to normal precision would have normal
70110         exponent.
70111         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
70112         (__fmal): Do not extract and scale down low bits on after-rounding
70113         systems when result rounded to normal precision would have normal
70114         exponent.
70115         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
70116         (__fmal): Do not extract and scale down low bits on after-rounding
70117         systems when result rounded to normal precision would have normal
70118         exponent.
70119         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
70120         macro.
70121         (fma_test): Add more tests.
70122         (fma_test_towardzero): Likewise.
70123         (fma_test_downward): Likewise.
70124         (fma_test_upward): Likewise.
70125
70126 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
70127
70128         * sysdeps/i386/tininess.h: Renamed to ...
70129         * sysdeps/x86/tininess.h: This.
70130         * sysdeps/x86_64/tininess.h: Removed.
70131
70132 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
70133
70134         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
70135         input.  Use $(build-program-cmd).
70136         ($(objpfx)tst-array1-static.out): Likewise.
70137         ($(objpfx)tst-array2.out): Likewise.
70138         ($(objpfx)tst-array3.out): Likewise.
70139         ($(objpfx)tst-array4.out): Likewise.
70140         ($(objpfx)tst-array5.out): Likewise.
70141         ($(objpfx)tst-array5-static.out): Likewise.
70142
70143 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
70144
70145         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
70146         if defined.
70147
70148         * nss/nsswitch.h (nss_interface_function): Provide new
70149         macro for use with NSS functions.
70150         * grp/initgroups.c: Use new macro.
70151         * nss/getXXbyYY.c: Likewise.
70152         * nss/getXXbyYY_r.c: Likewise.
70153         * nss/getXXent.c: Likewise.
70154         * nss/getXXent_r.c: Likewise.
70155         * sysdeps/posix/getaddrinfo.c: Likewise.
70156
70157 2012-10-30  Andreas Jaeger  <aj@suse.de>
70158
70159         * po/ru.po: Update Russion translation from translation project.
70160
70161 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
70162
70163         [BZ #14152]
70164         [BZ #14783]
70165         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
70166         result and shift together with sticky bit instead of replicating
70167         round-to-nearest rounding.
70168         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
70169         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
70170         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
70171         missing underflow exceptions.
70172         (fma_test_towardzero): Add more tests.
70173         (fma_test_downward): Likewise.
70174         (fma_test_upward): Likewise.
70175
70176         [BZ #14047]
70177         * sysdeps/generic/tininess.h: New file.
70178         * sysdeps/i386/tininess.h: Likewise.
70179         * sysdeps/sh/tininess.h: Likewise.
70180         * sysdeps/x86_64/tininess.h: Likewise.
70181         * stdlib/tst-strtod-underflow.c: Likewise.
70182         * stdlib/tst-tininess.c: Likewise.
70183         * stdlib/strtod_l.c: Include <tininess.h>.
70184         (round_and_return): Do not set errno for exact underflow cases.
70185         Force an underflow exception when setting errno for underflow.
70186         Determine underflow based on rounding to normal precision if
70187         TININESS_AFTER_ROUNDING.
70188         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
70189         ERANGE for exact underflow cases.
70190         * stdlib/Makefile (tests): Add tst-tininess and
70191         tst-strtod-underflow.
70192         ($(objpfx)tst-tininess): Use $(link-libm).
70193         ($(objpfx)tst-strtod-underflow): Likewise.
70194
70195 2012-10-30  Andreas Jaeger  <aj@suse.de>
70196
70197         [BZ #14767]
70198         * elf/Makefile (tests): Remove conditional for have-initfini-array
70199         since this is now always required and the variable does not exist
70200         anymore.
70201         (tests-static): Likewise.
70202         (modules-names): Likewise.
70203
70204         * po/eo.po: Add Esperanto translation from translation project.
70205
70206         * elf/tst-array1.c (fini_array): Make writeable so that it can be
70207         merged with constructor/destructor.
70208         (init_array): Likewise.
70209         * elf/tst-array2dep.c (fini_array): Likewise.
70210         (init_array): Likewise.
70211
70212 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
70213
70214         * manual/message.texi: Delete @cartouche tags.
70215
70216 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
70217
70218         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
70219         EOPNOTSUPP.
70220         * sysdeps/mach/hurd/fsync.c: Likewise.
70221
70222         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
70223         [_POSIX_REALTIME_SIGNALS]: Change condition to
70224         [_POSIX_REALTIME_SIGNALS > 0].
70225
70226 2012-10-27  Andreas Jaeger  <aj@suse.de>
70227
70228         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
70229         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
70230         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
70231         [__WORDSIZE != 64]: Likewise.
70232
70233 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
70234
70235         *  iconvdata/tst-table.sh: Remove ${SHELL}.
70236         *  iconvdata/tst-tables.sh: Likewise.
70237
70238 2012-10-25  David S. Miller  <davem@davemloft.net>
70239
70240         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70241         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
70242         of strtoull.
70243
70244         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
70245         ifunc-impl-list.c
70246         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
70247         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
70248         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
70249         file.
70250
70251 2012-10-25  Roland McGrath  <roland@hack.frob.com>
70252
70253         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70254         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
70255         __getdirentries.
70256
70257 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
70258             Jim Blandy  <jimb@codesourcery.com>
70259
70260         * scripts/cross-test-ssh.sh: New file.
70261         * manual/install.texi (Configuring and compiling): Document use of
70262         cross-test-ssh.sh.
70263         * INSTALL: Regenerated.
70264
70265 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
70266
70267         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
70268         EOPNOTSUPP.
70269
70270 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
70271
70272         * Makeconfig (run-program-prefix): Fix comment.
70273
70274 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70275             Jim Blandy  <jimb@codesourcery.com>
70276
70277         * Makeconfig (test-wrapper): New variable,
70278         (test-wrapper-env): Likewise.
70279         [$(cross-compiling) = yes && $(test-wrapper) != ""]
70280         (run-built-tests): Define to yes.
70281         (run-program-prefix): Use $(test-wrapper).
70282         (built-program-cmd): Likewise.
70283         * Rules (make-test-out): Use $(test-wrapper-env) and
70284         $(host-built-program-cmd).
70285         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
70286         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
70287         tst-pathopt.sh.
70288         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
70289         $(test-wrapper-env) to tst-rtld-load-self.sh.
70290         ($(objpfx)order2.out): Use $(test-wrapper).
70291         ($(objpfx)tst-initorder.out): Likewise.
70292         ($(objpfx)tst-initorder2.out): Likewise.
70293         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
70294         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
70295         (test_wrapper_env): New variable.  Use it to run ld.so.
70296         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
70297         Use it to run ld.so.
70298         (test_wrapper_env): Likewise.
70299         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
70300         $(test-wrapper) to run-iconv-test.sh.
70301         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
70302         (ICONV): Use $test_wrapper.
70303         * posix/Makefile ($(objpfx)globtest.out): Pass
70304         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
70305         globtest.sh, not $(run-program-prefix).
70306         * posix/globtest.sh (run_via_rtld_prefix): New variable.
70307         (test_wrapper): Likewise.
70308         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
70309         set together with run_via_rtld_prefix.
70310         (run_program_prefix): Define in terms of test_wrapper and
70311         run_via_rtld_prefix.
70312
70313 2012-10-24  Roland McGrath  <roland@hack.frob.com>
70314
70315         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
70316         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
70317         Targets removed.
70318
70319         [BZ #14743]
70320         * include/time.h: Remove librt_hidden_proto (clock_gettime).
70321         Declare __clock_getres, __clock_gettime, __clock_settime,
70322         __clock_nanosleep, and __clock_getcpuclockid.
70323         * rt/clock_gettime.c: Define __clock_gettime as an alias.
70324         Remove librt_hidden_def (clock_gettime).
70325         * sysdeps/unix/clock_gettime.c: Likewise.
70326         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
70327         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
70328         * rt/clock_getres.c: Define __clock_getres as an alias.
70329         * sysdeps/posix/clock_getres.c: Likewise.
70330         * rt/clock_settime.c: Define __clock_settime as an alias.
70331         * sysdeps/unix/clock_settime.c: Likewise.
70332         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
70333         * sysdeps/unix/clock_nanosleep.c: Likewise.
70334         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
70335         * rt/clock-compat.c: New file.
70336         * rt/Makefile (librt-routines): Add clock-compat and move
70337         $(clock-routines) to ...
70338         (routines): ... here, new variable.
70339         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
70340         Don't add get_clockfreq here.
70341         * rt/Versions (libc: GLIBC_2.17): New version set.
70342         Add clock_* symbols here.
70343         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
70344         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
70345         (GLIBC_2.17): Add clock_* symbols.
70346         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
70347         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
70348         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
70349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
70350         Likewise.
70351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
70352         Likewise.
70353         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
70354         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
70355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
70356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
70357         * NEWS: Mention the move.
70358
70359         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
70360         Use __open, __read, __close rather than their public counterparts.
70361         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
70362         (__get_clockfreq_via_cpuinfo): Likewise.
70363         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
70364         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
70365
70366         * config.h.in (HAVE_IFUNC): New #undef.
70367         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
70368         was successful.
70369         * configure: Regenerated.
70370
70371 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70372
70373         * configure.in: Move READELF check to start of file.
70374         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
70375         libc_cv_asm_gnu_indirect_function in the process.
70376         * configure: Regenerated.
70377
70378 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
70379
70380         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
70381         send the output to /dev/null.
70382         (libc_cv_cc_with_libunwind): Likewise.
70383         (libc_cv_as_noexecstack): Likewise.
70384         * configure: Regenerate.
70385
70386 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
70387
70388         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
70389
70390         * posix/globtest.sh (TMPDIR): Do not set.
70391         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
70392         (testout): Likewise.
70393
70394 2012-10-24  Andreas Jaeger  <aj@suse.de>
70395
70396         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
70397         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
70398         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
70399         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
70400         posix_fadvise64, posix_fallocate64.
70401
70402         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
70403         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
70404         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
70405         Likewise.
70406         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
70407         Likewise.
70408         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
70409
70410         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
70411         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
70412         <bits/fcntl-linux.h>.
70413         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
70414
70415         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
70416         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
70417         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
70418         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
70419         [__WORDSIZE != 64]: Likewise.
70420
70421 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70422
70423         * Makeconfig (run-built-tests): New variable.
70424         * Rules [$(cross-compiling) = yes]: Change condition to
70425         [$(run-built-tests) = no].
70426         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
70427         to [$(run-built-tests) = yes].
70428         * elf/Makefile [$(cross-compiling) = no]: Likewise.
70429         * grp/Makefile [$(cross-compiling) = no]: Likewise.
70430         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
70431         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
70432         * intl/Makefile [$(cross-compiling) = no]: Likewise.
70433         * io/Makefile [$(cross-compiling) = no]: Likewise.
70434         * libio/Makefile [$(cross-compiling) = no]: Likewise.
70435         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
70436         * misc/Makefile [$(cross-compiling) = no]: Likewise.
70437         * posix/Makefile [$(cross-compiling) = no]: Likewise.
70438         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
70439         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
70440         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
70441         * string/Makefile [$(cross-compiling) = no]: Likewise.
70442
70443         * posix/Makefile ($(objpfx)globtest.out): Pass
70444         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
70445         $(rtld-installed-name).
70446         * posix/globtest.sh (elf_objpfx): Remove variable.
70447         (rtld_installed_name): Likewise.
70448         (library_path): Likewise.
70449         (run_program_prefix): New variable.  Use for running globtest
70450         binary.
70451
70452 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
70453             Joseph Myers  <joseph@codesourcery.com>
70454
70455         * Makeconfig (host-built-program-cmd): New variable.
70456         * elf/Makefile (tst-stackguard1-ARGS): Use
70457         $(host-built-program-cmd).
70458         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
70459         (tst-spawn-ARGS): Likewise.
70460         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
70461
70462 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
70463             Jim Blandy  <jimb@codesourcery.com>
70464
70465         * Makeconfig (run-via-rtld-prefix): New variable.
70466         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
70467         (built-program-cmd): Likewise.
70468
70469 2012-10-22  Andreas Jaeger  <aj@suse.de>
70470
70471         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
70472         __O_RSYNC if it exists, otherwise to O_SYNC.
70473
70474 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
70475             Joseph Myers  <joseph@codesourcery.com>
70476
70477         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
70478         /dev/null.
70479         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
70480         from /dev/null
70481         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
70482         /dev/null.
70483
70484 2012-10-22  Andreas Jaeger  <aj@suse.de>
70485
70486         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
70487         Define always.
70488         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
70489
70490         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
70491         bits/fcntl-linux.h.
70492
70493         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
70494         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
70495
70496         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
70497         to __O_LARGEFILE.
70498         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
70499         to __O_LARGEFILE.
70500
70501 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
70502             Joseph Myers  <joseph@codesourcery.com>
70503
70504         * config.make.in (NM): New variable.
70505
70506 2012-10-21  Andreas Jaeger  <aj@suse.de>
70507
70508         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
70509         definitions and declarations that are provided by
70510         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
70511
70512 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70513
70514         [BZ #14683]
70515         * elf/Makefile (tests-static): Add tst-leaks1-static.
70516         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
70517         ($(objpfx)tst-leaks1-static): New rule.
70518         ($(objpfx)tst-leaks1-static-mem): Likewise.
70519         (tst-leaks1-static-ENV): New macro.
70520         * elf/dl-open.c (dl_open_worker): Check the main application
70521         only if SHARED is defined.
70522         * elf/tst-leaks1-static.c: New file.
70523
70524 2012-10-20  Andreas Jaeger  <aj@suse.de>
70525
70526         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
70527         generic values for Linux.
70528         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
70529         and declarations that are provided by <bits/fcntl-linux.h> and
70530         include <bits/fcntl-linux.h>.
70531         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
70532         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
70533
70534 2012-10-20  Roland McGrath  <roland@hack.frob.com>
70535
70536         * io/fcntl.h: Move include of <bits/types.h> to the top and
70537         include it unconditionally.
70538
70539 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
70540
70541         * wcsmbs/Makefile (tests-ifunc): New variable.
70542         (tests): Add $(tests-ifunc).
70543         * wcsmbs/test-wcschr-ifunc.c: New file.
70544         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
70545         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
70546         * wcsmbs/test-wcslen-ifunc.c: Likewise.
70547         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
70548         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
70549
70550         * string/Makefile (tests-ifunc): New variable.
70551         (tests): Add $(tests-ifunc).
70552         * string/test-memccpy.c (TEST_NAME): New macro.
70553         * string/test-memchr.c (TEST_NAME): Likewise.
70554         * string/test-memcmp.c (TEST_NAME): Likewise.
70555         * string/test-memcpy.c (TEST_NAME): Likewise.
70556         * string/test-memmem.c (TEST_NAME): Likewise.
70557         * string/test-memmove.c (TEST_NAME): Likewise.
70558         * string/test-memset.c (TEST_NAME): Likewise.
70559         * string/test-rawmemchr.c (TEST_NAME): Likewise.
70560         * string/test-stpcpy.c (TEST_NAME): Likewise.
70561         * string/test-stpncpy.c (TEST_NAME): Likewise.
70562         * string/test-strcasecmp.c (TEST_NAME): Likewise.
70563         * string/test-strcasestr.c (TEST_NAME): Likewise.
70564         * string/test-strcat.c (TEST_NAME): Likewise.
70565         * string/test-strchr.c (TEST_NAME): Likewise.
70566         * string/test-strcmp.c(TEST_NAME): Likewise.
70567         * string/test-strcpy.c (TEST_NAME): Likewise.
70568         * string/test-strcspn.c (TEST_NAME): Likewise.
70569         * string/test-strlen.c (TEST_NAME): Likewise.
70570         * string/test-strncasecmp.c (TEST_NAME): Likewise.
70571         * string/test-strncmp.c (TEST_NAME): Likewise.
70572         * string/test-strncpy.c (TEST_NAME): Likewise.
70573         * string/test-strnlen.c (TEST_NAME): Likewise.
70574         * string/test-strpbrk.c (TEST_NAME): Likewise.
70575         * string/test-strrchr.c (TEST_NAME): Likewise.
70576         * string/test-strspn.c (TEST_NAME): Likewise.
70577         * string/test-strstr.c (TEST_NAME): Likewise.
70578         * string/test-bcopy-ifunc.c: New file.
70579         * string/test-bzero-ifunc.c: Likewise.
70580         * string/test-memccpy-ifunc.c: Likewise.
70581         * string/test-memchr-ifunc.c: Likewise.
70582         * string/test-memcmp-ifunc.c: Likewise.
70583         * string/test-memcpy-ifunc.c: Likewise.
70584         * string/test-memmem-ifunc.c: Likewise.
70585         * string/test-memmove-ifunc.c: Likewise.
70586         * string/test-mempcpy-ifunc.c: Likewise.
70587         * string/test-memset-ifunc.c: Likewise.
70588         * string/test-rawmemchr-ifunc.c: Likewise.
70589         * string/test-stpcpy-ifunc.c: Likewise.
70590         * string/test-stpncpy-ifunc.c: Likewise.
70591         * string/test-strcasecmp-ifunc.c: Likewise.
70592         * string/test-strcasestr-ifunc.c: Likewise.
70593         * string/test-strcat-ifunc.c: Likewise.
70594         * string/test-strchr-ifunc.c: Likewise.
70595         * string/test-strchrnul-ifunc.c: Likewise.
70596         * string/test-strcmp-ifunc.c: Likewise.
70597         * string/test-strcpy-ifunc.c: Likewise.
70598         * string/test-strcspn-ifunc.c: Likewise.
70599         * string/test-strlen-ifunc.c: Likewise.
70600         * string/test-strncasecmp-ifunc.c: Likewise.
70601         * string/test-strncat-ifunc.c: Likewise.
70602         * string/test-strncmp-ifunc.c: Likewise.
70603         * string/test-strncpy-ifunc.c: Likewise.
70604         * string/test-strnlen-ifunc.c: Likewise.
70605         * string/test-strpbrk-ifunc.c: Likewise.
70606         * string/test-strrchr-ifunc.c: Likewise.
70607         * string/test-strspn-ifunc.c: Likewise.
70608         * string/test-strstr-ifunc.c: Likewise.
70609
70610         * debug/Makefile (tests-ifunc): New variable.
70611         (tests): Add $(tests-ifunc).
70612         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
70613         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
70614         * debug/test-stpcpy_chk-ifunc.c: New file.
70615         * debug/test-strcpy_chk-ifunc.c: Likewise.
70616
70617 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
70618
70619         [BZ #13601]
70620         * elf/dl-load.c (open_verify): Retry read if the entire ELF
70621         header is not read in.
70622
70623 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
70624
70625         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
70626         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
70627         directly.  Pass built executable to script as
70628         $(built-program-cmd).
70629         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
70630         $testprogram without using LD_LIBRARY_PATH and $ldso.
70631
70632         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
70633         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
70634         $(rtld-installed-name).
70635         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
70636         (rtld_installed_name): Likewise.
70637         (library_path): Likewise.
70638         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
70639         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
70640         $(run-program-prefix) to tst-tables.sh.
70641         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
70642         it to run tst-table-from and tst-table-to.
70643         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
70644         Pass it to tst-table.sh.
70645         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
70646         $(run-program-prefix) to tst-gettext.sh.
70647         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
70648         tst-translit.sh.
70649         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
70650         tst-gettext2.sh.
70651         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
70652         to run tst-gettext.
70653         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
70654         to run tst-gettext2.
70655         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
70656         to run tst-translit.
70657         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
70658         $(run-program-prefix) to tst-mtrace.sh.
70659         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
70660         to run tst-mtrace.
70661         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
70662         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
70663         $(rtld-installed-name).
70664         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
70665         (rtld_installed_name): Likewise.
70666         (run_program_prefix): New variable.  Use it to run wordexp-test.
70667
70668         * Makeconfig (ARCH): Remove all definitions.
70669         (machine): Likewise.
70670         [ARCH]: Remove conditional code.
70671         [!objdir]: Give error.
70672         [!objdir] (objpfx): Remove.
70673         [!objdir] (common-objpfx): Likewise.
70674         [!objdir] (common-objdir): Likewise.
70675         * configure.in (config_makefile): Remove.  Hardcode Makefile in
70676         AC_CONFIG_FILES call.
70677         * configure: Regenerated.
70678
70679         [BZ #13888]
70680         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
70681         or TMPDIR.
70682         (testout): Likewise.
70683
70684         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
70685         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
70686         $(rtld-installed-name).
70687         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
70688         (rtld_installed_name): Likewise.
70689         (runit): Remove function.
70690         (run_getconf): New variable,  Use it for running getconf binary.
70691
70692 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
70693
70694         [BZ #14716]
70695         * string/test-memmem.c (check_result): New function.
70696         (do_one_test): Use it.
70697         (check1): New function.
70698         (test_main): Use it.
70699
70700 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
70701
70702         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
70703
70704 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
70705
70706         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
70707         (_G_LSEEK64): Likewise.
70708         (_G_MMAP64): Likewise.
70709         (_G_FSTAT64): Likewise.
70710         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
70711         (_G_LSEEK64): Likewise.
70712         (_G_MMAP64): Likewise.
70713         (_G_FSTAT64): Likewise.
70714         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
70715         unconditional.  Call __mmap64 directly.
70716         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
70717         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
70718         __lseek64 directly.
70719         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
70720         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
70721         __mmap64 directly.
70722         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
70723         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70724         __lseek64 directly.
70725         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
70726         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
70727         __lseek64 directly.
70728         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
70729         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
70730         __lseek64 directly.
70731         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
70732         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
70733         __fxstat64 directly.
70734         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
70735         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
70736         unconditional.
70737         (freopen64) [!_G_OPEN64]: Remove conditional code.
70738         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
70739         unconditional.
70740         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
70741         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
70742         unconditional.
70743         (ftello64) [!_G_LSEEK64]: Remove conditional code.
70744         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
70745         unconditional.
70746         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70747         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
70748         unconditional.
70749         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
70750         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
70751         unconditional.
70752         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70753         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
70754         unconditional.
70755         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
70756         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
70757         unconditional.
70758         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
70759
70760 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
70761
70762         [BZ #12140]
70763         * manual/memory.texi (Malloc Tunable Parameters): Add note
70764         about free list pointers overwriting some perturb bytes.
70765         Wording suggested by Roland McGrath.
70766
70767 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
70768
70769         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
70770         (lgamma_test): Likewise.
70771         (tgamma_test): Likewise.
70772
70773 2012-10-16  Florian Weimer  <fweimer@redhat.com>
70774
70775         [BZ #14700]
70776         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
70777         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
70778
70779 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
70780
70781         * NEWS: Mention BZ #14716.
70782         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
70783         when removing AVAILABLE1_USES_J macro.
70784
70785 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
70786
70787         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
70788         (__bswap_64): __uint64_t for unsigned 64-bit int.
70789
70790 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
70791
70792         * include/string.h (memmem): Declare libc hidden alias.
70793         * string/memmem.c (memmem): Define libc hidden alias.
70794         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
70795         __read, __close instead of open, read, close.
70796
70797 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
70798
70799         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
70800         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
70801         global and hidden.
70802         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
70803         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
70804         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
70805         Likewise.
70806         (__rawmemchr_sse2): Likewise.
70807         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
70808         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
70809         (__strchr_sse2): Likewise.
70810         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
70811         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
70812         (__strcasecmp_sse2): Likewise.
70813         (__strncasecmp_sse2): Likewise.
70814         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
70815         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
70816         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
70817         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
70818         (__strrchr_sse2): Likewise.
70819         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
70820         ifunc-impl-list.c.
70821         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
70822         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
70823         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
70824         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
70825         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
70826         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
70827         * sysdeps/x86_64/multiarch/memset.S: Likewise.
70828         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
70829         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
70830         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
70831         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
70832         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
70833         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
70834         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
70835         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
70836         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
70837         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
70838         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
70839         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
70840         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
70841         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
70842         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
70843         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
70844         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
70845         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
70846         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
70847         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
70848         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
70849         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
70850         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
70851
70852         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
70853         global and hidden.
70854         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
70855         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
70856         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
70857         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
70858         Likewise.
70859         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
70860         Likewise.
70861         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
70862         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
70863         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
70864         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
70865         ifunc-impl-list.c.
70866         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
70867         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
70868         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
70869         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
70870         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
70871         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
70872         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
70873         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
70874         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
70875         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
70876         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
70877         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
70878         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
70879         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
70880         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
70881         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
70882         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
70883         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
70884         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
70885         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
70886         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
70887         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
70888         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
70889         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
70890         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
70891         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
70892         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
70893         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
70894         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
70895         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
70896         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
70897         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
70898         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
70899         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
70900         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
70901         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
70902         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
70903         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
70904         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
70905         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
70906         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
70907
70908         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
70909         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
70910         * include/ifunc-impl-list.h: New file.
70911         * misc/ifunc-impl-list.c: Likewise.
70912         * misc/Makefile (routines): Add ifunc-impl-list.
70913         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
70914         * string/test-string.h: Include <ifunc-impl-list.h>.
70915         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
70916         TEST_NAME]: New variables.
70917         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
70918         are defined.
70919         (test_init): Call __libc_ifunc_impl_list to initialize
70920         func_list if TEST_IFUNC and TEST_NAME are defined.
70921
70922         * string/Makefile (strop-tests): Add bcopy and bzero.
70923         * string/test-bcopy.c: New file.
70924         * string/test-bzero.c: Likewise.
70925         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
70926         defined.
70927         * string/test-memset.c: Support bzero test if TEST_BZERO is
70928         defined.
70929         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
70930         __libc_memmove.
70931         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
70932         __libc_memset.
70933         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
70934         of memset.
70935
70936 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
70937
70938         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
70939         * configure: Regenerated.
70940
70941         * Makeconfig (+link-static-before-libc): Don't include
70942         $(link-static-libc).
70943
70944         * libio/libio.h (_IO_pos_t): Remove.
70945
70946 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70947
70948         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
70949         McGrath.
70950
70951 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70952
70953         * crypt/crypt-entry.c: Include fips-private.h.
70954         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
70955         * crypt/md5c-test.c (main): Tolerate disabled MD5.
70956         * sysdeps/unix/sysv/linux/fips-private.h: New file.
70957         * sysdeps/generic/fips-private.h: New file, dummy fallback.
70958
70959 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
70960
70961         * crypt/crypt-private.h: Include stdbool.h.
70962         (_ufc_setup_salt_r): Return bool.
70963         * crypt/crypt-entry.c: Include errno.h.
70964         (__crypt_r): Return NULL with EINVAL for bad salt.
70965         * crypt/crypt_util.c (bad_for_salt): New.
70966         (_ufc_setup_salt_r): Check that salt is long enough and within
70967         the specified alphabet.
70968         * crypt/badsalttest.c: New file.
70969         * crypt/Makefile (tests): Add it.
70970         ($(objpfx)badsalttest): New.
70971
70972 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
70973
70974         * NEWS: Add entry for BZ #14602.
70975
70976 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
70977
70978         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
70979         type-generic.
70980         * math/libm-test.inc: Update comment listing what functions and
70981         macros are tested.
70982         (isgreater_test): New function.
70983         (isgreaterequal_test): Likewise.
70984         (isless_test): Likewise.
70985         (islessequal_test): Likewise.
70986         (islessgreater_test): Likewise.
70987         (isunordered_test): Likewise.
70988         (main): Call the new functions.
70989
70990 2012-10-09  Roland McGrath  <roland@hack.frob.com>
70991
70992         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
70993         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
70994         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
70995         * sysdeps/i386/configure: Regenerated.
70996         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
70997         * sysdeps/mach/configure: Regenerated.
70998         * sysdeps/mach/hurd/configure: Regenerated.
70999         * sysdeps/powerpc/configure: Regenerated.
71000         * sysdeps/powerpc/powerpc32/configure: Regenerated.
71001         * sysdeps/powerpc/powerpc64/configure: Regenerated.
71002         * sysdeps/s390/s390-32/configure: Regenerated.
71003         * sysdeps/s390/s390-64/configure: Regenerated.
71004         * sysdeps/sh/configure: Regenerated.
71005         * sysdeps/sparc/configure: Regenerated.
71006         * sysdeps/unix/sysv/linux/configure: Regenerated.
71007         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
71008         * sysdeps/x86_64/configure: Regenerated.
71009
71010         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
71011         defined.  Don't check if MAP is NULL.
71012
71013 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
71014
71015         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
71016         (_G_stat64): Likewise.
71017         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
71018         (_G_stat64): Likewise.
71019         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
71020         instead of struct _G_stat64.
71021         * libio/fileops.c (mmap_remap_check): Likewise.
71022         (decide_maybe_mmap): Likewise.
71023         (_IO_new_file_seekoff): Likewise.
71024         (_IO_file_stat): Likewise.
71025         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
71026         _G_off64_t.
71027         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
71028         instead of struct _G_stat64.
71029         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71030
71031 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
71032
71033         [BZ #14602]
71034         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
71035         Replace with ...
71036         (CHECK_EOL): New macro.
71037         (two_way_short_needle): Check beginning of haystack for EOL.  Use
71038         CHECK_EOL.
71039         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
71040         Replace with CHECK_EOL.
71041         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
71042         Replace with CHECK_EOL.
71043
71044 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
71045
71046         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
71047         type-generic.
71048         * math/libm-test.inc: Update comment listing what functions and
71049         macros are tested.
71050         (finite_test): New function.
71051         (isinf_test): Likewise.
71052         (isnan_test): Likewise.
71053         (fpclassify_test): Test subnormal input.
71054         (isfinite_test): Likewise.
71055         (isnormal_test): Likewise.
71056         (main): Call the new functions.
71057
71058 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
71059
71060         [BZ #14660]
71061         * Makerules (%.dynsym): Force C locale when running
71062         $(OBJDUMP) --dynamic-syms.
71063
71064 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
71065
71066         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
71067         <stdint.h>.
71068
71069 2012-10-06  David S. Miller  <davem@davemloft.net>
71070
71071         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
71072         upper 32-bits of the length value in %o2 since we use branch-on-register
71073         tests which consider the entire 64-bit register.
71074
71075 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
71076
71077         * string/test-strstr.c (check2): Add a test for page boundary.
71078
71079 2012-10-05  David S. Miller  <davem@davemloft.net>
71080
71081         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
71082         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
71083         file.
71084         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
71085         sysdep_routines.
71086         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
71087         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
71088         and bzero when HWCAP_SPARC_CRYPTO is present.
71089
71090 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
71091
71092         [BZ #14602]
71093         * string/test-strstr.c (check2): New function.
71094         (test_main): Call check2.
71095
71096         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
71097         and bug-strchr1.
71098         * string/bug-strcasestr1.c (do_test): Moved to ...
71099         * string/test-strcasestr.c (check1): Here.  New function.
71100         (do_one_test): Break out result checking code into ...
71101         (check_result): This.  New function.
71102         (do_one_test): Call check_result.
71103         (test_main): Call check1.
71104         * string/bug-strchr1.c (do_test): Moved to ...
71105         * string/test-strchr.c (check1): Here.  New function.
71106         (do_one_test): Break out result checking code into ...
71107         (check_result): This.  New function.
71108         (do_one_test): Call check_result.
71109         (test_main): Call check1.
71110         * string/bug-strstr1.c (main): Moved to ...
71111         * string/test-strstr.c (check1): Here.  New function.
71112         (do_one_test): Break out result checking code into ...
71113         (check_result): This.  New function.
71114         (do_one_test): Call check_result.
71115         (test_main): Call check1.
71116         * string/bug-strcasestr1.c: Removed.
71117         * string/bug-strchr1.c: Likewise.
71118         * string/bug-strstr1.c: Likewise.
71119
71120         * elf/Makefile (dl-routines): Add hwcaps.
71121         * elf/dl-support.c (_dl_important_hwcaps): Removed.
71122         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
71123         (_dl_important_hwcaps): Moved to ...
71124         * elf/dl-hwcaps.c: Here.  New file.
71125         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
71126
71127         [BZ #14557]
71128         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
71129         if IS_IN_rtld isn't defined.
71130
71131         * elf/dl-support.c (_dl_sysinfo_map): New.
71132         Include "get-dynamic-info.h" and "setup-vdso.h".
71133         (_dl_non_dynamic_init): Call setup_vdso.
71134         * elf/dynamic-link.h: Don't include <assert.h>.
71135         (elf_get_dynamic_info): Moved to ...
71136         * elf/get-dynamic-info.h: Here.  New file.
71137         * elf/dynamic-link.h: Include "get-dynamic-info.h".
71138         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
71139         * elf/setup-vdso.h: Here.  New file.
71140         * elf/rtld.c: Include "setup-vdso.h".
71141         (dl_main): Call setup_vdso.
71142
71143 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
71144
71145         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
71146         creal in comment listing functions tested.  List finite, isinf,
71147         isnan, isless, islessequal, isgreater, isgreaterequal,
71148         islessgreater, isunordered, lgamma_r and pow10 as functions and
71149         macros not tested.  Mention which functions not tested are aliases
71150         for other functions.  Fix typo.  Note that signs of NaNs are not
71151         tested.
71152
71153         * scripts/config.guess: Update from config.git.
71154         * scripts/config.sub: Likewise.
71155
71156 2012-10-04  Roland McGrath  <roland@hack.frob.com>
71157
71158         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
71159         * misc/madvise.c (madvise): Renamed to __madvise.
71160         Make madvise a weak alias.
71161         * include/sys/mman.h: Declare __madvise.
71162         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
71163         * sysdeps/unix/syscalls.list
71164         (madvise): Make __madvise the strong name, and madvise a weak alias.
71165         * sysdeps/unix/sysv/linux/syscalls.list
71166         (madvise, mmap): Remove redundant entries.
71167         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
71168         * malloc/malloc.c (mtrim): Likewise.
71169         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
71170
71171 2012-10-03  Roland McGrath  <roland@hack.frob.com>
71172
71173         * sysdeps/mach/hurd/dl-cache.c: File removed.
71174         * config.h.in (USE_LDCONFIG): New #undef.
71175         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
71176         * configure: Regenerated.
71177         * elf/Makefile (dl-routines): Add dl-cache only under
71178         [$(use-ldconfig) = yes].
71179         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
71180         cache on [USE_LDCONFIG].
71181         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
71182         [USE_LDCONFIG].
71183         * elf/rtld.c (dl_main): Likewise.
71184
71185 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
71186
71187         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
71188         _SC_LEVEL4_CACHE_LINESIZE.
71189
71190 2012-10-03  Roland McGrath  <roland@hack.frob.com>
71191
71192         * sysdeps/unix/bsd/confstr.h: File removed.
71193
71194 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
71195
71196         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
71197         sys/sdt-config.h.
71198
71199 2012-10-02  Roland McGrath  <roland@hack.frob.com>
71200
71201         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
71202         Make 'mapoff' field ElfW(Off) rather than off_t.
71203
71204 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71205
71206         * nscd/Makefile: Remove nscd-cflags and all its users.
71207         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
71208         (CFLAGS-nonlib): Add compiler flags for nscd modules.
71209
71210         [BZ #10631]
71211         * malloc.c (malloc_printerr): Clarify error message.
71212
71213 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
71214
71215         [BZ #14648]
71216         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
71217         Set bit_FMA_Usable if FMA is supported.
71218         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
71219         macro.
71220         (bit_FMA4_Usable): Updated.
71221         (index_FMA_Usable): New macro.
71222         (CPUID_FMA): Likewise.
71223         (HAS_FMA): Defined with bit_FMA_Usable.
71224
71225 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71226
71227         * bits/types.h (__swblk_t): Type removed.
71228         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
71229         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
71230         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
71231         (__SWBLK_T_TYPE): Likewise.
71232         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
71233         (__SWBLK_T_TYPE): Likewise.
71234         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
71235         (__SWBLK_T_TYPE): Likewise.
71236         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
71237         (__SWBLK_T_TYPE): Likewise.
71238
71239 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
71240             Honza Horak <hhorak@redhat.com>
71241
71242         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
71243         (xdr_mapname): Use YPMAXMAP as maxsize.
71244         (xdr_peername): Use YPMAXPEER as maxsize.
71245         (xdr_keydat): Use YPAXRECORD as maxsize.
71246         (xdr_valdat): Use YPMAXRECORD as maxsize.
71247
71248 2012-10-01  Roland McGrath  <roland@hack.frob.com>
71249
71250         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
71251
71252         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
71253         * csu/init-first.c: ... here.
71254         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
71255         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
71256         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
71257         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
71258         * sysdeps/i386/init-first.c: File removed.
71259         * sysdeps/sh/init-first.c: File removed.
71260
71261 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
71262
71263         [BZ #14645]
71264         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
71265         if x * y might underflow to zero and z is zero.
71266         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
71267         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71268         * math/libm-test.inc (min_subnorm_value): New variable.
71269         (fma_test): Add more tests.
71270         (fma_test_towardzero): Likewise.
71271         (fma_test_downward): Likewise.
71272         (fma_test_upward): Likewise.
71273         (initialize): Set min_subnorm_value.
71274
71275 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
71276
71277         [BZ #14638]
71278         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
71279         0 + 0.
71280         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
71281         mode for addition resulting in exact zero.
71282         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
71283         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
71284         exact 0 + 0.
71285         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
71286         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
71287         * math/libm-test.inc (fma_test): Add more tests.
71288         (fma_test_towardzero): New function.
71289         (fma_test_downward): Likewise.
71290         (fma_test_upward): Likewise.
71291         (main): Call the new functions.
71292
71293 2012-09-28  David S. Miller  <davem@davemloft.net>
71294
71295         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
71296
71297 2012-09-28  Roland McGrath  <roland@hack.frob.com>
71298
71299         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
71300         instead of SIGALRM.
71301
71302         * sysdeps/gnu/_G_config.h: Moved to ...
71303         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
71304         * sysdeps/mach/hurd/_G_config.h: Moved to ...
71305         * sysdeps/generic/_G_config.h: ... here.
71306
71307         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
71308
71309         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
71310
71311         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
71312         Conditionalize target on [libnss_test1.so-version].
71313
71314         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
71315
71316         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
71317         (elfobjdir): Move out of conditionals.
71318
71319         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
71320         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
71321         (__nss_lookup_function): Conditionalize label remove_from_tree on
71322         [!DO_STATIC_NSS || SHARED], matching its only use.
71323
71324 2012-09-28  David S. Miller  <davem@davemloft.net>
71325
71326         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
71327         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
71328         file.
71329         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
71330         sysdep_routines.
71331         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
71332         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
71333         when HWCAP_SPARC_CRYPTO is present.
71334
71335 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71336
71337         * io/tst-mknodat.c: Create a FIFO instead of a socket.
71338
71339 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
71340
71341         [BZ #6530]
71342         * stdio-common/vfprintf.c (process_string_arg): Revert
71343         2000-07-22 change.
71344
71345 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
71346
71347         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
71348         for testcase.
71349         * stdio-common/tst-sprintf.c: Include <locale.h>
71350         (main): Test sprintf's handling of incomplete multibyte
71351         characters.
71352
71353 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
71354
71355         * elf/dl-runtime.c (VERSYMIDX): Removed.
71356         * elf/dl-version.c (VERSYMIDX): Likewise.
71357         * elf/do-rel.h (VERSYMIDX): Likewise.
71358         (VALIDX): Likewise.
71359         * elf/dynamic-link.h (VERSYMIDX): Likewise.
71360         * elf/rtld.c (VALIDX): Likewise.
71361         (ADDRIDX): Likewise.
71362         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
71363         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
71364         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
71365         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
71366         (VALIDX): Likewise.
71367         (ADDRIDX): Likewise.
71368
71369 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71370
71371         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
71372
71373 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
71374
71375         [BZ #11438]
71376         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
71377         to global scope.
71378         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
71379         addresses are in the same scope as 192.0.2/24.
71380         * posix/gai.conf: Document new scope table defaults.
71381
71382 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71383
71384         [BZ #5298]
71385         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
71386         for ftell.  Compute offsets from write pointers instead.
71387         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
71388
71389 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
71390
71391         [BZ #14543]
71392         * libio/Makefile (tests): New test case tst-fseek.
71393         * libio/tst-fseek.c: New test case to verify that fseek/ftell
71394         combination works in wide mode.
71395         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
71396         state when the external buffer state changes.
71397
71398 2012-09-27  David S. Miller  <davem@davemloft.net>
71399
71400         [BZ #14376]
71401         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
71402         pass reloc->r_addend in as the 'high' argument to
71403         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
71404
71405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71406
71407 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
71408
71409         * rt/tst-aio2.c: Include <pthread.h>.
71410         * rt/tst-aio3.c: Likewise.
71411
71412 2012-09-27  Steve Ellcey  <sellcey@mips.com>
71413
71414         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
71415
71416 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
71417
71418         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
71419         contents on [SHARED].
71420
71421 2012-09-26  Marek Polacek  <polacek@redhat.com>
71422
71423         [BZ #14530]
71424         [BZ #13741]
71425         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
71426         for C++ and GCC <4.3 as well as for non GCC compilers.
71427
71428 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
71429
71430         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71431
71432 2012-09-25  Roland McGrath  <roland@hack.frob.com>
71433
71434         * Makefile.in (all, install): Declare with .PHONY.
71435         Reported by Michael Hope <michael.hope@linaro.org>.
71436
71437 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
71438
71439         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
71440         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
71441         system header.
71442         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
71443         Likewise.
71444         (sydep_routines): Add the new and the internal functions.
71445         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
71446         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
71447         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
71448         (GLIBC_2.17): Add the new function.
71449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
71450         (GLIBC_2.17): Likewise.
71451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
71452         (GLIBC_2.17): Likewise.
71453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
71454         (GLIBC_2.17): Likewise.
71455         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
71456
71457 2012-09-25  Alan Modra  <amodra@gmail.com>
71458
71459         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
71460         Add release barrier before setting once_control to say
71461         initialisation is done.  Add hints on lwarx.  Use macro in
71462         place of isync.
71463         (clear_once_control): Add release barrier.
71464
71465 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71466
71467         [BZ #13629]
71468         * math/s_clog.c (__clog): Handle more values close to |z| = 1
71469         specially.
71470         * math/s_clog10.c (__clog10): Likewise.
71471         * math/s_clog10f.c (__clog10f): Likewise.
71472         * math/s_clog10l.c (__clog10l): Likewise.
71473         * math/s_clogf.c (__clogf): Likewise.
71474         * math/s_clogl.c (__clogl): Likewise.
71475         * math/Makefile (libm-calls): Add x2y2m1.
71476         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
71477         (__x2y2m1): Likewise.
71478         (__x2y2m1l): Likewise.
71479         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
71480         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
71481         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
71482         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
71483         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
71484         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
71485         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
71486         * sysdeps/i386/fpu/libm-test-ulps: Update.
71487         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
71488
71489         [BZ #14621]
71490         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
71491         int as type of variable DEPTH.
71492         (glob): Use size_t instead of int as type of variables NEWCOUNT
71493         and OLD_PATHC.
71494
71495 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71496
71497         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
71498         Add s_sincosf-sse2.
71499         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
71500         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
71501         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
71502         macros for using routine as __sincosf_ia32.
71503         Use macro for function declaration and weak_alias.
71504         * sysdeps/i386/fpu/libm-test-ulps: Update.
71505
71506         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
71507         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71508
71509         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
71510         subnormal argument.
71511         * math/s_cexpf.c (__cexpf): Likewise.
71512         * math/s_csinf.c (__csinf): Likewise.
71513         * math/s_csinhf.c (__csinhf): Likewise.
71514         * math/s_ctanf.c (__ctanf): Likewise.
71515         * math/s_ctanhf.c (__ctanhf): Likewise.
71516         * math/s_ccosh.c (__ccoshf): Likewise.
71517         * math/s_cexp.c (__cexpl): Likewise.
71518         * math/s_csin.c (__csin): Likewise.
71519         * math/s_csinh.c (__csinh): Likewise.
71520         * math/s_ctan.c (__ctan): Likewise.
71521         * math/s_ctanh.c (ctanh): Likewise.
71522         * math/s_ccoshl.c (__ccoshl): Likewise.
71523         * math/s_cexpl.c (__cexpl): Likewise.
71524         * math/s_csinl.c (__csinl): Likewise.
71525         * math/s_csinhl.c (__csinhl): Likewise.
71526         * math/s_ctanl.c (__ctanl): Likewise.
71527         * math/s_ctanhl.c (__ctanhl): Likewise.
71528
71529 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
71530
71531         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
71532         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
71533         (_IO_off_t): Define to __off_t, not _G_off_t.
71534         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
71535         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
71536         (_IO_wint_t): Define to wint_t, not _G_wint_t.
71537         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
71538         type of __dummy and __dummy2 fields.
71539         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
71540         (_G_ssize_t): Likewise.
71541         (_G_off_t): Likewise.
71542         (_G_pid_t): Likewise.
71543         (_G_uid_t): Likewise.
71544         (_G_wchar_t): Likewise.
71545         (_G_wint_t): Likewise.
71546         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
71547         (_G_ssize_t): Likewise.
71548         (_G_off_t): Likewise.
71549         (_G_pid_t): Likewise.
71550         (_G_uid_t): Likewise.
71551         (_G_wchar_t): Likewise.
71552         (_G_wint_t): Likewise.
71553         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
71554         (_G_ssize_t): Likewise.
71555         (_G_off_t): Likewise.
71556         (_G_pid_t): Likewise.
71557         (_G_uid_t): Likewise.
71558         (_G_wchar_t): Likewise.
71559         (_G_wint_t): Likewise.
71560
71561 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71562
71563         * malloc/arena.c: Include malloc-sysdep.h.
71564         (shrink_heap): Use check_may_shrink_heap to decide if madvise
71565         is sufficient to shrink the heap or an unmap is needed.
71566         * sysdeps/generic/malloc-sysdep.h: New file.  Define
71567         new function check_may_shrink_heap.
71568         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
71569         new function check_may_shrink_heap.
71570
71571 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
71572
71573         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
71574         comments.
71575
71576 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
71577
71578         * catgets/test-gencat.sh: Add "set -e".
71579         * elf/tst-pathopt.sh: Likewise.
71580         * grp/tst_fgetgrent.sh: Likewise.
71581         * iconvdata/run-iconv-test.sh: Likewise.
71582         * intl/tst-gettext.sh: Likewise.
71583         * intl/tst-gettext2.sh: Likewise.
71584         * intl/tst-gettext4.sh: Likewise.
71585         * intl/tst-gettext6.sh: Likewise.
71586         * intl/tst-translit.sh: Likewise.
71587         * io/ftwtest-sh: Likewise.
71588         * libio/test-freopen.sh: Likewise.
71589         * malloc/tst-mtrace.sh: Likewise.
71590         * posix/globtest.sh: Likewise.
71591         * posix/tst-getconf.sh: Likewise.
71592         * posix/wordexp-tst.sh: Likewise.
71593         * stdio-common/tst-printf.sh: Likewise.
71594         * stdio-common/tst-unbputc.sh: Likewise.
71595         * stdlib/tst-fmtmsg.sh: Likewise.
71596         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71597         * catgets/Makefile: Do not specify -e option when running
71598         testsuite shell scripts.
71599         * elf/Makefile: Likewise.
71600         * grp/Makefile: Likewise.
71601         * iconvdata/Makefile: Likewise.
71602         * intl/Makefile: Likewise.
71603         * io/Makefile: Likewise.
71604         * libio/Makefile: Likewise.
71605         * malloc/Makefile: Likewise.
71606         * posix/Makefile: Likewise.
71607         * stdio-common/Makefile: Likewise.
71608         * stdlib/Makefile: Likewise.
71609         * sysdeps/x86_64/Makefile: Likewise.
71610
71611         * io/ftwtest-sh: Add copyright header.
71612         * posix/globtest.sh: Likewise.
71613         * posix/tst-getconf.sh: Likewise.
71614         * posix/wordexp-tst.sh: Likewise.
71615         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
71616
71617 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
71618
71619         [BZ #13679]
71620         * Makeconfig (+link): Defined as $(+link-static) if
71621         $(build-shared) isn't yes.
71622         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
71623         isn't yes.
71624         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
71625
71626         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
71627
71628         [BZ #14562]
71629         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
71630         new chunk size with MALLOC_ALIGN_MASK.
71631
71632 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
71633
71634         [BZ #5044]
71635         * stdio-common/printf_fphex.c: Include <stdbool.h> and
71636         <rounding-mode.h>.
71637         (__printf_fphex): Determine rounding using get_rounding_mode and
71638         round_away.
71639         * stdio-common/tst-printf-round.c (struct hex_test): New
71640         structure.
71641         (hex_tests): New variable.
71642         (test_hex_in_one_mode): New function.
71643         (do_test): Also run tests for hex float output.
71644
71645 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
71646
71647         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71648         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71649         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
71650         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
71651         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
71652         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
71653         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71654         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
71655
71656 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
71657
71658         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
71659         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
71660         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
71661         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
71662
71663 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
71664
71665         [BZ #14579]
71666         * elf/rtld.c (dl_main): Limit the check for self loading to normal
71667         mode only.
71668         * elf/tst-rtld-load-self.sh: New test.
71669         * elf/Makefile: Run it.
71670
71671 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
71672
71673         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
71674         (tst-writev-ENV): Remove.
71675         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
71676
71677 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
71678
71679         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
71680
71681 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
71682
71683         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
71684         unconditional.
71685         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
71686         Likewise.
71687         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
71688         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
71689         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
71690         Likewise.
71691
71692 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
71693
71694         [BZ #14587]
71695         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
71696         * config.make.in (have-cpp-asm-debuginfo): Removed.
71697         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
71698         * configure: Regenerated.
71699
71700 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
71701
71702         [BZ #5044]
71703         * stdio-common/printf_fp.c: Include <stdbool.h> and
71704         <rounding-mode.h>.
71705         (___printf_fp): Determine rounding using get_rounding_mode and
71706         round_away.
71707         * stdio-common/tst-printf-round.c: New file.
71708         * stdio-common/Makefile (tests): Add tst-printf-round.
71709         (link-libm): New variable.
71710         ($(objpfx)tst-printf-round): Depend in $(link-libm).
71711
71712 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
71713
71714         [BZ #14576]
71715         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
71716         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
71717         Likewise.
71718         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
71719         Likewise.
71720
71721 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
71722
71723         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
71724         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71725         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71726         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
71727
71728 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
71729
71730         [BZ #14518]
71731         * include/rounding-mode.h: New file.
71732         * sysdeps/generic/get-rounding-mode.h: Likewise.
71733         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
71734         * stdlib/strtod_l.c: Include <rounding-mode.h>.
71735         (MAX_VALUE): New macro.
71736         (MIN_VALUE): Likewise.
71737         (overflow_value): New function.
71738         (underflow_value): Likewise.
71739         (round_and_return): Use overflow_value and underflow_value to
71740         determine return values in overflow and underflow cases.  Use
71741         round_away to determine rounding depending on rounding mode.
71742         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
71743         determine return values in overflow and underflow cases.
71744         * stdlib/tst-strtod-round.c: Include <fenv.h>.
71745         (struct test_results): New structure.
71746         (struct test): Use struct test_results to store expected results
71747         for all rounding modes.
71748         (TEST): Include expected results for all rounding modes.
71749         (test_in_one_mode): New function.
71750         (do_test): Use test_in_one_mode to compute and check results.
71751         Check results for all rounding modes.
71752         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
71753         $(link-libm).
71754
71755 2012-12-09  Allan McRae  <allan@archlinux.org>
71756
71757         * sysdeps/i386/fpu/libm-test-ulps: Update
71758
71759 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
71760
71761         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
71762         (_G_int32_t): Likewise.
71763         (_G_uint16_t): Likewise.
71764         (_G_uint32_t): Likewise.
71765         (_G_HAVE_BOOL): Likewise.
71766         (_G_HAVE_ATEXIT): Likewise.
71767         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71768         (_G_HAVE_IO_FILE_OPEN): Likewise.
71769         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
71770         (_G_int32_t): Likewise.
71771         (_G_uint16_t): Likewise.
71772         (_G_uint32_t): Likewise.
71773         (_G_HAVE_BOOL): Likewise.
71774         (_G_HAVE_ATEXIT): Likewise.
71775         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71776         (_G_HAVE_IO_FILE_OPEN): Likewise.
71777         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
71778         (_G_int32_t): Likewise.
71779         (_G_uint16_t): Likewise.
71780         (_G_uint32_t): Likewise.
71781         (_G_HAVE_BOOL): Likewise.
71782         (_G_HAVE_ATEXIT): Likewise.
71783         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
71784         (_G_HAVE_IO_FILE_OPEN): Likewise.
71785
71786 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
71787
71788         * csu/libc-tls.c: Update copyright years.
71789
71790 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
71791
71792         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
71793         [!_G_USING_THUNKS]: Remove conditional code.
71794         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
71795         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
71796
71797         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
71798         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
71799         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71800         (_G_VTABLE_LABEL_PREFIX): Likewise.
71801         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71802         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71803         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71804         (_G_VTABLE_LABEL_PREFIX): Likewise.
71805         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71806         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
71807         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
71808         (_G_VTABLE_LABEL_PREFIX): Likewise.
71809         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
71810
71811 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
71812
71813         * libio/Makefile: Include ../Makeconfig before tests.
71814         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
71815         only if $(build-shared) is yes.
71816
71817         * iconv/gconv_db.c: Update copyright years.
71818
71819 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71820
71821         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
71822         unwind info if defined PIC. Fix special cases description.
71823         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
71824
71825         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
71826         DP_HI_MASK entry.
71827         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
71828
71829 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
71830
71831         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
71832
71833         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
71834         is NULL.
71835
71836         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
71837         (LDLIBS-tst-chk4): This.
71838         (LDFLAGS-tst-chk5): Renamed to ...
71839         (LDLIBS-tst-chk5): This.
71840         (LDFLAGS-tst-chk6): Renamed to ...
71841         (LDLIBS-tst-chk6): This.
71842         (LDFLAGS-tst-lfschk4): Renamed to ...
71843         (LDLIBS-tst-lfschk4): This.
71844         (LDFLAGS-tst-lfschk5): Renamed to ...
71845         (LDLIBS-tst-lfschk5): This.
71846         (LDFLAGS-tst-lfschk6): Renamed to ...
71847         (LDLIBS-tst-lfschk6): This.
71848
71849         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
71850         on $(common-objpfx)soversions.mk.
71851
71852 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
71853
71854         [BZ #10014]
71855         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
71856         example host name.
71857
71858 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
71859
71860         * malloc/arena.c (arena_get_retry): New function that gets
71861         another arena for the caller to try its request on.
71862         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
71863         current arena cannot fulfill the request.
71864         (__libc_memalign): Likewise.
71865         (__libc_memalign): Likewise.
71866         (__libc_pvalloc): Likewise.
71867         (__libc_calloc): Likewise.
71868
71869 2012-09-05  John Tobey  <john.tobey@gmail.com>
71870
71871         [BZ #13542]
71872         * manual/arith.texi (Operations on Complex): Fix description
71873         of carg branch cut.
71874
71875 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71876
71877         [BZ #10014]
71878         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
71879         host name.
71880
71881         [BZ #10038]
71882         * manual/memory.texi (Memory): Make order of menu items match
71883         order of sections.
71884
71885 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71886
71887         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
71888         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
71889         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
71890
71891 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71892
71893         * csu/libc-tls.c (static_dtv): Renamed to ...
71894         (_dl_static_dtv): This.  Make it global.
71895         (_dl_initial_dtv): Removed.
71896         (__libc_setup_tls): Updated.
71897         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
71898         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
71899         DL_INITIAL_DTV.
71900
71901 2012-09-06  Petr Machata  <pmachata@redhat.com>
71902
71903         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
71904         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
71905         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
71906         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
71907
71908 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71909
71910         [BZ #14545]
71911         * csu/libc-tls.c (_dl_initial_dtv): New variable.
71912         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
71913         freeing dtv[-1].
71914
71915 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
71916
71917         [BZ #14544]
71918         * Makeconfig (link-static-before-libc): Replace $(+prector)
71919         with $(+prectorT).
71920         (link-static-after-libc): Replace $(+postctor) with
71921         $(+postctorT).
71922         (link-bounded): Replace $(+prector)/$(+postctor) with
71923         $(+prectorT)/$(+postctorT).
71924         (+prectorT): New macro.
71925         (+postctorT): Likewise.
71926
71927 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
71928
71929         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
71930         (round_str): Handle values above the maximum for IBM long double
71931         as inexact.
71932         * stdlib/tst-strtod-round.c (tests): Regenerated.
71933
71934 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
71935
71936         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
71937         assembler flag.
71938         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
71939         zarch_nohighgprs around the zarch optimized routines.
71940         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
71941         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
71942         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
71943         for zarch.
71944
71945 2012-09-05  David S. Miller  <davem@davemloft.net>
71946
71947         * sysdeps/sparc/fpu/libm-test-ulps: Update.
71948
71949         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
71950         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
71951         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
71952         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
71953         entries.
71954
71955 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71956
71957         * malloc/arena.c: Fold copyright years.
71958         * malloc/mcheck.c, malloc/memusage.c: Likewise.
71959
71960 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71961
71962         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
71963
71964 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71965
71966         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
71967
71968 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71969
71970         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
71971         change internal state upon failure.
71972
71973 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
71974
71975         * malloc/mcheck.c (mcheck_check_all): Fix typo.
71976         * malloc/memusage.c (mmap): Likewise.
71977         (mmap64, mremap): Likewise.  Adjust name in comment.
71978
71979 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71980
71981         * libio/fileops.c: Fix typos in comments.
71982         * libio/oldfileops.c: Likewise.
71983         * libio/wfileops.c: Likewise.
71984
71985 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
71986
71987         [BZ #1349]
71988         * malloc/Makefile (tests): Add tst-malloc-usable test case.
71989         (tst-malloc-usable-ENV): Set environment for test case.
71990         * malloc/hooks.c (malloc_check_get_size): New function to get
71991         requested size.
71992         * malloc/malloc.c (musable): Use malloc_check_get_size.
71993         * malloc/tst-malloc-usable.c: New test case.
71994
71995 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
71996
71997         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
71998
71999 2012-09-05  Allan McRae  <allan@archlinux.org>
72000
72001         [BZ #13966]
72002         * configure.in (CXX_SYSINCLUDES): Use compiler output to
72003         determine header location.
72004         * configure: Regenerated.
72005
72006 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
72007
72008         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
72009         float format.
72010         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
72011         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
72012         format.
72013         (test): Regenerate.
72014
72015 2012-09-04  David S. Miller  <davem@davemloft.net>
72016
72017         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
72018         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
72019         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
72020
72021 2012-09-04  Florian Weimer  <fweimer@redhat.com>
72022
72023         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
72024         failures.
72025
72026         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
72027
72028 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
72029
72030         [BZ #9914]
72031         * libio/iogetdelim.c: Include <limits.h>.
72032         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
72033         + len + 1 would overflow.
72034
72035 2012-09-03  Andreas Jaeger  <aj@suse.de>
72036
72037         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72038         * sysdeps/i386/fpu/libm-test-ulps: Update.
72039
72040 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72041
72042         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
72043         Add s_sinf-sse2, s_conf-sse2.
72044
72045         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
72046         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
72047         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
72048         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
72049
72050         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
72051         for using routine as __sinf_ia32.
72052         Use macro for function declaration and weak_alias.
72053         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
72054         for using routine as __cosf_ia32.
72055         Use macro for function declaration and weak_alias.
72056
72057         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
72058         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
72059
72060         * sysdeps/x86_64/fpu/s_sinf.S: New file.
72061         * sysdeps/x86_64/fpu/s_cosf.S: New file.
72062         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72063
72064         * math/libm-test.inc (cos_test): Add more test cases.
72065         (sin_test): Likewise.
72066         (sincos_test): Likewise.
72067
72068 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72069
72070         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
72071         (IFUNC_RESOLVE): Make pointers to the specialized implementations
72072         hidden.
72073         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
72074
72075 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
72076
72077         [BZ #14538]
72078         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
72079         first element of the GOT.
72080         (elf_machine_load_address): Return the difference between
72081         the runtime address of _DYNAMIC and elf_machine_dynamic ().
72082
72083 2012-09-01  Allan McRae  <allan@archlinux.org>
72084
72085         [BZ #13412]
72086         * configure.in (AWK): Require gawk version 3.0 or later.
72087         * configure: Regenerated.
72088
72089 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
72090
72091         * sysdeps/unix/sysv/linux/kernel-features.h
72092         (__ASSUME_POSIX_CPU_TIMERS): Remove.
72093         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72094         [__NR_clock_getres]: Make code unconditional.
72095         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
72096         (clock_getcpuclockid): Remove code left unreachable by removal of
72097         conditionals.
72098         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
72099         code unconditional.
72100         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
72101         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
72102         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
72103         Make code unconditional.
72104         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
72105         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
72106         * sysdeps/unix/sysv/linux/clock_settime.c
72107         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
72108         conditional code.
72109         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
72110         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
72111
72112 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
72113
72114         [BZ #14476]
72115         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
72116         scripts/test-installation.pl.
72117
72118         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
72119         and $ld_so_version if it is set.
72120
72121 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
72122
72123         [BZ #14516]
72124         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
72125         failure if reading from procfs failed.
72126         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
72127
72128 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
72129
72130         * sysdeps/unix/sysv/linux/kernel-features.h
72131         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
72132         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
72133         Remove conditional code.
72134         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72135         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
72136         Remove conditional code.
72137         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72138         * sysdeps/unix/sysv/linux/i386/fxstat.c
72139         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
72140         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72141         * sysdeps/unix/sysv/linux/i386/fxstatat.c
72142         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
72143         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72144         * sysdeps/unix/sysv/linux/i386/lxstat.c
72145         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
72146         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72147         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
72148         Remove conditional code.
72149         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72150         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
72151         Remove conditional code.
72152         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72153         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
72154         <kernel-features.h>.
72155         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
72156         Remove.
72157         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
72158         Remove conditional code.
72159         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
72160         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
72161         Remove conditional.
72162
72163 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
72164
72165         [BZ #5400]
72166         * NEWS: Add fixed bug number.
72167
72168 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
72169
72170         [BZ #14519]
72171         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
72172         underflowing exponent in case of negative sign.
72173         * stdlib/tst-strtod-round-data: Add more tests.
72174         * stdlib/tst-strtod-round.c (tests): Regenerated.
72175
72176         [BZ #3479]
72177         * stdlib/strtod_l.c (NDIG): Remove.
72178         (HEXNDIG): Likewise.
72179         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
72180         smallest representable value.
72181         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
72182         lie within an exact representation of 1/2 ulp of the result.
72183         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
72184         unconditionally.
72185         (TENS_P9_IDX): Define unconditionally.
72186         (TENS_P9_SIZE): Likewise.
72187         (TENS_P10_IDX): Likewise.
72188         (TENS_P10_SIZE): Likewise.
72189         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
72190         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
72191         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
72192         entries for 10^2^13 and 10^2^14.
72193         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
72194         (TENS_P13_IDX): Define.
72195         (TENS_P13_SIZE): Likewise.
72196         (TENS_P14_IDX): Likewise.
72197         (TENS_P14_SIZE): Likewise.
72198         (_fpioconst_pow10): Change array size to
72199         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
72200         unconditional.
72201         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
72202         1024]: Add entries for 10^2^13 and 10^2^14.
72203         [LAST_POW10 > _LAST_POW10]: Remove #error.
72204         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
72205         (_fpioconst_pow10): Change array size to
72206         FPIOCONST_POW10_ARRAY_SIZE.
72207         * stdlib/gen-fpioconst.c: New file.
72208         * stdlib/gen-tst-strtod-round.c: Likewise.
72209         * stdlib/tst-strtod-round-data: Likewise.
72210         * stdlib/tst-strtod-round.c: Likewise.
72211         * stdlib/Makefile (tests): Add tst-strtod-round.
72212
72213         [BZ #14459]
72214         * stdlib/strtod_l.c: Include <stdint.h>.
72215         (NDEBUG): Do not define.
72216         (round_and_return): Change EXPONENT parameter to type intmax_t.
72217         Rearrange calculations to avoid internal overflow possibilities.
72218         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
72219         Rearrange calculations to avoid internal overflow possibilities.
72220         Assert that number fits inside MPNSIZE limbs.
72221         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
72222         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
72223         calculations and add assertions to avoid internal overflow
72224         possibilities.  Add casts to avoid signed/unsigned operations.
72225         * stdlib/tst-strtod-overflow.c: New file.
72226         * stdlib/Makefile (tests): Add tst-strtod-overflow.
72227
72228 2012-08-25  Marek Polacek  <polacek@redhat.com>
72229
72230         * time/time.h: Fix some typos in comments.
72231
72232 2012-08-23  Roland McGrath  <roland@hack.frob.com>
72233
72234         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
72235         * posix/tst-rfc3484-2.c: Likewise.
72236         * posix/tst-rfc3484-3.c: Likewise.
72237
72238 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
72239
72240         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
72241         (EF_ARM_ABI_FLOAT_HARD): Likewise.
72242
72243 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
72244
72245         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
72246         #include of fxstatat64.c.
72247
72248 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72249
72250         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
72251         * shadow/getspent_r.c: Likewise.
72252         * shadow/getspnam.c: Likewise.
72253         * shadow/getspnam_r.c: Likewise.
72254         * gshadow/getsgent.c: Likewise.
72255         * gshadow/getsgent_r.c: Likewise.
72256         * gshadow/getsgnam.c: Likewise.
72257         * gshadow/getsgnam_r.c: Likewise.
72258         * inet/getnetbyad.c: Likewise.
72259         * inet/getnetbyad_r.c: Likewise.
72260         * inet/getnetbynm.c: Likewise.
72261         * inet/getnetbynm_r.c: Likewise.
72262         * inet/getnetent.c: Likewise.
72263         * inet/getnetent_r.c: Likewise.
72264         * inet/getproto.c: Likewise.
72265         * inet/getproto_r.c: Likewise.
72266         * inet/getprtent.c: Likewise.
72267         * inet/getprtent_r.c: Likewise.
72268         * inet/getprtname.c: Likewise.
72269         * inet/getprtname_r.c: Likewise.
72270         * inet/getrpcbyname.c: Likewise.
72271         * inet/getrpcbyname_r.c: Likewise.
72272         * inet/getrpcbynumber.c: Likewise.
72273         * inet/getrpcbynumber_r.c: Likewise.
72274         * inet/getrpcent.c: Likewise.
72275         * inet/getrpcent_r.c: Likewise.
72276         * inet/getaliasent.c: Likewise.
72277         * inet/getaliasent_r.c: Likewise.
72278         * inet/getaliasname.c: Likewise.
72279         * inet/getaliasname_r.c: Likewise.
72280         * nscd/getgrgid_r.c: Likewise.
72281         * nscd/getgrnam_r.c: Likewise.
72282         * nscd/gethstbyad_r.c: Likewise.
72283         * nscd/gethstbynm3_r.c: Likewise.
72284         * nscd/getpwnam_r.c: Likewise.
72285         * nscd/getpwuid_r.c: Likewise.
72286         * nscd/getsrvbynm_r.c: Likewise.
72287         * nscd/getsrvbypt_r.c: Likewise.
72288         * nscd/gai.c: Likewise.
72289
72290         * configure.in (build_nscd): New substituted variable, set
72291         by --disable-build-nscd and defaults to $use_nscd.
72292         * configure: Regenerated.
72293         * config.make.in (build-nscd): New substituted variable.
72294         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
72295         Change conditional to require [$(build-nscd) = yes] as well.
72296         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
72297
72298         [BZ #13696]
72299         * configure.in (use_nscd): New substituted variable, set by
72300         --disable-nscd.  If enabled, define USE_NSCD.
72301         * configure: Regenerated.
72302         * config.h.in: Add USE_NSCD.
72303         * config.make.in (use-nscd): New substituted variable.
72304         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
72305         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
72306         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
72307         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
72308         (CFLAGS-getgrnam_r.c): Likewise.
72309         (CFLAGS-initgroups.c): Likewise.
72310         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
72311         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
72312         Variables removed.
72313         * inet/getnetgrent_r.c
72314         (nscd_setnetgrent): New function, broken out of ...
72315         (setnetgrent): ... here.  Call it.
72316         (innetgr): Conditionalize nscd bits on [USE_NSCD].
72317         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
72318         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
72319         * nscd/Makefile (routines, aux): Move definitions after include of
72320         Makeconfig.  Conditionalize on [$(use-nscd) != no].
72321         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
72322         Conditionalize on [USE_NSCD].
72323         (is_nscd, nscd_init_cb): Likewise.
72324         (nss_load_library): Conditionalize init callback on [USE_NSCD].
72325         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
72326         * nss/nss_db/db-init.c: Likewise.
72327         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
72328         [USE_NSCD].
72329         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
72330         (make_request): Use it.
72331         (cache_valid_p): New function.
72332         (__check_pf): Use it.
72333         * NEWS: Add item for --disable-nscd.
72334
72335 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
72336
72337         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
72338         to support sed >= 4.2.1-20-ga9bf076.
72339         * configure: Regenerated.
72340
72341 2012-08-22  Roland McGrath  <roland@hack.frob.com>
72342
72343         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
72344         Conditionalize whole body on [IREL].
72345
72346 2012-08-22  Jeff Law <law@redhat.com>
72347
72348         [BZ #14505]
72349         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
72350         if the family is PF_UNSPEC.
72351
72352 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
72353
72354         * Makerules (lib-version): Rename from V.
72355         (install-lib-nosubdir): Change V to lib-version.
72356
72357 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
72358
72359         [BZ #14252]
72360         * powerpc32/power6/wcschr.c: New file.
72361         * powerpc32/power6/wcscpy.c: New file.
72362         * powerpc32/power6/wcsrchr.c: New file.
72363         * powerpc64/power6/wcschr.c: New file.
72364         * powerpc64/power6/wcscpy.c: New file.
72365         * powerpc64/power6/wcsrchr.c: New file.
72366
72367 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72368
72369         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
72370         (two_way_short_needle): Use it.
72371         * string/strstr.c (AVAILABLE1_USES_J): Define.
72372         * string/strcasestr.c: Likewise.
72373
72374         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
72375         array references.
72376         * string/strcasestr.c (TOLOWER): Make side-effect safe.
72377
72378         [BZ #11607]
72379         * NEWS: Add an entry.
72380         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
72381         define their defaults.
72382         (two_way_short_needle): Detect end-of-string on-the-fly.
72383         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
72384         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
72385         * string/bug-strcasestr1.c: New test.
72386         * string/Makefile: Run it.
72387
72388 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
72389
72390         [BZ #11607]
72391         * string/str-two-way.h (two_way_short_needle): Optimize matching of
72392         the first character.
72393
72394 2012-08-21  Roland McGrath  <roland@hack.frob.com>
72395
72396         * csu/elf-init.c (__libc_csu_irel): Function removed.
72397         * csu/libc-start.c (apply_irel): New function.
72398         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
72399
72400 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
72401
72402         * sysdeps/unix/sysv/linux/kernel-features.h
72403         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
72404         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
72405         <kernel-features.h>.
72406         [__NR_fadvise64_64]: Make code unconditional.
72407         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
72408         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72409         !__NR_fadvise64_64)]: Likewise.
72410         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
72411         !__NR_fadvise64_64))]: Likewise.
72412         [__NR_fadvise64]: Make code unconditional.
72413         [!__NR_fadvise64]: Remove conditional code.
72414         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
72415         <kernel-features.h>.
72416         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72417         unconditional.
72418         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72419         conditional code.
72420         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
72421         not include <kernel-features.h>.
72422         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72423         unconditional.
72424         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72425         conditional code.
72426         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
72427         include <kernel-features.h>.
72428         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
72429         unconditional.
72430         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
72431         conditional code.
72432
72433 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
72434
72435         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
72436         slight instruction rearrangements per scrollpipe analysis.
72437         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
72438
72439 2012-08-20  Roland McGrath  <roland@hack.frob.com>
72440
72441         * manual/syslog.texi (syslog; vsyslog, closelog):
72442         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
72443         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
72444
72445         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
72446         DSOCAPS to match condition on defining it.
72447
72448 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
72449
72450         * sysdeps/unix/sysv/linux/kernel-features.h
72451         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
72452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
72453         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72454         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
72456         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72457         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
72459         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
72460         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
72461
72462         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
72463         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
72464
72465         * sysdeps/unix/sysv/linux/kernel-features.h
72466         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
72467         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
72468         unconditional.
72469         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72470         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
72471         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72472         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72473         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
72474         Make code unconditional.
72475         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72476         (__mmap64) [!__NR_mmap2]: Likewise.
72477         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
72478         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
72479         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72480         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
72481         [__NR_mmap2]: Make code unconditional.
72482         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
72483         (__mmap64) [!__NR_mmap2]: Likewise.
72484
72485 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72486
72487         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
72488
72489 2012-08-18  Andreas Jaeger  <aj@suse.de>
72490
72491         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
72492
72493 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72494
72495         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
72496         * include/unistd.h (__have_sock_cloexec): Likewise.
72497         (__have_pipe2): Likewise.
72498         (__have_dup3): Likewise.
72499
72500 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
72501
72502         [BZ #9685]
72503         * include/unistd.h (__have_pipe2): Change define into an extern int.
72504         (__have_dup3): Likewise.
72505         * socket/have_sock_cloexec.c: Include fcntl.h.
72506         (__have_pipe2): New variable.
72507         (__have_dup3): Likewise.
72508
72509 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
72510
72511         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
72512
72513 2012-08-17  Marek Polacek  <polacek@redhat.com>
72514
72515         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
72516         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
72517
72518 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72519
72520         * configure.in: Add AC_SUBST for sysheaders.
72521         * configure: Regenerated.
72522         * config.make.in (sysheaders): New substituted variable.
72523
72524         * sysdeps/unix/mkfifo.c: Moved ...
72525         * sysdeps/posix/mkfifo.c: ... here.
72526         * sysdeps/unix/mkfifoat.c: Moved ...
72527         * sysdeps/posix/mkfifoat.c: ... here.
72528
72529         * sysdeps/unix/utime.c: Moved ...
72530         * sysdeps/posix/utime.c: ... here.
72531
72532         * sysdeps/unix/time.c: Moved ...
72533         * sysdeps/posix/time.c: ... here.
72534         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
72535         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
72536
72537         * sysdeps/unix/nice.c: Moved ...
72538         * sysdeps/posix/nice.c: ... here.
72539
72540         * sysdeps/unix/alarm.c: Moved ...
72541         * sysdeps/posix/alarm.c: ... here.
72542
72543         * intl/Makefile ($(codeset_mo)): Depend on the input file.
72544
72545 2012-08-17  Jeff Law <law@redhat.com>
72546
72547         * intl/Makefile (codeset_mo): New variable.
72548         ($(codeset_mo)): New target.
72549         (tst-codeset.out): Depend on that.  Remove explicit rule.
72550         (tst-gettext3.out, tst-gettext5.out): Likewise.
72551         (LOCPATH-ENV, tst-codeset-ENV): New variables.
72552         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
72553         * intl/tst-codeset.sh: Remove.
72554         * intl/tst-gettext3.sh: Likewise.
72555         * intl/tst-gettext5.sh: Likewise.
72556
72557 2012-08-17  Roland McGrath  <roland@hack.frob.com>
72558
72559         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
72560         * sysdeps/unix/syscalls.list: ... here.
72561
72562         * sysdeps/posix/getaddrinfo.c
72563         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
72564         (gaiconf_init, gaiconf_reload): Use them.
72565         [!_STATBUF_ST_NSEC]
72566         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
72567         Define using time_t rather than struct timespec.
72568
72569         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
72570         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
72571         Macros removed.
72572         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
72573         [!NO_THREADS].
72574         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
72575         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
72576         Likewise.
72577
72578         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
72579         __libc_cleanup_push argument.
72580
72581         * bits/param.h: New file.
72582         * misc/sys/param.h: New file.
72583         * include/sys/param.h: New file.
72584         * misc/Makefile (headers): Add bits/param.h.
72585         * sysdeps/generic/sys/param.h: File removed.
72586         * sysdeps/unix/sysv/linux/bits/param.h: New file.
72587         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
72588         * sysdeps/mach/hurd/bits/param.h: New file.
72589         * sysdeps/mach/hurd/sys/param.h: File removed.
72590
72591         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
72592         last change.
72593
72594         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
72595         [_IO_MTSAFE_IO].
72596         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
72597         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
72598         New macros.
72599
72600         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
72601         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
72602         rather than -D_IO_MTSAFE_IO conditionally.
72603         * stdio-common/Makefile (CPPFLAGS): Likewise.
72604         * wcsmbs/Makefile (CPPFLAGS): Likewise.
72605         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
72606         Use $(libio-mtsafe).
72607         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
72608         of -D_IO_MTSAFE_IO.
72609         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
72610         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
72611         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
72612         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
72613         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
72614         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
72615         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
72616         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
72617         (CFLAGS-fread_u_chk.c): Likewise.
72618         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
72619         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
72620         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
72621         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
72622         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
72623         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
72624         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
72625         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
72626         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
72627
72628         * libio/Makefile: Test [$(libc-reentrant) = yes]
72629         instead of [$(filter %REENTRANT, $(defines)) nonempty].
72630
72631         * Makeconfig
72632         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
72633         * sysdeps/pthread/configure: File removed.
72634         * sysdeps/pthread/Makeconfig: New file.
72635         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
72636         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
72637
72638 2012-08-16  Gary Benson  <gbenson@redhat.com>
72639
72640         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
72641         unmapping the first object in a namespace.
72642
72643 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72644
72645         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
72646         (__internal_setnetgrent): ... this.  Add internal_function to
72647         definition.  Add libc_hidden_def.
72648         (setnetgrent): Update caller.
72649         (internal_endnetgrent): Renamed to ...
72650         (__internal_endnetgrent): ... this.  Add internal_function to
72651         definition.  Add libc_hidden_def.
72652         (endnetgrent): Update caller.
72653         (internal_getnetgrent_r): Renamed to ...
72654         (__internal_getnetgrent_r): ... this.  Add internal_function to
72655         definition.  Add libc_hidden_def.
72656         (__getnetgrent_r): Update caller.
72657         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
72658
72659 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72660
72661         * stdlib/longlong.h: Update from GCC.
72662
72663 2012-08-16  Roland McGrath  <roland@hack.frob.com>
72664
72665         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
72666         on _QL, which is set by umul_ppmm but never used.
72667         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
72668         variables, which are set by GMP macros but never used.
72669         * stdio-common/_itowa.c (_itowa): Likewise.
72670         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
72671         * stdlib/mod_1.c (mpn_mod_1): Likewise.
72672
72673 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
72674
72675         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
72676         struct La_sh_regs is not constant.
72677         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
72678         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
72679         and struct La_sparc64_regs are not constant.
72680
72681 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
72682
72683         * sysdeps/unix/sysv/linux/kernel-features.h
72684         (__ASSUME_POSIX_TIMERS): Remove.
72685         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
72686         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72687         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
72688         Make code unconditional.
72689         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72690         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
72691         Make code unconditional.
72692         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72693         * sysdeps/unix/sysv/linux/clock_nanosleep.c
72694         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
72695         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72696         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
72697         Make code unconditional.
72698         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
72699         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
72700         (__libc_missing_posix_timers): Remove.
72701
72702 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72703
72704         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
72705         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
72706
72707         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
72708
72709         * elf/dl-sym.c: Include <stdlib.h>.
72710
72711         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
72712         constants, which avoids warnings in 32-bit builds.
72713
72714         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
72715         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
72716
72717         * misc/lseek.c: File moved to ...
72718         * io/lseek.c: ... here.
72719
72720         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
72721
72722         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
72723         shifting LEN more than 31 bits at once.
72724
72725 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72726
72727         [BZ #14195]
72728         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
72729         segmentation fault for a case of two empty input strings.
72730         * string/test-strncasecmp.c (check1): Renamed to...
72731         (bz12205): ...this.
72732         (bz14195): Add new testcase for two empty input strings and N > 0.
72733         (test_main): Call new testcase, adapt for renamed function.
72734
72735 2012-08-15  Andreas Jaeger  <aj@suse.de>
72736
72737         [BZ #14090]
72738         * crypt/md5test2.c: New test, based on test supplied by Serge
72739         Belyshev <belyshev@depni.sinp.msu.ru>.
72740         * crypt/Makefile (xtests): Add md5test-giant..
72741         * crypt/Makefile ($(objpfx)md5test-giant): Add.
72742
72743 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         [BZ #14090]
72746         * crypt/md5.c (md5_process_block): Don't assume the buffer
72747         length is less than 2**32.
72748         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
72749         length is less than 2**64.
72750
72751 2012-08-15  Roland McGrath  <roland@hack.frob.com>
72752
72753         * string/str-two-way.h: Include <sys/param.h>.
72754         (MAX): Macro removed.
72755
72756         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
72757         Move #define and #undef of memmove to just before and after
72758         including <string.h>.
72759
72760         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
72761         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
72762         and after including <string.h>.  Move declarations of
72763         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
72764         to before #include "string/memmove.c".
72765
72766         * include/dirent.h: Declare __getdirentries.
72767
72768         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
72769         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
72770
72771 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
72772
72773         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
72774         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
72775         * sysdeps/i386/configure: Regenerated.
72776         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
72777         STABS_CURRENT_FILE, and STABS_FUN.
72778         (END): Remove call to STABS_FUN_END.
72779         (STABS_CURRENT_FILE1): Delete.
72780         (STABS_CURRENT_FILE): Likewise.
72781         (STABS_FUN): Likewise.
72782         (STABS_FUN_END): Likewise.
72783         (STABS_FUN2): Likewise.
72784         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
72785         * sysdeps/x86_64/configure: Regenerated.
72786
72787 2012-08-14  Roland McGrath  <roland@hack.frob.com>
72788
72789         * elf/dl-open.c: Include <atomic.h>.
72790         * elf/dl-lookup.c: Likewise.
72791
72792 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
72793
72794         * sysdeps/unix/sysv/linux/kernel-features.h
72795         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
72796         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
72797         unconditionally.
72798         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
72799         unconditionally.
72800         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
72801         condition on __ASSUME_CLONE_THREAD_FLAGS.
72802
72803 2012-08-14  Andreas Jaeger  <aj@suse.de>
72804
72805         * sysdeps/i386/fpu/libm-test-ulps: Update.
72806
72807 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
72808
72809         * include/atomic.h (atomic_exchange_and_add): Split into ...
72810         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
72811         New atomic macros.
72812
72813 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
72814
72815         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
72816
72817 2012-08-13  Jeff Law <law@redhat.com>
72818
72819         * manual/stdio.texi (snprintf): Clarify handling of the trailing
72820         null byte in the output string.
72821
72822 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
72823
72824         * sysdeps/unix/sysv/linux/kernel-features.h
72825         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
72826         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
72827         (__ASSUME_ARG_MAX_STACK_BASED): Define.
72828         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
72829         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
72830         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
72831         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
72832
72833 2012-08-09  Jeff Law <law@redhat.com>
72834
72835         [BZ #13939]
72836         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
72837         When avoid_arena is set, don't retry in the that arena.  Pick the
72838         next one, whatever it might be.
72839         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
72840         (arena_lock): Pass in new parameter to arena_get2.
72841         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
72842         arena_get2.
72843         (__libc_malloc): Unify retrying after main arena failure with
72844         __libc_memalign version.
72845         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
72846
72847 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
72848
72849         [BZ #14166]
72850         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
72851         to __redirect_strstr.
72852         (__strstr_sse42): Use typeof __redirect_strstr.
72853         (__strstr_ia32): Likewise.
72854         (__libc_strstr): New prototype.
72855         (strstr): Renamed to ...
72856         (__libc_strstr): This.
72857         (strstr): New strong alias of __libc_strstr.
72858         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
72859         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
72860         __redirect_time.
72861         Include <time.h>.
72862         (__libc_time): New prototype.
72863         (time_ifunc): Replace time with __libc_time.
72864         (time): New strong alias and hidden definition of __libc_time.
72865         (__GI_time): Remove strong alias.
72866         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
72867         Include <stddef.h>.
72868         (memmove): Redefined to __redirect_memmove.
72869         (__memmove_sse2): Use typeof __redirect_memmove.
72870         (__memmove_ssse3): Likewise.
72871         (__memmove_ssse3_back): Likewise.
72872         (__libc_memmove): New prototype.
72873         (memmove): Renamed to ...
72874         (__libc_memmove): This.
72875         (memmove): New strong alias of __libc_memmove.
72876
72877 2012-08-08  Mark Salter  <msalter@redhat.com>
72878
72879         * elf/elf.h
72880         (R_MN10300_TLS_GD): Define.
72881         (R_MN10300_TLS_LD): Likewise.
72882         (R_MN10300_TLS_LDO): Likewise.
72883         (R_MN10300_TLS_GOTIE): Likewise.
72884         (R_MN10300_TLS_IE): Likewise.
72885         (R_MN10300_TLS_LE): Likewise.
72886         (R_MN10300_TLS_DTPMOD): Likewise.
72887         (R_MN10300_TLS_DTPOFF): Likewise.
72888         (R_MN10300_TLS_TPOFF): Likewise.
72889         (R_MN10300_SYM_DIFF): Likewise.
72890         (R_MN10300_ALIGN): Likewise.
72891         (R_MN10300_NUM): Update.
72892
72893 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
72894
72895         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
72896         Remove.
72897
72898 2012-08-08  Roland McGrath  <roland@hack.frob.com>
72899
72900         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
72901
72902         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
72903         sysdeps/unix -> sysdeps/posix move.
72904         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
72905
72906 2012-08-07      Allan McRae     <allan@archlinux.org>
72907
72908         [BZ #14303]
72909         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
72910         (SUNOS_CPP): Likewise.
72911         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
72912         not found.
72913         (open_input): Call CPP using execvp.
72914
72915 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72916
72917         * sysdeps/unix/sysv/linux/kernel-features.h
72918         (__ASSUME_PROT_GROWSUPDOWN): Remove.
72919         (__ASSUME_NO_CLONE_DETACHED): Likewise.
72920         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
72921         (__ASSUME_WAITID_SYSCALL): Likewise.
72922         * sysdeps/unix/sysv/linux/dl-execstack.c
72923         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
72924         code unconditional.
72925         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
72926         conditional code.
72927         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
72928         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
72929         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
72930         code.
72931         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
72932         unconditional.
72933         [__ASSUME_WAITID_SYSCALL]: Likewise.
72934         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
72935
72936 2012-08-07  Roland McGrath  <roland@hack.frob.com>
72937
72938         * sysdeps/unix/closedir.c: Renamed to ...
72939         * sysdeps/posix/closedir.c: ... here.
72940         * sysdeps/unix/dirfd.c: Renamed to ...
72941         * sysdeps/posix/dirfd.c: ... here.
72942         * sysdeps/unix/dirstream.h: Renamed to ...
72943         * sysdeps/posix/dirstream.h: ... here.
72944         * sysdeps/unix/fdopendir.c: Renamed to ...
72945         * sysdeps/posix/fdopendir.c: ... here.
72946         * sysdeps/unix/opendir.c: Renamed to ...
72947         * sysdeps/posix/opendir.c: ... here.
72948         * sysdeps/unix/readdir.c: Renamed to ...
72949         * sysdeps/posix/readdir.c: ... here.
72950         * sysdeps/unix/readdir_r.c: Renamed to ...
72951         * sysdeps/posix/readdir_r.c: ... here.
72952         * sysdeps/unix/rewinddir.c: Renamed to ...
72953         * sysdeps/posix/rewinddir.c: ... here.
72954         * sysdeps/unix/seekdir.c: Renamed to ...
72955         * sysdeps/posix/seekdir.c: ... here.
72956         * sysdeps/unix/telldir.c: Renamed to ...
72957         * sysdeps/posix/telldir.c: ... here.
72958         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
72959         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
72960         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
72961         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
72962
72963         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
72964         * bits/fcntl.h: ... here.
72965
72966         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
72967         not 0.
72968         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
72969         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
72970         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
72971         (struct flock): Move l_start, l_len to the beginning.
72972         Use __pid_t for l_pid.
72973         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
72974         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
72975         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
72976         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
72977         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
72978         [__USE_LARGEFILE64] (struct flock64): New type.
72979         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
72980
72981         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
72982         * bits/dirent.h: ... here.
72983
72984         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
72985         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
72986
72987 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
72988
72989         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
72990         Change from 2.6.0 to 2.6.16.
72991         * sysdeps/unix/sysv/linux/configure: Regenerated.
72992         * sysdeps/unix/sysv/linux/kernel-features.h
72993         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
72994         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
72995         version.
72996         (__ASSUME_UTIMES): Likewise.
72997         (__ASSUME_CLONE_STOPPED): Remove.
72998         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
72999         architectures, not kernel version.
73000         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
73001         (__ASSUME_NO_CLONE_DETACHED): Likewise.
73002         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
73003         (__ASSUME_WAITID_SYSCALL): Likewise.
73004         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
73005         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
73006         * README: State 2.6.16 as minimum Linux kernel version.  Do not
73007         refer to older versions.
73008
73009 2012-08-06  Roland McGrath  <roland@hack.frob.com>
73010
73011         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
73012         Define alphasort64 as an alias.
73013         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
73014         Define versionsort64 as an alias.
73015         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
73016         Define scandir64 as an alias.
73017         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
73018         Define scandirat64 as an alias.
73019         * dirent/alphasort64.c (alphasort64):
73020         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
73021         * dirent/versionsort64.c: Likewise.
73022         * dirent/scandir64.c: Likewise.
73023         * dirent/scandirat64.c: Likewise.
73024         * sysdeps/wordsize-64/alphasort.c: File removed.
73025         * sysdeps/wordsize-64/alphasort64.c: File removed.
73026         * sysdeps/wordsize-64/scandir.c: File removed.
73027         * sysdeps/wordsize-64/scandir64.c: File removed.
73028         * sysdeps/wordsize-64/scandirat.c: File removed.
73029         * sysdeps/wordsize-64/scandirat64.c: File removed.
73030         * sysdeps/wordsize-64/versionsort.c: File removed.
73031         * sysdeps/wordsize-64/versionsort64.c: File removed.
73032         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
73033         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
73034         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
73035         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
73036         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
73037         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
73038         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
73039         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
73040
73041         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
73042         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
73043         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
73044         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
73045         [defined __arch64__ || defined __sparcv9]
73046         (__INO_T_MATCHES_INO64_T): New macro.
73047         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
73048         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
73049         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
73050         * sysdeps/unix/sysv/linux/bits/dirent.h
73051         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
73052         (_DIRENT_MATCHES_DIRENT64): New macro.
73053
73054         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
73055         Define lockf64 as an alias.
73056         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
73057         Define fseeko64 as an alias.
73058         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
73059         Define ftello64 as an alias.
73060         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
73061         Define _IO_fgetpos64 and fgetpos64 as aliases.
73062         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
73063         Define _IO_fsetpos64 and fsetpos64 as aliases.
73064         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
73065         Conditionalize body on this.
73066         * libio/fseeko64.c: Likewise.
73067         * libio/ftello64.c: Likewise.
73068         * libio/iofgetpos64.c: Likewise.
73069         * libio/iofsetpos64.c: Likewise.
73070         * sysdeps/wordsize-64/lockf.c: File removed.
73071         * sysdeps/wordsize-64/lockf64.c: File removed.
73072         * sysdeps/wordsize-64/fseeko.c: File removed.
73073         * sysdeps/wordsize-64/fseeko64.c: File removed.
73074         * sysdeps/wordsize-64/ftello.c: File removed.
73075         * sysdeps/wordsize-64/ftello64.c: File removed.
73076         * sysdeps/wordsize-64/iofgetpos.c: File removed.
73077         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
73078         * sysdeps/wordsize-64/iofsetpos.c: File removed.
73079         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
73080         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
73081         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
73082         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
73083         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
73084         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
73085         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
73086         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
73087         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
73088         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
73089         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
73090
73091         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
73092         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
73093         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
73094         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
73095         [defined __arch64__ || defined __sparcv9]
73096         (__OFF_T_MATCHES_OFF64_T): New macro.
73097         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
73098         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
73099         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
73100         (__OFF_T_MATCHES_OFF64_T): New macro.
73101
73102 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
73103
73104         * stdlib/secure-getenv.c (__secure_getenv): Replace
73105         GLIBC_2_16 with GLIBC_2_17.
73106
73107 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
73108
73109         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
73110         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
73111
73112 2012-08-03  David S. Miller  <davem@davemloft.net>
73113
73114         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73115
73116 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
73117
73118         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
73119         Remove.
73120         (__ASSUME_CORRECT_SI_PID): Likewise.
73121         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
73122         (__ASSUME_TMPFS_NAME): Likewise.
73123         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
73124         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
73125         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
73126         (HAVE_AUX_SECURE): Make definition unconditional.
73127         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
73128         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
73129
73130 2012-08-03  Roland McGrath  <roland@hack.frob.com>
73131
73132         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
73133         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
73134         * sysdeps/mach/hurd/eloop-threshold.h: New file.
73135         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
73136         __eloop_threshold instead of SYMLOOP_MAX.
73137
73138         * sysdeps/generic/eloop-threshold.h: New file.
73139         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
73140         of MAXSYMLINKS.
73141         * elf/chroot_canon.c (chroot_canon): Likewise.
73142
73143 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
73144
73145         [BZ #13717]
73146         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73147         Change to 2.6.0 everywhere.
73148         * sysdeps/unix/sysv/linux/configure: Regenerated.
73149         * sysdeps/unix/sysv/linux/kernel-features.h
73150         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
73151         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
73152         kernel versions.
73153         (__ASSUME_POSIX_TIMERS): Define unconditionally.
73154         (__ASSUME_FUTEX_REQUEUE): Remove.
73155         (__ASSUME_STATFS64): Define unconditionally.
73156         (__ASSUME_AT_SECURE): Likewise.
73157         (__ASSUME_CORRECT_SI_PID): Likewise.
73158         (__ASSUME_TGKILL): Define without depending on kernel version for
73159         i386.
73160         (__ASSUME_UTIMES): Likewise.
73161         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
73162         kernel version.
73163         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
73164         (__ASSUME_TMPFS_NAME): Likewise.
73165         * README: Update reference to Linux kernel versions.
73166
73167 2012-08-02  Marek Polacek  <polacek@redhat.com>
73168
73169         [BZ #14150]
73170         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
73171         libc_cv_asm_type_prefix with %.
73172         * configure: Regenerated.
73173         * include/libc-symbols.h: Remove comment about
73174         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
73175         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
73176         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
73177         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
73178         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
73179         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
73180         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
73181         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
73182         * elf/tst-unique2mod1.c: Likewise.
73183         * elf/tst-unique1mod2.c: Likewise.
73184         * elf/tst-unique1mod1.c: Likewise.
73185         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
73186         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
73187         Replace ASM_TYPE_DIRECTIVE with .type.
73188         * sysdeps/s390/s390-64/sysdep.h: Likewise.
73189         * sysdeps/i386/sysdep.h: Likewise.
73190         * sysdeps/x86_64/sysdep.h: Likewise.
73191         * sysdeps/sh/sysdep.h: Likewise.
73192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
73193         Do not define ASM_TYPE_DIRECTIVE.
73194         * sysdeps/powerpc/sysdep.h: Likewise.
73195         * sysdeps/powerpc/powerpc32/sysdep.h:
73196         Replace ASM_TYPE_DIRECTIVE with .type.
73197         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
73198         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
73199         * sysdeps/i386/fpu/e_powf.S: Likewise.
73200         * sysdeps/i386/fpu/e_expl.S: Likewise.
73201         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
73202         * sysdeps/i386/fpu/e_acosh.S: Likewise.
73203         * sysdeps/i386/fpu/e_pow.S: Likewise.
73204         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
73205         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
73206         * sysdeps/i386/fpu/s_expm1.S: Likewise.
73207         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
73208         * sysdeps/i386/fpu/e_log2.S: Likewise.
73209         * sysdeps/i386/fpu/e_log2l.S: Likewise.
73210         * sysdeps/i386/fpu/e_scalb.S: Likewise.
73211         * sysdeps/i386/fpu/e_powl.S: Likewise.
73212         * sysdeps/i386/fpu/e_log10f.S: Likewise.
73213         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
73214         * sysdeps/i386/fpu/e_logl.S: Likewise.
73215         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
73216         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
73217         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
73218         * sysdeps/i386/fpu/e_log2f.S: Likewise.
73219         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
73220         * sysdeps/i386/fpu/e_log.S: Likewise.
73221         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
73222         * sysdeps/i386/fpu/e_logf.S: Likewise.
73223         * sysdeps/i386/fpu/e_log10l.S: Likewise.
73224         * sysdeps/i386/fpu/e_atanh.S: Likewise.
73225         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
73226         * sysdeps/i386/fpu/e_log10.S: Likewise.
73227         * sysdeps/i386/fpu/s_frexp.S: Likewise.
73228         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
73229         * sysdeps/i386/fpu/s_asinh.S: Likewise.
73230         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
73231         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
73232         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
73233         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
73234         * sysdeps/i386/i686/strtok.S: Likewise.
73235         * sysdeps/i386/i386-mcount.S: Likewise.
73236         * sysdeps/i386/strtok.S: Likewise.
73237         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
73238         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
73239         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
73240         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
73241         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
73242         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
73243         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
73244         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
73245         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
73246         * sysdeps/x86_64/_mcount.S: Likewise.
73247         * sysdeps/x86_64/strtok.S: Likewise.
73248         * sysdeps/sh/_mcount.S: Likewise.
73249
73250 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73251
73252         * libio/iofopen.c: Include <fcntl.h>.
73253         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
73254         (_IO_fopen64, fopen64): Define as aliases.
73255         * libio/iofopen64.c: Include <fcntl.h>.
73256         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
73257         Conditionalize body on this.
73258         * sysdeps/wordsize-64/iofopen.c: File removed.
73259         * sysdeps/wordsize-64/iofopen64.c: File removed.
73260
73261 2012-08-01  Marek Polacek  <polacek@redhat.com>
73262
73263         * libc/Makeconfig: Use elf in place of binfmt-subdir.
73264         Use dlfcn directly instead of a variable.
73265         (binfmt-subdir): Do not define.
73266         (dlfcn): Likewise.
73267
73268 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
73269
73270         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
73271         Remove all definitions.
73272         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
73273         <kernel-features.h>.
73274         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
73275         (miss_F_GETOWN_EX): Remove all definitions.
73276         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
73277         macro definition.
73278         [!__ASSUME_FCNTL64]: Remove conditional code.
73279         [__ASSUME_FCNTL64]: Make code unconditional.
73280         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
73281         <kernel-features.h>.
73282         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
73283         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
73284         (lockf64) [__NR_fcntl64]: Make code unconditional.
73285         (lockf64) [__ASSUME_FCNTL64]: Likewise.
73286
73287         * sysdeps/unix/sysv/linux/kernel-features.h
73288         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
73289         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
73290         Make code unconditional.
73291         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73292         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
73294         [__NR_vfork]: Make code unconditional.
73295         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73296         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
73298         [__NR_vfork]: Make code unconditional.
73299         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
73300         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
73301
73302 2012-08-01  Roland McGrath  <roland@hack.frob.com>
73303
73304         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
73305         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
73306
73307         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73308         Define mkstemp64 as an alias.
73309         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73310         Define mkstemps64 as an alias.
73311         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73312         Define mkostemp64 as an alias.
73313         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
73314         Define mkostemps64 as an alias.
73315         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
73316         Conditionalize body on this.
73317         * misc/mkostemp64.c: Likewise.
73318         * misc/mkostemps64.c: Likewise.
73319         * misc/mkstemps64.c: Likewise.
73320         * sysdeps/wordsize-64/mkstemp64.c: File removed.
73321         * sysdeps/wordsize-64/mkostemp64.c: File removed.
73322         * sysdeps/wordsize-64/mkostemp.c: File removed.
73323         * sysdeps/wordsize-64/mkstemp.c: File removed.
73324         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
73325         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
73326         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
73327         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
73328
73329         [BZ #14138]
73330         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
73331         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
73332         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
73333         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
73334
73335         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
73336         compat_symbol macros from <shlib-compat.h> rather than the underlying
73337         default_symbol_version and symbol_version macros, so that DEFAULT
73338         lines in shlib-versions are respected.
73339         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
73340
73341 2012-08-01  Florian Weimer  <fweimer@redhat.com>
73342
73343         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
73344         Declare with warn_unused_result.
73345         (setgid, setregid, setegid, setresgid): Likewise.
73346         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
73347         Likewise.
73348         * WUR-REPORT: Remove set*id functions.
73349
73350 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
73351
73352         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
73353
73354 2012-07-31  Roland McGrath  <roland@hack.frob.com>
73355
73356         [BZ #10191]
73357         * include/sys/socket.h (__libc_accept, __libc_accept4):
73358         Add attribute_hidden.
73359         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
73360
73361         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
73362         use of PTR_MANGLE.
73363         * inet/getnetgrent_r.c (setup): Likewise.
73364
73365         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
73366
73367 2012-07-31  David S. Miller  <davem@davemloft.net>
73368
73369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73370
73371 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
73372
73373         [BZ #13629]
73374         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
73375         value between 1.0 and 2.0 and smaller part has absolute value less
73376         than 1.0.
73377         * math/s_clog10.c (__clog10): Likewise.
73378         * math/s_clog10f.c (__clog10f): Likewise.
73379         * math/s_clog10l.c (__clog10l): Likewise.
73380         * math/s_clogf.c (__clogf): Likewise.
73381         * math/s_clogl.c (__clogl): Likewise.
73382         * math/libm-test.inc (clog_test): Add more tests.
73383         (clog10_test): Likewise.
73384         * sysdeps/i386/fpu/libm-test-ulps: Update.
73385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73386
73387 2012-07-31  Florian Weimer  <fweimer@redhat.com>
73388
73389         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
73390         Exit with zero in case no suitable GID is found, and write a
73391         message to standard error.
73392
73393 2012-07-30  Roland McGrath  <roland@hack.frob.com>
73394
73395         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
73396         rather than to 1.
73397         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
73398         (MAXPATHLEN): Removed.
73399         (NOGROUP, NODEV): New macros.
73400         (setbit, clrbit, isset, isclr): New macros.
73401         (howmany, roundup, powerof2): New macros.
73402         (DEV_BSIZE): New macro.
73403
73404         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
73405         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
73406
73407         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
73408         definition on [!__NO_LONG_DOUBLE_MATH].
73409
73410         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
73411         PTR_MANGLE and PTR_DEMANGLE.
73412
73413         * socket/accept4.c (accept4): Rename to __libc_accept4.
73414         Define accept4 as a weak alias.
73415
73416         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
73417         on [_DIRENT_HAVE_D_TYPE].
73418         * io/ftw.c (ftw_dir): Likewise.
73419
73420         * io/xmknod.c (__xmknod): Don't check PATH for being null.
73421
73422         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
73423
73424         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
73425         Use the BSD numbers rather than the arbitrary ones we had.
73426         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
73427         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
73428         (SIGXCPU, SIGXFSZ): New macros.
73429         (_NSIG): Now 32.
73430
73431         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
73432         initializer on [_LIBC_REENTRANT].
73433
73434         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
73435         definitions inside [_POSIX_MAPPED_FILES].
73436
73437         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
73438
73439         * dirent/opendir.c: Include <fcntl.h>.
73440
73441         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
73442         (__libc_getspecific): Likewise.
73443         (__libc_key_create): Likewise.
73444
73445         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
73446         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
73447         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
73448         (tmpfile64): Define as alias.
73449         * sysdeps/wordsize-64/tmpfile.c: File removed.
73450         * sysdeps/wordsize-64/tmpfile64.c: File removed.
73451         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
73452         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
73453
73454         * stdio-common/vfscanf.c: Include <stdbool.h>.
73455         * nss/makedb.c: Likewise.
73456         * stdio-common/_i18n_number.h: Likewise.
73457         * argp/argp-help.c: Likewise.
73458         * posix/wordexp.c: Likewise.
73459         * sysdeps/posix/spawni.c: Likewise.
73460         * nss/nss_files/files-initgroups.c: Likewise.
73461         * stdio-common/reg-modifier.c: Include <stdlib.h>.
73462         * nss/nss_files/files-initgroups.c: Likewise.
73463         * nss/nss_db/db-netgrp.c: Likewise.
73464         * nss/nss_db/db-initgroups.c: Likewise.
73465         * io/fchmodat.c: Include <sys/stat.h>.
73466
73467         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
73468         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
73469
73470         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
73471         [HAVE_MMAP].
73472
73473         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
73474         Add multiple inclusion protection.
73475
73476 2012-07-27  David S. Miller  <davem@davemloft.net>
73477
73478         * sysdeps/sparc/fpu/libm-test-ulps: Update.
73479
73480 2012-07-27  Gary Benson  <gbenson@redhat.com>
73481
73482         [BZ #14298]
73483         * elf/rtld.c: Include <stap-probe.h>.
73484         (dl_main): Added static probes "init_start" and "init_complete".
73485         * elf/dl-load.c: Include <stap-probe.h>.
73486         (lose): Take new parameter "nsid".
73487         Added static probe "map_failed".
73488         (_dl_map_object_from_fd): Pass namespace id to lose.
73489         Added static probe "map_start".
73490         (open_verify): Pass namespace id to lose.
73491         * elf/dl-open.c: Include <stap-probe.h>.
73492         (dl_open_worker) Added static probes "map_complete", "reloc_start"
73493         and "reloc_complete".
73494         * elf/dl-close.c: Include <stap-probe.h>.
73495         (_dl_close_worker): Added static probes "unmap_start" and
73496         "unmap_complete".
73497         * elf/rtld-debugger-interface.txt: New file documenting the above.
73498
73499 2012-07-26  Roland McGrath  <roland@hack.frob.com>
73500
73501         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
73502         rather than a string variable.
73503         * sunrpc/rpc_main.c (h_output): Likewise.
73504         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
73505
73506 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
73507
73508         * inet/check_native.c: New file.
73509
73510 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
73511
73512         [BZ #13629]
73513         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
73514         if larger part has absolute value 1.0.
73515         * math/s_clog10.c (__clog10): Likewise.
73516         * math/s_clog10f.c (__clog10f): Likewise.
73517         * math/s_clog10l.c (__clog10l): Likewise.
73518         * math/s_clogf.c (__clogf): Likewise.
73519         * math/s_clogl.c (__clogl): Likewise.
73520         * math/libm-test.inc (clog_test): Add more tests.
73521         (clog10_test): Likewise.
73522         * sysdeps/i386/fpu/libm-test-ulps: Update.
73523         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
73524
73525         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
73526         (pltexit): Likewise.
73527         (La_regs): Likewise.
73528         (La_retval): Likewise.
73529         (int_retval): Likewise.
73530         Update #error for removed macros to refer only to definitions in
73531         tst-audit.h.
73532         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
73533         macro.
73534         (pltexit): Likewise.
73535         (La_regs): Likewise.
73536         (La_retval): Likewise.
73537         (int_retval): Likewise.
73538         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
73539         macro.
73540         (pltexit): Likewise.
73541         (La_regs): Likewise.
73542         (La_retval): Likewise.
73543         (int_retval): Likewise.
73544         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
73545         macro.
73546         (pltexit): Likewise.
73547         (La_regs): Likewise.
73548         (La_retval): Likewise.
73549         (int_retval): Likewise.
73550         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
73551         macro.
73552         (pltexit): Likewise.
73553         (La_regs): Likewise.
73554         (La_retval): Likewise.
73555         (int_retval): Likewise.
73556         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
73557         macro.
73558         (pltexit): Likewise.
73559         (La_regs): Likewise.
73560         (La_retval): Likewise.
73561         (int_retval): Likewise.
73562         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
73563         macro.
73564         (pltexit): Likewise.
73565         (La_regs): Likewise.
73566         (La_retval): Likewise.
73567         (int_retval): Likewise.
73568         * sysdeps/generic/tst-audit.h: Update comment to refer only to
73569         macro definitions in tst-audit.h.
73570         * sysdeps/i386/tst-audit.h: New file.
73571         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
73572         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
73573         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
73574         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
73575         * sysdeps/sh/tst-audit.h: Likewise.
73576         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
73577         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
73578         * sysdeps/x86_64/tst-audit.h: Likewise.
73579
73580 2012-07-26  Andreas Jaeger  <aj@suse.de>
73581
73582         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
73583         ptrace.
73584
73585         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
73586         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
73587         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
73588         PTRACE_O_MASK.
73589         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
73590         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
73591         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
73592
73593         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
73594         value.
73595
73596         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
73597         _sigsys.
73598         (si_call_addr, si_syscall, si_arch): Define new macro.
73599         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
73600         _sigsys.
73601         (si_call_addr, si_syscall, si_arch): Define new marcro.
73602         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
73603         _sigsys.
73604         (si_call_addr, si_syscall, si_arch): Define new macro.
73605         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
73606         _sigsys.
73607         (si_call_addr, si_syscall, si_arch): Define new macro.
73608
73609 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73610
73611         [BZ #13717]
73612         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
73613         Change to 2.4.21 where previously 2.4.1.
73614         * sysdeps/unix/sysv/linux/configure: Regenerated.
73615         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
73616         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
73617         Linux kernel version.
73618         (__ASSUME_STD_AUXV): Remove.
73619         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
73620         kernel version.
73621         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
73622         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
73623         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
73624         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
73625         (__ASSUME_NETLINK_SUPPORT): Likewise.
73626         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
73627         (__no_netlink_support): Remove conditional definition.
73628         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
73629         Remove.
73630         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73631         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
73632         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
73633         (if_nameindex_ioctl): Remove.
73634         (if_nameindex_netlink): Do not handle __no_netlink_support.
73635         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73636         code.
73637         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
73638         Remove conditional code.
73639         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
73640         code.
73641         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
73642         unconditional.
73643         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
73644         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
73645         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
73646         Remove.
73647         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
73648         [!__ASSUME_STD_AUXV]: Remove conditional code.
73649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
73650         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
73651         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
73652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
73653         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
73654         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73655         code.
73656         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
73658         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
73659         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73660         conditional code.
73661         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
73662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
73663         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
73664         code.
73665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
73666         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
73667         conditional code.
73668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
73669         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73670         code unconditional.
73671         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73672         conditional code.
73673         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73674         unconditional.
73675         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73676         conditional code.
73677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
73678         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73679         unconditional.
73680         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73681         conditional code.
73682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
73683         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73684         code unconditional.
73685         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73686         conditional code.
73687         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73688         unconditional.
73689         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73690         conditional code.
73691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
73692         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
73693         code unconditional.
73694         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73695         conditional code.
73696         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
73697         unconditional.
73698         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
73699         conditional code.
73700
73701 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
73702
73703         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
73704         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
73705         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
73706         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
73707         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
73708         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
73709         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
73710         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
73711         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
73712         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
73713         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
73714         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
73715         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
73716         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
73717         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
73718         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
73719         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
73720         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
73721         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
73722         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
73723         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
73724         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
73725         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
73726
73727 2012-07-25  Florian Weimer  <fweimer@redhat.com>
73728
73729         * Versions.def: Add GLIBC_2.17.
73730         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
73731         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
73732         Introduce __libc_secure_getenv.
73733         * stdlib/Versions (2.17): Add secure_getenv
73734         (GLIBC_PRIVATE): Add __libc_secure_getenv.
73735         * stdlib/secure-getenv.c: Rename __secure_getenv to
73736         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
73737         symbol __secure_getenv for GLIBC_2.0.
73738         * stdlib/tst-secure-getenv.c: New.
73739         * stdlib/Makefile (tests): Add testcase.
73740         * manual/startup.texi (Environment Access): Document
73741         secure_getenv.
73742         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
73743         __libc_secure_getenv.
73744         * inet/ruserpass.c (ruserpass): Likewise.
73745         * malloc/mtrace.c (mtrace): Likewise.
73746         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
73747         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
73748         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
73749         * sysdeps/posix/tempname.c: Likewise.  Evaluate
73750         HAVE_SECURE_GETENV.
73751         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
73752         __secure_getenv to __libc_secure_getenv.
73753         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
73754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
73755         Likewise.
73756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
73757         Likewise.
73758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
73759         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
73760         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
73761         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
73762         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
73763         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
73764         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
73765
73766 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
73767
73768         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
73769         (struct La_i86_retval): Likewise.
73770         (struct La_x86_64_regs): Likewise.
73771         (struct La_x86_64_retval): Likewise.
73772         (struct La_x32_regs): Likewise.
73773         (struct La_x32_retval): Likewise.
73774         (struct La_ppc32_regs): Likewise.
73775         (struct La_ppc32_retval): Likewise.
73776         (struct La_ppc64_regs): Likewise.
73777         (struct La_ppc64_retval): Likewise.
73778         (struct La_sh_regs): Likewise.
73779         (struct La_sh_retval): Likewise.
73780         (struct La_s390_32_regs): Likewise.
73781         (struct La_s390_32_retval): Likewise.
73782         (struct La_s390_64_regs): Likewise.
73783         (struct La_s390_64_retval): Likewise.
73784         (struct La_sparc32_regs): Likewise.
73785         (struct La_sparc32_retval): Likewise.
73786         (struct La_sparc64_regs): Likewise.
73787         (struct La_sparc64_retval): Likewise.
73788         (struct audit_ifaces): Remove architecture-specific pltenter and
73789         pltexit members.
73790         * sysdeps/i386/ldsodefs.h: New file.
73791         * sysdeps/powerpc/ldsodefs.h: Likewise.
73792         * sysdeps/s390/ldsodefs.h: Likewise.
73793         * sysdeps/sh/ldsodefs.h: Likewise.
73794         * sysdeps/sparc/ldsodefs.h: Likewise.
73795         * sysdeps/x86_64/ldsodefs.h: Likewise.
73796
73797 2012-07-25  Marek Polacek  <polacek@redhat.com>
73798
73799         [BZ #6808]
73800         * math/libm-test.inc (yn_test): Add another test.
73801         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
73802         to ERANGE when the result is +-Inf.
73803         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
73804         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
73805         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
73806         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
73807
73808 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
73809
73810         * conform/data/time.h-data (NULL): Use macro-constant.  Require
73811         equal to 0.
73812         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
73813         clock_t.
73814         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
73815
73816 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
73817
73818         * configure.in <sysdeps resolving>: Correct printing
73819         Implies_before.
73820         * configure: Regenerate.
73821
73822 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
73823
73824         * math/w_ilogb.c: Include <limits.h>.
73825         * math/w_ilogbl.c: Likewise.
73826
73827 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73828
73829         * manual/lang.texi (__va_copy): Document primarily as ISO C99
73830         va_copy.  Document allowing for unavailable va_copy only as
73831         pre-C99 compatibility.
73832         * manual/string.texi (Copying and Concatenation): Use va_copy
73833         instead of __va_copy in concat example.
73834
73835 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
73836
73837         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
73838         (__sendto): Use create_address_port.  Initialize APORT and deallocate
73839         it if not null.
73840
73841         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
73842         with O_NOLINK passed to __file_name_lookup.
73843
73844         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
73845         with O_NOLINK passed to __file_name_lookup.
73846
73847         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
73848         negative N or less than NGIDS.
73849
73850         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
73851         type to string_t.  Set ERANGE as errno and return it if NAME is not big
73852         enough.  Use memcpy instead of strncpy.
73853
73854 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
73855
73856         * elf/Makefile (check-data): Remove.
73857         (localplt.data): New vpath directive.
73858         ($(objpfx)check-localplt.out): Use localplt.data from vpath
73859         instead of $(check-data).
73860         * scripts/data/localplt-generic.data: Move to ...
73861         * sysdeps/generic/localplt.data: ... here.
73862         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
73863         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
73864         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
73865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
73866         ... here.
73867         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
73868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
73869         ... here.
73870         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
73871         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
73872         ... here.
73873         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
73874         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
73875         ... here.
73876         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
73877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
73878         ... here.
73879         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
73880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
73881         ... here.
73882
73883 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73884
73885         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
73886         PPC32 and PPC64 files.
73887         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
73888         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
73889
73890 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73891
73892         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
73893         __makecontext_ret to ...
73894         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
73895         ... here and call exit if uc_link is NULL.  New file.
73896         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
73897         __makecontext_ret.S.
73898         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
73899         __makecontext_ret to ...
73900         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
73901         ... here and call exit if uc_link is NULL.  New file.
73902         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
73903         __makecontext_ret.S.
73904
73905 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73906
73907         * elf/elf.h (R_390_IRELATIVE): New definition.
73908         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
73909         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
73910         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
73911         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
73912         (elf_machine_lazy_rel): Likewise.
73913         * sysdeps/s390/dl-irel.h: New file.
73914         * sysdeps/s390/s390-64/memcpy.S: New asm code.
73915         * sysdeps/s390/s390-64/memset.S: New asm code.
73916         * sysdeps/s390/s390-64/memcmp.S: New asm code.
73917         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
73918         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
73919         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
73920         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
73921         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
73922         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
73923         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
73924         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
73925         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
73926         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
73927         * sysdeps/s390/s390-32/memcpy.S: New asm code.
73928         * sysdeps/s390/s390-32/memset.S: New asm code.
73929         * sysdeps/s390/s390-32/memcmp.S: New asm code.
73930
73931 2012-07-17  Marek Polacek  <polacek@redhat.com>
73932
73933         [BZ #14349]
73934         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
73935         * sysdeps/s390/s390-64/configure.in: Likewise.
73936         * sysdeps/sparc/configure.in: Likewise.
73937         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
73938         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
73939         * sysdeps/i386/configure.in: Likewise.
73940         * sysdeps/x86_64/configure.in: Likewise.
73941         * sysdeps/sh/configure.in: Likewise.
73942         * sysdeps/s390/s390-32/configure: Regenerated.
73943         * sysdeps/s390/s390-64/configure: Likewise.
73944         * sysdeps/x86_64/configure: Likewise.
73945         * sysdeps/sh/configure: Likewise.
73946         * sysdeps/powerpc/powerpc64/configure: Likewise.
73947         * sysdeps/powerpc/powerpc32/configure: Likewise.
73948         * sysdeps/sparc/configure: Likewise.
73949         * sysdeps/i386/configure: Likewise.
73950
73951         * elf/dl-open.c: Comment fixes.
73952
73953 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
73954
73955         * Makefile [CXX] (check-data): Remove.
73956         [CXX] (c++-types.data): New vpath directive.
73957         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
73958         vpath.  Do not allow for C++ type data being missing.
73959         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
73960         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
73961         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
73962         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
73963         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
73964         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
73965         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
73966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
73967         ... here.
73968         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
73969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
73970         ... here.
73971         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
73972         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
73973         ... here.
73974         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
73975         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
73976         ... here.
73977         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
73978         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
73979         ... here.
73980         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
73981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
73982         ... here.
73983         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
73984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
73985         ... here.
73986         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
73987         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
73988
73989         * elf/tls-macros.h (TLS_LE): Move architecture-specific
73990         definitions to architecture-specific files.
73991         (TLS_IE): Likewise.
73992         (TLS_LD): Likewise.
73993         (TLS_GD): Likewise.
73994         * sysdeps/i386/tls-macros.h: New file.
73995         * sysdeps/powerpc/tls-macros.h: Likewise.
73996         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
73997         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
73998         * sysdeps/sh/tls-macros.h: Likewise.
73999         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
74000         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
74001         * sysdeps/x86_64/tls-macros.h: Likewise.
74002
74003 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
74004
74005         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
74006         zero value for regular exit case.
74007
74008         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
74009         (__start_context): Preserve zero value for regular exit case.
74010
74011 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
74012             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74013
74014         * manual/setjmp.texi (setcontext): Clarify normal process
74015         termination when uc_link is the null pointer.
74016         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
74017         exit call.
74018
74019 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
74020
74021         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
74022         preprocessor.  Test for each exception mask separately.
74023
74024 2012-07-16  Andreas Jaeger  <aj@suse.de>
74025
74026         * po/ru.po: Update from translation team.
74027
74028 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
74029
74030         * conform/data/string.h-data (NULL): Use macro-constant.  Require
74031         equal to 0.
74032         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
74033         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
74034         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
74035         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
74036         [ISO || ISO99 || ISO11] (*_t): Do not allow.
74037
74038 2012-07-13  Andreas Jaeger  <aj@suse.de>
74039
74040         * po/fr.po: Update from translation team.
74041
74042 2012-07-12  Marek Polacek  <polacek@redhat.com>
74043
74044         [BZ #14173]
74045         * math/libm-test.inc (yn_test): Add test for BZ #14173.
74046         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
74047         loop condition.
74048
74049 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
74050
74051         [BZ #13717]
74052         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
74053         Change to 2.4.1 where previously 2.4.0.
74054         * sysdeps/unix/sysv/linux/configure: Regenerated.
74055         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
74056         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
74057         version.
74058         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
74059         (__ASSUME_AT_CLKTCK): Remove.
74060         (__ASSUME_AT_PAGESIZE): Likewise.
74061         (__ASSUME_AT_XID): Likewise.
74062         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
74063         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
74064         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
74065         unconditionally.
74066         (HAVE_AUX_PAGESIZE): Likewise.
74067         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
74068         [__ASSUME_AT_CLKTCK]: Make code unconditional.
74069         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
74070
74071 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
74072
74073         [BZ #14307]
74074         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
74075         the temporary buffer used to invoke __gethostbyname2_r,
74076         __gethostbyaddr_r and gethostbyname4_r to make room for struct
74077         host_data / struct gaih_addrtuple.
74078         * resolv/nss_dns/dns-host.c (global scope): Move definition of
74079         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
74080         header file nss/nsswitch.h.
74081         * nss/nsswitch.h (global scope): Add definition of implementation
74082         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
74083         resolv/nss_dns/dns-host.c).
74084
74085 2012-07-11  Andreas Jaeger  <aj@suse.de>
74086
74087         * po/fr.po: Update from translation team.
74088
74089         * po/sv.po: Update from translation team
74090         * po/fr.po: Another update from translation team.
74091
74092 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74093
74094         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
74095         for subnormals or multiply small sinh result by itself.
74096         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
74097         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
74098
74099 2012-07-11  David S. Miller  <davem@davemloft.net>
74100
74101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
74102
74103 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
74104
74105         [BZ #14347]
74106         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
74107         (INTERNAL_MARK): Shift it here.
74108
74109 2012-07-10  Marek Polacek  <polacek@redhat.com>
74110
74111         [BZ #14151]
74112         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
74113         libc_cv_asm_global_directive with .globl.
74114         * configure: Regenerated.
74115         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
74116         with .globl.
74117         * sysdeps/i386/configure: Regenerated.
74118         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
74119         with .globl.
74120         * sysdeps/x86_64/configure: Regenerated.
74121         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
74122         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
74123         * elf/tst-unique2mod2.c: Likewise.
74124         * elf/tst-unique2mod1.c: Likewise.
74125         * elf/tst-unique1mod2.c: Likewise.
74126         * elf/tst-unique1mod1.c: Likewise.
74127         * sysdeps/s390/s390-32/sysdep.h: Likewise.
74128         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
74129         * sysdeps/s390/s390-64/sysdep.h: Likewise.
74130         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
74131         * sysdeps/mach/sysdep.h: Likewise.
74132         * sysdeps/i386/sysdep.h: Likewise.
74133         * sysdeps/i386/i386-mcount.S: Likewise.
74134         * sysdeps/x86_64/_mcount.S: Likewise.
74135         * sysdeps/x86_64/sysdep.h: Likewise.
74136         * sysdeps/sh/_mcount.S: Likewise.
74137         * sysdeps/sh/sysdep.h: Likewise.
74138         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
74139         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
74140         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
74141         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
74142         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
74143         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
74144         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
74145         * locale/localeinfo.h: Likewise.
74146         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
74147         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
74148
74149 2012-07-09  Roland McGrath  <roland@hack.frob.com>
74150
74151         [BZ #14336]
74152         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
74153         system".
74154         * manual/message.texi (The Uniforum approach): Likewise.
74155         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
74156         (glibc iconv Implementation): Likewise.
74157
74158 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
74159
74160         [BZ #14337]
74161         * math/s_clog.c (__clog): Avoid scaling a value down where that
74162         could result in underflow.
74163         * math/s_clog10.c (__clog10): Likewise.
74164         * math/s_clog10f.c (__clog10f): Likewise.
74165         * math/s_clog10l.c (__clog10l): Likewise.
74166         * math/s_clogf.c (__clogf): Likewise.
74167         * math/s_clogl.c (__clogl): Likewise.
74168         * math/libm-test.inc (clog_test): Add more tests.
74169         (clog10_test): Likewise.
74170         * sysdeps/i386/fpu/libm-test-ulps: Update.
74171         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74172
74173 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
74174
74175         [BZ #14283]
74176         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
74177         by 7 not 8 to examine high bit of fractional part.
74178
74179         [BZ #14042]
74180         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
74181         for call to __mcount_internal.
74182         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
74183         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
74184         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
74185
74186 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
74187
74188         [BZ #14154]
74189         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
74190         approximation for values within 0x1p-13f of an odd multiple of
74191         pi/4.
74192         * math/libm-test.inc (tan_test): Do not allow spurious underflow
74193         exception.  Add more tests.
74194         * sysdeps/i386/fpu/libm-test-ulps: Update.
74195
74196         [BZ #6778]
74197         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
74198         inputs and return -1 for them.  Do not check for +Inf in case not
74199         reachable for +Inf.
74200         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
74201         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
74202         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
74203         and return -1 for them.  Do not check for +Inf in case not
74204         reachable for +Inf.
74205         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
74206         define.
74207         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
74208         and return -1 for them.  Do not check for +Inf in case not
74209         reachable for +Inf.
74210         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
74211         spurious underflow.
74212         * sysdeps/i386/fpu/libm-test-ulps: Update.
74213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74214
74215 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
74216
74217         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
74218
74219 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
74220
74221         [BZ #14157]
74222         [BZ #14331]
74223         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
74224         could result in spurious underflow.  Scale down values above
74225         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
74226         * math/s_csqrtf.c (__csqrtf): Likewise.
74227         * math/s_csqrtl.c (__csqrtl): Likewise.
74228         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
74229         spurious underflow.
74230         * sysdeps/i386/fpu/libm-test-ulps: Update.
74231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74232
74233 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
74234
74235         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
74236         xopen-msg.sed.
74237         * catgets/xopen-msg.awk: New file.
74238         * catgets/xopen-msg.sed: Removed.
74239
74240         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
74241         po2text.sed.
74242         * intl/po2test.awk: New file.
74243         * intl/po2test.sed: Removed.
74244
74245 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
74246
74247         [BZ #14328]
74248         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
74249         or multiply small sinh result by itself.
74250         * math/s_ctanf.c (__ctanf): Likewise.
74251         * math/s_ctanh.c (__ctanh): Likewise.
74252         * math/s_ctanhf.c (__ctanhf): Likewise.
74253         * math/s_ctanhl.c (__ctanhl): Likewise.
74254         * math/s_ctanl.c (__ctanl): Likewise.
74255         * math/libm-test.inc (ctan_test_tonearest): New function.
74256         (ctan_test_towardzero): Likewise.
74257         (ctan_test_downward): Likewise.
74258         (ctan_test_upward): Likewise.
74259         (ctanh_test_tonearest): Likewise.
74260         (ctanh_test_towardzero): Likewise.
74261         (ctanh_test_downward): Likewise.
74262         (ctanh_test_upward): Likewise.
74263         (main): Call these new functions.
74264         * sysdeps/i386/fpu/libm-test-ulps: Update.
74265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
74266
74267 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
74268
74269         * .gitignore: Delete /ports entry.
74270
74271 2012-07-03  Andreas Jaeger  <aj@suse.de>
74272
74273         * po/bg.po: Update from translation team.
74274         * po/cs.po: Likewise.
74275         * po/de.po: Likewise.
74276         * po/hr.po: Likewise.
74277         * po/nl.pl: Likewise.
74278         * po/pl.po: Likewise.
74279         * po/vi.po: Likewise.
74280
74281 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
74282
74283         * Makeconfig [!+link] (+link-before-libc): New variable.
74284         [!+link] (+link-after-libc): Likewise.
74285         [!+link] (+link-tests): Likewise.
74286         [!+link] (+link): Define in terms of $(+link-before-libc) and
74287         $(+link-after-libc).
74288         [!+link-static] (+link-static-before-libc): New variable.
74289         [!+link-static] (+link-static-after-libc): Likewise.
74290         [!+link-static] (+link-static-tests): Likewise.
74291         [!+link-static] (+link-static): Define in terms of
74292         $(+link-static-before-libc) and $(+link-static-after-libc).
74293         [build-shared] (link-libc-before-gnulib): New variable.
74294         [build-shared] (link-libc-tests): Likewise.
74295         [build-shared] (link-libc): Define in terms of
74296         $(link-libc-before-gnulib).
74297         [!build-shared] (link-libc-tests): New variable.
74298         (link-libc-static-tests): New variable.
74299         [!gnulib] (gnulib-arch): New variable.
74300         [!gnulib] (gnulib-tests): Likewise.
74301         [!gnulib] (static-gnulib-arch): Likewise.
74302         [!gnulib] (static-gnulib-tests): Likewise.
74303         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
74304         Define with "=" instead of ":=".
74305         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
74306         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
74307         * Rules (binaries-all-notests): New variable.
74308         (binaries-all-tests): Likewise.
74309         (binaries-static-notests): Likewise.
74310         (binaries-static-tests): Likewise.
74311         (binaries-all): Define using $(binaries-all-notests) and
74312         $(binaries-all-tests).
74313         (binaries-static): Define using $(binaries-static-notests) and
74314         $(binaries-static-tests).
74315         (binaries-shared-tests): New variable.
74316         (binaries-shared-notests): Likewise.
74317         (binaries-shared): Remove variable.
74318         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
74319         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
74320         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
74321         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
74322         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
74323         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
74324         * elf/Makefile (sln-modules): New variable.
74325         (extra-objs): Add $(sln-modules:=.o).
74326         (ldconfig-modules): Add static-stubs.
74327         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
74328         * elf/static-stubs.c: New file.
74329
74330         [BZ #14283]
74331         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
74332         by 7 not 8 to examine high bit of fractional part.  Use volatile
74333         variables when splitting into final array of floats if
74334         __FLT_EVAL_METHOD__ != 0.
74335         * math/libm-test.inc (cos_test): Add another test.
74336         (sin_test): Likewise.
74337         * sysdeps/i386/fpu/libm-test-ulps: Update.
74338
74339         [BZ #14273]
74340         * math/libm-test.inc (cosh_test): Add more tests.
74341
74342         * version.h (RELEASE): Set to "development".
74343         (VERSION): Set to "2.16.90".
74344
74345 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
74346
74347         * NEWS: Update copyright. Remove last-updated date.
74348         Mention math library bug fixes and timezone data changes.
74349         * README: Mention GNU/Hurd, x32, and HPPA support status.
74350
74351 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
74352
74353         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
74354
74355 2012-06-27  Andreas Jaeger  <aj@suse.de>
74356
74357         * manual/contrib.texi (Contributors): Add Samuel Thibault.
74358
74359 2012-06-25  Andreas Jaeger  <aj@suse.de>
74360
74361         * sysdeps/s390/fpu/libm-test-ulps: Update.
74362
74363 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
74364             Thomas Schwinge  <thomas@codesourcery.com>
74365
74366         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
74367         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
74368         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
74369         fanotify_mark.
74370
74371 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
74372
74373         * sysdeps/mach/start.c: Remove file.
74374         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
74375         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
74376         * sysdeps/sh/init-first.c: Likewise.
74377
74378         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
74379         registers for frame unwinding purposes, add CFI directives.
74380         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74381         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
74382         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
74383         Likewise.
74384
74385         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
74386         __fortify_fail returning.
74387         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
74388
74389         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
74390         sysdeps/sh/____longjmp_chk.S.
74391         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
74392         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
74393         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
74394         (gen-as-const-headers): Append sigaltstack-offsets.sym.
74395
74396         * sysdeps/sh/abort-instr.h: New file.
74397         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
74398         process in case exit returns.
74399
74400         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
74401         initialize the GOT register before use.
74402
74403         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
74404         calculation of ARGC > 4.
74405
74406         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
74407         meaningful names to some local labels.
74408
74409 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
74410             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74411
74412         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
74413         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
74414         (__arch_compare_and_exchange_val_16_acq): Likewise.
74415         (__arch_compare_and_exchange_val_32_acq): Likewise.
74416         (atomic_exchange_and_add): Fix gUSA sequence.
74417         (atomic_add): Likewise.
74418         (atomic_add_negative): Likewise.
74419         (atomic_add_zero): Likewise.
74420         (atomic_bit_test_set): Likewise.
74421
74422 2012-06-22  Andreas Schwab  <schwab@redhat.com>
74423
74424         [BZ #13579]
74425         * include/link.h (struct link_map): Add l_free_initfini.
74426         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
74427         l_initfini.
74428         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
74429         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
74430         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
74431         set.
74432
74433 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
74434
74435         * configure.in: Use AC_LANG_SOURCE.
74436         * configure: Regenerate.
74437
74438 2012-06-22  Roland McGrath  <roland@hack.frob.com>
74439
74440         * configure.in (libc_cv_localstatedir): New substituted variable.
74441         * configure: Regenerated.
74442         * config.make.in (localstatedir): New variable, substituted from
74443         libc_cv_localstatedir.
74444         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
74445         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
74446         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
74447         * sysdeps/gnu/configure: Regenerated.
74448
74449 2012-06-21  Jeff Law  <law@redhat.com>
74450
74451         [BZ #14277]
74452         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
74453         free.  Simplify list management for _LIBC case.
74454
74455 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
74456
74457         [BZ #14273]
74458         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
74459         Clear sign bit of 64-bit integer value before comparing against
74460         overflow value.
74461
74462         * sysdeps/mach/configure: Regenerated.
74463
74464 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
74465
74466         [BZ #14278]
74467         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
74468
74469 2012-06-21  Jeff Law  <law@redhat.com>
74470
74471         [BZ #13882]
74472         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
74473         uint16_t for elements in the "seen" array to avoid char overflows.
74474         * elf/dl-fini.c (_dl_sort_fini): Likewise.
74475         * elf/dl-open.c (dl_open_worker): Likewise.
74476
74477 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
74478
74479         * scripts/list-sources.sh: Scan PORTS for translations.
74480         * po/libc.pot: Regenerated.
74481
74482 2012-06-21  Andreas Jaeger  <aj@suse.de>
74483
74484         [BZ #12194]
74485         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
74486         warning.
74487         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
74488         * bits/byteswap-16.h (__bswap_16): Likewise.
74489         * bits/byteswap.h (__bswap_constant_16): Likewise.
74490
74491 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
74492
74493         [BZ #14117]
74494         * sysdeps/i386/fpu_control.h: Removed.
74495         * sysdeps/x86_64/fpu_control.h: Moved to ...
74496         * sysdeps/x86/fpu_control.h: Here.
74497
74498         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
74499         (_FPU_SETCW): Likewise.
74500
74501 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
74502
74503         [BZ #14117]
74504         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
74505         * sysdeps/x86/fpu/bits/mathinline.h: This.
74506         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
74507
74508         [BZ #14050]
74509         [BZ #14117]
74510         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
74511         functions if __x86_64__ is defined.
74512
74513 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
74514
74515         * string/endian.h: Add !__ASSEMBLER__ condition for including
74516         conversion interfaces.
74517
74518 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
74519
74520         [BZ #14241]
74521         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
74522         of ABS(x) in calculating zero to negative powers other than odd
74523         integers.
74524         * math/libm-test.inc (pow_test): Add more tests.
74525
74526 2012-06-15  Andreas Jaeger  <aj@suse.de>
74527
74528         * manual/contrib.texi (Contributors): Update entry of Liubov
74529         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
74530         Machado Filho.
74531
74532 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
74533
74534         * string/string.h: Add __wur to GNU version of strerror_r.
74535
74536 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
74537
74538         [BZ #14229]
74539         * string/Makefile (tests): Add tst-strtok_r.
74540         * string/tst-strtok_r.c: New file.
74541         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
74542         RAX_LP/RDX_LP on SAVE_PTR.
74543
74544 2012-06-14  Roland McGrath  <roland@hack.frob.com>
74545
74546         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
74547
74548 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
74549
74550         * libm_test.inc (csqrt_test): Allow more spurious underflow
74551         exceptions.
74552         (j0_test): Likewise.
74553         (j1_test): Likewise.
74554         (y0_test): Likewise.
74555         (y1_test): Likewise.
74556
74557 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
74558
74559         * po/Makefile (libc.pot): Use UTF-8 charset.
74560
74561 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
74562
74563         [BZ #14210]
74564         Suppress sign-conversion warning from FD_SET.
74565         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
74566         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
74567         not unsigned long int.
74568         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
74569
74570 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
74571
74572         [BZ #14050]
74573         [BZ #14117]
74574         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
74575         __extern_always_inline instead of __extern_inline.
74576         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
74577         (__signbit): Likewise.
74578         (__signbitl): Support C++ namespace.
74579         (lrintf): New inline function.
74580         (lrint): Likewise.
74581         (llrintf): Likewise.
74582         (llrint): Likewise.
74583         (fmaxf): Likewise.
74584         (fmax): Likewise.
74585         (fminf): Likewise.
74586         (fmin): Likewise.
74587         (rint): Likewise.
74588         (rintf): Likewise.
74589         (ceil): Likewise.
74590         (ceilf): Likewise.
74591         (floor): Likewise.
74592         (floorf): Likewise.
74593         (nearbyint): Likewise.
74594         (nearbyintf): Likewise.
74595
74596 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
74597
74598         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
74599         non-default versions.
74600
74601 2012-06-11  Roland McGrath  <roland@hack.frob.com>
74602
74603         [BZ #14218]
74604         * manual/argp.texi (Argp): Reword argp_parse description slightly.
74605
74606 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
74607
74608         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
74609         (FE_UPWARD, FE_DOWNWARD): Don't define.
74610         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
74611         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
74612
74613         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
74614         reading it.
74615         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
74616         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
74617
74618 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
74619
74620         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
74621         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
74622         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
74623         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
74624
74625 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
74626
74627         [BZ #14117]
74628         * sysdeps/i386/fpu/bits/fenv.h: Removed.
74629         * sysdeps/i386/fpu/Implies: New file.
74630         * sysdeps/x86_64/fpu/Implies: Likewise.
74631         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
74632         * sysdeps/x86/fpu/bits/fenv.h: This.
74633
74634         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
74635         __SSE_MATH__.
74636
74637 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
74638
74639         [BZ #14134]
74640         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
74641         character 0xffff that matches the last element of the
74642         conversion table.
74643
74644 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74645
74646         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
74647         fmodl commit.
74648
74649 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74650
74651         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
74652         values higher than 25.6283.
74653
74654 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74655
74656         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
74657         subnormal exponent extraction and add some __builtin_expect.
74658         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
74659         Fix for subnormal mantissa calculation.
74660
74661 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
74662
74663         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
74664         cpu2 is -1 and errno is not ENOSYS.
74665
74666 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
74667
74668         [BZ #14117]
74669         * sysdeps/i386/i486/bits/string.h: Renamed to ...
74670         * sysdeps/x86/bits/string.h: This.
74671         * sysdeps/x86_64/bits/string.h: Removed.
74672
74673         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74674         if not compiling for x86-64, but compiling for >= i486.
74675
74676         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
74677         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
74678
74679         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
74680         New macro from Linux kernel 3.4.0.
74681         (FP_XSTATE_MAGIC2): Likewise.
74682         (FP_XSTATE_MAGIC2_SIZE): Likewise.
74683         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
74684         (struct _fpx_sw_bytes): New struct.
74685         (struct _xsave_hdr): Likewise.
74686         (struct _ymmh_state): Likewise.
74687         (struct _xstate): Likewise.
74688
74689         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
74690         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
74691         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
74692         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
74693         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
74694         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
74695
74696         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
74697         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
74698         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
74699         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
74700         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
74701         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
74702
74703 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
74704
74705         [BZ #13743]
74706         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
74707         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
74708         (sysdep_headers): Include sys/platform/ppc.h.
74709         * sysdeps/powerpc/test-gettimebase.c: Test for
74710         __ppc_get_timebase() to catch future ISA opcode/insn changes.
74711         * manual/Makefile (appendices): Include platform.texi.
74712         * manual/contrib.texi (Contributors): Update @node pointers.
74713         * manual/maint.texi (Maintenance): Likewise.
74714         (Platform): New node.
74715         * manual/platform.texi: New file.  Document the new features.
74716
74717 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
74718             Jakub Jelinek  <jakub@redhat.com>
74719
74720         [BZ #14188]
74721         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
74722         where __builtin_expect is unavailable.
74723
74724 2012-06-03  David S. Miller  <davem@davemloft.net>
74725
74726         * stdlib/longlong.h: Updated from GCC.
74727
74728 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
74729
74730         [BZ #14042]
74731         * sysdeps/powerpc/powerpc32/mcount.c: New file.
74732         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
74733         __mcount_internal.
74734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
74735         (GLIBC_2.16): Likewise.
74736
74737 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74738
74739         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
74740
74741 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74742
74743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
74744         (default-abi): New variable.
74745         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
74746         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
74747         variable.
74748         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
74749         Likewise.
74750         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
74751         Likewise.
74752         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
74753         Likewise.
74754
74755         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
74756         definition.  Document in comment.
74757
74758 2012-06-01  David S. Miller  <davem@davemloft.net>
74759
74760         * stdlib/longlong.h: Updated from GCC.
74761
74762 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74763
74764         [BZ #14117]
74765         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
74766         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
74767         sys/debugreg.h sys/io.h here.
74768         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
74769         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
74770         sys/io.h.
74771         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
74772         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
74773         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
74774         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
74775         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
74776         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
74777
74778         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
74779         Define only if __x86_64__ is defined.
74780
74781 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
74782
74783         [BZ #14048]
74784         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
74785         Use int64_t for variable i.
74786         * math/libm-test.inc (fmod_test): Add more tests.
74787
74788         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
74789         z computation is not scheduled after fetestexcept.
74790         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
74791         Use math_force_eval instead of asm to ensure calculation scheduled
74792         before exception test.
74793         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
74794         Ensure a1 + u.d computation is not scheduled after fetestexcept.
74795
74796 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
74797
74798         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
74799         computation is not scheduled after fetestexcept.
74800
74801 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
74802
74803         [BZ #14117]
74804         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
74805         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
74806
74807 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
74808
74809         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
74810         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
74811
74812 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74813
74814         [BZ #14117]
74815         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
74816         <bits/wordsize.h>.
74817         (__WCHAR_MIN): Support __WORDSIZE == 64.
74818         (__WCHAR_MAX): Likewise.
74819
74820         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
74821         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
74822
74823         [BZ #14183]
74824         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
74825         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
74826
74827         [BZ #14117]
74828         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
74829         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
74830
74831         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
74832         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
74833
74834         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
74835         Defined to 1 if __x86_64__ isn't defined.
74836         (_STAT_VER_LINUX_OLD): New.
74837         (st_atime): Remove duplicate.
74838         (st_mtime): Likewise.
74839         (st_ctime): Likewise.
74840
74841 2012-05-31  David S. Miller  <davem@davemloft.net>
74842
74843         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
74844         entries.
74845
74846 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
74847
74848         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
74849         gen-libm-test.pl.
74850
74851         [BZ #14132]
74852         * elf/dl-reloc.c: Include <_itoa.h>.
74853         (_dl_reloc_bad_type): Remove use of INTUSE.
74854         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
74855         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
74856         * stdio-common/psiginfo.c (psiginfo): Likewise.
74857         * stdio-common/psignal.c (psignal): Likewise.
74858         * string/strsignal.c (strsignal): Likewise.
74859         * include/signal.h (_sys_siglist): Declare hidden proto.
74860         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
74861         INTVARDEF with libc_hidden_data_def.
74862         * stdio-common/itoa-udigits.c: Likewise.
74863         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
74864         (_itoa_lower_digits_internal): Remove declaration.
74865         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
74866         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
74867         (_sys_sigabbrev_internal): Remove aliases.
74868         (_sys_siglist): Define hidden alias.
74869
74870 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
74871
74872         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
74873         bits/sysctl.h.
74874
74875 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
74876
74877         [BZ #14117]
74878         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
74879         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
74880
74881         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
74882         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
74883         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
74884         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
74885         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
74886         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
74887
74888         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
74889         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
74890         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
74891
74892         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
74893         with __addr.
74894         (insw): Likewise.
74895         (insl): Likewise.
74896         (outsb): Likewise.
74897         (outsw): Likewise.
74898         (outsl): Likewise.
74899
74900         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
74901         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
74902         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
74903
74904         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
74905         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
74906         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
74907         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
74908         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
74909         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
74910
74911         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
74912         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
74913
74914         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
74915         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
74916
74917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
74918         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
74919         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
74920
74921         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
74922         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
74923         to ...
74924         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
74925
74926         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
74927         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
74928         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
74929
74930         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
74931         for x86-64.
74932         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
74933
74934 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
74935
74936         * math/math.h (M_El): Use two more decimal places.
74937         (M_LOG2El): Likewise.
74938         (M_LOG10El): Likewise.
74939         (M_LN2l): Likewise.
74940         (M_LN10l): Likewise.
74941         (M_PIl): Likewise.
74942         (M_PI_2l): Likewise.
74943         (M_PI_4l): Likewise.
74944         (M_1_PIl): Likewise.
74945         (M_2_PIl): Likewise.
74946         (M_2_SQRTPIl): Likewise.
74947         (M_SQRT2l): Likewise.
74948         (M_SQRT1_2l): Likewise.
74949
74950 2012-05-31  David S. Miller  <davem@davemloft.net>
74951
74952         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
74953         values between float registers.
74954         * sysdeps/sparc/sparc64/memset.S: Likewise.
74955         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
74956
74957 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
74958
74959         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
74960         -D_FORTIFY_SOURCE=1.
74961         (CPPFLAGS-tst-longjmp_chk.c): Define.
74962         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
74963         (CPPFLAGS-tst-longjmp_chk2.c): Define.
74964         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
74965         CFLAGS-tst-wchar-h.c.
74966
74967 2012-05-31  Marek Polacek  <polacek@redhat.com>
74968
74969         [BZ #14132]
74970         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
74971         __endmntent_internal): Remove declaration.
74972         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
74973         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
74974         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
74975
74976 2012-05-30  David S. Miller  <davem@davemloft.net>
74977
74978         * sysdeps/sparc/sparc32/soft-fp/q_util.c
74979         (___Q_simulate_exceptions): Use real FP ops rather than writing
74980         into the %fsr.
74981         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
74982         Likewise.
74983
74984 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
74985
74986         [BZ #14117]
74987         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
74988         * sysdeps/x86/bits/xtitypes.h: This.
74989
74990         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
74991         * sysdeps/x86/bits/wordsize.h: This.
74992
74993         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
74994         * sysdeps/x86/bits/huge_vall.h: This.
74995
74996         * sysdeps/i386/bits/select.h: Removed.
74997         * sysdeps/x86_64/bits/select.h: Renamed to ...
74998         * sysdeps/x86/bits/select.h: This.
74999
75000         * sysdeps/i386/bits/setjmp.h: Removed.
75001         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
75002         * sysdeps/x86/bits/setjmp.h: This.
75003
75004         * sysdeps/i386/bits/mathdef.h: Removed.
75005         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
75006         * sysdeps/x86/bits/mathdef.h: This.
75007
75008 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
75009
75010         [BZ #14132]
75011         * include/sys/socket.h (__connect_internal)
75012         (__libc_sa_len_internal): Remove declaration.
75013         (__connect, __libc_sa_len): Declare hidden_proto.
75014         (SA_LEN): Remove use of INTUSE.
75015         * socket/connect.c: Add libc_hidden_def.
75016         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
75017         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
75018         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
75019         alias.
75020         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
75021         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
75022         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
75023         of adding _internal alias.
75024
75025 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75026
75027         [BZ #14117]
75028         * sysdeps/i386/bits/link.h: Removed.
75029         * sysdeps/i386/bits/linkmap.h: Likewise.
75030         * sysdeps/x86_64/bits/link.h: Renamed to ...
75031         * sysdeps/x86/bits/link.h: This.
75032         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
75033         * sysdeps/x86/bits/linkmap.h: This.
75034
75035         * sysdeps/i386/bits/endian.h: Removed.
75036         * sysdeps/x86_64/bits/endian.h: Renamed to ...
75037         * sysdeps/x86/bits/endian.h: This.
75038
75039         * sysdeps/i386/bits/byteswap.h: Removed.
75040         * sysdeps/i386/bits/byteswap-16.h: Likewise.
75041         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
75042         * sysdeps/x86/bits/byteswap.h: This.
75043         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
75044         * sysdeps/x86/bits/byteswap-16.h: This.
75045         * sysdeps/i386/Implies: Add x86.
75046         * sysdeps/x86_64/Implies: Likewise.
75047
75048 2012-05-30  David S. Miller  <davem@davemloft.net>
75049
75050         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
75051         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
75052         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
75053         (FP_TRAPPING_EXCEPTIONS): Define.
75054         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
75055         (FP_TRAPPING_EXCEPTIONS): Define.
75056         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
75057         subnormals only when inexact has been signalled or underflow
75058         exceptions are enabled.
75059         (_FP_PACK_CANONICAL): Likewise.
75060
75061 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75062
75063         [BZ #14183]
75064         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
75065         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
75066
75067 2012-05-30  Richard Henderson  <rth@twiddle.net>
75068
75069         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
75070         with #ifndef NOT_IN_libc.
75071
75072         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
75073         marked to avoid plt entry.
75074
75075 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
75076
75077         [BZ #14112]
75078         * Makeconfig (default-abi): New macro.
75079         (abi-includes): Likewise.
75080         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
75081         $(abi-$(default-abi)-lib-soname) for soname if defined.
75082         ($(common-objpfx)gnu/lib-names.stmp): Generate from
75083         abi-variants.
75084         * Makefile (installed-stubs): Likewise.
75085         * include/stubs-biarch.h: Removed.
75086         * scripts/lib-names.awk: Only handle one library at a time.
75087         * scripts/soversions.awk: Remove WORDSIZE support.
75088         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
75089         entries.
75090         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
75091         Removed.
75092         (syscall-list-default-condition): Likewise.
75093         (syscall-list-default-condition): Likewise.
75094         (syscall-list-includes): Likewise.
75095         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
75096         syscall-list-* with abi-*.  Handle undefined abi-variants.
75097         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
75098         * sysdeps/unix/sysv/linux/i386/Implies: New file.
75099         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
75100         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
75101         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
75102         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
75103         Removed.
75104         (syscall-list-32-options): Likewise.
75105         (syscall-list-32-condition): Likewise.
75106         (syscall-list-64-options): Likewise.
75107         (syscall-list-64-condition): Likewise.
75108         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
75109         macro.
75110         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
75111         Renamed to ...
75112         (abi-*): This.
75113         (abi-64-ld-soname): New macro.
75114         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
75115         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
75116         Renamed to ...
75117         (abi-*): This.
75118         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
75119         * sysdeps/x86_64/x32/shlib-versions: Likewise.
75120
75121 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
75122
75123         * sysdeps/unix/sysv/linux/kernel-features.h
75124         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
75125         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
75126         include <kernel-features.h>.
75127         [!__NR_ftruncate64]: Remove conditional code.
75128         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75129         [__NR_ftruncate64]: Make code unconditional.
75130         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75131         * sysdeps/unix/sysv/linux/truncate64.c: Do not
75132         include <kernel-features.h>.
75133         [!__NR_ftruncate64]: Remove conditional code.
75134         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75135         [__NR_ftruncate64]: Make code unconditional.
75136         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
75138         include <kernel-features.h>.
75139         [!__NR_ftruncate64]: Remove conditional code.
75140         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75141         [__NR_ftruncate64]: Make code unconditional.
75142         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
75144         include <kernel-features.h>.
75145         [!__NR_ftruncate64]: Remove conditional code.
75146         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75147         [__NR_ftruncate64]: Make code unconditional.
75148         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
75149
75150         * configure.in (libc_cv_fpie): Weaken to a compile test using
75151         LIBC_TRY_CC_OPTION.
75152         * configure: Regenerated.
75153
75154 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75155
75156         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
75157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
75158         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
75159         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
75160         Refreshed.
75161         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
75162         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
75163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
75164         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
75165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
75166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
75167         Refreshed.
75168
75169 2012-05-27  David S. Miller  <davem@davemloft.net>
75170
75171         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
75172         (___Q_zero): New.
75173         (__Q_simulate_exceptions): Return void.  Change to simulate
75174         exceptions by writing into the %fsr.
75175         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
75176         (__Qp_handle_exceptions): Likewise.
75177         (numbers): Delete.
75178         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
75179         __Qp_handle_exceptions.
75180         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
75181         __Qp_handle_exceptions.
75182         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
75183         as unused and give dummy FP_RND_NEAREST initializer.
75184         (FP_INHIBIT_RESULTS): Define.
75185         (___Q_simulate_exceptions): Update declaration.
75186         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
75187         formatting.
75188         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
75189         as unused and give dummy FP_RND_NEAREST initializer.
75190         (__Qp_handle_exceptions): Update declaration.
75191         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
75192         formatting.
75193
75194 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
75195
75196         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
75197         the temporary FPU control word.
75198         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
75199         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
75200         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
75201         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
75202         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
75203         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
75204         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
75205         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
75206         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
75207         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
75208         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
75209
75210 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
75211
75212         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
75213         fields.
75214
75215 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
75216
75217         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
75218         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
75219         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
75220         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
75221         Likewise.
75222         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
75223         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
75224         Likewise.
75225
75226 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
75227
75228         * po/h.po: Update from translation team.
75229
75230 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
75231
75232         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
75233
75234         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
75235         handling of denormals.
75236         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
75237         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
75238         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
75239         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
75240         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
75241         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
75242         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
75243         Likewise.
75244
75245 2012-05-26  Marek Polacek  <polacek@redhat.com>
75246
75247         [BZ #14152]
75248         * math/libm-test.inc (fma_test): Don't always expect underflow
75249         exception.
75250
75251 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
75252
75253         [BZ #12416]
75254         * elf/tst-execstack.c: Include stackinfo.h.
75255         (do_test): Adjust test case to ensure that pthread_getattr_np
75256         behaviour remains the same after marking stack executable.
75257
75258 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75259
75260         * sysdeps/unix/sysv/linux/kernel-features.h
75261         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
75262         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
75263         kernel-features.h.
75264         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
75265         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
75266         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
75267         kernel-features.h.
75268         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
75269         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
75270
75271 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
75272
75273         * configure.in: Define the default includes to being none.
75274         * configure: Regenerated.
75275
75276 2012-05-25  Roland McGrath  <roland@hack.frob.com>
75277
75278         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
75279         * sysdeps/x86_64/setjmp.S: Likewise.
75280         * sysdeps/i386/bsd-setjmp.S: Likewise.
75281         * sysdeps/i386/bsd-_setjmp.S: Likewise.
75282         * sysdeps/i386/setjmp.S: Likewise.
75283         * sysdeps/i386/__longjmp.S: Likewise.
75284         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
75285         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
75286
75287         * include/stap-probe.h: New file.
75288         * configure.in: Handle --enable-systemtap.
75289         * configure: Regenerated.
75290         * config.h.in (USE_STAP_PROBE): New #undef.
75291         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
75292         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
75293         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
75294
75295 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
75296
75297         [BZ #13717]
75298         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
75299         to 2.4.0 where earlier.
75300         * sysdeps/unix/sysv/linux/configure: Regenerated.
75301         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
75302         <kernel-features.h>.
75303         [__ASSUME_32BITUIDS]: Make code unconditional.
75304         [!__ASSUME_32BITUIDS]: Remove conditional code.
75305         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
75306         <kernel-features.h>.
75307         [__ASSUME_32BITUIDS]: Make code unconditional.
75308         [!__ASSUME_32BITUIDS]: Remove conditional code.
75309         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
75310         [__ASSUME_32BITUIDS]: Make code unconditional.
75311         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
75312         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
75313         <kernel-features.h>.
75314         [__ASSUME_32BITUIDS]: Make code unconditional.
75315         [!__ASSUME_32BITUIDS]: Remove conditional code.
75316         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
75317         <kernel-features.h>.
75318         [__ASSUME_32BITUIDS]: Make code unconditional.
75319         [!__ASSUME_32BITUIDS]: Remove conditional code.
75320         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
75321         <kernel-features.h>.
75322         [__ASSUME_32BITUIDS]: Make code unconditional.
75323         [!__ASSUME_32BITUIDS]: Remove conditional code.
75324         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
75325         <kernel-features.h>.
75326         [__ASSUME_32BITUIDS]: Make code unconditional.
75327         [!__ASSUME_32BITUIDS]: Remove conditional code.
75328         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
75329         <kernel-features.h>.
75330         [__ASSUME_32BITUIDS]: Make code unconditional.
75331         [!__ASSUME_32BITUIDS]: Remove conditional code.
75332         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
75333         <kernel-features.h>.
75334         [__ASSUME_32BITUIDS]: Make code unconditional.
75335         [!__ASSUME_32BITUIDS]: Remove conditional code.
75336         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
75337         <kernel-features.h>.
75338         [__ASSUME_32BITUIDS]: Make code unconditional.
75339         [!__ASSUME_32BITUIDS]: Remove conditional code.
75340         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
75341         <kernel-features.h>.
75342         [__ASSUME_32BITUIDS]: Make code unconditional.
75343         [!__ASSUME_32BITUIDS]: Remove conditional code.
75344         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
75345         <kernel-features.h>.
75346         [__ASSUME_32BITUIDS]: Make code unconditional.
75347         [!__ASSUME_32BITUIDS]: Remove conditional code.
75348         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
75349         <kernel-features.h>.
75350         [__ASSUME_32BITUIDS]: Make code unconditional.
75351         [!__ASSUME_32BITUIDS]: Remove conditional code.
75352         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
75353         <kernel-features.h>.
75354         [__NR_setresgid] (__setresgid): Do not declare.
75355         [__ASSUME_32BITUIDS]: Make code unconditional.
75356         [!__ASSUME_32BITUIDS]: Remove conditional code.
75357         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
75358         <kernel-features.h>.
75359         [__NR_setresuid] (__setresuid): Do not declare.
75360         [__ASSUME_32BITUIDS]: Make code unconditional.
75361         [!__ASSUME_32BITUIDS]: Remove conditional code.
75362         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
75363         <kernel-features.h>.
75364         [__ASSUME_32BITUIDS]: Make code unconditional.
75365         [!__ASSUME_32BITUIDS]: Remove conditional code.
75366         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
75367         <kernel-features.h>.
75368         [__ASSUME_32BITUIDS]: Make code unconditional.
75369         [!__ASSUME_32BITUIDS]: Remove conditional code.
75370         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
75371         <kernel-features.h>.
75372         [__ASSUME_32BITUIDS]: Make code unconditional.
75373         [!__ASSUME_32BITUIDS]: Remove conditional code.
75374         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
75375         <kernel-features.h>.
75376         [__ASSUME_32BITUIDS]: Make code unconditional.
75377         [!__ASSUME_32BITUIDS]: Remove conditional code.
75378         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
75379         <kernel-features.h>.
75380         [__ASSUME_32BITUIDS]: Make code unconditional.
75381         [!__ASSUME_32BITUIDS]: Remove conditional code.
75382         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
75383         <kernel-features.h>.
75384         [__ASSUME_32BITUIDS]: Make code unconditional.
75385         [!__ASSUME_32BITUIDS]: Remove conditional code.
75386         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
75387         <kernel-features.h>.
75388         [__ASSUME_32BITUIDS]: Make code unconditional.
75389         [!__ASSUME_32BITUIDS]: Remove conditional code.
75390         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
75391         <kernel-features.h>.
75392         [__ASSUME_32BITUIDS]: Make code unconditional.
75393         [!__ASSUME_32BITUIDS]: Remove conditional code.
75394         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
75395         <kernel-features.h>.
75396         [__ASSUME_32BITUIDS]: Make code unconditional.
75397         [!__ASSUME_32BITUIDS]: Remove conditional code.
75398         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
75399         <kernel-features.h>.
75400         [__ASSUME_32BITUIDS]: Make code unconditional.
75401         [!__ASSUME_32BITUIDS]: Remove conditional code.
75402         * sysdeps/unix/sysv/linux/kernel-features.h
75403         (__ASSUME_SETRESUID_SYSCALL): Remove.
75404         (__ASSUME_SETRESGID_SYSCALL): Likewise.
75405         (__ASSUME_32BITUIDS): Likewise.
75406         (__ASSUME_LDT_WORKS): Likewise.
75407         (__ASSUME_O_DIRECTORY): Likewise.
75408         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
75409         architecture but not kernel version.
75410         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
75411         (__ASSUME_MMAP2_SYSCALL): Likewise.
75412         (__ASSUME_STAT64_SYSCALL): Likewise.
75413         (__ASSUME_IPC64): Likewise.
75414         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
75415         <kernel-features.h>.
75416         [__ASSUME_32BITUIDS]: Make code unconditional.
75417         [!__ASSUME_32BITUIDS]: Remove conditional code.
75418         * sysdeps/unix/sysv/linux/opendir.c: Do not include
75419         <kernel-features.h>.
75420         [__ASSUME_O_DIRECTORY]: Make code unconditional.
75421         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
75422         132096]: Remove conditional code.
75423         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
75424         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
75425         <kernel-features.h>.
75426         [__ASSUME_32BITUIDS]: Make code unconditional.
75427         [!__ASSUME_32BITUIDS]: Remove conditional code.
75428         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
75429         <kernel-features.h>.
75430         [__ASSUME_32BITUIDS]: Make code unconditional.
75431         [!__ASSUME_32BITUIDS]: Remove conditional code.
75432         * sysdeps/unix/sysv/linux/setegid.c: Do not include
75433         <kernel-features.h>.
75434         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
75435         unconditional.
75436         (__setresgid): Do not declare.
75437         [__ASSUME_32BITUIDS]: Make code unconditional.
75438         [!__ASSUME_32BITUIDS]: Remove conditional code.
75439         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
75440         <kernel-features.h>.
75441         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
75442         unconditional.
75443         (__setresuid): Do not declare.
75444         [__ASSUME_32BITUIDS]: Make code unconditional.
75445         [!__ASSUME_32BITUIDS]: Remove conditional code.
75446         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
75447         <kernel-features.h>.
75448         [__ASSUME_32BITUIDS]: Make code unconditional.
75449         [!__ASSUME_32BITUIDS]: Remove conditional code.
75450         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
75451         <kernel-features.h>.
75452         [__ASSUME_32BITUIDS]: Make code unconditional.
75453         [!__ASSUME_32BITUIDS]: Remove conditional code.
75454
75455 2012-05-25  Richard Henderson  <rth@twiddle.net>
75456
75457         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
75458         dl_hwcap to ifunc resolver.
75459         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
75460         elf_ifunc_invoke.
75461         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
75462         dl_hwcap to ifunc resolver.
75463         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
75464
75465 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75466
75467         [BZ #14153]
75468         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
75469         for |x| <= 2**-26, not 2**-57.
75470         * math/libm-test.inc (acos_test): Do not allow spurious underflow
75471         exception.
75472
75473 2012-05-24  Jeff Law  <law@redhat.com>
75474
75475         * stdio-common/Makefile (tests): Add bug25.
75476         * stdio-common/bug25.c: New test.
75477
75478 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75479
75480         [BZ #13576]
75481         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
75482         multiple of MALLOC_ALIGNMENT in size.
75483         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
75484
75485 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75486
75487         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
75488         Require >= 256.
75489         (FILENAME_MAX): Use macro-int-constant.
75490         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
75491         (_IOFBF): Use macro-int-constant.
75492         (_IOLBF): Likewise.
75493         (_IONBF): Likewise.
75494         (SEEK_CUR): Likewise.
75495         (SEEK_END): Likewise.
75496         (SEEK_SET): Likewise.
75497         (TMP_MAX): Likewise.
75498         (EOF): Use macro-int-constant.  Require < 0.
75499         (NULL): Use macro-constant.  Require == 0.
75500         (stdin): Require type to be FILE *.
75501         (stdout): Likewise.
75502         (stderr): Likewise.
75503         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
75504         macro-int-constant.
75505         (EXIT_SUCCESS): Likewise.
75506         (NULL): Use macro-constant.  Require == 0.
75507         (RAND_MAX): Use macro-int-constant.
75508         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
75509         [C99-based standards] (strtof): Require function.
75510         [C99-based standards] (strtold): Likewise.
75511         [C99-based standards] (strtoll): Likewise.
75512         [C99-based standards] (strtoull): Likewise.
75513         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
75514         [ISO || ISO99 || ISO11] (limits.h): Likewise.
75515         [ISO || ISO99 || ISO11] (math.h): Likewise.
75516         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
75517         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
75518         [ISO || ISO99 || ISO11] (*_t): Do not allow.
75519
75520 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
75521
75522         [BZ #14132]
75523         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
75524         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
75525         * intl/dgettext.c (DCGETTEXT): Likewise.
75526         * intl/gettext.c (DCGETTEXT): Likewise.
75527         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
75528         * posix/regex_internal.h (gettext): Likewise.
75529         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
75530         Remove declaration.
75531         * include/argz.h (__argz_count_internal)
75532         (__argz_stringify_internal): Remove declaration.
75533         (__argz_count, __argz_stringify): Declare hidden proto.
75534         * intl/dcgettext.c: Remove use of INTDEF.
75535         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
75536         * string/argz-stringify.c: Likewise.
75537         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75538         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75539         Declare hidden proto.
75540         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
75541         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75542         Declare hidden proto.
75543         * include/stdio.h (__asprintf_internal): Don't declare.
75544         (__asprintf): Don't define as macro.  Declare hidden proto.
75545         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
75546         (__fsetlocking): Declare hidden proto.
75547         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
75548         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
75549         hidden proto.
75550         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
75551         (_IO_setlinebuf): Remove use of INTUSE.
75552         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
75553         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
75554         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
75555         Remove declaration.
75556         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
75557         (_IO_do_flush): Remove use of INTUSE.
75558         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
75559         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
75560         (_IO_adjust_column, _IO_least_wmarker)
75561         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
75562         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
75563         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
75564         (_IO_default_doallocate, _IO_wdefault_doallocate)
75565         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
75566         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
75567         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
75568         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
75569         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
75570         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
75571         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
75572         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
75573         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
75574         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
75575         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
75576         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
75577         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
75578         proto.
75579         (_IO_flush_all_internal, _IO_adjust_column_internal)
75580         (_IO_default_uflow_internal, _IO_default_finish_internal)
75581         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
75582         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
75583         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
75584         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
75585         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
75586         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
75587         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
75588         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
75589         (_IO_file_close_internal, _IO_file_close_it_internal)
75590         (_IO_file_underflow_internal, _IO_file_overflow_internal)
75591         (_IO_file_init_internal, _IO_file_attach_internal)
75592         (_IO_file_fopen_internal, _IO_file_read_internal)
75593         (_IO_file_sync_internal, _IO_file_seek_internal)
75594         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
75595         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
75596         (_IO_str_underflow_internal, _IO_str_overflow_internal)
75597         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
75598         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
75599         (_IO_list_all_internal, _IO_link_in_internal)
75600         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
75601         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
75602         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
75603         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
75604         (_IO_do_write_internal, _IO_padn_internal)
75605         (_IO_getline_info_internal, _IO_getline_internal)
75606         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
75607         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
75608         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
75609         (_IO_vfscanf_internal, _IO_vfprintf_internal)
75610         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
75611         (_IO_init_internal, _IO_un_link_internal): Don't declare.
75612         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
75613         with libc_hidden_ver, remove use of INTUSE.
75614         * libio/genops.c: Likewise.
75615         * libio/freopen.c: Likewise.
75616         * libio/freopen64.c: Likewise.
75617         * libio/iofclose.c: Likewise.
75618         * libio/iofdopen.c: Likewise.
75619         * libio/iofflush.c: Likewise.
75620         * libio/iofflush_u.c: Likewise.
75621         * libio/iofgets.c: Likewise.
75622         * libio/iofgets_u.c: Likewise.
75623         * libio/iofopen.c: Likewise.
75624         * libio/iofopncook.c: Likewise.
75625         * libio/iofread.c: Likewise.
75626         * libio/iofread_u.c: Likewise.
75627         * libio/ioftell.c: Likewise.
75628         * libio/iofwrite.c: Likewise.
75629         * libio/iogetline.c: Likewise.
75630         * libio/iogets.c: Likewise.
75631         * libio/iogetwline.c: Likewise.
75632         * libio/iopadn.c: Likewise.
75633         * libio/iopopen.c: Likewise.
75634         * libio/ioseekoff.c: Likewise.
75635         * libio/ioseekpos.c: Likewise.
75636         * libio/iosetbuffer.c: Likewise.
75637         * libio/iosetvbuf.c: Likewise.
75638         * libio/ioungetc.c: Likewise.
75639         * libio/ioungetwc.c: Likewise.
75640         * libio/iovdprintf.c: Likewise.
75641         * libio/iovsprintf.c: Likewise.
75642         * libio/iovsscanf.c: Likewise.
75643         * libio/memstream.c: Likewise.
75644         * libio/obprintf.c: Likewise.
75645         * libio/oldfileops.c: Likewise.
75646         * libio/oldiofclose.c: Likewise.
75647         * libio/oldiofdopen.c: Likewise.
75648         * libio/oldiofopen.c: Likewise.
75649         * libio/oldiopopen.c: Likewise.
75650         * libio/oldstdfiles.c: Likewise.
75651         * libio/putc.c: Likewise.
75652         * libio/setbuf.c: Likewise.
75653         * libio/setlinebuf.c: Likewise.
75654         * libio/stdfiles.c: Likewise.
75655         * libio/strops.c: Likewise.
75656         * libio/vasprintf.c: Likewise.
75657         * libio/vscanf.c: Likewise.
75658         * libio/vsnprintf.c: Likewise.
75659         * libio/vswprintf.c: Likewise.
75660         * libio/wfiledoalloc.c: Likewise.
75661         * libio/wfileops.c: Likewise.
75662         * libio/wgenops.c: Likewise.
75663         * libio/wmemstream.c: Likewise.
75664         * libio/wstrops.c: Likewise.
75665         * libio/__fpurge.c: Likewise.
75666         * libio/__fsetlocking.c: Likewise.
75667         * assert/assert.c: Likewise.
75668         * debug/fgets_chk.c: Likewise.
75669         * debug/fgets_u_chk.c: Likewise.
75670         * debug/fread_chk.c: Likewise.
75671         * debug/fread_u_chk.c: Likewise.
75672         * debug/gets_chk.c: Likewise.
75673         * debug/obprintf_chk.c: Likewise.
75674         * debug/vasprintf_chk.c: Likewise.
75675         * debug/vdprintf_chk.c: Likewise.
75676         * debug/vsnprintf_chk.c: Likewise.
75677         * debug/vsprintf_chk.c: Likewise.
75678         * malloc/mtrace.c: Likewise.
75679         * misc/error.c: Likewise.
75680         * misc/syslog.c: Likewise.
75681         * stdio-common/asprintf.c: Likewise.
75682         * stdio-common/fxprintf.c: Likewise.
75683         * stdio-common/getw.c: Likewise.
75684         * stdio-common/isoc99_fscanf.c: Likewise.
75685         * stdio-common/isoc99_scanf.c: Likewise.
75686         * stdio-common/isoc99_vfscanf.c: Likewise.
75687         * stdio-common/isoc99_vscanf.c: Likewise.
75688         * stdio-common/isoc99_vsscanf.c: Likewise.
75689         * stdio-common/printf-prs.c: Likewise.
75690         * stdio-common/printf_fp.c: Likewise.
75691         * stdio-common/printf_fphex.c: Likewise.
75692         * stdio-common/printf_size.c: Likewise.
75693         * stdio-common/putw.c: Likewise.
75694         * stdio-common/scanf.c: Likewise.
75695         * stdio-common/sprintf.c: Likewise.
75696         * stdio-common/tmpfile.c: Likewise.
75697         * stdio-common/vfprintf.c: Likewise.
75698         * stdio-common/vfscanf.c: Likewise.
75699         * stdlib/strfmon_l.c: Likewise.
75700         * sunrpc/openchild.c: Likewise.
75701         * sunrpc/xdr_stdio.c: Likewise.
75702         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
75703         * sysdeps/mach/hurd/tmpfile.c: Likewise.
75704
75705 2012-05-24  Roland McGrath  <roland@hack.frob.com>
75706
75707         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
75708
75709         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
75710         in the third column, to generate for the shared library an IFUNC
75711         that uses _dl_vdso_vsym.
75712         * Makerules (COMPILE.c, compile-stdin.c): New variables.
75713         * Makeconfig (object-suffixes-noshared): New variable.
75714
75715         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
75716         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
75717         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
75718         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
75719
75720         [BZ #14132]
75721         * include/sys/time.h (__gettimeofday): Remove macro.
75722         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
75723         * time/gettimeofday.c (__gettimeofday): Remove #undef.
75724         Remove INTDEF.
75725         (__gettimeofday): Add libc_hidden_def.
75726         (gettimeofday): Add libc_hidden_weak.
75727         * sysdeps/mach/gettimeofday.c: Likewise.
75728         * sysdeps/posix/gettimeofday.c: Likewise.
75729         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
75730         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
75731         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
75732         (__gettimeofday_internal): Remove strong_alias.
75733         (__gettimeofday): Add libc_hidden_def.
75734         (gettimeofday): Add libc_hidden_weak.
75735         * sysdeps/unix/syscalls.list (gettimeofday):
75736         Remove __gettimeofday_internal alias.
75737
75738 2012-05-24  Daniel Jacobowitz  <drow@false.org>
75739             H.J. Lu  <hongjiu.lu@intel.com>
75740
75741         [BZ #12495]
75742         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
75743         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
75744         (largebin_index_32_big): New.
75745         (largebin_index): Use it for 16-byte alignment.
75746         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
75747         correction with front_misalign.
75748
75749 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
75750
75751         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
75752         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
75753         Likewise.
75754         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
75755         Likewise.
75756         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
75757         Likewise.
75758         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
75759         Likewise.
75760         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
75761         Likewise.
75762         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
75763         Likewise.
75764         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
75765         Likewise.
75766         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
75767         Likewise.
75768         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
75769         Likewise.
75770         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
75771         Likewise.
75772         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
75773         Likewise.
75774         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
75775         Likewise.
75776
75777         * scripts/data/c++-types-x32-linux-gnu.data: New file.
75778         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
75779
75780 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
75781
75782         [BZ #10846]
75783         [BZ #14036]
75784         * math/libm-test.inc (exp_test): Add test from bug 14036.
75785         (pow_test): Add test from bug 10846.
75786
75787         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
75788         and other flags.
75789         (special_function): Do not include flags in test name.
75790         (parse_args): Likewise.
75791         * sysdeps/i386/fpu/libm-test-ulps: Update.
75792         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
75793         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
75794         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
75795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75796
75797         * math/gen-libm-test.pl (%beautify): Add entries for underflow
75798         exceptions.
75799         * math/libm-test.inc ("Philosophy"): Update comment about
75800         exception testing.
75801         (UNDERFLOW_EXCEPTION): New macro.
75802         (UNDERFLOW_EXCEPTION_OK): Likewise.
75803         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
75804         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
75805         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
75806         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
75807         (INVALID_EXCEPTION_OK): Update value.
75808         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
75809         (OVERFLOW_EXCEPTION_OK): Likewise.
75810         (IGNORE_ZERO_INF_SIGN): Likewise.
75811         (test_exceptions): Handle underflow exceptions.
75812         (acos_test): Update for underflow exception expectations.
75813         (cexp_test): Likewise.
75814         (clog_test): Likewise.
75815         (clog10_test): Likewise.
75816         (csqrt_test): Likewise.
75817         (ctan_test): Likewise.
75818         (ctanh_test): Likewise.
75819         (exp_test): Likewise.
75820         (exp10_test): Likewise.
75821         (exp2_test): Likewise.
75822         (expm1_test): Likewise.
75823         (fma_test): Likewise.
75824         (j0_test): Likewise.
75825         (jn_test): Likewise.
75826         (nexttoward_test): Likewise.
75827         (pow_test): Likewise.
75828         (scalbn_test): Likewise.
75829         (scalbln_test): Likewise.
75830         (tan_test): Likewise.
75831         (y1_test): Likewise.
75832         * sysdeps/i386/fpu/libm-test-ulps: Update.
75833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
75834
75835 2012-05-23  David S. Miller  <davem@davemloft.net>
75836
75837         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
75838         (__libc_sigaction): Remove unused local variables.
75839
75840 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75841
75842         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
75843
75844 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         mktime: avoid signed integer overflow
75847         * time/mktime.c (__mktime_internal): Do not mishandle the case
75848         where diff == INT_MIN.
75849
75850         mktime: simplify computation of average
75851         * time/mktime.c (ranged_convert): Use new time_t_avg function
75852         instead of rolling our own (probably-slower) code.
75853
75854         mktime: do not assume signed right shift propagates sign bit
75855         * time/mktime.c (isdst_differ): New static function.
75856         (__mktime_internal): No need to normalize tm_isdst now.
75857         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
75858         tm_isdst values.
75859
75860         mktime: merge another wrapv change from gnulib
75861         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
75862         from some compilers.
75863
75864         mktime: remove incorrect attempt at unusual arithmetics
75865         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
75866         The code didn't really work on such machines anyway.
75867         (TYPE_MINIMUM): Assume two's complement.
75868         (twos_complement_arithmetic): Verify that long_int and time_t
75869         are two's complement (or unsigned, in the latter case).
75870
75871         mktime: check signed shifts on long_int and time_t, too
75872         * time/mktime.c (SHR): Check that shifts work as desired
75873         on the types long_int and time_t too, as SHR is used on
75874         such types.
75875
75876         mktime: do not assume 'long' is wide enough
75877         * time/mktime.c (verify): Move decl up.
75878         (long_int): New type.
75879         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
75880         to remove assumption in the code that 'long' is wide enough to
75881         store year values.  This assumption is not true on x32 and on
75882         some non-glibc platforms.
75883
75884         mktime: merge wrapv change from gnulib
75885         * time/mktime.c (WRAPV): New macro.
75886         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
75887         (guess_time_tm, __mktime_internal): Do not assume that signed
75888         integer overflow wraps around; modern compilers generate code
75889         where this assumption is no longer valid.
75890
75891 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75892
75893         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
75894         Replace "jmp L(pseudo_end)" with "ret".
75895         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
75896         Likewise.
75897
75898 2012-05-23  Andreas Jaeger  <aj@suse.de>
75899
75900         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
75901         * sysdeps/unix/sysv/linux/poll.c: Remove file.
75902
75903 2012-05-23  Andreas Jaeger  <aj@suse.de>
75904             Maximilian Attems  <max@stro.at>
75905
75906         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
75907         New macros.
75908
75909 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
75910
75911         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
75912         code so that pseudo_end is just ret and the stack pointer is
75913         correct also for static library in error case.
75914
75915 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
75916
75917         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
75918         move to syscalls.list.
75919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
75920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
75921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
75922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
75923
75924         * manual/install.texi (Running make install): Do not mention Linux
75925         kernel version for which pt_chown is not needed.
75926         (Linux): Do not mention problems with nscd with 2.0 kernels.
75927         * INSTALL: Regenerated.
75928
75929 2012-05-23  Andreas Jaeger  <aj@suse.de>
75930
75931         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
75932         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
75933         macro.
75934         * sysdeps/unix/sysv/linux/s390/bits/mman.h
75935         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75936         * sysdeps/unix/sysv/linux/sh/bits/mman.h
75937         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75938         * sysdeps/unix/sysv/linux/i386/bits/mman.h
75939         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75940         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
75941         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75942         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
75943         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
75944         * sysdeps/unix/sysv/linux/bits/in.h
75945         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
75946
75947 2012-05-22  Roland McGrath  <roland@hack.frob.com>
75948
75949         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
75950         (PREPARE_VERSION): Just use assert instead, it will be elided
75951         under [NDEBUG] anyway.
75952
75953 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75954
75955         * sysdeps/unix/sysv/linux/Makefile: Include
75956         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
75957         (sysdep_routines): Remove sysctl.
75958         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
75959         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
75960         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
75961         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
75962         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
75963
75964 2012-05-22  Andreas Jaeger  <aj@suse.de>
75965
75966         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
75967         that pseudo_end is just ret and the stack pointer is correct also
75968         for static library in error case.
75969
75970 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
75971
75972         [BZ #14122]
75973         * nss/nsswitch.c (defconfig_entries): New variable.
75974         (__nss_database_lookup): Don't leak defconfig entries.
75975         (nss_parse_service_list): Don't leak on error paths.
75976         (free_database_entries): New function.
75977         (free_defconfig): New function.
75978         (free_mem): Move common code to free_database_entries.
75979
75980 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
75981
75982         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
75983         Add arch_prctl.
75984         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
75985
75986         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
75987         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
75988         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
75989         New macro.
75990         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
75991         (INTERNAL_SYSCALL_TYPES): Likewise.
75992         (LOAD_ARGS_TYPES_[1-6]): Likewise.
75993         (LOAD_REGS_TYPES_[1-6]): Likewise.
75994         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
75995         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
75996
75997 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
75998
75999         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
76000         copysignl for GLIBC_2_0.
76001         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
76002         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
76003         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
76004         logbl for GLIBC_2_0.
76005         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
76006         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
76007
76008 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
76009
76010         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
76011         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76012
76013         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
76014         Use "neg %eax".
76015
76016         * time/mktime.c: Update copyright years.
76017
76018 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         mktime: merge comment-quoting-style change from gnulib
76021         * time/mktime.c: Quote 'like this' in comments.
76022         The GNU coding standards suggest that we no longer quote `like this',
76023         as "`" and "'" are typically rendered asymmetrically nowadays.
76024         The typical gnulib style is to quote 'like this' when quoting
76025         code, and "like this" when quoting English.
76026
76027         * time/mktime.c (compile-command): Add "-I.".
76028
76029         mktime: merge mktime-internal.h change from gnulib
76030         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
76031
76032         mktime: merge time_r change from gnulib
76033         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
76034
76035         mktime: merge DEBUG change from gnulib
76036         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
76037         case system <time.h> has a #define.
76038
76039         mktime: merge <sys/types.h> change from gnulib
76040         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
76041         since <time.t> is now guaranteed to define time_t.
76042
76043         mktime: merge HAVE_CONFIG_H change from gnulib
76044         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
76045
76046 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
76047
76048         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
76049         Use "neg %eax".
76050
76051         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
76052         __rlim_t cast.
76053         (struct rusage): Use anonymous union to pad each field to
76054         __syscall_slong_t.
76055
76056 2012-05-21  David S. Miller  <davem@davemloft.net>
76057
76058         * Makefules (o-iterator): Remove .s cases.
76059         (compile-command.s): Delete.
76060         (COMPILE.s): Delete.
76061         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
76062
76063 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
76064
76065         * configure.in (libc_cv_predef_stack_protector): Only consider
76066         "foobar" and "__stack_chk_fail" lines in libc_undefs.
76067         * configure: Regenerated.
76068
76069 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
76070
76071         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
76072         New macro.  Use R*LP on int and pointer.
76073         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
76074         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
76075         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
76076         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
76077
76078         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
76079         [__WORDSIZE_TIME64_COMPAT32] instead of
76080         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
76081         (struct utmp): Likewise.
76082         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
76083         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
76084         Renamed to ...
76085         (__WORDSIZE_TIME64_COMPAT32): This.
76086         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
76087         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
76088         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
76089         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
76090         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
76091         (__WORDSIZE_TIME64_COMPAT32): New macro.
76092
76093 2012-05-21  Andreas Jaeger  <aj@suse.de>
76094
76095         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
76096         only if [SHARED]. Add prototype for __wcschr_ia32.
76097
76098 2012-05-21  Roland McGrath  <roland@hack.frob.com>
76099
76100         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
76101         of %rbp unmolested in the jmp_buf while mangling the low bits.
76102         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
76103         unmolested high bits of %rbp while demangling the low bits.
76104         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
76105
76106 2012-05-21  Andreas Jaeger  <aj@suse.de>
76107
76108         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
76109         * sunrpc/svc_simple.c: Use it for registerrpc.
76110         * sunrpc/xcrypt.c: Use it for passwd2des.
76111
76112         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
76113
76114 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
76115
76116         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
76117         Don't define if [__SYSCALL_WORDSIZE != 32].
76118         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
76119         New macro.
76120
76121 2012-05-21  Bruno Haible  <bruno@clisp.org>
76122             Andreas Jaeger  <aj@suse.de>
76123
76124         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
76125         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
76126         inptr and inend for must_buffer_ch.
76127         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
76128         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
76129         * stdio-common/Makefile (tests): Remove bug15.
76130         (bug15-ENV): Remove macro.
76131         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
76132         anymore.
76133
76134 2012-05-19  Andreas Jaeger  <aj@suse.de>
76135             Roland McGrath  <roland@hack.frob.com>
76136
76137         * manual/contrib.texi: Completely rewritten. It contains now an
76138         alphabetical list of contributors and their contributions.
76139
76140 2012-05-21  Richard Henderson  <rth@twiddle.net>
76141
76142         * misc/getauxval.c (__getauxval): Use unsigned long int.
76143         * misc/sys/auxv.h: Include <sys/cdefs.h>.
76144         (getauxval): Use unsigned long int.
76145
76146 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
76147
76148         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
76149
76150 2012-05-21  Roland McGrath  <roland@hack.frob.com>
76151
76152         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
76153         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
76154         __alignof__ (long double).
76155
76156 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76157
76158         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
76159
76160 2012-05-20  Richard Henderson  <rth@twiddle.net>
76161
76162         * misc/getauxval.c: New file.
76163         * misc/sys/auxv.h: New file.
76164         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
76165         (routines): Add getauxval.
76166         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
76167         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
76168         * elf/dl-sysdep.c (_dl_auxv): Remove.
76169         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
76170         * elf/dl-support.c (_dl_auxv): New variable.
76171         (_dl_aux_init): Initialize it.
76172         * manual/startup.texi (Auxiliary Vector): New node.
76173         * sysdeps/generic/bits/hwcap.h: New file.
76174         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
76175         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
76176         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
76177         * sysdeps/sparc/sysdep.h: ... here.  Include it.
76178         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
76179         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
76180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
76181         Update.
76182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
76183         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
76184         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
76185         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
76186         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
76187         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
76188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
76189         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
76190
76191 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76192
76193         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
76194
76195 2012-05-19  David S. Miller  <davem@davemloft.net>
76196
76197         * sysdeps/sparc/fpu/libm-test-ulps: Update.
76198
76199 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
76200
76201         [BZ #14123]
76202         * math/s_ccosh.c: Include <float.h>
76203         (__ccosh): Avoid internal overflow calculating sinh and cosh
76204         values before multiplying by sin and cos values.
76205         * math/s_ccoshf.c: Likewise.
76206         * math/s_ccoshl.c: Likewise.
76207         * math/s_csin.c: Likewise.
76208         * math/s_csinf.c: Likewise.
76209         * math/s_csinl.c: Likewise.
76210         * math/s_csinh.c: Likewise.
76211         * math/s_csinhf.c: Likewise.
76212         * math/s_csinhl.c: Likewise.
76213         * math/libm-test.inc (ccos_test): Add more tests.
76214         (ccosh_test): Likewise.
76215         (csin_test): Likewise.
76216         (csinh_test): Likewise.
76217         * sysdeps/i386/fpu/libm-test-ulps: Update.
76218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
76219
76220 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
76221
76222         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
76223         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
76224
76225         * sysdeps/x86_64/x32/_itoa.h: Add comment.
76226
76227 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
76228
76229         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
76230         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
76231         * sysdeps/powerpc/soft-fp/Versions: Likewise.
76232         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
76233         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
76234         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
76235         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
76236         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
76237         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
76238         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
76239         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
76240         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
76241         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
76242         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
76243         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
76244         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
76245         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
76246         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
76247         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
76248         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
76249         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
76250         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
76251         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
76252         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
76253         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
76254         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
76255         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
76256         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
76257         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
76258         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
76259         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
76260
76261 2012-05-18  Andreas Jaeger  <aj@suse.de>
76262
76263         * csu/.gitignore: Delete.
76264
76265 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76266
76267         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
76268         (timex): Use __syscall_slong_t.
76269
76270 2012-05-18  Andreas Jaeger  <aj@suse.de>
76271             Carlos O'Donell  <carlos_odonell@mentor.com>
76272
76273         * manual/install.texi (Configuring and compiling): Update
76274         description about files modified in the source directory.
76275         * INSTALL: Regenerated.
76276
76277 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76278
76279         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
76280         value.  Use "or" to set return value to -1.
76281         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
76282         negate return value.
76283
76284 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
76285
76286         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
76287         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
76288         failure if the compiler has Graphite support disabled.
76289         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
76290         Likewise.
76291         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
76292         (CFLAGS-memmove.c): Likewise.
76293         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
76294         Likewise.
76295
76296 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
76297
76298         * sysdeps/x86_64/x32/_itoa.h: New file.
76299
76300         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
76301         getdents system call only if kernel and user dirents have the
76302         same d_ino and d_off.
76303
76304         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
76305         LLONG_MAX != LONG_MAX.
76306         (_itoa_word): Use _ITOA_WORD_TYPE on value.
76307         (_fitoa_word): Likewise.
76308
76309         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
76310         years.
76311         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
76312         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
76313         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
76314
76315         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
76316         include <bits/wordsize.h>.  Check __x86_64__ instead of
76317         __WORDSIZE.
76318         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
76319         if __x86_64__ is defined.  Use anonymous union on fpstate.
76320
76321         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
76322         anonymous union.
76323
76324 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
76325
76326         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
76327         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
76328         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
76329         Refer to _rtld_local_ro instead of _rtld_global_ro.
76330         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
76331         Likewise.
76332         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
76333         Likewise.
76334         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
76335         Likewise.
76336         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
76337         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
76338         of _rtld_global, and rtld_progname instead of _dl_argv[0].
76339
76340         [BZ #10882]
76341         * sysdeps/powerpc/powerpc32/dl-machine.c
76342         (__elf_machine_runtime_setup) [PROF]: Don't reference
76343         _dl_prof_resolve.
76344
76345 2012-05-18  Andreas Jaeger  <aj@suse.de>
76346
76347         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
76348         function only available for GCCs before 3.4 since GCC 3.4
76349         introduced a builtin.
76350         (lrint): Likewise.
76351         (llrintf): Likewise.
76352         (llrint): Likewise.
76353         (fmaxf): Likewise.
76354         (fmax): Likewise.
76355         (fminf): Likewise.
76356         (fmin): Likewise.
76357         (rint): Likewise.
76358         (rintf): Likewise.
76359         (nearbyint): Likewise.
76360         (nearbyintf): Likewise.
76361         (ceil): Likewise.
76362         (ceilf): Likewise.
76363         (floor): Likewise.
76364         (floorf): Likewise.
76365
76366 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76367
76368         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
76369         on both fields and cast pointer to __syscall_ulong_t.
76370
76371         * bits/types.h (__fsword_t): New type.
76372         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
76373         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
76374         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76375         (__FSWORD_T_TYPE): Likewise.
76376         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76377         (__FSWORD_T_TYPE): Likewise.
76378         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76379         (__FSWORD_T_TYPE): Likewise.
76380         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
76381         (__FSWORD_T_TYPE): Likewise.
76382         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
76383         __SWORD_TYPE with __fsword_t.
76384         (statfs64): Likewise.
76385
76386 2012-05-17  David S. Miller  <davem@davemloft.net>
76387
76388         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
76389
76390 2012-05-17  Andreas Jaeger  <aj@suse.de>
76391
76392         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
76393         warning.
76394
76395 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76396
76397         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
76398
76399 2012-05-17  Andreas Jaeger  <aj@suse.de>
76400
76401         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
76402         when it is used.
76403
76404 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76405
76406         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
76407
76408 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
76409
76410         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
76411         * sysdeps/x86_64/tst-mallocalign1.c: New file.
76412
76413 2012-05-17  Andreas Jaeger  <aj@suse.de>
76414             Carlos O'Donell  <carlos_odonell@mentor.com>
76415
76416         [BZ #14059]
76417         * sysdeps/x86_64/multiarch/init-arch.h
76418         (bit_YMM_Usable): Rename to...
76419         (bit_AVX_Usable): ... this.
76420         (bit_FMA4_Usable): New macro.
76421         (bit_XMM_state): New macro.
76422         (bit_YMM_state): New macro.
76423         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
76424         [__ASSEMBLER__] (index_AVX_Usable): ... this.
76425         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
76426         (CPUID_OSXSAVE): New macro.
76427         (CPUID_AVX): New macro.
76428         (CPUID_FMA4): New macro.
76429         (index_YMM_Usable): Rename to...
76430         (index_AVX_Usable): ... this.
76431         (HAS_AVX): Use HAS_ARCH_FEATURE.
76432         (HAS_FMA4): Likewise.
76433         (HAS_YMM_USABLE): Remove.
76434         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76435         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
76436         are present.
76437         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
76438         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
76439         * sysdeps/x86_64/multiarch/Makefile: Likewise.
76440         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
76441         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
76442
76443 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
76444
76445         * math/libm-test.c: Support platforms without multiple rounding modes.
76446         * math/bug-nextafter.c: Support platforms without FP exceptions.
76447         * math/bug-nexttoward.c: Likewise.
76448         * math/test-fenv.c: Likewise.
76449         * math/test-misc.c: Likewise.
76450         * stdlib/bug-getcontext.c: Likewise.
76451
76452 2012-05-17  Andreas Jaeger  <aj@suse.de>
76453
76454         * manual/examples/search.c (critter_cmp): Change signature to
76455         avoid warnings.
76456         * manual/string.texi (Collation Functions): Likewise.
76457
76458 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76459
76460         * bits/types.h: Fold copyright years.
76461         * bits/typesizes.h: Likewise.
76462         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
76463         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
76464         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
76465         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
76466         * time/time.h: Likewise.
76467
76468 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
76469
76470         [BZ #208]
76471         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
76472         in instead of returning them.  Return void.
76473         (__libc_mallinfo): Accumulate over all arenas.
76474         (__malloc_stats): Adjust for change in int_mallinfo interface.
76475
76476 2012-05-16  Roland McGrath  <roland@hack.frob.com>
76477
76478         [BZ #10375]
76479         * configure.in (NM): Add AC_CHECK_TOOL for it.
76480         (libc_extra_cflags): New substituted variable.
76481         Check for -fstack-protector being used implicitly.
76482         * configure: Regenerated.
76483         * config.make.in (config-extra-cflags): New variable,
76484         gets @libc_extra_cflags@.
76485         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
76486
76487         [BZ #10375]
76488         * configure.in: Check for _FORTIFY_SOURCE being predefined.
76489         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
76490         * configure: Regenerated.
76491         * config.make.in (CPPUNDEFS): New substituted variable.
76492         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
76493         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
76494         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
76495
76496 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76497
76498         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
76499         (mq_attr): Use __syscall_slong_t.
76500
76501 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76502
76503         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
76504         Check __x86_64__ instead of __WORDSIZE.
76505         (_STAT_VER_LINUX): Likewise.
76506         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
76507         __syscall_ulong_t and __syscall_slong_t.
76508         (stat64): Likewise.
76509
76510 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76511
76512         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
76513
76514 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76515
76516         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
76517
76518 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76519
76520         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
76521         __syscall_ulong_t.
76522
76523         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
76524         include <bits/wordsize.h>.  Check __x86_64__ instead of
76525         __WORDSIZE.
76526         (greg_t): Use "__extension__ long long int" if __x86_64__ is
76527         defined.
76528         (mcontext_t): Replace "unsigned long" with "unsigned long long".
76529
76530         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
76531         include <bits/wordsize.h>.  Check __x86_64__ instead of
76532         __WORDSIZE.
76533         (user_regs_struct): Use "__extension__ unsigned long long"
76534         instead of "unsigned long" if __x86_64__ is defined.
76535         (user): Likewise.  Pad after pointer field if __ILP32__ is
76536         defined.
76537
76538 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
76539
76540         * configure.in (makeinfo): Require version 4.5 or later.  Allow
76541         versions 5 to 9.
76542         * configure: Regenerated.
76543         * manual/install.texi (texinfo): Increase version requirement to
76544         4.5 or later.
76545         * INSTALL: Regenerated.
76546
76547         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
76548
76549 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
76550
76551         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
76552
76553         * sysdeps/x86_64/x32/ffs.c: New file.
76554
76555         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
76556         __syscall_ulong_t.
76557         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
76558         defined.  Use __syscall_ulong_t.
76559         (shminfo): Use __syscall_ulong_t.
76560         (shm_info): Likewise.
76561
76562         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
76563         __syscall_ulong_t.
76564
76565         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
76566         <bits/wordsize.h>.
76567         (msgqnum_t): Use __syscall_ulong_t.
76568         (msglen_t): Likewise.
76569         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
76570         __syscall_ulong_t.
76571
76572         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
76573         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76574
76575         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
76576
76577         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
76578         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
76579
76580         * sysvipc/sys/msg.h (msgbuf): Replace long int with
76581         __syscall_slong_t.
76582
76583         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
76584         include <bits/wordsize.h>.  Check __x86_64__ instead of
76585         __WORDSIZE.
76586
76587         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
76588         "unsigned long long int" if __x86_64__ is defined.
76589         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
76590
76591         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
76592         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
76593         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
76594
76595         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
76596         <stdint.h>.
76597         (GET_PC): Cast to uintptr_t first.
76598         (GET_FRAME): Likewise.
76599         (GET_STACK): Likewise.
76600
76601         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
76602         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
76603         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
76604         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
76605         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
76606         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
76607         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
76608         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
76609         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
76610         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
76611         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
76612         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
76613         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
76614         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
76615         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
76616         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
76617         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
76618         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
76619         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
76620         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
76621         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
76622         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
76623         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
76624         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
76625         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
76626         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
76627         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
76628         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
76629         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
76630
76631 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
76632
76633         * Makerules (+depfiles): Also collect depfiles from .oS in
76634         $(extra-objs).
76635         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
76636         .oS, $(libnldbl-routines)).
76637
76638         * Makerules (native-compile-mkdep-flags): Define.
76639         * sunrpc/Makefile (extra-objs): Add $(addprefix
76640         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
76641         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
76642         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
76643         calling $(make-target-directory).
76644
76645 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76646
76647         * bits/types.h (__snseconds_t): Removed.
76648         * time/time.h (struct timespec): Replace __snseconds_t with
76649         __syscall_slong_t.
76650         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
76651         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
76652         Likewise.
76653         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76654         (__SNSECONDS_T_TYPE): Likewise.
76655         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76656         (__SNSECONDS_T_TYPE): Likewise.
76657         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76658         (__SNSECONDS_T_TYPE): Likewise.
76659
76660 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76661
76662         * sysdeps/mach/hurd/bits/typesizes.h
76663         (__SYSCALL_SLONG_TYPE): New macro.
76664         (__SYSCALL_ULONG_TYPE): Likewise.
76665
76666 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76667
76668         * bits/types.h (__syscall_slong_t): New type.
76669         (__syscall_ulong_t): Likewise.
76670
76671         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
76672         (__SYSCALL_ULONG_TYPE): Likewise.
76673         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
76674         (__SYSCALL_SLONG_TYPE): Likewise.
76675         (__SYSCALL_ULONG_TYPE): Likewise.
76676         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
76677         (__SYSCALL_SLONG_TYPE): Likewise.
76678         (__SYSCALL_ULONG_TYPE): Likewise.
76679         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
76680         (__SYSCALL_SLONG_TYPE): Likewise.
76681         (__SYSCALL_ULONG_TYPE): Likewise.
76682
76683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76684
76685         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
76686         Add sigaltstack-offsets.sym.
76687         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
76688         <sigaltstack-offsets.h>.
76689         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
76690         longjmp_msg pointer.
76691         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
76692         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
76693         signal stack.
76694         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
76695
76696 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76697
76698         * elf/stackguard-macros.h: Remove file.
76699         * sysdeps/generic/stackguard-macros.h: New file.
76700         * sysdeps/i386/stackguard-macros.h: Likewise.
76701         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
76702         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
76703         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
76704         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
76705         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
76706         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
76707         * sysdeps/x86_64/stackguard-macros.h: Likewise.
76708         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
76709         <elf/stackguard-macros.h>.
76710
76711         [BZ #14109]
76712         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
76713         __aligned__ in attribute.
76714         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
76715         (gregset_t): Likewise.
76716
76717 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76718
76719         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
76720         * sysdeps/x86_64/64/Implies-after: Here.  New file.
76721         * sysdeps/x86_64/x32/Implies-after: New file.
76722
76723 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76724
76725         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
76726         and access return value for _dl_profile_fixup.  Use R10_LP to
76727         load frame size.
76728
76729 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76730
76731         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
76732
76733 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76734
76735         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
76736         * sysdeps/x86_64/x32/sysdep.h: New file.
76737
76738 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76739
76740         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
76741         * sysdeps/x86_64/setjmp.S: Likewise.
76742
76743 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76744
76745         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
76746         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
76747         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
76748         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
76749         remove unused global constant.
76750
76751 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
76752
76753         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
76754         include of <not-cancel.h>.
76755
76756 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76757
76758         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
76759
76760 2012-05-15  Jeff Law  <law@redhat.com>
76761             Andreas Jaeger  <aj@suse.de>
76762
76763         [BZ #13594]
76764         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
76765         out from...
76766         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
76767         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
76768         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
76769         code changing __hst_map_handle.map.
76770
76771 2012-05-15  Roland McGrath  <roland@hack.frob.com>
76772
76773         * configure.in (sysnames): Look for Implies-before and Implies-after
76774         files.
76775         * configure: Regenerated.
76776
76777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76778
76779         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
76780         8-byte data alignment with LP_SIZE alignment.
76781
76782 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76783
76784         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
76785         into R10_LP.
76786
76787 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76788
76789         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
76790
76791 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76792
76793         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
76794         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
76795         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
76796         Likewise.
76797         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
76798
76799 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76800
76801         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
76802         (stackinfo_sub_sp): Likewise.
76803
76804 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76805
76806         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
76807         RAX_LP.
76808
76809 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76810
76811         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
76812         into R*_LP.
76813
76814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76815
76816         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
76817         sizes into R*_LP.
76818
76819 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76820
76821         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
76822
76823 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76824
76825         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
76826         into R11_LP and load __x86_64_shared_cache_size_half into
76827         R8_LP.
76828
76829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
76830
76831         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
76832         R8_LP.
76833
76834 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
76835
76836         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
76837         logb for POWER7.
76838         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
76839         logbf for POWER7.
76840         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
76841         logbl for POWER7.
76842         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
76843         powerpc32/power7/fpu/s_logb.c via #include.
76844         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
76845         powerpc32/power7/fpu/s_logbf.c via #include.
76846         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
76847         powerpc32/power7/fpu/s_logbl.c via #include.
76848
76849 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
76850
76851         * README.libm: Remove file.
76852
76853 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76854
76855         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
76856         count for x32.  Use R*_LP and omit operand-size suffix.
76857
76858 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76859
76860         * shlib-versions: Move x86_64-.*-linux.* entries to ...
76861         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
76862         * sysdeps/x86_64/x32/shlib-versions: New file.
76863
76864 2012-05-14  Roland McGrath  <roland@hack.frob.com>
76865
76866         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
76867         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
76868         Use _dl_fatal_printf instead.
76869
76870 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76871
76872         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
76873         set if not set by the user.  Do not allow for being unset.
76874         * sysdeps/unix/sysv/linux/configure: Regenerated.
76875
76876 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76877
76878         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
76879         the `q' suffix from lea and replace .quad with ASM_ADDR.
76880
76881 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76882
76883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
76884         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
76885         instead of $17.
76886         (PTR_DEMANGLE): Likewise.
76887
76888 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76889
76890         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
76891         (LP_OP): Likewise.
76892         (ASM_ADDR): Likewise.
76893         (RAX_LP): Likewise.
76894         (RBP_LP): Likewise.
76895         (RBX_LP): Likewise.
76896         (RCX_LP): Likewise.
76897         (RDI_LP): Likewise.
76898         (RSI_LP): Likewise.
76899         (RSP_LP): Likewise.
76900         (R8_LP): Likewise.
76901         (R9_LP): Likewise.
76902         (R10_LP): Likewise.
76903         (R10_LP): Likewise.
76904         (R11_LP): Likewise.
76905         (R12_LP): Likewise.
76906         (R13_LP): Likewise.
76907         (R14_LP): Likewise.
76908         (R15_LP): Likewise.
76909
76910 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
76911
76912         * sysdeps/x86_64/x32/dl-machine.h: New file.
76913
76914 2012-05-14  Andreas Jaeger  <aj@suse.de>
76915
76916         * manual/Makefile (subdir): Remove export of subdir.
76917         (all): Remove target.
76918         (.PHONY): Remove all from list.
76919         (mkinstalldirs): Remove.
76920         (.PHONY): Remove installdirs from list.
76921         ($(inst_infodir)/libc.info): Use make-target-directory.
76922         (installdirs): Remove.
76923         (subdir_%): Remove.
76924         (glibc-targets): Remove.
76925         (lib): Remove.
76926         (stubs): Remove.
76927         ($(objpfx)stubs ../po/manual.pot): Remove.
76928         ($(objpfx)stamp%): Remove.
76929         (make-target-directory): Remove.
76930         (subdir_install): Remove.
76931         (routines): Remove.
76932         (aux): Remove.
76933         (sources): Remove.
76934         (objects): Remove.
76935         (headers): Remove.
76936
76937         [BZ #13750]
76938         * manual/.gitignore: Remove, it's not needed anymore.
76939         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
76940         all files in it.
76941         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
76942         directory.
76943         (texis): Renamed to $(objpfx)texis.
76944         (texis-path): New, contains path to generated files.
76945         (chapters.%): Use texis-path for complete path, add extra argument
76946         libc-texinfo.sh.
76947         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
76948         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
76949         (summary,texi, stamp-summary): Use complete path of
76950         files. Generate files in build dir.
76951         (dir-add.texi): Build in build dir.
76952         (libm-err.texi,stamp-libm-err): Likewise.
76953         (version.texi, stamp-version): Likewise.
76954         (.%c.texi): Likewise.
76955         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
76956         (mostlyclean): Remove target.
76957         (realclean): Remove target.
76958         (generated): Add new variable with contents from mostlyclean and
76959         realclean, remove entries duplicated in common-mostlyclean, add
76960         stamp-libm-err and stamp-version.
76961         (generated-dirs): Add libc directory.
76962         ($(inst_infodir)/libc.info): Install files from build dir.
76963
76964         * manual/install.texi (Configuring and compiling): Adjust since
76965         the info files are not part of the tar ball anymore.
76966
76967 2012-05-14  Andreas Jaeger  <aj@suse.de>
76968
76969         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
76970         variable.
76971
76972 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
76973
76974         [BZ #13717]
76975         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
76976         to 2.2.0 where earlier.
76977         * sysdeps/unix/sysv/linux/configure: Regenerated.
76978         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
76979         Remove conditional code.
76980         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
76981         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
76982         Remove conditional code.
76983         [!__NR_lchown]: Likewise.
76984         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
76985         [__NR_lchown]: Likewise.
76986         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
76987         comment referencing __ASSUME_LCHOWN_SYSCALL.
76988         * sysdeps/unix/sysv/linux/i386/sigaction.c
76989         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
76990         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
76991         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
76992         Remove conditional code.
76993         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
76994         (__protocol_available): Remove #if 0 code.
76995         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
76996         conditional code.
76997         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
76998         * sysdeps/unix/sysv/linux/kernel-features.h
76999         (__ASSUME_GETCWD_SYSCALL): Don't define.
77000         (__ASSUME_REALTIME_SIGNALS): Likewise.
77001         (__ASSUME_PREAD_SYSCALL): Likewise.
77002         (__ASSUME_PWRITE_SYSCALL): Likewise.
77003         (__ASSUME_POLL_SYSCALL): Likewise.
77004         (__ASSUME_LCHOWN_SYSCALL): Likewise.
77005         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
77006         non-SPARC.
77007         (__ASSUME_SIOCGIFNAME): Don't define.
77008         (__ASSUME_MSG_NOSIGNAL): Likewise.
77009         (__ASSUME_SENDFILE): Define unconditionally.
77010         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
77011         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
77012         conditional code.
77013         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
77014         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
77015         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
77016         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
77017         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
77018         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
77019         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
77020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
77021         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77022         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
77024         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77025         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
77027         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77028         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
77030         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77031         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
77033         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77034         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
77036         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
77037         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
77039         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77040         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
77042         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77043         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77044         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
77045         Remove conditional code.
77046         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77047         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
77048         Remove conditional code.
77049         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77050         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
77051         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
77052         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
77053         Remove conditional code.
77054         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77055         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
77056         Remove conditional code.
77057         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77058         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
77059         Remove conditional code.
77060         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77061         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
77062         Remove conditional code.
77063         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
77064         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
77065         Remove conditional code.
77066         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77067         * sysdeps/unix/sysv/linux/sh/pwrite64.c
77068         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
77069         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
77070         * sysdeps/unix/sysv/linux/sigaction.c
77071         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77072         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77073         * sysdeps/unix/sysv/linux/sigpending.c
77074         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77075         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77076         * sysdeps/unix/sysv/linux/sigprocmask.c
77077         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77078         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77079         * sysdeps/unix/sysv/linux/sigsuspend.c
77080         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
77081         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
77082         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
77083         (__libc_missing_rt_sigs): Remove.
77084         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
77085         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
77086         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
77087         Remove conditional code.
77088         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
77089         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
77090         return 1.
77091         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
77092         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
77093         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
77094         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
77095
77096 2012-05-14  Andreas Jaeger  <aj@suse.de>
77097
77098         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
77099         it's not used in glibc.
77100         (__coshm1): Likewise.
77101         (__acosh1p): Likewise.
77102         (__sgn): Likewise.
77103
77104         * manual/string.texi (Copying and Concatenation): Add missing
77105         variable in concat example.
77106         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
77107
77108 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77109
77110         [BZ #14103]
77111         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
77112         __builtin_clzl with __builtin_clzll.
77113
77114 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
77115
77116         [BZ #14104]
77117         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
77118         libc_freeres_ptr.
77119
77120 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
77121
77122         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
77123         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
77124         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
77125         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
77126
77127 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
77128
77129         * NEWS: Update ia64 info.
77130
77131 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
77132
77133         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
77134         used as bcopy.
77135
77136 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
77137
77138         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
77139         * sysdeps/unix/syscalls.list (dup3): Likewise.
77140         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
77141         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
77142
77143 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
77144
77145         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
77146         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
77147
77148 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
77149
77150         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
77151         thread pointer.
77152         (TLS_IE): Use mov/add instead of movq/addq to load thread
77153         pointer.
77154         (TLS_GD_PREFIX): New.
77155         (TLS_GD): Use it.
77156
77157 2012-05-11  David S. Miller  <davem@davemloft.net>
77158
77159         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
77160         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
77161         (_FPU_SETCW): Likewise.
77162
77163 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77164
77165         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
77166         is 32-byte aligned.
77167
77168 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
77169
77170         [BZ #11837]
77171         * iconvdata/gb18030.c: Update tables.
77172         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
77173         characters specially.
77174         (BODY for TO_LOOP): Add encoding of missing ranges.
77175
77176 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
77177
77178         [BZ #13673]
77179         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
77180         * sysdeps/mach/hurd/dup3.c: Likewise.
77181         * sysdeps/mach/hurd/readlinkat.c: Likewise.
77182         * sysdeps/powerpc/memmove.c:: Likewise.
77183
77184 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77185
77186         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
77187         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
77188
77189 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77190
77191         * elf/elf.h (R_X86_64_RELATIVE64): New.
77192         (R_X86_64_NUM): Updated.
77193         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
77194         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
77195         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
77196         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
77197         tst-quad1pie tst-quad2pie
77198         (modules-names): Add tst-quadmod1 tst-quadmod2.
77199         ($(objpfx)tst-quad1): New dependency.
77200         ($(objpfx)tst-quad2): Likewise.
77201         ($(objpfx)tst-quad1pie): Likewise.
77202         ($(objpfx)tst-quad2pie): Likewise.
77203         * sysdeps/x86_64/tst-quad1.c: New file.
77204         * sysdeps/x86_64/tst-quad1pie.c: New file.
77205         * sysdeps/x86_64/tst-quad2.c: Likewise.
77206         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
77207         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
77208         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
77209         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
77210         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
77211
77212 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77213
77214         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
77215         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
77216         * streams/stropts.h (t_scalar_t): Define type.
77217
77218         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
77219         (_PATH_PRESERVE): Set to "/var/lib".
77220         (_PATH_RWHODIR): Set to "/var/spool/rwho".
77221
77222         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
77223         instead of int.
77224
77225         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
77226         if __dir_mkfile succeeded.
77227
77228         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
77229         checking for _hurd_dtablesize.  Unlock it right after having
77230         finished _hurd_dtable allocation.
77231
77232 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77233
77234         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
77235         * sysdeps/mach/hurd/configure: Regenerated.
77236         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
77237         special-casing to...
77238         * sysdeps/gnu/configure.in: ... this new file.
77239         * sysdeps/unix/sysv/linux/configure: Regenerated.
77240         * sysdeps/gnu/configure: New generated file.
77241
77242         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
77243         for Linux: use nsec instead of usec, as well as:
77244         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
77245         members of type struct timespec.
77246         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
77247         New macros.
77248         (struct stat64): Likewise.
77249         (_STATBUF_ST_NSEC): New macro.
77250         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
77251
77252         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
77253         __strtoul_internal rather than strtoul.
77254
77255 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77256
77257         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
77258         and reject them.
77259
77260 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77261
77262         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
77263         which preserves existing values.
77264         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
77265
77266 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77267
77268         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
77269         TIMEOUT values.  Return EINVAL for NFDS values either negative or
77270         greater than FD_SETSIZE.
77271
77272 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77273
77274         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
77275         allocated, call __vm_protect to finish enabling the existing space, and
77276         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
77277         allocate the remainder.
77278
77279 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77280
77281         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
77282         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
77283
77284 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77285
77286         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
77287         sysdeps/mach/hurd/readlink.c.
77288
77289         * posix/tst-sysconf.c (posix_options): Only use
77290         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
77291         _POSIX_SYNCHRONIZED_IO when they are defined
77292         * sysdeps/mach/hurd/bits/posix_opt.h:
77293         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
77294         (_XOPEN_REALTIME): Undefine macro.
77295         (_XOPEN_REALTIME_THREADS): Undefine macro.
77296         (_XOPEN_SHM): Undefine macro.
77297         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
77298         macro to -1.
77299         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
77300         macro to -1.
77301         (_POSIX_ASYNC_IO): Undefine macro.
77302         (_POSIX_PRIORITIZED_IO): Undefine macro.
77303         (_POSIX_SPIN_LOCKS): Define macro to -1.
77304
77305         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
77306         SA_NODEFER, SA_RESETHAND.
77307         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
77308         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
77309         F_DUPFD_CLOEXEC.
77310
77311 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77312
77313         * elf/Makefile (pldd-modules): Define unconditionally.
77314
77315 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77316
77317         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
77318
77319 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77320
77321         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
77322         Return ENOENT when name is empty.
77323         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
77324
77325 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77326
77327         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
77328
77329         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
77330
77331 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77332
77333         Fix mlock in all cases except non-readable pages.
77334         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
77335         instead of VM_PROT_ALL as parameter to __vm_wire function.
77336
77337         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
77338         (__mkdir): When path is `/', just fail with EEXIST.
77339         * sysdeps/mach/hurd/mkdirat.c: Likewise.
77340
77341 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77342
77343         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
77344         <sys/uio.h> (for writev).
77345         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
77346         and <sys/param.h> (for MIN).
77347
77348 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
77349
77350         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
77351         REQUESTED_TIME.  Properly set the remaining time and return EINTR
77352         if interrupted.
77353
77354 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77355
77356         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
77357         Depend on against $(link-rpcuserlibs).
77358
77359 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77360
77361         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
77362         (__libc_stack_end): Do not use attribute_relro.
77363         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
77364         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
77365         to libthread-provided value.
77366         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
77367         attribute_relro.
77368
77369 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77370
77371         [BZ #3748]
77372         * bits/libc-lock.h (__libc_once_get): New macro.
77373         * sysdeps/mach/bits/libc-lock.h: Likewise.
77374         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
77375         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
77376         instead of using implementation details.
77377
77378         * libio/fileops.c: Unconditionally include <kernel-features.h>.
77379         * libio/freopen.c: Likewise.
77380         * libio/freopen64.c: Likewise.
77381         * misc/syslog.c: Likewise.
77382         * nscd/connections.c: Likewise.
77383         * nscd/netgroupcache.c: Likewise.
77384         * sysdeps/posix/getcwd.c: Likewise.
77385
77386 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77387
77388         * math/w_ilogbf.c: Add #include <limits.h>.
77389
77390 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77391
77392         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
77393         path instead of returning without unlocking.
77394
77395         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
77396         immediate-write ioctls.
77397         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
77398
77399 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77400
77401         * sysdeps/mach/hurd/i386/init-first.c (init): Use
77402         __builtin_frame_address instead of making assumptions about the
77403         location of the return address relative to DATA.  Force early load of
77404         the return address.
77405         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
77406         __builtin_frame_address.
77407
77408         dup3 for GNU Hurd.
77409         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
77410         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
77411         implement dup3 and do some further code clean-ups.
77412         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
77413         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
77414
77415 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77416
77417         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
77418
77419         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
77420         HURD_CRITICAL_END around holding _hurd_dtable_lock.
77421         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
77422         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
77423         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
77424         d->port.lock.
77425
77426         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
77427         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
77428         when handler == SIG_ERR, not when handler != SIG_ERR.
77429
77430 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77431
77432         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
77433         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
77434         definitions.
77435
77436         accept4 for GNU Hurd.
77437         * include/sys/socket.h (__libc_accept4): New prototype.
77438         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
77439         to implement __libc_accept4.
77440         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
77441         __libc_accept4.
77442         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
77443
77444         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
77445         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
77446         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
77447         signal-defines.sym.
77448
77449 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77450
77451         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
77452
77453 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
77454
77455         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
77456         assertion on O_CLOEXEC flag.
77457         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
77458         * hurd/intern-fd.c: Likewise.
77459         * hurd/port2fd.c: Likewise.
77460
77461 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
77462
77463         [BZ #3906]
77464         * bits/in.h (IPV6_PKTINFO): Define new macro.
77465         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
77466
77467 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
77468
77469         [BZ #13954]
77470         [BZ #13955]
77471         [BZ #13956]
77472         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
77473         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
77474         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
77475         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
77476         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
77477         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
77478         * math/libm-test.inc (logb_test) : Additional logb tests.
77479
77480 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
77481             Andreas Jaeger  <aj@suse.de>
77482
77483         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
77484         * configure: Regenerated.
77485         * config.h.in (LINK_OBSOLETE_RPC): New macro.
77486         * config.make.in (link-obsolete-rpc): New substituted variable.
77487         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
77488         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
77489         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77490         (shared-only-routines): Don't set it under [link-obsolete-rpc],
77491         so that libc.a contains the symbols.
77492         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
77493         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
77494         * sunrpc/auth_none.c: Likewise.
77495         * sunrpc/auth_unix.c: Likewise.
77496         * sunrpc/authdes_prot.c: Likewise.
77497         * sunrpc/authuxprot.c: Likewise.
77498         * sunrpc/clnt_gen.c: Likewise.
77499         * sunrpc/clnt_perr.c: Likewise.
77500         * sunrpc/clnt_raw.c: Likewise.
77501         * sunrpc/clnt_simp.c: Likewise.
77502         * sunrpc/clnt_tcp.c: Likewise.
77503         * sunrpc/clnt_udp.c: Likewise.
77504         * sunrpc/clnt_unix.c: Likewise.
77505         * sunrpc/des_crypt.c: Likewise.
77506         * sunrpc/des_soft.c: Likewise.
77507         * sunrpc/get_myaddr.c: Likewise.
77508         * sunrpc/key_call.c: Likewise.
77509         * sunrpc/key_prot.c: Likewise.
77510         * sunrpc/netname.c: Likewise.
77511         * sunrpc/pm_getmaps.c: Likewise.
77512         * sunrpc/pm_getport.c: Likewise.
77513         * sunrpc/pmap_clnt.c: Likewise.
77514         * sunrpc/pmap_prot.c: Likewise.
77515         * sunrpc/pmap_prot2.c: Likewise.
77516         * sunrpc/pmap_rmt.c: Likewise.
77517         * sunrpc/publickey.c: Likewise.
77518         * sunrpc/rpc_cmsg.c: Likewise.
77519         * sunrpc/rpc_common.c: Likewise.
77520         * sunrpc/rpc_dtable.c: Likewise.
77521         * sunrpc/rpc_prot.c: Likewise.
77522         * sunrpc/rpc_thread.c: Likewise.
77523         * sunrpc/rtime.c: Likewise.
77524         * sunrpc/svc.c: Likewise.
77525         * sunrpc/svc_auth.c: Likewise.
77526         * sunrpc/svc_raw.c: Likewise.
77527         * sunrpc/svc_run.c: Likewise.
77528         * sunrpc/svc_tcp.c: Likewise.
77529         * sunrpc/svc_udp.c: Likewise.
77530         * sunrpc/svc_unix.c: Likewise.
77531         * sunrpc/svcauth_des.c: Likewise.
77532         * sunrpc/xcrypt.c: Likewise.
77533         * sunrpc/xdr.c: Likewise.
77534         * sunrpc/xdr_array.c: Likewise.
77535         * sunrpc/xdr_float.c: Likewise.
77536         * sunrpc/xdr_intXX_t.c: Likewise.
77537         * sunrpc/xdr_mem.c: Likewise.
77538         * sunrpc/xdr_rec.c: Likewise.
77539         * sunrpc/xdr_ref.c: Likewise.
77540         * sunrpc/xdr_sizeof.c: Likewise.
77541         * sunrpc/xdr_stdio.c: Likewise.
77542
77543 2012-05-10  Roland McGrath  <roland@hack.frob.com>
77544
77545         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
77546         change.  Update copyright years.
77547
77548 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77549
77550         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
77551
77552 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
77553             Joseph Myers  <joseph@codesourcery.com>
77554             Paul Pluzhnikov  <ppluzhnikov@google.com>
77555
77556         [BZ #14012]
77557         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
77558         requiring rpcgen.
77559         [cross-compiling] (extra-libs): Likewise.
77560         [cross-compiling] (extra-libs-others): Likewise.
77561         [cross-compiling] (librpcsvc-routines): Likewise.
77562         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
77563         [cross-compiling] (omit-deps): Likewise.
77564         (sunrpc-CPPFLAGS): New variable.
77565         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
77566         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
77567         (cross-rpcgen-objs): New variable.
77568         (extra-objs): Append $(cross-rpcgen-objs).
77569         ($(cross-rpcgen-objs)): New rule.
77570         ($(objpfx)cross-rpcgen): Likewise.
77571         (rpcgen-cmd): Define to use $(built-program-file).  Expand
77572         comment.
77573         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
77574         ($(objpfx)x%.stmp): Likewise.
77575         * sunrpc/proto.h [IS_IN_build] (_): Define.
77576         [IS_IN_build] (_libc_intl_domainname): Likewise.
77577
77578 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
77579
77580         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
77581         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
77582         and R_X86_64_TPOFF64.
77583
77584 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
77585
77586         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
77587         sysdeps/unix/sysv/syscalls.list.
77588         (stime): Likewise.
77589         (utime): Likewise.
77590         * sysdeps/unix/sysv/syscalls.list: Remove file.
77591
77592 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77593
77594         [BZ #3440]
77595         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
77596         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
77597         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
77598         (__LC_IDENTIFICATION): Make these macros useful in #if
77599         expressions, as required by C99.
77600
77601 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
77602
77603         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
77604         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
77605         after this.
77606
77607 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
77608
77609         * stdlib/longlong.h: Updated from GCC.
77610
77611 2012-05-09  Andreas Jaeger  <aj@suse.de>
77612
77613         * nscd/nscd.c (run_modes): Make named enum, reorder so that
77614         default is first entry.
77615         (run_mode): Set type.
77616         (main): Remove informal message about syslog.
77617         (options): Fix typo.
77618
77619         [BZ #14053]
77620         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
77621         to asm.
77622         (lrint): Likewise.
77623         (llrintf): Likewise.
77624         (llrint): Likewise.
77625         (rint): Likewise.
77626         (rintf): Likewise.
77627         (nearbyint): Likewise.
77628         (nearbyintf): Likewise.
77629
77630 2012-05-09  Andreas Jaeger  <aj@suse.de>
77631             Pedro Alves  <palves@redhat.com>
77632
77633         * nscd/nscd.c (run_mode): Use enum.
77634         (main): Cleanup coding style issue.
77635
77636 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
77637             Andreas Jaeger  <aj@suse.de>
77638
77639         * nscd/nscd.c (go_background): Replaced with...
77640         (run_mode): ... this.
77641         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
77642         (options): Add -F --foreground.
77643         (main): Implement it.
77644         (parse_opt): Parse it.
77645
77646 2012-05-09  Andreas Jaeger  <aj@suse.de>
77647
77648         [BZ #14083]
77649         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
77650         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
77651         -Wconversion warning.
77652         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
77653         Likewise.
77654
77655 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
77656
77657         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
77658         == 0.
77659         (LC_ALL): Use macro-int-constant.
77660         (LC_COLLATE): Likewise.
77661         (LC_CTYPE): Likewise.
77662         (LC_MESSAGES): Likewise.
77663         (LC_MONETARY): Likewise.
77664         (LC_NUMERIC): Likewise.
77665         (LC_TIME): Likewise.
77666         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
77667         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77668         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77669         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
77670         Specify type.
77671         [C99-based standards] (float_t): Expect type.
77672         [C99-based standards] (double_t): Expect type.
77673         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
77674         type.
77675         [C99-based standards] (HUGE_VALL): Likewise.
77676         [C99-based standards] (INFINITY): Likewise.
77677         [C99-based standards] (NAN): Likewise.
77678         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
77679         [C99-based standards] (FP_NAN): Likewise.
77680         [C99-based standards] (FP_NORMAL): Likewise.
77681         [C99-based standards] (FP_SUBNORMAL): Likewise.
77682         [C99-based standards] (FP_ZERO): Likewise.
77683         [C99-based standards] (FP_FAST_FMA): Use
77684         optional-macro-int-constant.  Specify type.  Require == 1.
77685         [C99-based standards] (FP_FAST_FMAF): Likewise.
77686         [C99-based standards] (FP_FAST_FMAL): Likewise.
77687         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
77688         [C99-based standards] (FP_ILOGBNAN): Likewise.
77689         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
77690         Specify type.
77691         [C99-based standards] (MATH_ERREXCEPT): Likewise.
77692         [C99-based standards] (math_errhandling): Specify type.
77693         [ISO99 || ISO11] (signgam): Do not allow.
77694         [non-C99-based standards] (copysignf): Do not allow.
77695         [non-C99-based standards] (exp2f): Likewise.
77696         [non-C99-based standards] (log2f): Likewise.
77697         [non-C99-based standards] (modff): Allow.
77698         [non-C99-based standards] (erff): Do not allow.
77699         [non-C99-based standards] (erfcf): Likewise.
77700         [non-C99-based standards] (gammaf): Likewise.
77701         [non-C99-based standards] (hypotf): Likewise.
77702         [non-C99-based standards] (j0f): Likewise.
77703         [non-C99-based standards] (j1f): Likewise.
77704         [non-C99-based standards] (jnf): Likewise.
77705         [non-C99-based standards] (lgammaf): Likewise.
77706         [non-C99-based standards] (tgammaf): Likewise.
77707         [non-C99-based standards] (y0f): Likewise.
77708         [non-C99-based standards] (y1f): Likewise.
77709         [non-C99-based standards] (ynf): Likewise.
77710         [non-C99-based standards] (isnanf): Likewise.
77711         [non-C99-based standards] (acoshf): Likewise.
77712         [non-C99-based standards] (asinhf): Likewise.
77713         [non-C99-based standards] (atanhf): Likewise.
77714         [non-C99-based standards] (cbrtf): Likewise.
77715         [non-C99-based standards] (expm1f): Likewise.
77716         [non-C99-based standards] (ilogbf): Likewise.
77717         [non-C99-based standards] (log1pf): Likewise.
77718         [non-C99-based standards] (logbf): Likewise.
77719         [non-C99-based standards] (nextafterf): Likewise.
77720         [non-C99-based standards] (remainderf): Likewise.
77721         [non-C99-based standards] (rintf): Likewise.
77722         [non-C99-based standards] (scalbf): Likewise.
77723         [non-C99-based standards] (copysignl): Likewise.
77724         [non-C99-based standards] (exp2l): Likewise.
77725         [non-C99-based standards] (log2l): Likewise.
77726         [non-C99-based standards] (modfl): Allow.
77727         [non-C99-based standards] (erfl): Do not allow.
77728         [non-C99-based standards] (erfcl): Likewise.
77729         [non-C99-based standards] (gammal): Likewise.
77730         [non-C99-based standards] (hypotl): Likewise.
77731         [non-C99-based standards] (j0l): Likewise.
77732         [non-C99-based standards] (j1l): Likewise.
77733         [non-C99-based standards] (jnl): Likewise.
77734         [non-C99-based standards] (lgammal): Likewise.
77735         [non-C99-based standards] (tgammal): Likewise.
77736         [non-C99-based standards] (y0l): Likewise.
77737         [non-C99-based standards] (y1l): Likewise.
77738         [non-C99-based standards] (ynl): Likewise.
77739         [non-C99-based standards] (isnanl): Likewise.
77740         [non-C99-based standards] (acoshl): Likewise.
77741         [non-C99-based standards] (asinhl): Likewise.
77742         [non-C99-based standards] (atanhl): Likewise.
77743         [non-C99-based standards] (cbrtl): Likewise.
77744         [non-C99-based standards] (expm1l): Likewise.
77745         [non-C99-based standards] (ilogbl): Likewise.
77746         [non-C99-based standards] (log1pl): Likewise.
77747         [non-C99-based standards] (logbl): Likewise.
77748         [non-C99-based standards] (nextafterl): Likewise.
77749         [non-C99-based standards] (remainderl): Likewise.
77750         [non-C99-based standards] (rintl): Likewise.
77751         [non-C99-based standards] (scalbl): Likewise.
77752         [ISO || ISO99 || ISO11] (*_t): Do not allow.
77753         [non-C99-based standards] (FP_*): Do not allow.
77754         [C99-based standards] (FP_*): Change to
77755         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
77756         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77757         allow.
77758         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
77759         (SIG_ERR): Likewise.
77760         [X/Open-based standards] (SIG_HOLD): Likewise.
77761         (SIG_IGN): Likewise.
77762         (SIGABRT): Use macro-int-constant.  Specify type.  Require
77763         positive value.
77764         (SIGFPE): Likewise.
77765         (SIGILL): Likewise.
77766         (SIGINT): Likewise.
77767         (SIGSEGV): Likewise.
77768         (SIGTER): Likewise.
77769         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
77770         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
77771         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
77772         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
77773         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
77774         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
77775         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
77776         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
77777         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
77778         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
77779         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
77780         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
77781         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
77782         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
77783         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
77784         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
77785         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
77786         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
77787         [X/Open-based standards] (SIGTRAP): Likewise.
77788         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
77789         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
77790         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
77791         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
77792         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
77793         allow.
77794
77795 2012-05-08  Ian Wienand  <ianw@vmware.com>
77796
77797         [BZ #14080]
77798         * time/tzset.c (__tzset_parse_tz): Update default rules for
77799         daylight time changes in the Energy Policy Act of 2005.
77800
77801 2012-05-09  Andreas Jaeger  <aj@suse.de>
77802
77803         [BZ #13983]
77804         * elf/ldconfig.c (parse_conf): Change string to make clear that
77805         ldconfig only issued a warning if ld.so.conf does not exist.
77806
77807 2012-05-08  David S. Miller  <davem@davemloft.net>
77808
77809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
77810         movxtod instead of popping the value on the stack.
77811
77812         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77813
77814 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
77815
77816         * config.h.in: Add HAVE_ARM_PCS_VFP.
77817
77818 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
77819
77820         [BZ #13979]
77821         * include/features.h: Warn if user requests __FORTIFY_SOURCE
77822         checking but the checks are disabled for any reason.
77823
77824 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
77825
77826         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
77827         and ELF64_R_TYPE with ELFW(R_TYPE).
77828
77829 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
77830
77831         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
77832         (ulimit): Likewise.
77833
77834         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
77835         (settimeofday): Likewise.
77836
77837 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
77838
77839         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
77840         a struct th_u2 inside the union, and move tu_block/tu_code into
77841         a new th_u3 union of tu_block/tu_code inside of that.  Move
77842         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
77843         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
77844         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
77845         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
77846         (th_stuff): Change to th_u1.tu_stuff.
77847         (th_data): Define.
77848         (th_msg): Change to th_u1.th_u2.tu_data.
77849
77850 2012-05-07  David S. Miller  <davem@davemloft.net>
77851
77852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
77853
77854         [BZ #14074]
77855         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
77856         (SETUP_PIC_REG): Use it.
77857         (SETUP_PIC_REG_LEAF): Use it.
77858
77859 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
77860
77861         [BZ #13885]
77862         [BZ #13923]
77863         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77864         USE_AS_EXPM1L.
77865         (EXPL_FINITE): Likewise.
77866         (FLDLOG): Likewise.
77867         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77868         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77869         e_expl.S.
77870         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77871         USE_AS_EXPM1L.
77872         (EXPL_FINITE): Likewise.
77873         (FLDLOG): Likewise.
77874         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
77875         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
77876         e_expl.S.
77877         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
77878         test of -max_value argument for long double.
77879         * sysdeps/i386/fpu/libm-test-ulps: Update.
77880         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
77881
77882 2012-05-06  David S. Miller  <davem@davemloft.net>
77883
77884         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
77885         quad soft-float symbols whose references which are compiler
77886         generated.
77887         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
77888
77889 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
77890
77891         [BZ #13884]
77892         [BZ #13914]
77893         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77894         USE_AS_EXP10L.
77895         (EXPL_FINITE): Likewise.
77896         (FLDLOG): Likewise.
77897         (c0): Likewise.
77898         (c1): Likewise.
77899         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77900         Adjust comments for base varying.
77901         (__expl_finite): Change alias to EXPL_FINITE.
77902         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
77903         e_expl.S.
77904         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
77905         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
77906         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
77907         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
77908         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
77909         USE_AS_EXP10L.
77910         (EXPL_FINITE): Likewise.
77911         (FLDLOG): Likewise.
77912         (c0): Likewise.
77913         (c1): Likewise.
77914         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
77915         Adjust comments for base varying.
77916         (__expl_finite): Change alias to EXPL_FINITE.
77917         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
77918         tests for bugs.
77919         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
77920
77921         [BZ #14064]
77922         * math/libm-test.inc (check_float_internal): Correct ulp
77923         calculation for subnormal expected results.
77924
77925 2012-05-06  Andreas Jaeger  <aj@suse.de>
77926
77927         * Makeconfig (+math-flags): New, set to -frounding-math.
77928         (+cflags): Add +math-flags so that all of glibc gets compiled with
77929         it.
77930
77931         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
77932
77933 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
77934
77935         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
77936         Disable one test.
77937
77938         [BZ #13787]
77939         [BZ #13922]
77940         [BZ #14036]
77941         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
77942         (__ieee754_expl): Allow for and saturate large arguments.
77943         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
77944         (u_threshold): Likewise.
77945         (__exp): Call __ieee754_exp before checking for overflow and
77946         underflow.
77947         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
77948         (u_threshold): Likewise.
77949         (__expf): Call __ieee754_expf before checking for overflow and
77950         underflow.
77951         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
77952         (u_threshold): Likewise.
77953         (__expl): Call __ieee754_expl before checking for overflow and
77954         underflow.
77955         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
77956         (__ieee754_expl): Allow for and saturate large arguments.
77957         * math/libm-test.inc (exp_test): Add another test.  Do not allow
77958         missing overflow exception on overflow.
77959         (expm1_test): Do not allow missing overflow exception on overflow.
77960
77961         * sysdeps/i386/fpu/e_expl.c: Move to ...
77962         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
77963         rather than using inline asm.
77964         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
77965         * sysdeps/x86_64/fpu/e_expl.S: Copy from
77966         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
77967
77968         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
77969         (nice): Likewise.
77970         (poll): Likewise.
77971         (signal): Likewise.
77972         (time): Likewise.
77973         (times): Likewise.
77974
77975 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
77976
77977         * sysdeps/unix/syscalls.list (adjtime): Add entry from
77978         sysdeps/unix/common/syscalls.list.
77979         (fchmod): Likewise.
77980         (fchown): Likewise.
77981         (ftruncate): Likewise.
77982         (getrusage): Likewise.
77983         (gettimeofday): Likewise.
77984         (setpgid): Likewise.
77985         (setregid): Likewise.
77986         (setreuid): Likewise.
77987         (sigaction): Likewise.
77988         (truncate): Likewise.
77989         (vhangup): Likewise.
77990         * sysdeps/unix/common/syscalls.list: Remove file.
77991         * sysdeps/unix/bsd/Implies: Don't include unix/common.
77992         * sysdeps/unix/sysv/linux/Implies: Likewise.
77993
77994 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
77995
77996         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
77997         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
77998         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
77999         Moved to ...
78000         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
78001         Here.
78002         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
78003         to ...
78004         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
78005         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
78006         to ...
78007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
78008         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
78009         to ...
78010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
78011         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
78012         to ...
78013         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
78014         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
78015         to ...
78016         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
78017         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
78018         to ...
78019         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
78020         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
78021         to ...
78022         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
78023         Here.
78024         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
78025         to ...
78026         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
78027         Here.
78028         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
78029         to ...
78030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
78031         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
78032         Moved to ...
78033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
78034         Here.
78035         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
78036         to ...
78037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
78038
78039 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
78040
78041         * sysdeps/unix/common/bits/dirent.h: Remove file.
78042         * sysdeps/unix/common/bits/fcntl.h: Likewise.
78043
78044         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
78045         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
78046         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
78047         * sysdeps/unix/bsd/isatty.c: Likewise.
78048         * sysdeps/unix/bsd/tcdrain.c: Likewise.
78049         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
78050         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
78051
78052 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78053
78054         [BZ #13563]
78055         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
78056         long double comparison inaccuracies.
78057         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
78058         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
78059
78060 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
78061
78062         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
78063         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
78064
78065 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
78066
78067         [BZ #14049]
78068         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
78069         nonzero digits before rounding a hex value.
78070         * stdlib/tst-strtod.c (tests): Add another test.
78071
78072 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
78073
78074         * sysdeps/s390/fpu/libm-test-ulps: Update.
78075
78076 2012-05-03  Andreas Jaeger  <aj@suse.de>
78077
78078         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
78079         does not get optimized out.
78080         (malloc_opt_barrier): New.
78081
78082 2012-05-03  Andreas Jaeger  <aj@suse.de>
78083             Roland McGrath  <roland@hack.frob.com>
78084
78085         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
78086         intermediate file deletion.
78087         (generated): Add .symlist files.
78088
78089 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
78090
78091         [BZ #13775]
78092         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
78093         Redirect under this condition.
78094         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
78095         [__USE_GNU] (__dprintf_chk): Not under this condition.
78096         [__USE_GNU] (__vdprintf_chk): Likewise.
78097         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
78098         under this condition.
78099         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
78100         [__USE_XOPEN2K8] (dprintf): Define under this condition.
78101         [__USE_XOPEN2K8] (vdprintf): Likewise.
78102         [__USE_GNU] (__dprintf_chk): Not under this condition.
78103         [__USE_GNU] (__vdprintf_chk): Likewise.
78104         [__USE_GNU] (dprintf): Likewise.
78105         [__USE_GNU] (vdprintf): Likewise.
78106
78107 2012-05-03  Roland McGrath  <roland@hack.frob.com>
78108
78109         * elf/Makefile (common-generated): Set this instead of generated for
78110         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
78111         $(all-built-dso)-derived lists.
78112
78113 2012-05-03  Andreas Jaeger  <aj@suse.de>
78114
78115         * sysdeps/i386/fpu/libm-test-ulps: Update.
78116
78117         * FAQ: Removed.
78118         * FAQ.in: Likewise.
78119         * scripts/gen-FAQ.pl: Likewise.
78120         * manual/install.texi (Installation): Point to online location of
78121         FAQ.
78122         * Makefile (files-for-dist): Remove FAQ.
78123         (FAQ): Remove.
78124
78125 2012-05-02  Allan McRae  <allan@archlinux.org>
78126
78127         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
78128         (LDFLAGS-reldepmod5.so): Likewise.
78129         (LDFLAGS-reldep6mod1.so): Likewise.
78130         (LDFLAGS-reldep6mod4.so): Likewise.
78131         (LDFLAGS-reldep8mod3.so): Likewise.
78132         (LDFLAGS-unload4mod1.so): Likewise.
78133         (LDFLAGS-unload4mod2.so): Likewise.
78134         (LDFLAGS-tst-initorder): Likewise.
78135         (LDFLAGS-tst-initordera2.so): Likewise.
78136         (LDFLAGS-tst-initordera3.so): Likewise.
78137         (LDFLAGS-tst-initordera4.so): Likewise.
78138         (LDFLAGS-tst-initorderb2.so): Likewise.
78139         (LDFLAGS-noload): Likewise.
78140         (LDFLAGS-next): Likewise.
78141         (LDFLAGS-order2mod1.so): Likewise.
78142         (LDFLAGS-order2mod2.so): Likewise.
78143         (LDFLAGS-tst-initorder2): Likewise.
78144         (LDFLAGS-tst-initorder2a.so): Likewise.
78145         (LDFLAGS-tst-initorder2b.so): Likewise.
78146         (LDFLAGS-tst-initorder2c.so): Likewise.
78147         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
78148
78149 2012-05-02  David S. Miller  <davem@davemloft.net>
78150
78151         * sysdeps/sparc/fpu/libm-test-ulps: Update.
78152
78153 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
78154
78155         [BZ #14055]
78156         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
78157
78158 2012-05-02  Andreas Jaeger  <aj@suse.de>
78159
78160         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
78161         since we manipulate rounding mode.
78162         (CPPFLAGS-test-idouble.c): Likewise.
78163         (CPPFLAGS-test-ifloat.c): Likewise.
78164         (CFLAGS-test-ldouble.c): Likewise.
78165         (CFLAGS-test-double.c): Likewise.
78166         (CFLAGS-test-float.c): Likewise.
78167         (CFLAGS-test-misc.c): Likewise.
78168         (CFLAGS-test-test-fenv.c): Likewise.
78169
78170 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
78171
78172         [BZ #2550]
78173         [BZ #2570]
78174         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
78175         comparisons to determine direction to adjust input.
78176
78177 2012-05-01  Roland McGrath  <roland@hack.frob.com>
78178
78179         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
78180         output to the target.
78181
78182         * scripts/localplt.awk: New file.
78183         * elf/Makefile ($(objpfx)check-localplt): Target removed.
78184         (check-localplt-CFLAGS): Variable removed.
78185         ($(all-built-dso:=.jmprel)): New static pattern rule.
78186         (generated): Add those targets.
78187         (localplt-built-dso): New variable.
78188         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
78189
78190         * elf/check-localplt.c: File removed.
78191
78192         * scripts/check-execstack.awk: New file.
78193         * elf/Makefile ($(objpfx)check-execstack): Target removed.
78194         (check-execstack-CFLAGS): Variable removed.
78195         ($(objpfx)check-execstack.h): Target removed.
78196         ($(objpfx)execstack-default): New target.
78197         (generated): Add that instead of check-execstack.h.
78198         ($(all-built-dso:=.phdr)): New static pattern rule.
78199         (generated): Add those targets.
78200         * elf/check-execstack.c: File removed.
78201
78202         * scripts/check-textrel.awk: New file.
78203         * elf/Makefile ($(objpfx)check-textrel): Target removed.
78204         (check-textrel-CFLAGS): Variable removed.
78205         (all-built-dso): Use := to define.o
78206         ($(all-built-dso:=.dyn)): New static pattern rule.
78207         (generated): Add those targets.
78208         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
78209         * config.make.in (READELF): New substituted variable.
78210         * elf/check-textrel.c: File removed.
78211
78212 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78213
78214         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
78215         allow.
78216         * conform/data/ctype.h-data [C99-based standards] (isblank):
78217         Expect function.
78218         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
78219         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
78220         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78221         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
78222         Specify type.  Require positive value.
78223         (EILSEQ): Likewise.
78224         (ERANGE): Likewise.
78225         [ISO || POSIX] (EILSEQ): Do not expect.
78226         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
78227         Specify type.  Require positive value.
78228         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
78229         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
78230         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
78231         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
78232         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
78233         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
78234         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
78235         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
78236         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
78237         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
78238         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
78239         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
78240         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
78241         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
78242         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
78243         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
78244         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
78245         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
78246         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
78247         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
78248         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
78249         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
78250         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
78251         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
78252         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
78253         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
78254         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
78255         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
78256         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
78257         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
78258         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
78259         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
78260         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
78261         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
78262         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
78263         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
78264         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
78265         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
78266         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
78267         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
78268         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
78269         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
78270         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
78271         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
78272         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
78273         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
78274         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
78275         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
78276         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
78277         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
78278         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
78279         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
78280         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
78281         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
78282         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
78283         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
78284         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
78285         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
78286         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
78287         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
78288         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
78289         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
78290         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
78291         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
78292         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
78293         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
78294         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
78295         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
78296         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
78297         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
78298         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
78299         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
78300         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
78301         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
78302         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
78303         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
78304         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
78305         Require >= 2.
78306         (FLT_ROUNDS): Expect as macro, not constant.
78307         (FLT_MANT_DIG): Use macro-int-constant.
78308         (DBL_MANT_DIG): Likewise.
78309         (LDBL_MANT_DIG): Likewise.
78310         (FLT_DIG): Likewise.
78311         (DBL_DIG): Likewise.
78312         (LDBL_DIG): Likewise.
78313         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
78314         (DBL_MIN_EXP): Likewise.
78315         (LDBL_MIN_EXP): Likewise.
78316         (FLT_MAX_EXP): Use macro-int-constant.
78317         (DBL_MAX_EXP): Likewise.
78318         (LDBL_MAX_EXP): Likewise.
78319         (FLT_MAX_10_EXP): Likewise.
78320         (DBL_MAX_10_EXP): Likewise.
78321         (LDBL_MAX_10_EXP): Likewise.
78322         (FLT_MAX): Use macro-constant.
78323         (DBL_MAX): Likewise.
78324         (LDBL_MAX): Likewise.
78325         (FLT_EPSILON): Use macro-constant.  Give upper bound.
78326         (DBL_EPSILON): Likewise.
78327         (LDBL_EPSILON): Likewise.
78328         (FLT_MIN): Likewise.
78329         (DBL_MIN): Likewise.
78330         (LDBL_MIN): Likewise.
78331         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
78332         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
78333         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
78334         [ISO11] (FLT_HAS_SUBNORM): Likewise.
78335         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
78336         [ISO11] (DBL_DECIMAL_DIG): Likewise.
78337         [ISO11] (FLT_DECIMAL_DIG): Likewise.
78338         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
78339         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
78340         [ISO11] (FLT_TRUE_MIN): Likewise.
78341         [ISO11] (LDBL_TRUE_MIN): Likewise.
78342         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78343         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
78344         (SCHAR_MIN): Use macro-int-constant.  Specify type.
78345         (SCHAR_MAX): Likewise.
78346         (UCHAR_MAX): Likewise.
78347         (CHAR_MIN): Likewise.
78348         (CHAR_MAX): Likewise.
78349         (MB_LEN_MAX): Use macro-int-constant.
78350         (SHRT_MIN): Use macro-int-constant.  Specify type.
78351         (SHRT_MAX): Likewise.
78352         (USHRT_MAX): Likewise.
78353         (INT_MAX): Likewise.
78354         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
78355         bound negative.
78356         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78357         bound with "U".
78358         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78359         bound with "L".
78360         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
78361         bound negative.  Suffix upper bound with "L".
78362         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
78363         bound with "UL".
78364         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
78365         Specify type.
78366         [C99-based standards] (LLONG_MAX): Likewise.
78367         [C99-based standards] (ULLONG_MAX): Likewise.
78368         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
78369         == 0.
78370         [ISO11] (max_align_t): Require type.
78371         [ISO || ISO99 || ISO11] (*_t): Do not allow.
78372
78373         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
78374         from $CFLAGS, without defining away __attribute__ calls.
78375         (checknamespace): Use $CFLAGS_namespace.
78376
78377         * conform/conformtest.pl (@keywords): Only include C99 keywords
78378         for standards based on C99 or C11.
78379
78380         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
78381         Disable tests.
78382         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
78383         UNIX98]: Likewise.
78384
78385         * conform/conformtest.pl: Handle "macro-int-constant" and test for
78386         usability of symbols in #if.
78387
78388         * conform/conformtest.pl: If macro or constant types start
78389         "promoted:", expect the symbol to be of the following type
78390         promoted by the integer promotions.
78391
78392         * conform/conformtest.pl: Parse all "constant" and "macro" lines
78393         in one place.  Also handle "macro-constant".
78394
78395         * conform/conformtest.pl: Only accept expected macro values with
78396         "==".  Parse all "macro" lines in one place.
78397         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
78398
78399         * conform/conformtest.pl: Handle braced types on "constant" lines
78400         instead of handling "typed-constant".
78401         * conform/data/signal.h-data: Use "constant" instead of
78402         "typed-constant".
78403
78404         * conform/conformtest.pl: Handle "optional-" at start of lines in
78405         one place rather than duplicating several cases.  Handle each
78406         format of "macro" line with initial "optional-".
78407
78408         * conform/conformtest.pl: Only accept expected constant or
78409         optional-constant values with "==".  Parse all "constant" lines in
78410         one place.  Parse all "optional-constant" lines in one place.
78411         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
78412         * conform/data/fmtmsg.h-data: Likewise.
78413         * conform/data/netinet/in.h-data: Likewise.
78414         * conform/data/tar.h-data: Likewise.
78415         * conform/data/limits.h-data: Use "==" form on "constant" and
78416         "optional-constant" lines.
78417
78418         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
78419         Use -std=c99 for XOPEN2K.
78420         (@knownproblems): Remove.
78421         (newtoken): Don't check %isknown.
78422
78423         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
78424         Do not expect macro.
78425         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
78426         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
78427         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
78428         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
78429         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
78430         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
78431         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
78432         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
78433         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
78434         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
78435         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
78436         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
78437         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
78438         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
78439         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
78440         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
78441         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
78442         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
78443         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
78444         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
78445         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
78446         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
78447         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
78448         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
78449         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
78450         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
78451         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
78452         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
78453         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
78454         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
78455         [XPG3] (acosh): Likewise.
78456         [XPG3] (asinh): Likewise.
78457         [XPG3] (atanh): Likewise.
78458         [XPG3] (cbrt): Likewise.
78459         [XPG3] (expm1): Likewise.
78460         [XPG3] (ilogb): Likewise.
78461         [XPG3] (log1p): Likewise.
78462         [XPG3] (logb): Likewise.
78463         [XPG3] (nextafter): Likewise.
78464         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
78465         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
78466         [XPG3] (remainder): Likewise.
78467         [XPG3] (rint): Likewise.
78468         [XPG3 || XPG4 || UNIX98] (round): Likewise.
78469         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
78470         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
78471         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
78472         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
78473         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
78474         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
78475         [UNIX98 || XOPEN2K] (scalb): Expect.
78476         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
78477         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
78478         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
78479         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
78480         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
78481         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
78482         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
78483         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
78484         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
78485         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
78486         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
78487         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
78488         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
78489         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
78490         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
78491         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
78492         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
78493         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
78494         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
78495         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
78496         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
78497         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
78498         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
78499         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
78500         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
78501         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
78502         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
78503         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
78504         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
78505         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
78506         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
78507         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
78508         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
78509         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
78510         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
78511         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
78512         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
78513         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
78514         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
78515         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
78516         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
78517         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
78518         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
78519         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
78520         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
78521         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
78522         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
78523         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
78524         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
78525         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
78526         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
78527         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
78528         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
78529         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
78530         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
78531         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
78532         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
78533         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
78534         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
78535         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
78536         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
78537         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
78538         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
78539         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
78540         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
78541         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
78542         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
78543         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
78544         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
78545         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
78546         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
78547         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
78548         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
78549         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
78550         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
78551         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
78552         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
78553         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
78554         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
78555         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
78556         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
78557         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
78558         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
78559         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
78560         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
78561         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
78562         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
78563         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
78564         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
78565         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
78566         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
78567         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
78568         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
78569         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
78570         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
78571         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
78572         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
78573         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
78574         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
78575         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
78576         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
78577         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
78578         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
78579         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
78580         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
78581         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
78582         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
78583         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
78584         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
78585         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
78586         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
78587         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
78588         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
78589         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
78590         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
78591         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
78592         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
78593         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
78594         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
78595         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
78596         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
78597         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
78598         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
78599         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
78600         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
78601         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
78602         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
78603         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
78604         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
78605         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
78606         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
78607         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
78608         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
78609         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
78610         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
78611         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
78612         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
78613
78614         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
78615         _XOPEN_SOURCE_EXTENDED for XPG4.
78616
78617         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
78618
78619         * Makeconfig (localtime): Remove variable.
78620         (inst_localtime-file): Likewise.
78621
78622 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78623
78624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
78625         Update.
78626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
78627         Update.
78628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
78629         Update.
78630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
78631         Update.
78632         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
78633         Update.
78634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
78635         Update.
78636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
78637         Update.
78638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
78639         Update.
78640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78641         Update.
78642
78643 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
78644
78645         [BZ #2550]
78646         [BZ #2570]
78647         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
78648         comparisons to determine direction to adjust input.
78649         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
78650         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
78651         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
78652         Likewise.
78653         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
78654         Likewise.
78655         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
78656         Likewise.
78657         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
78658         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
78659         Likewise.
78660         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
78661         Likewise.
78662         * math/libm-test.inc (nexttoward_test): Add more tests.
78663
78664 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
78665
78666         [BZ #14040]
78667         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
78668         in version GLIBC_2.1, not GLIBC_2.0.
78669         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
78670         Likewise.
78671
78672 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
78673
78674         [BZ #13942]
78675         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
78676         (1 - x) * (1 + x).
78677         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78678         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
78679         * math/libm-test.inc (acos_test): Add more tests.
78680         (asin_test): Likewise.
78681         * sysdeps/i386/fpu/libm-test-ulps: Update.
78682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
78683
78684         [BZ #14034]
78685         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
78686         of square root.
78687         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
78688         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
78689         * math/libm-test.inc (acos_test_tonearest): New function.
78690         (acos_test_towardzero): Likewise.
78691         (acos_test_downward): Likewise.
78692         (acos_test_upward): Likewise.
78693         (asin_test_tonearest): Likewise.
78694         (asin_test_towardzero): Likewise.
78695         (asin_test_downward): Likewise.
78696         (asin_test_upward): Likewise.
78697         (main): Call the new functions.
78698         * sysdeps/i386/fpu/libm-test-ulps: Update.
78699         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
78700
78701         [BZ #13884]
78702         [BZ #13924]
78703         * math/e_exp10.c: Include <float.h>.
78704         (__ieee754_exp10): Handle underflow here rather than multiplying
78705         large negative argument by M_LN10.
78706         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
78707         of __ieee754_expf.
78708         * math/e_exp10l.c: Include <float.h>.
78709         (__ieee754_exp10l): Handle underflow here rather than multiplying
78710         large negative argument by M_LN10l.
78711         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
78712         spurious overflow exception on underflow.
78713
78714 2012-04-29  Marek Polacek  <polacek@redhat.com>
78715
78716         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
78717         (__fortify_function): New macro.
78718         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
78719         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
78720         __extern_always_inline.
78721         * libio/bits/stdio2.h: Likewise.
78722         * libio/bits/stdio.h: Likewise.
78723         * string/string.h: Likewise.
78724         * string/bits/string3.h: Likewise.
78725         * include/stdio.h: Likewise.
78726         * stdlib/bits/stdlib.h: Likewise.
78727         * stdlib/stdlib.h: Likewise.
78728         * rt/bits/mqueue2.h: Likewise.
78729         * rt/mqueue.h: Likewise.
78730         * posix/bits/unistd.h: Likewise.
78731         * posix/unistd.h: Likewise.
78732         * io/bits/poll2.h: Likewise.
78733         * io/bits/fcntl2.h: Likewise.
78734         * io/fcntl.h: Likewise.
78735         * io/sys/poll.h: Likewise.
78736         * misc/bits/syslog.h: Likewise.
78737         * misc/bits/syslog-ldbl.h: Likewise.
78738         * misc/sys/syslog.h: Likewise.
78739         * socket/bits/socket2.h: Likewise.
78740         * socket/sys/socket.h: Likewise.
78741         * debug/tst-chk1.c: Likewise.
78742         * wcsmbs/bits/wchar2.h: Likewise.
78743         * wcsmbs/bits/wchar-ldbl.h: Likewise.
78744         * wcsmbs/wchar.h: Likewise.
78745
78746 2012-04-29  Andreas Jaeger  <aj@suse.de>
78747
78748         * Makerules (tests): Remove enable-check-abi protection.
78749         (check-abi-warn): Remove.
78750         (check-abi-%): Remove check-abi-warn usage.
78751
78752         * configure.in: Remove check-abi configure option.
78753         * configure: Regenerated.
78754         * config.make.in (enable-check-abi): Remove.
78755
78756 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
78757
78758         [BZ #14033]
78759         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
78760         double functions to double *_finite functions.
78761
78762         [BZ #13941]
78763         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
78764         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
78765         LDBL_MIN_EXP.
78766         * stdio-common/Makefile (tests): Add tst-sprintf3.
78767         * stdio-common/tst-sprintf3.c: New file.
78768
78769         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
78770         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
78771
78772 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
78773
78774         * conform/conformtest.pl: Remove duplicate typed-constant
78775         handling.
78776
78777 2012-04-28  David S. Miller  <davem@davemloft.net>
78778
78779         * Makerules (%.abilist): Add vpath on sysdep_dirs.
78780         (check-abi-%): Remove AWK script prerequisite and explicit
78781         abilist directory.
78782         (check-abi): Rewrite to just diff the symlist with the abilist.
78783         (config-tls, config-abi-config): Delete, no longer used.
78784         (update-abi-%): Remove AWK script and explicit abilist directory.
78785         (update-abi): Rewrite to simply compare and conditionally copy the
78786         symlist and the sysdep abilist file.  Remove update-abi-config
78787         checks.
78788         * abilist/ld.abilist: Remove.
78789         * abilist/libBrokenLocale.abilist: Remove.
78790         * abilist/libanl.abilist: Remove.
78791         * abilist/libcrypt.abilist: Remove.
78792         * abilist/libdl.abilist: Remove.
78793         * abilist/librt.abilist: Remove.
78794         * abilist/libthread_db.abilist: Remove.
78795         * abilist/libutil.abilist: Remove.
78796         * scripts/extract-abilist.awk: Remove.
78797         * scripts/merge-abilist.awk: Remove.
78798         * sysdeps/generic/libcidn.abilist: New file.
78799         * sysdeps/generic/libnss_compat.abilist: New file.
78800         * sysdeps/generic/libnss_db.abilist: New file.
78801         * sysdeps/generic/libnss_dns.abilist: New file.
78802         * sysdeps/generic/libnss_files.abilist: New file.
78803         * sysdeps/generic/libnss_hesiod.abilist: New file.
78804         * sysdeps/generic/libnss_nis.abilist: New file.
78805         * sysdeps/generic/libnss_nisplus.abilist: New file.
78806         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
78807         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
78808         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
78809         file.
78810         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
78811         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
78812         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
78813         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
78814         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
78815         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
78816         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
78817         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
78818         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
78819         file.
78820         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
78821         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
78822         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
78823         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
78824         file.
78825         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
78826         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
78827         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
78828         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
78829         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
78830         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
78831         file.
78832         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
78833         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
78834         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
78835         file.
78836         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
78837         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
78838         New file.
78839         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
78840         New file.
78841         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
78842         New file.
78843         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
78844         New file.
78845         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
78846         New file.
78847         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
78848         New file.
78849         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
78850         New file.
78851         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
78852         New file.
78853         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
78854         New file.
78855         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
78856         New file.
78857         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
78858         New file.
78859         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
78860         New file.
78861         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
78862         New file.
78863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
78864         file.
78865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
78866         New file.
78867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
78868         New file.
78869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
78870         file.
78871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
78872         New file.
78873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
78874         New file.
78875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
78876         file.
78877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
78878         New file.
78879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
78880         New file.
78881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
78882         New file.
78883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
78884         New file.
78885         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
78886         New file.
78887         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
78888         New file.
78889         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
78890         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
78891         file.
78892         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
78893         New file.
78894         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
78895         file.
78896         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
78897         file.
78898         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
78899         file.
78900         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
78901         file.
78902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
78903         file.
78904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
78905         New file.
78906         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
78907         file.
78908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
78909         file.
78910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
78911         New file.
78912         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
78913         file.
78914         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
78915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
78916         file.
78917         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
78918         New file.
78919         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
78920         file.
78921         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
78922         file.
78923         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
78924         file.
78925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
78926         file.
78927         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
78928         file.
78929         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
78930         New file.
78931         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
78932         file.
78933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
78934         file.
78935         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
78936         New file.
78937         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
78938         file.
78939         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
78940         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
78941         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
78942         file.
78943         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
78944         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
78945         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
78946         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
78947         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
78948         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
78949         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
78950         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
78951         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
78952         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
78953         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
78954         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
78955         file.
78956         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
78957         New file.
78958         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
78959         file.
78960         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
78961         file.
78962         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
78963         file.
78964         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
78965         file.
78966         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
78967         file.
78968         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
78969         New file.
78970         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
78971         New file.
78972         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
78973         file.
78974         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
78975         New file.
78976         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
78977         file.
78978         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
78979         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
78980         file.
78981         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
78982         New file.
78983         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
78984         file.
78985         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
78986         file.
78987         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
78988         file.
78989         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
78990         file.
78991         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
78992         file.
78993         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
78994         New file.
78995         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
78996         New file.
78997         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
78998         file.
78999         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
79000         New file.
79001         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
79002         file.
79003
79004 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
79005
79006         * conform/conformtest.pl: Fix typo in handling typed-constant from
79007         allow-header.
79008
79009 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
79010
79011         * README: Cut down references to pre-2.6 Linux kernels and
79012         Linuxthreads.  Update lists of configurations in libc and ports
79013         and sort alphabetically.  Say "or newer" with Linux kernel version
79014         requirements.
79015
79016         * config.h.in [IS_IN_build]: Allow compiling without optimization.
79017
79018 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
79019
79020         [BZ #887]
79021         * math/libm-test.inc (logb_test_downward): New test to expose
79022         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
79023         rounding mode.
79024
79025 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
79026
79027         [BZ #14027]
79028         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
79029         to be done.
79030         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
79031         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
79032
79033 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
79034
79035         * sysdeps/unix/i386/brk.S: Remove file.
79036         * sysdeps/unix/i386/dl-brk.S: Likewise.
79037         * sysdeps/unix/i386/pipe.S: Likewise.
79038         * sysdeps/unix/i386/sigreturn.S: Likewise.
79039         * sysdeps/unix/i386/syscall.S: Likewise.
79040         * sysdeps/unix/i386/vfork.S: Likewise.
79041         * sysdeps/unix/i386/wait.S: Likewise.
79042
79043         * sysdeps/unix/common/tcsendbrk.c: Move to ...
79044         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
79045
79046         * configure.in (arm*-none*): Do not allow without
79047         --enable-hacker-mode.
79048         (netbsd*): Remove case setting base_os.
79049         (386bsd*): Likewise.
79050         (freebsd*): Likewise.
79051         (bsdi*): Likewise.
79052         (osf*): Likewise.
79053         (sunos*): Likewise.
79054         (ultrix*): Likewise.
79055         (newsos*): Likewise.
79056         (dynix*): Likewise.
79057         (*bsd*): Likewise.
79058         (sysv*): Likewise.
79059         (isc*): Likewise.
79060         (esix*): Likewise.
79061         (sco*): Likewise.
79062         (minix*): Likewise.
79063         (irix4*): Likewise.
79064         (irix6*): Likewise.
79065         (solaris[2-9]*): Likewise.
79066         (none): Likewise.
79067         * configure: Regenerated.
79068
79069 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79070
79071         [BZ #11521]
79072         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
79073         overflow or cancellation in calculating denominator.
79074         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
79075         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
79076         down expression to avoid unexpected rounding in newer GCCs.
79077         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
79078
79079 2012-04-26  David S. Miller  <davem@davemloft.net>
79080
79081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
79082         long-double compat symbols.
79083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
79084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
79085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
79086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
79087         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
79088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
79089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
79090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
79091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
79092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
79093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
79094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
79095         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
79096
79097 2012-04-25  David S. Miller  <davem@davemloft.net>
79098
79099         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
79100         HWCAP_* values only after the memory barriers have been defined.
79101         (atomic_full_barrier): Define.
79102         (atomic_read_barrier): Define.
79103         (atomic_write_barrier): Define.
79104
79105 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
79106
79107         * shlib-versions: Add libgcc_s version information.
79108         * sysdeps/generic/libgcc_s.h: Remove.
79109         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
79110         libgcc_s.h.
79111         * sysdeps/gnu/unwind-resume.c: Likewise.
79112         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
79113
79114 2012-04-25  David S. Miller  <davem@davemloft.net>
79115
79116         * sysdeps/unix/sparc/brk.S: Delete.
79117         * sysdeps/unix/sparc/dl-brk.S: Delete.
79118         * sysdeps/unix/sparc/pipe.S: Delete.
79119         * sysdeps/unix/sparc/sysdep.S: Delete.
79120         * sysdeps/unix/sparc/sysdep.h: Delete.
79121         * sysdeps/unix/sparc/vfork.S: Delete.
79122         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
79123         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
79124         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
79125         (ret_ERRVAL, r0, r1, MOVE): Define.
79126         (JUMPTARGET): Remove.
79127         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
79128         sysdeps/unix/sparc/sysdep.h
79129         (ENTRY, END): Remove.
79130         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
79131
79132 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
79133
79134         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
79135         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
79136         -DIS_IN_build.
79137
79138         * timezone/README: Update upstream location and email address for
79139         tzcode and tzdata.
79140         * timezone/zdump.c: Update from tzcode 2012b.
79141         * timezone/zic.c: Likewise.
79142
79143         * configure.in (libc_cv_as_needed): Remove test.
79144         * configure: Regenerated.
79145         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
79146         conditional definition.
79147         [$(have-as-needed) != yes] (no-as-needed): Likewise.
79148         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
79149         * config.make.in (have-as-needed): Remove variable.
79150
79151 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
79152             Paul Pluzhnikov  <ppluzhnikov@google.com>
79153
79154         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
79155         strings correctly.
79156
79157 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
79158
79159         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
79160         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
79161         * sysdeps/sh/strlen.S: Likewise.
79162
79163 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
79164
79165         * sysdeps/unix/fork.S: Remove file.
79166         * sysdeps/unix/i386/fork.S: Likewise.
79167         * sysdeps/unix/sparc/fork.S: Likewise.
79168
79169         * sysdeps/unix/system.c: Remove file.
79170         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
79171
79172         * sysdeps/unix/getegid.S: Remove file.
79173         * sysdeps/unix/geteuid.S: Likewise.
79174
79175 2012-04-24  Roland McGrath  <roland@hack.frob.com>
79176
79177         * scripts/check-localplt.awk: New file.
79178         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
79179         of diff.
79180         * scripts/data/localplt-generic.data: Add a comment.
79181
79182         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
79183         NODE when __dir_mkfile failed.
79184         * sysdeps/mach/hurd/symlinkat.c: Likewise.
79185         Reported by Ludovic Courtès <ludo@gnu.org>.
79186
79187 2012-04-24  Andreas Jaeger  <aj@suse.de>
79188
79189         * Makerules (common-clean): Also remove gen-as-const-headers
79190         files.
79191
79192 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
79193
79194         * Makerules (native-compile): Do not change working directory for
79195         build.  Use $(OUTPUT_OPTION) in command.
79196         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
79197
79198 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79199
79200         [BZ #13886]
79201         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
79202         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
79203         * math/libm-test.inc (floor_test): Add more tests.
79204         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
79205
79206 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
79207
79208         * sysdeps/unix/getdents.c: Remove file.
79209         * sysdeps/unix/sysv/getdents.c: Likewise.
79210         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
79211
79212         * sysdeps/unix/syscalls.list (madvise): Add syscall from
79213         sysdeps/unix/mman/syscalls.list.
79214         (mmap): Likewise.
79215         (mprotect): Likewise.
79216         (msync): Likewise.
79217         (munmap): Likewise.
79218         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
79219         * sysdeps/unix/mman/syscalls.list: Remove.
79220         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
79221
79222         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
79223         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
79224         * configure: Regenerated.
79225         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
79226         $(libgcc_s_suffix).
79227         * config.make.in (libgcc_s_suffix): Remove variable.
79228
79229 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
79230
79231         * sysdeps/unix/sysv/gethostname.c: Move to ...
79232         * sysdeps/posix/gethostname.c: ... here.
79233
79234         * sysdeps/unix/execve.S: Remove file.
79235
79236         * sysdeps/unix/_exit.S: Remove file.
79237
79238 2012-04-23  Andreas Jaeger  <aj@suse.de>
79239
79240         [BZ #13739]
79241         * manual/Makefile: Remove make dist support, there's no
79242         need for a stand-alone documentation tar ball.
79243         (TEXI2DVI): Define always, it's not in Makeconfig.
79244         (dist): Removed.
79245         (tar-it): Removed.
79246         (edition): Removed.
79247         (glibc-doc-$(edition).tar): Removed
79248         (%.Z): Removed.
79249         (%.gz): Removed.
79250         (%.uu): Removed.
79251         (ETAGS): Remove, it's in Makeconfig.
79252         (move-if-change): Remove, it's in Makeconfig.
79253
79254 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         [BZ #13970]
79257         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
79258         (strtod, strtof, strtold, strtol, strtoul, strtoq)
79259         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
79260         (strtod_l, strtof_l, strtold_l): Remove __wur.
79261         It is not necessarily an error to ignore strtol's return value.
79262         One can reliably look at the stored endptr to decide whether
79263         the number had valid syntax.
79264
79265 2012-04-21  Andreas Jaeger  <aj@suse.de>
79266
79267         [BZ #13739]
79268         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
79269
79270 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
79271
79272         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
79273         * sysdeps/unix/sysv/Versions: Remove file.
79274
79275 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
79276
79277         [BZ #13927]
79278         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79279
79280 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
79281
79282         [BZ #7064]
79283         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
79284         version from __vm86.
79285
79286 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
79287
79288         * sysdeps/unix/common/lxstat.c: Remove file.
79289         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
79290
79291         * sysdeps/unix/sysv/Makefile: Remove file.
79292
79293         * sysdeps/unix/sysv/direct.h: Remove file.
79294
79295         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
79296         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
79297         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
79298         * sysdeps/unix/sysv/bits/signum.h: Likewise.
79299         * sysdeps/unix/sysv/bits/stat.h: Likewise.
79300         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
79301         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
79302
79303         * sysdeps/unix/sysv/setrlimit.c: Remove file.
79304
79305         * sysdeps/unix/xmknod.c: Remove file.
79306         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
79307
79308         * sysdeps/unix/sysv/settimeofday.c: Remove file.
79309
79310         * sysdeps/unix/sysv/i386/time.S: Remove file.
79311
79312         * sysdeps/unix/fxstat.c: Remove file.
79313         * sysdeps/unix/xstat.c: Likewise.
79314         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
79315
79316         * sysdeps/unix/sysv/sigaction.c: Remove file.
79317
79318         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
79319         (sysdep_headers): Remove variable.
79320         [termio.h not in sysdep_headers] (generated): Likewise.
79321         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
79322         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
79323         * sysdeps/unix/sysv/tcdrain.c: Likewise.
79324         * sysdeps/unix/sysv/tcflow.c: Likewise.
79325         * sysdeps/unix/sysv/tcflush.c: Likewise.
79326         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
79327         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
79328         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
79329         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
79330         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
79331
79332         * sysdeps/unix/siglist.c: Remove file.
79333
79334         * sysdeps/unix/getppid.S: Remove file.
79335
79336         * sysdeps/unix/mkdir.c: Remove file.
79337         * sysdeps/unix/rmdir.c: Likewise.
79338
79339 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
79340
79341         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
79342         ERR_MAX value.
79343         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
79344         errlist-compat value.
79345
79346 2012-04-18  David S. Miller  <davem@davemloft.net>
79347
79348         * sysdeps/generic/memcopy.h (reg_char): Delete.
79349         * debug/strcat_chk.c: Use char, not reg_char.
79350         * debug/strcpy_chk.c: Likewise.
79351         * debug/strncat_chk.c: Likewise.
79352         * debug/strncpy_chk.c: Likewise.
79353         * string/memchr.c: Likewise.
79354         * string/memrchr.c: Likewise.
79355         * string/rawmemchr.c: Likewise.
79356         * string/strcat.c: Likewise.
79357         * string/strchr.c: Likewise.
79358         * string/strchrnul.c: Likewise.
79359         * string/strcmp.c: Likewise.
79360         * string/strcpy.c: Likewise.
79361         * string/strncat.c: Likewise.
79362         * string/strncmp.c: Likewise.
79363         * string/strncpy.c: Likewise.
79364
79365 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79366
79367         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
79368         __builtin_memcopy is called when src and dest ranges are known to not
79369         overlap.
79370
79371 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79372
79373         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
79374         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
79375         fwd_align_merge macro call.
79376         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
79377         bwd_align_merge macro call.
79378         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79379
79380 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
79381
79382         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
79383         bwd_align_merge macros.
79384         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
79385         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
79386         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
79387
79388 2012-04-18  David S. Miller  <davem@davemloft.net>
79389
79390         * sysdeps/sparc/sparc64/memcopy.h: Delete.
79391
79392 2012-04-18  Andreas Jaeger  <aj@suse.de>
79393
79394         [BZ #6794]
79395         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
79396         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
79397         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79398
79399         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
79400         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
79401         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79402
79403         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
79404         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
79405         Adjust for changed ldbl-128 files.
79406
79407         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
79408         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
79409         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
79410
79411 2012-04-17  David S. Miller  <davem@davemloft.net>
79412
79413         * sysdeps/sparc/sparc32/memcopy.h: Delete.
79414
79415 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
79416
79417         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
79418         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
79419         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
79420         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
79421         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
79422         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
79423
79424 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
79425
79426         [BZ #6794]
79427         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
79428         * math/libm-test.inc: Add ilogb errno and exception tests.
79429         * math/w_ilogb.c: New file: ilogb wrapper.
79430         * math/w_ilogbf.c: New file: ilogbf wrapper.
79431         * math/w_ilogbl.c: New file: ilogbl wrapper.
79432         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
79433         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
79434         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
79435         exception being thrown with 0.0 as argument.
79436         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
79437         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
79438         exception being thrown with 0.0 as argument.
79439         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
79440         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79441         exception being thrown with 0.0 as argument.
79442         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
79443         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
79444         exception being thrown with 0.0 as argument.
79445         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
79446         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
79447         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
79448         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
79449         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
79450         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
79451         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
79452         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
79453         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
79454
79455 2012-04-17  Petr Baudis  <pasky@ucw.cz>
79456
79457         * include/sys/uio.h: Change __vector to __iovec to avoid clash
79458         with altivec.
79459
79460 2012-04-16  Marek Polacek  <polacek@redhat.com>
79461
79462         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
79463
79464 2012-04-16  Marek Polacek  <polacek@redhat.com>
79465
79466         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
79467         operands of fdivp instruction.
79468
79469 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79470
79471         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
79472         * elf/tst-auditmod3b.c: Likewise.
79473         * elf/tst-auditmod4b.c: Likewise.
79474         * elf/tst-auditmod5b.c: Likewise.
79475         * elf/tst-auditmod6b.c: Likewise.
79476         * elf/tst-auditmod6c.c: Likewise.
79477         * elf/tst-auditmod7b.c: Likewise.
79478         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
79479         * sysdeps/x86_64/preconfigure.in: Likewise.
79480         * sysdeps/x86_64/preconfigure: Regenerated.
79481
79482 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
79483
79484         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
79485         __ILP32__.
79486
79487 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
79488
79489         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
79490         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
79491
79492 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
79493
79494         [BZ #13973]
79495         * locale/iso-639.def: Fix gl language name. Spotted by
79496         Yaron Shahrabani.
79497
79498 2012-04-12  Roland McGrath  <roland@hack.frob.com>
79499
79500         [BZ #2074]
79501         * libio/libio.h (__io_write_fn): Update comment.
79502
79503 2012-04-12  Petr Baudis  <pasky@ucw.cz>
79504
79505         [BZ #2074]
79506         * stdio.texi (Hook Functions): The user provided writer function
79507         is not allowed to return -1.
79508
79509 2012-04-11  David S. Miller  <davem@davemloft.net>
79510
79511         * sysdeps/sparc/fpu/libm-test-ulps: Update.
79512
79513 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
79514
79515         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
79516         Add a leading slash to rtkaio.
79517
79518 2012-04-11  Jim Meyering  <meyering@redhat.com>
79519
79520         [BZ #11959]
79521         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
79522         It is not necessarily an error to ignore fwrite's return
79523         value.  One can reliably use ferror to test for errors after
79524         the fact.
79525
79526 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79527
79528         * bits/types.h (__snseconds_t): New type.
79529         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
79530
79531         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
79532         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
79533         (__SNSECONDS_T_TYPE): Likewise.
79534         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
79535         (__SNSECONDS_T_TYPE): Likewise.
79536         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
79537         (__SNSECONDS_T_TYPE): Likewise.
79538
79539 2012-04-10  Andreas Jaeger  <aj@suse.de>
79540
79541         [BZ #2636]
79542         * manual/time.texi (Processor Time): Return type of times is
79543         elapsed real time since an arbitrary point in the past.
79544         (CPU Time): Move CLK_TCK from here...
79545         (Processor Time): ...to here.  Correct description.
79546         * manual/conf.texi (Constants for Sysconf): Correct description of
79547         _SC_CLK_TCK.
79548
79549 2012-04-10  David S. Miller  <davem@davemloft.net>
79550
79551         [BZ #13967]
79552         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
79553         where the is a gap between DT_REL(A) and DT_JMPREL.
79554
79555 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
79556
79557         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
79558         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79559         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79560
79561 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
79562
79563         * elf/dl-support.c (_dl_inhibit_cache): New variable.
79564         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
79565         (dl_main): Handle --inhibit-cache.
79566         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
79567         _dl_inhibit_cache.
79568         * elf/dl-load.c (_dl_map_object): Use it.
79569         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
79570
79571 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79572
79573         [BZ #13872]
79574         * sysdeps/i386/fpu/e_powl.S (p78): New object.
79575         (__ieee754_powl): Saturate large exponents rather than testing for
79576         overflow of y*log2(x).
79577         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
79578         * math/libm-test.inc (pow_test): Do not permit spurious overflow
79579         exceptions.
79580
79581         [BZ #11521]
79582         * math/s_ctan.c: Include <float.h>.
79583         (__ctan): Avoid internal overflow or cancellation in calculating
79584         denominator.
79585         * math/s_ctanf.c: Likewise.
79586         * math/s_ctanl.c: Likewise.
79587         * math/s_ctanh.c: Likewise.
79588         * math/s_ctanhf.c: Likewise.
79589         * math/s_ctanhl.c: Likewise.
79590         * math/libm-test.inc (ctan_test): Add more tests.
79591         (ctanh_test): Likewise.
79592         * sysdeps/i386/fpu/libm-test-ulps: Update.
79593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
79594
79595 2012-04-09  Andreas Jaeger  <aj@suse.de>
79596
79597         [BZ #6894]
79598         * manual/filesys.texi (Directory Entries): Mention that d_namlen
79599         is an optional BSD extension.
79600
79601         [BZ #10254]
79602         * manual/stdio.texi (Opening Streams): Document additional fopen
79603         parameters.
79604
79605 2012-04-09  Roland McGrath  <roland@hack.frob.com>
79606
79607         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
79608         %eax without telling the compiler.
79609
79610 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
79611
79612         [BZ # 13963]
79613         * manual/install.texi: Use sourceware.org.
79614
79615 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
79616
79617         [BZ #13873]
79618         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
79619         (__ieee754_pow): Generate overflow and underflow using huge*huge
79620         and tiny*tiny rather than just returning constant infinity or zero
79621         for large exponents.
79622         * math/libm-test.inc (pow_test): Require overflow exceptions for
79623         applicable cases of large exponents.
79624
79625         [BZ #706]
79626         * sysdeps/i386/fpu/e_pow.S (p10): New object.
79627         (__ieee754_pow): Use iterative multiplication algorithm only for
79628         integer exponents with absolute value below 1024.  Check for odd
79629         integer exponents when using algorithm for real exponents.
79630         * math/libm-test.inc (pow_test): Add more tests.
79631         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
79632
79633 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
79634
79635         [BZ #13705]
79636         * math/libm-test.inc (exp_test): Do not allow overflow exception
79637         on underflow test.
79638
79639 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
79640
79641         [BZ #13705]
79642         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
79643         instead of __kernel_standard_f.
79644
79645 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
79646
79647         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
79648         * sysdeps/x86_64/memset_chk.S: Likewise.
79649
79650 2012-04-08  Andreas Jaeger  <aj@suse.de>
79651
79652         [BZ #10153]
79653         * manual/startup.texi (Environment Access): Describe return value
79654         for putenv and setenv.
79655
79656         [BZ #6895]
79657         * manual/filesys.texi (Directory Entries): Add description for
79658         DT_LNK.
79659
79660         [BZ #6890]
79661         * manual/filesys.texi (Directory Entries): Clarify that it's file
79662         system not operating system in the description of DT_UNKNOWN.
79663
79664         [BZ #6578]
79665         * manual/syslog.texi (closelog): Fix reference, it's openlog.
79666
79667 2012-04-08  Stephen Compall  <s11@member.fsf.org>
79668
79669         [BZ #6649]
79670         * manual/llio.texi (Opening and Closing Files): Add cross
79671         reference to explain mode argument.
79672
79673 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
79674
79675         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
79676         * sysdeps/x86_64/memset_chk.S: Likewise.
79677
79678 2012-04-07  David S. Miller  <davem@davemloft.net>
79679
79680         * elf/elf.h (R_SPARC_WDISP10): Define.
79681         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
79682         R_SPARC_SIZE32.
79683         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
79684         R_SPARC_SIZE64 and R_SPARC_H34.
79685
79686 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
79687
79688         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
79689         conditions and remove no longer applicable assertion.
79690
79691 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79692
79693         * bits/byteswap.h: Include <features.h>.
79694         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
79695         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
79696
79697 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
79698
79699         * bits/byteswap.h (__bswap_16): Removed.
79700         Include <bits/byteswap-16.h> to get __bswap_16.
79701         * sysdeps/i386/bits/byteswap.h: Likewise.
79702         * sysdeps/s390/bits/byteswap.h: Likewise.
79703         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79704         * bits/byteswap-16.h: New file.
79705         * sysdeps/i386/bits/byteswap-16.h: Likewise.
79706         * sysdeps/s390/bits/byteswap-16.h: Likewise.
79707         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
79708         * string/Makefile (headers): Add bits/byteswap-16.h.
79709
79710 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
79711
79712         [BZ #13895]
79713         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
79714         extra indirection.
79715         * nss/Makefile (tests-static, tests): Add tst-nss-static.
79716         * nss/tst-nss-static.c: New.
79717
79718 2012-04-06  Robert Millan  <rmh@gnu.org>
79719
79720         [BZ #6486]
79721         * manual/llio.texi (File Position Primitive): lseek
79722         refers to WHENCE when it really means OFFSET.
79723
79724 2012-04-06  Andreas Jaeger  <aj@suse.de>
79725
79726         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
79727         strncmp declarations.
79728
79729         * abilist/libc.abilist: Add __poll and __ppoll.
79730
79731 2012-04-05  David S. Miller  <davem@davemloft.net>
79732
79733         * scripts/check-local-headers.sh: Accept a host triplet in the
79734         path matched by the exclude regexp.
79735
79736         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
79737         definition.
79738         * sysdeps/powerpc/powerpc32/dl-machine.h
79739         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
79740         * sysdeps/s390/s390-32/dl-machine.h
79741         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79742         * sysdeps/sparc/sparc32/dl-machine.h
79743         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79744         * sysdeps/sparc/sparc64/dl-machine.h
79745         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
79746
79747         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
79748         lazy binding.
79749         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
79750         undefined symbol errors.
79751
79752         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
79753         DT_NEEDED entries.
79754
79755 2012-04-05  Michael Matz  <matz@suse.de>
79756
79757         [BZ #13592]
79758         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
79759
79760 2012-04-05  Andreas Jaeger  <aj@suse.de>
79761
79762         [BZ #13908]
79763         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
79764         comment.
79765
79766 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79767
79768         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
79769         which ROUND is no valid rounding mode.
79770
79771 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79772
79773         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
79774         read again.
79775         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
79776
79777 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79778
79779         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
79780         an exception using FPU order intentionally.
79781
79782 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
79783
79784         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
79785         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
79786         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
79787         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
79788
79789 2012-04-05  Simon Josefsson  <simon@josefsson.org>
79790
79791         [BZ #12340]
79792         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
79793         EINVAL when BUFLEN is too smal.
79794
79795 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
79796
79797         [BZ #13553]
79798         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
79799         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
79800
79801 2012-04-03  Andreas Jaeger  <aj@suse.de>
79802
79803         [BZ #13938]
79804         * manual/setjmp.texi (System V contexts): Fix sentence.
79805
79806         [BZ #13926]
79807         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
79808         New macro for this case.
79809         [!__GNUC__] (__bswap_64): New inline function for this case.
79810         * sysdeps/x86_64/bits/byteswap.h: Likewise.
79811         * bits/byteswap.h: Likewise.
79812         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
79813         ull, guard with __GLIBC_HAVE_LONG_LONG.
79814
79815         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
79816         __GLIBC_HAVE_LONG_LONG.
79817
79818         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
79819         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
79820
79821 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
79822
79823         [BZ #13691]
79824         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
79825         inptr and inend, rather than using last_ch.
79826
79827 2012-04-02  David S. Miller  <davem@davemloft.net>
79828
79829         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
79830         * stdio-common/printf-parse.h (read_int): Change return type to
79831         'int', return -1 on INT_MAX overflow.
79832         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
79833         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
79834         overflows INT_MAX.  Check for overflow of in-format-string precision
79835         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
79836         SIZE_MAX not INT_MAX for integer overflow test.
79837         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
79838         skip the construct in the format string but do not record anything.
79839         * stdio-common/bug22.c: Adjust to test both width/prevision
79840         INT_MAX overflow as well as total length INT_MAX overflow.  Check
79841         explicitly for proper errno values.
79842
79843 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
79844
79845         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
79846         CHAR_MAX.
79847         * string/test-strcmp.c [! WIDE]: Likewise.
79848         * time/tst-mktime2.c: Likewise for INT_MAX.
79849         * string/test-string.h: #include <sys/param.h> for MIN.
79850
79851         * csu/init-first.c (__libc_init_first): Call __ctype_init.
79852         * sysdeps/i386/init-first.c (init): Likewise.
79853         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
79854         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
79855         * sysdeps/sh/init-first.c (init): Likewise.
79856
79857 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
79858
79859         * po/ru.po: Update from translation team.
79860         * po/vi.po: Likewise.
79861
79862 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
79863
79864         * resolv/nss_dns/dns-host.c: Merge copyright years.
79865
79866 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
79867
79868         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
79869         Optimize memcpy with prefetch if
79870         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
79871         src, dst pointers have unequal 16 byte alignments.
79872
79873 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
79874
79875         [BZ #13928]
79876         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
79877         from a CNAME entry and return the minimum ttl for the query.
79878         (gaih_getanswer_slice): Likewise.
79879
79880 2012-03-30  Jeff Law  <law@redhat.com>
79881
79882         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
79883         due to long keys.
79884         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
79885         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
79886
79887         * resolv/nss_dns/dns-host.c: Update copyright year.
79888
79889 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
79890
79891         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
79892         requests to save a system call.  Fix check that all bytes are sent.
79893
79894         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
79895         comments for sendmmsg.
79896
79897 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
79898
79899         [BZ #13691]
79900         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
79901         with only 1 character between 0x0041 and 0x01b0.
79902         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
79903         * wcsmbs/tst-mbsnrtowcs.c: New file.
79904
79905 2012-03-29  David S. Miller  <davem@davemloft.net>
79906
79907         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
79908         small copies by hand.
79909
79910 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
79911
79912         [BZ #13761]
79913         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
79914         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
79915         group memberships.
79916
79917 2012-03-28  David S. Miller  <davem@davemloft.net>
79918
79919         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
79920         that branches into memcpy.
79921         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
79922         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
79923         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
79924         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
79925         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
79926         bits.
79927         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
79928         implementation too.
79929         * sysdeps/sparc/mempcpy.S: New file.
79930
79931         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
79932         the IFUNC routine in the libc case.
79933         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
79934
79935         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
79936         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
79937         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
79938         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
79939         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
79940         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
79941         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
79942         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
79943
79944         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
79945         loop to 256 bytes instead of 64 bytes and fix test signedness.
79946
79947         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
79948         * sysdeps/sparc/sparc32/Makefile: rather than here...
79949         * sysdeps/sparc/sparc64/Makefile: and here.
79950
79951 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
79952
79953         * malloc/mallocbug.c: Avoid warnings about unused variables.
79954
79955 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
79956
79957         [BZ #13760]
79958         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
79959         in the right place. Discard and retry query if response is
79960         larger than input buffer size.
79961
79962 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
79963
79964         [BZ #369]
79965         [BZ #2678]
79966         [BZ #3866]
79967         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
79968         x for large integer exponent.
79969         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
79970         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
79971         sign of result as needed afterwards.
79972         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
79973         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
79974         result for underflowing pow the same as for overflow.
79975         (__kernel_standard_l): Handle powl overflow and underflow here
79976         rather than calling __kernel_standard.
79977         * math/libm-test.inc (pow_test): Add more tests.
79978
79979         [BZ #3868]
79980         [BZ #13879]
79981         [BZ #13910]
79982         [BZ #13911]
79983         [BZ #13912]
79984         [BZ #13913]
79985         [BZ #13915]
79986         [BZ #13916]
79987         [BZ #13917]
79988         [BZ #13918]
79989         [BZ #13919]
79990         [BZ #13920]
79991         [BZ #13921]
79992         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
79993         * sysdeps/ieee754/k_standard.c: Include <float.h>.
79994         (__kernel_standard_l): New function.
79995         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
79996         __kernel_standard.
79997         * math/w_acosl.c (__acosl): Likewise.
79998         * math/w_asinl.c (__asinl): Likewise.
79999         * math/w_atan2l.c (__atan2l): Likewise.
80000         * math/w_atanhl.c (__atanhl): Likewise.
80001         * math/w_coshl.c (__coshl): Likewise.
80002         * math/w_exp10l.c (__exp10l): Likewise.
80003         * math/w_exp2l.c (__exp2l): Likewise.
80004         * math/w_fmodl.c (__fmodl): Likewise.
80005         * math/w_hypotl.c (__hypotl): Likewise.
80006         * math/w_j0l.c (__j0l, __y0l): Likewise.
80007         * math/w_j1l.c (__j1l, __y1l): Likewise.
80008         * math/w_jnl.c (__jnl, __ynl): Likewise.
80009         * math/w_lgammal.c (__lgammal): Likewise.
80010         * math/w_log10l.c (__log10l): Likewise.
80011         * math/w_log2l.c (__log2l): Likewise.
80012         * math/w_logl.c (__logl): Likewise.
80013         * math/w_powl.c (__powl): Likewise.
80014         * math/w_remainderl.c (__remainderl): Likewise.
80015         * math/w_scalbl.c (sysv_scalbl): Likewise.
80016         * math/w_sinhl.c (__sinhl): Likewise.
80017         * math/w_sqrtl.c (__sqrtl): Likewise.
80018         * math/w_tgammal.c (__tgammal): Likewise.
80019         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
80020         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
80021         * math/libm-test.inc (acos_test): Add more tests.
80022         (acosh_test): Likewise.
80023         (asin_test): Likewise.
80024         (atanh_test): Likewise.
80025         (exp_test): Likewise.
80026         (exp10_test): Likewise.
80027         (exp2_test): Likewise.
80028         (expm1_test): Likewise.
80029         (lgamma_test): Likewise.
80030         (log_test): Likewise.
80031         (log10_test): Likewise.
80032         (log1p_test): Likewise.
80033         (log2_test): Likewise.
80034         (pow_test): Do not allow some spurious overflow exceptions.
80035         (sqrt_test): Add more tests.
80036         (tgamma_test): Likewise.
80037         (y0_test): Likewise.
80038         (y1_test): Likewise.
80039         (yn_test): Likewise.
80040
80041 2012-03-27  Anton Blanchard  <anton@samba.org>
80042
80043         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
80044         MAP_HUGETLB.
80045         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
80046         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
80047         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
80048
80049 2012-03-27  David S. Miller  <davem@davemloft.net>
80050
80051         * conform/Makefile: Run run-conformtest.sh using $(BASH).
80052
80053         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
80054         have-as-vis3 check.
80055
80056 2012-03-27  Andreas Jaeger  <aj@suse.de>
80057
80058         * sysdeps/x86_64/elf/configure.in: Moved to ...
80059         * sysdeps/x86_64/configure.in: ... here.
80060         * sysdeps/x86_64/elf/start.S: Moved to ...
80061         * sysdeps/x86_64/start.S: ... here.
80062         * sysdeps/x86_64/elf/configure: Delete.
80063
80064         * sysdeps/x86_64/configure.in: Merge contents from
80065         sysdeps/i386/configure.in (without i686 check).
80066
80067         * sysdeps/i386/elf/Versions: Merge into ...
80068         * sysdeps/i386/Versions: ... this.
80069         * sysdeps/i386/elf/Versions: Delete file.
80070         * sysdeps/i386/elf/start.S: Moved to ...
80071         * sysdeps/i386/start.S: ...here.
80072         * sysdeps/i386/elf/configure.in: Merge into...
80073         * sysdeps/i386/configure.in: ...here.
80074         * sysdeps/i386/elf/configure.in: Delete file.
80075         * sysdeps/i386/elf/configure: Delete file.
80076
80077         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
80078         * debug/backtracesyms.c: ... here.
80079         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
80080         * debug/backtracesymsfd.c: ... here.
80081         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
80082         * sysdeps/generic/ifunc-sel.h: ... here.
80083
80084         * sysdeps/unix/i386/start.c: Delete file.
80085         * sysdeps/unix/sparc/start.c: Delete file.
80086         * sysdeps/unix/start.c: Delete file.
80087
80088         * sysdeps/sh/elf/configure.in: Moved to ...
80089         * sysdeps/sh/configure.in: ... here.
80090         * sysdeps/sh/elf/start.S: Moved to ...
80091         * sysdeps/sh/start.S: ... here.
80092         * sysdeps/sh/elf/configure: Delete file.
80093
80094         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
80095         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
80096         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
80097         * sysdeps/powerpc/powerpc64/entry.h: ... here.
80098         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
80099         * sysdeps/powerpc/powerpc64/start.S: here.
80100         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
80101         * sysdeps/powerpc/powerpc64/Makefile: ... this.
80102         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
80103         * sysdeps/powerpc/powerpc64/configure.in: ... this.
80104         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
80105
80106         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
80107         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
80108         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
80109         * sysdeps/powerpc/powerpc32/start.S: ... here.
80110         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
80111         * sysdeps/powerpc/powerpc32/configure.in: ... this.
80112         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
80113
80114         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
80115         * sysdeps/powerpc/ifunc-sel.h: ... here.
80116         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
80117         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
80118
80119         * sysdeps/sparc/elf/configure.in: Moved to ...
80120         * sysdeps/sparc/configure.in: ... here.
80121         * sysdeps/sparc/elf/configure: Delete file.
80122         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
80123         * sysdeps/sparc/sparc32/start.S: ... here.
80124         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
80125         * sysdeps/sparc/sparc64/start.S: ... here.
80126         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
80127         * sysdeps/sparc/sparc32/Makefile: ... this.
80128         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
80129         * sysdeps/sparc/sparc64/Makefile: ... this.
80130
80131         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
80132         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
80133         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
80134         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
80135         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
80136         * sysdeps/s390/s390-32/setjmp.S: ... here.
80137         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
80138         * sysdeps/s390/s390-32/configure.in: ... here.
80139         * sysdeps/s390/s390-32/elf/configure: Delete file.
80140         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
80141         * sysdeps/s390/s390-32/start.S: ... here.
80142
80143         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
80144         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
80145         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
80146         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
80147         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
80148         * sysdeps/s390/s390-64/setjmp.S: ... here.
80149         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
80150         * sysdeps/s390/s390-64/configure.in: ... here
80151         * sysdeps/s390/s390-64/elf/configure: Delete file.
80152         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
80153         * sysdeps/s390/s390-64/start.S: ... here.
80154         * sysdeps/s390/s390-64/elf/configure: Delete.
80155
80156         * configure.in: Remove support for elf directories in sysdeps.
80157
80158         * configure: Regenerated.
80159         * sysdeps/i386/configure: Regenerated.
80160         * sysdeps/powerpc/powerpc32/configure: Regenerated.
80161         * sysdeps/powerpc/powerpc64/configure: Regenerated.
80162         * sysdeps/s390/s390-32/configure: Regenerated.
80163         * sysdeps/s390/s390-64/configure: Regenerated.
80164         * sysdeps/sh/configure: Regenerated.
80165         * sysdeps/sparc/configure: Regenerated.
80166         * sysdeps/x86_64/configure: Regenerated.
80167
80168 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
80169
80170         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80171
80172         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
80173         denormal result into account.
80174
80175 2012-03-25  Roland McGrath  <roland@hack.frob.com>
80176
80177         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
80178         Reported by Allan McRae <allan@archlinux.org>.
80179
80180 2012-03-23  Jeff Law  <law@redhat.com>
80181
80182         * nss/getnssent.c (__nss_getent): Fix typo.
80183
80184 2012-03-23  David S. Miller  <davem@davemloft.net>
80185
80186         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80187
80188 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
80189
80190         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
80191         to pad to uint64_t for each field.
80192         (dl_tls_index): Replace unsigned long with uint64_t.
80193
80194 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
80195         Paul Pluzhnikov  <ppluzhnikov@google.com>
80196
80197         [BZ #6528]
80198         * grp/Makefile (otherlibs): Don't set it.
80199         * inet/Makefile (otherlibs): Likewise.
80200         * login/Makefile (otherlibs): Likewise.
80201         * nscd/Makefile (otherlibs): Likewise.
80202         * posix/Makefile (otherlibs): Likewise.
80203         * pwd/Makefile (otherlibs): Likewise.
80204         * rt/Makefile (otherlibs): Likewise.
80205         * sunrpc/Makefile (otherlibs): Likewise.
80206         * nss/Makefile (otherlibs): Likewise.
80207         Add libnss_files to routines and static-only-routines.
80208         ($(objpfx)getent): Remove rule.
80209         * resolv/Makefile: Add libnss_dns and libresolv to routines and
80210         static-only-routines.
80211
80212 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
80213
80214         [BZ #13892]
80215         * math/s_cexp.c: Include <float.h>.
80216         (__cexp): Handle exp result overflowing not necessarily
80217         overflowing both real and imaginary parts of result.
80218         * math/s_cexpf.c: Likewise.
80219         * math/s_cexpl.c: Likewise.
80220         * math/libm-test.inc (cexp_test): Add more tests.
80221         * sysdeps/i386/fpu/libm-test-ulps: Update.
80222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80223
80224 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80225
80226         * include/link.h (ELFW): New macro.
80227         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
80228         Replace ELF64_R_TYPE with ELFW(R_TYPE).
80229
80230 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80231
80232         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
80233         with uint64_t.
80234
80235 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80236
80237         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
80238         declaration.
80239         (struct La_x32_retval): Likewise.
80240
80241 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
80242
80243         * sysdeps/x86_64/preconfigure.in: New file.
80244         * sysdeps/x86_64/preconfigure: New generated file.
80245
80246 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
80247
80248         [BZ #13824]
80249         * math/e_exp2l.c: Include <float.h>.
80250         (__ieee754_exp2l): Handle overflow and underflow cases
80251         separately.  Only pass fractional part of argument to
80252         __ieee754_expl.
80253         * math/libm-test.inc (exp2_test): Add more tests.
80254
80255         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
80256         negating x to take absolute value.
80257         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
80258         Likewise.
80259         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
80260         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
80261         Likewise.
80262         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
80263         computing low part if x was negated.
80264         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
80265
80266 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80267
80268         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
80269         la_x32_gnu_pltexit.
80270         (pltexit): Cast int_retval to ptrdiff_t.
80271         * elf/tst-auditmod3b.c: Likewise.
80272         * elf/tst-auditmod4b.c: Likewise.
80273         * elf/tst-auditmod5b.c: Likewise.
80274         * elf/tst-auditmod6b.c: Likewise.
80275         * elf/tst-auditmod6c.c: Likewise.
80276         * elf/tst-auditmod7b.c: Likewise.
80277
80278         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
80279         and x32_gnu_pltexit.
80280
80281         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
80282         __ELF_NATIVE_CLASS.
80283         (La_x32_regs): New macro.
80284         (La_x32_retval): Likewise.
80285         (la_x32_gnu_pltenter): New function prototype.
80286         (la_x32_gnu_pltexit): Likewise.
80287
80288 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
80289
80290         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
80291         exponent.
80292
80293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80294
80295         * configure.in (libc_cv_cc_nofma): Check for option to disable
80296         generation of FMA instructions.
80297         * configure: Regenerate.
80298         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
80299         * sysdeps/ieee754/dbl-64/Makefile: New file.
80300         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
80301         Remove brandred-fma4.
80302         (CFLAGS-brandred-fma4.c): Remove.
80303         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
80304         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
80305         define.
80306         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
80307         define.
80308
80309 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80310
80311         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
80312         LLONG_MAX != LONG_MAX.
80313         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80314         (_fitoa_word): Likewise.
80315         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
80316         LLONG_MAX != LONG_MAX.
80317         * stdio-common/_itowa.h: Include <_itoa.h>.
80318         (_itowa_word): Use _ITOA_WORD_TYPE on value.
80319         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
80320         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
80321         only if not defined.
80322         (_ITOA_WORD_TYPE): Likewise.
80323         (_itoa_word): Use _ITOA_WORD_TYPE on value.
80324         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
80325
80326 2012-03-21  David S. Miller  <davem@davemloft.net>
80327
80328         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80329
80330 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
80331
80332         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
80333         of x86_64 when setting libc_cv_slibdir, libdir and
80334         libc_cv_localedir.
80335         * sysdeps/unix/sysv/linux/configure: Regenerated.
80336
80337 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80338
80339         * manual/lang.texi (Old Varargs): Remove section.
80340         (How Variadic): Update menu.
80341         (va_start): Do not mention varargs.h.
80342
80343 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80344             Joseph Myers  <joseph@codesourcery.com>
80345
80346         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
80347         link test.
80348         * configure: Regenerated.
80349
80350 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
80351
80352         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
80353         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
80354         conformtest.pl
80355
80356 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80357
80358         * NOTES: Remove.
80359         * Makefile (files-for-dist): Remove NOTES.
80360         (NOTES): Remove rule.
80361         * README: Don't refer to NOTES.
80362         * manual/creature.texi: Don't include macros.texi.
80363         * manual/intro.texi (creature.texi): Remove comment referring to
80364         NOTES.
80365
80366         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
80367         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
80368         * configure: Regenerated.
80369         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
80370         LIBC_TRY_CC_OPTION.
80371         (libc_cv_as_i686): Likewise.
80372         (libc_cv_cc_avx): Likewise.
80373         (libc_cv_cc_sse2avx): Likewise.
80374         (libc_cv_cc_fma4): Likewise.
80375         (libc_cv_cc_novzeroupper): Likewise.
80376         * sysdeps/i386/configure: Regenerated.
80377
80378         [BZ #13883]
80379         * sysdeps/i386/fpu/s_cexp.S: Remove.
80380         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
80381         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
80382         * math/libm-test.inc (cexp_test): Add more tests.
80383         * sysdeps/i386/fpu/libm-test-ulps: Update.
80384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80385
80386 2012-03-21  Allan McRae  <allan@archlinux.org>
80387
80388         * timezone/Makefile: Do not install iso3166.tab and zone.tab
80389
80390 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
80391
80392         [BZ #13871]
80393         * math/w_exp2.c: Do not include <float.h>.
80394         (o_threshold, u_threshold): Remove.
80395         (__exp2): Calculate result before checking finiteness and calling
80396         __kernel_standard.
80397         * math/w_exp2f.c: Likewise.
80398         * math/w_exp2l.c: Likewise.
80399         * math/libm-test.inc (exp2_test): Require overflow exception for
80400         1e6 input.
80401
80402         [BZ #3866]
80403         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
80404         range of signed 64-bit integers before using fistpll.  Remove
80405         checks for whether integers fit in mantissa bits.
80406         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
80407         the range of signed 32-bit integers before using fistpl.  Remove
80408         checks for whether integers fit in mantissa bits.
80409         * sysdeps/i386/fpu/e_powl.S (p64): New object.
80410         (__ieee754_powl): Test for y outside the range of signed 64-bit
80411         integers before using fistpll.  Reduce 64-bit values to 63-bit
80412         ones as needed.
80413         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
80414         divide-by-zero is raised for zero to large negative powers.
80415         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
80416         (__ieee754_powl): Test for y outside the range of signed 64-bit
80417         integers before using fistpll.  Reduce 64-bit values to 63-bit
80418         ones as needed.
80419         * math/libm-test.inc (pow_test): Add more tests.
80420
80421 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80422
80423         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
80424         <stdio-common/_itoa.h>.
80425         * debug/segfault.c: Likewise.
80426         * elf/dl-cache.c: Likewise.
80427         * elf/dl-minimal.c: Likewise.
80428         * elf/dl-misc.c: Likewise.
80429         * elf/dl-sysdep.c: Likewise.
80430         * elf/dl-version.c: Likewise.
80431         * elf/rtld.c: Likewise.
80432         * hurd/hurdsock.c: Likewise.
80433         * hurd/lookup-retry.c: Likewise.
80434         * malloc/malloc.c: Likewise.
80435         * malloc/mtrace.c: Likewise.
80436         * nscd/nscd_getgr_r.c: Likewise.
80437         * nscd/nscd_getpw_r.c: Likewise.
80438         * nscd/nscd_getserv_r.c: Likewise.
80439         * posix/getopt_init.c: Likewise.
80440         * posix/wordexp.c: Likewise.
80441         * stdio-common/_itoa.c: Likewise.
80442         * stdio-common/printf_fphex.c: Likewise.
80443         * stdio-common/vfprintf.c: Likewise.
80444         * string/_strerror.c: Likewise.
80445         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
80446         * sysdeps/i386/i686/hp-timing.h: Likewise.
80447         * sysdeps/mach/_strerror.c: Likewise.
80448         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
80449         * sysdeps/mach/hurd/sethostid.c: Likewise.
80450         * sysdeps/mach/hurd/xmknodat.c: Likewise.
80451         * sysdeps/mach/xpg-strerror.c: Likewise.
80452         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
80453         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
80454         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
80455         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
80456         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
80457         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
80458         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
80459         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
80460         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
80461         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
80462         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
80463         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
80464         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
80465         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
80466         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
80467         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
80468         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
80469         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
80470         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
80471         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
80472         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
80473
80474         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
80475
80476         * stdio-common/_itoa.h: Moved to ...
80477         * sysdeps/generic/_itoa.h: Here.
80478
80479         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
80480
80481         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
80482         instead of "_itoa.h" and "_itowa.h".
80483         * stdio-common/vfprintf.: Likewise.
80484
80485 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80486
80487         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
80488         <bits/wordsize.h>.
80489         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
80490         (__signbit): Likewise.
80491         (llrintf): Likewise.
80492         (llrint): Likewise.
80493
80494 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
80495
80496         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
80497         __WORDSIZE != 64.
80498
80499 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
80500
80501         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
80502         OVERFLOW_EXCEPTION_OK.
80503         * math/libm-test.inc ("Philosophy"): Update comment about
80504         exception testing.
80505         (OVERFLOW_EXCEPTION): Define.
80506         (OVERFLOW_EXCEPTION_OK): Likewise.
80507         (INVALID_EXCEPTION_OK): Renumber.
80508         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
80509         (IGNORE_ZERO_INF_SIGN): Likewise.
80510         (test_exceptions): Handle FE_OVERFLOW.
80511         (exp10_test): Expect overflow exceptions.
80512         (exp2_test): Likewise.
80513         (expm1_test): Likewise.
80514         (nextafter_test): Likewise.
80515         (pow_test): Likewise.
80516         (scalbn_test): Likewise.
80517         (scalbln_test): Likewise.
80518
80519 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80520
80521         * sysdeps/x86_64/bits/atomic.h
80522         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
80523         64bit integer.
80524         (atomic_exchange_acq): Likewise.
80525         (__arch_exchange_and_add_body): Likewise.
80526         (__arch_add_body): Likewise.
80527         (atomic_add_negative): Likewise.
80528         (atomic_add_zero): Likewise.
80529
80530 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80531
80532         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
80533         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
80534
80535 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80536
80537         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
80538         Check __x86_64__ instead of __WORDSIZE.
80539
80540 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80541
80542         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
80543
80544 2012-03-19  David S. Miller  <davem@davemloft.net>
80545
80546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
80547
80548         * sysdeps/sparc/fpu/fenv_private.h: New file.
80549         * sysdeps/sparc/fpu/math_private.h: Use it.
80550         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
80551         Remove.
80552         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
80553         (libc_feholdexcept_setroundl): Remove.
80554         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
80555         Remove.
80556         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
80557         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
80558
80559 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80560
80561         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
80562         int64_t instead of long int.
80563         (INSERT_WORDS64): Likewise.
80564
80565 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
80566
80567         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
80568         _Unwind_GetCFA return to _Unwind_Ptr first.
80569
80570 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
80571
80572         [BZ #13629]
80573         * math/s_clog.c: Include <float.h>.
80574         (__clog): Scale large or subnormal inputs.
80575         * math/s_clogf.c: Likewise.
80576         * math/s_clogl.c: Likewise.
80577         * math/s_clog10.c: Include <float.h>.
80578         (M_LOG10_2): Define.
80579         (__clog10): Scale large or subnormal inputs.
80580         * math/s_clog10f.c: Likewise.
80581         * math/s_clog10l.c: Likewise.
80582         * math/libm-test.inc (clog_test): Add more tests.
80583         (clog10_test): Likewise.
80584         * sysdeps/i386/fpu/libm-test-ulps: Update.
80585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80586
80587         [BZ #11451]
80588         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
80589         x and y.
80590         * math/libm-test.inc (atan2_test): Add another test.
80591
80592         * Makerules (common-objdir-compile): Remove.
80593         * sysdeps/unix/Makefile (config-generated): Do not add
80594         $(unix-generated) to variable.
80595         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
80596         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
80597         Remove rule.
80598         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
80599         Likewise.
80600         [generic bits/local_lim.h] (before-compile): Do not append to
80601         variable.
80602         [generic bits/local_lim.h] (common-generated): Likewise.
80603         [generic sys/param.h] (before-compile): Do not append to variable.
80604         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
80605         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
80606         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
80607         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
80608         include.
80609         [generic sys/param.h] (sys/param.h-includes): Remove variable.
80610         [generic sys/param.h] (sys/param.h-includes): Remove rule.
80611         [generic sys/param.h] ($(addprefix
80612         $(common-objpfx),$(sys/param.h-includes))): Likewise.
80613         [generic sys/param.h] (common-generated): Do not append to
80614         variable.
80615         [generic sys/param.h] (sysdep_headers): Likewise.
80616         [generic bits/errno.h] (before-compile): Do not append to
80617         variable.
80618         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
80619         rule.
80620         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
80621         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
80622         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
80623         [generic bits/errno.h] (common-generated): Do not append to
80624         variable.
80625         [generic bits/ioctls.h] (before-compile): Do not append to
80626         variable.
80627         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
80628         rule.
80629         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
80630         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
80631         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
80632         rule.
80633         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
80634         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
80635         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
80636         [generic bits/ioctls.h] (common-generated): Do not append to
80637         variable.
80638         [generic sys/syscall.h] (syscall.h): Remove variable.
80639         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
80640         rule.
80641         [generic sys/syscall.h] (before-compile): Do not append to
80642         variable.
80643         [generic sys/syscall.h] (common-generated): Likewise.
80644         * sysdeps/unix/errnos-tmpl.c: Remove file.
80645         * sysdeps/unix/errnos.awk: Likewise.
80646         * sysdeps/unix/ioctls-tmpl.c: Likewise.
80647         * sysdeps/unix/ioctls.awk: Likewise.
80648         * sysdeps/unix/mk-local_lim.c: Likewise.
80649         * sysdeps/unix/snarf-ioctls: Likewise.
80650
80651 2012-03-19  Richard Henderson  <rth@twiddle.net>
80652
80653         * sysdeps/i386/fpu/fenv_private.h: New file.
80654         * sysdeps/i386/fpu/math_private.h: Use it.
80655         (math_opt_barrier, math_force_eval): Remove.
80656         (libc_feholdexcept_setround_53bit): Remove.
80657         (libc_feupdateenv_53bit): Remove.
80658         * sysdeps/x86_64/fpu/math_private.h: Likewise.
80659         (math_opt_barrier, math_force_eval): Remove.
80660         (libc_feholdexcept): Remove.
80661         (libc_feholdexcept_setround): Remove.
80662         (libc_fetestexcept, libc_fesetenv): Remove.
80663         (libc_feupdateenv_test): Remove.
80664         (libc_feupdateenv, libc_feholdsetround): Remove.
80665         (libc_feresetround): Remove.
80666
80667         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
80668         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
80669
80670         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
80671         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
80672         (libc_feupdateenv_testl): New.
80673         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
80674         (libc_feupdateenv_testf): New.
80675         (libc_feupdateenv): Use libc_feupdateenv_test.
80676         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
80677         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
80678
80679         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
80680         (libc_feholdsetroundf, libc_feholdsetroundl): New.
80681         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
80682         (libc_feresetround_noex): New.
80683         (libc_feresetround_noexf): New.
80684         (libc_feresetround_noexl): New.
80685         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
80686         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
80687         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
80688         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
80689         SET_RESTORE_ROUND.
80690         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
80691         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
80692         (__cos): Likewise.
80693         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
80694         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
80695         SET_RESTORE_ROUND_NOEX.
80696         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
80697         SET_RESTORE_ROUND_NOEXF.
80698         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
80699         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
80700         (libc_feholdsetroundf): New.
80701         (libc_feresetround, libc_feresetroundf): New.
80702
80703         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
80704         (libc_feholdexcept_setround_53bit): Convert from macro to function.
80705         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
80706
80707         * sysdeps/generic/math_private.h: Include <fenv.h>.
80708         (default_libc_feholdexcept): New.
80709         (default_libc_feholdexcept_setround): New.
80710         (default_libc_fesetenv, default_libc_feupdateenv): New.
80711         (libc_feholdexcept): Only define if undefined.
80712         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
80713         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
80714         (libc_feholdexcept_setroundl): Likewise.
80715         (libc_feholdexcept_setround_53bit): Likewise.
80716         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
80717         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
80718         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
80719         (libc_feupdateenv_53bit): Likewise.
80720         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
80721         (libc_feholdexcept): Convert from macro to inline function.
80722         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
80723         (libc_fesetenv, libc_feupdateenv): Likewise.
80724
80725         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
80726         not previously defined.
80727         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
80728         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
80729         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
80730         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
80731         * sysdeps/ieee754/flt-32/math_private.h: New file.
80732         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
80733         math_private.h below SET_FLOAT_WORD.
80734         (__isnan, __isinf_ns, __finite): Remove.
80735         (__isnanf, __isinf_nsf, __finitef): Remove.
80736
80737 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
80738
80739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80740
80741 2012-03-17  David S. Miller  <davem@davemloft.net>
80742
80743         [BZ #6471]
80744         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
80745         for 2.16.
80746
80747 2012-03-16  David S. Miller  <davem@davemloft.net>
80748
80749         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
80750         warnings.
80751
80752         [BZ #6471]
80753         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
80754         properly.
80755         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
80756         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
80757         sysdep_routines when subdir is sysvipc.
80758         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
80759         __getshmlba helper.
80760
80761         * sysdeps/sparc/fpu/libm-test/ulps: Update.
80762
80763 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80764
80765         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
80766         [__LP64__].
80767
80768 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80769
80770         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
80771         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
80772         (__lround): Renamed to ...
80773         (__llround): This.  Replace long int with long long int.
80774         Define lround functions as aliases of llround functions.
80775         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
80776
80777 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80778
80779         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
80780         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
80781         adresses to uintptr_t.  Replace "long int" and "unsigned long
80782         int" with "greg_t" on va_arg.
80783
80784 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80785
80786         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
80787         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
80788
80789         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
80790         Move e_machine check before EI_CLASS check.  Handle x32
80791         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
80792         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
80793         SKIP_EM_IA_64 and include
80794         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
80795
80796         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
80797         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
80798         (add_system_dir): New macro.
80799
80800         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
80801         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
80802
80803 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80804
80805         [BZ #2551]
80806         [BZ #2552]
80807         [BZ #2553]
80808         [BZ #2554]
80809         [BZ #2562]
80810         [BZ #2563]
80811         [BZ #2565]
80812         [BZ #2566]
80813         [BZ #2576]
80814         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
80815         (y0): Likewise.
80816         * math/w_j0f.c (j0f): Likewise.
80817         (y0f): Likewise.
80818         * math/w_j0l.c (__j0l): Likewise.
80819         (__y0l): Likewise.
80820         * math/w_j1.c (j1): Likewise.
80821         (y1): Likewise.
80822         * math/w_j1f.c (j1f): Likewise.
80823         (y1f): Likewise.
80824         * math/w_j1l.c (__j1l): Likewise.
80825         (__y1l): Likewise.
80826         * math/w_jn.c (jn): Likewise.
80827         (yn): Likewise.
80828         * math/w_jnf.c (jnf): Likewise.
80829         (ynf): Likewise.
80830         * math/w_jnl.c (__jnl): Likewise.
80831         (__ynl): Likewise.
80832         * math/libm-test.inc (j0_test): Add more tests.
80833         (j1_test): Likewise.
80834         (jn_test): Likewise.  Add trailing semicolon to existing test.
80835         (y0_test): Likewise.
80836         (y1_test): Likewise.
80837         * sysdeps/i386/fpu/libm-test-ulps: Update.
80838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80839
80840         [BZ #13851]
80841         [BZ #13854]
80842         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
80843         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
80844         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
80845         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
80846         (__tanl): Set errno for infinite argument.
80847         * sysdeps/i386/fpu/mptan.c: Remove.
80848         * sysdeps/i386/fpu/s_tan.S: Likewise.
80849         * sysdeps/i386/fpu/s_tanl.S: Likewise.
80850         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
80851         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
80852         * math/libm-test.inc (tan_test): Add more tests and enable more
80853         tests for double and long double.
80854         * sysdeps/i386/fpu/libm-test-ulps: Update.
80855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80856
80857 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
80858
80859         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
80860         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
80861
80862 2012-03-16  Roland McGrath  <roland@hack.frob.com>
80863
80864         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
80865         * configure.in: Use it for both main tree and add-ons.
80866         * configure: Regenerated.
80867
80868 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
80869
80870         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
80871
80872 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
80873
80874         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
80875         in comment.
80876
80877         [BZ #13851]
80878         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
80879         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
80880         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
80881         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
80882         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
80883         infinite argument.
80884         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
80885         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
80886         != 0 for prec == 2.
80887         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
80888         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
80889         * sysdeps/i386/fpu/s_cosl.S: Likewise.
80890         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
80891         * sysdeps/i386/fpu/s_sinl.S: Likewise.
80892         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
80893         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
80894         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
80895         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
80896         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
80897         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
80898         * math/libm-test.inc (cos_test): Add more tests and enable more
80899         tests for long double.
80900         (sin_test): Likewise.
80901         (sincos_test): Likewise.
80902         * sysdeps/i386/fpu/libm-test-ulps: Update.
80903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
80904
80905 2012-03-16  David S. Miller  <davem@davemloft.net>
80906
80907         * sysdeps/sparc/fpu/math_private.h: New file.
80908
80909 2012-03-15  David S. Miller  <davem@davemloft.net>
80910
80911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
80912         file.
80913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
80914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
80915         file.
80916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
80917         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
80918         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
80919         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
80920         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
80921         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
80922         sysdep routines.
80923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
80924
80925         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
80926         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
80927
80928         * sysdeps/sparc/sparc-ifunc.h: New file.
80929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
80930         sparc-ifunc.h
80931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
80932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
80933         Likewise.
80934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
80935         Likewise.
80936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
80937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
80938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
80939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
80940         Likewise.
80941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
80942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
80943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
80944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
80945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
80946         Likewise.
80947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
80948         Likewise.
80949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
80950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
80951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
80952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
80953         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
80954         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
80955         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
80956         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
80957         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
80958         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
80959         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
80960         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
80961         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
80962         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
80963         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
80964         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
80965         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
80966         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
80967         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
80968         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
80969         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
80970         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
80971         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
80972         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
80973
80974 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
80975
80976         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
80977         scaling.
80978         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
80979
80980 2012-03-15  Andreas Jaeger  <aj@suse.de>
80981
80982         [BZ #13852]
80983         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
80984         ieee754/flt-32 implementation for sin, cos and sincos.
80985         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
80986         * sysdeps/i386/fpu/s_cosf.S: Likewise.
80987         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
80988         * sysdeps/i386/fpu/s_sinf.S: Likewise.
80989         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
80990         ieee754/flt-32 implementation for tan.
80991
80992         * math/libm-test.inc (cos_test): Enable some large input tests for
80993         float as well
80994         (sin_test): Likewise.
80995         (sincos_test): Likewise.
80996         (tan_test): Add tests for large input.
80997
80998         * sysdeps/i386/fpu/libm-test-ulps: Update.
80999
81000 2012-03-15  Andreas Jaeger  <aj@suse.de>
81001
81002         [BZ #13658]
81003         * math/libm-test.inc (cos_test): Add more test cases.
81004         (sin_test): Likewise.
81005         (sincos_test): Likewise.
81006
81007 2012-03-15  Andreas Jaeger  <aj@suse.de>
81008
81009         [BZ #13837]
81010         * math/libm-test.inc (cos_test): Add a test case for large input
81011         value.
81012         (sin_test): Likewise.
81013         (sincos_test): Likewise.
81014
81015 2012-03-15  Andreas Jaeger  <aj@suse.de>
81016             Joseph Myers  <joseph@codesourcery.com>
81017
81018         [BZ #13658]
81019         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
81020         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
81021         * sysdeps/i386/fpu/branred.c: Likewise.
81022         * sysdeps/i386/fpu/dosincos.c: Likewise.
81023         * sysdeps/i386/fpu/mpa.c: Likewise.
81024         * sysdeps/i386/fpu/s_cos.S: Likewise.
81025         * sysdeps/i386/fpu/s_sin.S: Likewise.
81026         * sysdeps/i386/fpu/s_sincos.S: Likewise.
81027         * sysdeps/i386/fpu/sincos32.c: Likewise.
81028
81029         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
81030         Define.
81031         (libc_feupdateenv_53bit): Define.
81032         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
81033         Define.
81034         (libc_feupdateenv_53bit): Define.
81035
81036         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
81037         53 bit (without extend i386 double precision).
81038
81039         * math/libm-test.inc (sincos_test): Add tests for large input.
81040         (sin): Likewise.
81041         (cos): Likewise.
81042
81043         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
81044
81045 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
81046
81047         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81048
81049 2012-03-15  David S. Miller  <davem@davemloft.net>
81050
81051         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
81052         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
81053         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
81054         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
81055         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
81056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
81057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
81058         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
81059         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
81060         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
81061         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
81062         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
81063         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
81064         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
81065         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
81066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
81067         file.
81068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
81069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
81070         file.
81071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
81072         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
81073         file.
81074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
81075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
81076         file.
81077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
81078         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
81079         fmin/fmax sysdep routines.
81080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
81081
81082 2012-03-14  David S. Miller  <davem@davemloft.net>
81083
81084         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
81085         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
81086         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
81087         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
81088         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
81089         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
81090         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
81091         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
81092         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
81093         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
81094         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
81095         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
81096         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
81097         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
81098         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
81099         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
81100         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
81101         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
81102         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
81103         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
81104         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
81105         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
81106         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
81107         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
81108         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
81109         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
81110         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
81111         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
81112         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
81113         routines.
81114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
81115         file.
81116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
81117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
81118         file.
81119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
81120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
81121         file.
81122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
81123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
81124         file.
81125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
81126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
81127         file.
81128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
81129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
81130         file.
81131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
81132         file.
81133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
81134         file.
81135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
81136         file.
81137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
81138         New file.
81139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
81140         file.
81141         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
81142         file.
81143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
81144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
81145         file.
81146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
81147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
81148         file.
81149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
81150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
81151         file.
81152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
81153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
81154         VIS3 routines.
81155
81156         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
81157         New file.
81158
81159         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81160
81161         * sysdeps/sparc/configure.in: New file.
81162         * sysdeps/sparc/configure: Generate.
81163         * configure.in (libc_cv_sparc_as_vis3): Substitute.
81164         * configure: Regenerate.
81165         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
81166         * config.make.in (have-as-vis3): New.
81167         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
81168         available use -Av9d instead of -Av9a.
81169         * sysdeps/sparc/sparc64/Makefile: Likewise.
81170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
81171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
81172         New file.
81173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
81174         file.
81175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
81176         New file.
81177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
81178         file.
81179         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
81180         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
81181         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
81182         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
81183         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
81184
81185         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
81186         fzeros/fnegs to load 0x80000000 into a float register instead of
81187         using the stack.
81188         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
81189
81190 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
81191
81192         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81193         bits/syscall.h.
81194         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
81195         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
81196         ($(inst_includedir)/bits/syscall.h): Remove rule.
81197         ($(objpfx)bits/syscall.d): Include instead of
81198         $(objpfx)syscall-list.d.
81199         (generated): Change syscall-list.h and syscall-list.d to
81200         bits/syscall.h and bits/syscall.d.
81201
81202 2012-03-14  Roland McGrath  <roland@hack.frob.com>
81203
81204         [BZ #13846]
81205         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
81206
81207 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
81208
81209         [BZ #13841]
81210         * math/s_csqrt.c: Include <float.h>.
81211         (__csqrt): Scale large or subnormal inputs.
81212         * math/s_csqrtf.c: Likewise.
81213         * math/s_csqrtl.c: Likewise.
81214         * math/libm-test.inc (csqrt_test): Add more tests.
81215         * sysdeps/i386/fpu/libm-test-ulps: Update.
81216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81217
81218         [BZ #13840]
81219         * math/libm-test.inc (hypot_test): Add more tests.
81220
81221 2012-03-13  David S. Miller  <davem@davemloft.net>
81222
81223         [BZ #13840]
81224         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
81225         double-precision for the calculation instead of scaling.
81226
81227 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
81228
81229         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
81230         manipulate bits before adding and subtracting TWO52[sx].
81231         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
81232         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
81233         Likewise.
81234         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
81235
81236 2012-03-13  David S. Miller  <davem@davemloft.net>
81237
81238         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
81239         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
81240         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
81241         rtld-global-offsets.h
81242         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
81243
81244         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
81245         large parameters.
81246
81247         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
81248
81249         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
81250         'err' in the ifdef scope in which it is actually used.
81251
81252         * nss/nss_db/db-init.c: Include string.h
81253
81254 2012-03-12  David S. Miller  <davem@davemloft.net>
81255
81256         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
81257         masking out of the most significant byte of random value used.
81258         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81259         Fix coding style in previous change.
81260
81261         * sysdeps/unix/sysv/linux/kernel-features.h
81262         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
81263         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
81264         expression.
81265         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
81266         later.
81267
81268 2012-03-11  David S. Miller  <davem@davemloft.net>
81269
81270         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
81271         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
81272         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
81273         for 'resultvar' otherwise things get truncated on 64-bit.
81274
81275         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
81276         Fix masking out of the most significant byte of random value used.
81277
81278         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81279
81280 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
81281
81282         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81283
81284 2012-03-09  David S. Miller  <davem@davemloft.net>
81285
81286         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
81287         variables with appropriate CPP guards.
81288         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
81289         from the frame pointer, not the stack pointer.  Correct layout
81290         comments.  Fix test on resulting framesize and the management of
81291         the outregs buffer for pltexit.  Preserve floating point return
81292         values across _dl_call_pltexit call.
81293         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
81294         framesize and the management of the outregs buffer for pltexit.
81295         Preserve floating point return values across _dl_call_pltexit
81296         call.
81297         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
81298         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
81299         (la_sparc64_gnu_pltexit): New functions.
81300         (print_exit): Fix format string for return register value.
81301
81302 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
81303
81304         * sunrpc/Makefile (others): Add rpcgen.
81305         ($(objpfx)rpcgen): Remove special build rule and dependency on
81306         libc.
81307         * sunrpc/rpcgen.c: New file.
81308
81309 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         [BZ #13673]
81312         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
81313         * stdio-common/bug-vfprintf-nargs.c: Likewise.
81314         * sysdeps/i386/crti.S: Likewise.
81315         * sysdeps/i386/crtn.S: Likewise.
81316         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
81317         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
81318         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
81319         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
81320         * sysdeps/sh/crti.S: Likewise.
81321         * sysdeps/sh/crtn.S: Likewise.
81322         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
81323
81324         [BZ #13673]
81325         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
81326         with URL.
81327         * locale/programs/locfile-kw.gperf: Likewise.
81328         * locale/programs/charmap-kw.h: Regenerated.
81329         * locale/programs/locfile-kw.h: Likewise.
81330
81331         [BZ #13673]
81332         * intl/plural.y: Replace FSF snail mail address with URL.
81333         * intl/plural.c: Regenerated.
81334
81335 2012-03-09  Richard Henderson  <rth@twiddle.net>
81336
81337         * include/math_private.h: Remove file.
81338         * math/math_private.h: Move file ...
81339         * sysdeps/generic/math_private.h: ... here.
81340
81341         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
81342         * sysdeps/powerpc/fpu/math_private.h: Likewise.
81343         * sysdeps/x86_64/fpu/math_private.h: Likewise.
81344
81345         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
81346         and <math_private.h>.
81347         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
81348         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
81349         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
81350         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
81351         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
81352         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
81353         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
81354         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
81355         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
81356         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
81357         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
81358         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
81359         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
81360         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
81361         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
81362         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
81363         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
81364         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
81365         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
81366         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
81367         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
81368         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
81369         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
81370         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
81371         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
81372         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
81373         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
81374         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
81375         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
81376         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
81377         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
81378         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
81379         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
81380         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
81381         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
81382         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
81383         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
81384         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
81385         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
81386         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
81387         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
81388         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
81389         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
81390         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
81391         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
81392         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
81393         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
81394         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
81395         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
81396         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
81397         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
81398         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
81399         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
81400         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
81401         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
81402         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
81403         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
81404         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
81405         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
81406         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
81407         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
81408         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
81409         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
81410         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
81411         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
81412         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
81413         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
81414         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
81415         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
81416         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
81417         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
81418         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
81419         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
81420         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
81421         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
81422         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
81423         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
81424         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
81425         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
81426         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
81427         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
81428         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
81429         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
81430         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
81431         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
81432         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
81433         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
81434         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
81435         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
81436         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
81437         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
81438         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
81439         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
81440         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
81441         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
81442         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
81443         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
81444         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
81445         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
81446         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
81447         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
81448         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
81449         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
81450         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
81451         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
81452         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
81453         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
81454         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
81455         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
81456         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
81457         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
81458         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
81459         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
81460         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
81461         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
81462         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
81463         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
81464         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
81465         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
81466         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
81467         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
81468         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
81469         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
81470         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
81471         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
81472         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
81473         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
81474         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
81475         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
81476         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
81477         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
81478         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
81479         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
81480         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
81481         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
81482         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
81483         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
81484         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
81485         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
81486         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
81487         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
81488         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
81489         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
81490         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
81491         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
81492         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
81493         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
81494         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
81495         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
81496         * sysdeps/ieee754/k_standard.c: Likewise.
81497         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
81498         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
81499         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
81500         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
81501         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
81502         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
81503         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
81504         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
81505         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
81506         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
81507         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
81508         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
81509         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
81510         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
81511         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
81512         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
81513         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
81514         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
81515         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
81516         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
81517         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
81518         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
81519         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
81520         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
81521         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
81522         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
81523         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
81524         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
81525         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
81526         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
81527         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
81528         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
81529         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
81530         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
81531         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
81532         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
81533         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
81534         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
81535         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
81536         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
81537         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
81538         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
81539         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
81540         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
81541         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
81542         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
81543         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
81544         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
81545         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
81546         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
81547         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
81548         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
81549         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
81550         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
81551         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
81552         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
81553         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
81554         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
81555         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
81556         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
81557         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
81558         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
81559         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
81560         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
81561         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
81562         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
81563         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
81564         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
81565         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
81566         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
81567         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
81568         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
81569         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
81570         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
81571         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
81572         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
81573         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
81574         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
81575         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81576         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
81577         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
81578         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
81579         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
81580         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
81581         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
81582         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
81583         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
81584         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
81585         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
81586         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
81587         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
81588         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
81589         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
81590         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
81591         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
81592         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
81593         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
81594         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
81595         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
81596         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
81597         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
81598         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
81599         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
81600         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
81601         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
81602         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
81603         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
81604         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
81605         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
81606         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
81607         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
81608         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
81609         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
81610         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
81611         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
81612         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
81613         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
81614         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
81615         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
81616         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
81617         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
81618         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
81619         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
81620         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
81621         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
81622         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
81623         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
81624         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
81625         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
81626         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
81627         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
81628         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
81629         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
81630         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
81631         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
81632         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
81633         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
81634         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
81635         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
81636         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
81637         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
81638         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
81639         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
81640         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
81641         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
81642         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
81643         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
81644         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
81645         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
81646         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
81647         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
81648         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
81649         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
81650         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
81651         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
81652         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
81653         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
81654         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
81655         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
81656         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
81657         * sysdeps/ieee754/s_lib_version.c: Likewise.
81658         * sysdeps/ieee754/s_matherr.c: Likewise.
81659         * sysdeps/ieee754/s_signgam.c: Likewise.
81660         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
81661         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
81662         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
81663         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
81664         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
81665         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
81666         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
81667         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
81668         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
81669         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
81670         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
81671         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
81672         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
81673         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
81674         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
81675         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
81676         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
81677         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
81678         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
81679         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
81680         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
81681
81682 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81683
81684         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
81685         * sunrpc/rpc_main.c: Likewise.
81686         * sunrpc/rpc_svcout.c: Likewise.
81687
81688 2012-03-09  David S. Miller  <davem@davemloft.net>
81689
81690         * include/math_private.h: New file.
81691
81692 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
81693
81694         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
81695         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
81696         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
81697         from <bits/socket_type.h>.
81698         (enum __socket_type): Don't define here.
81699         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
81700         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
81701         bits/socket_type.h.
81702
81703         [BZ #13566]
81704         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
81705         checking __USE_GNU.
81706
81707         * Makerules ($(inst_includedir)/%.h): New rule.
81708         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
81709         (install-others): Remove variable setting.
81710         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
81711
81712 2012-03-08  Richard Henderson  <rth@twiddle.net>
81713
81714         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
81715         from macro to inline function; merge with the
81716         !__LIBC_INTERNAL_MATH_INLINES version.
81717         (__ieee754_sqrtf): Likewise.
81718
81719         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
81720         to inline function.
81721         (__rintf, __floor, __floorf): Likewise.
81722
81723         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
81724         macro to inline function.
81725         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
81726
81727         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
81728         not <math/math_private.h>.
81729
81730 2012-03-08  David S. Miller  <davem@davemloft.net>
81731
81732         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
81733         copyright year.
81734         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
81735
81736 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
81737
81738         * resolv/gai_misc.c (handle_requests): Fix struct timespec
81739         normalization.
81740         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
81741         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
81742
81743 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
81744
81745         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
81746         be defined individually, they must be defined as a block.  Define
81747         S for printing a string instead of hidint the different by using a
81748         macro for adding the 'l'.
81749         * stdio-common/tst-fphex-wide.c: Adjust.
81750
81751 2012-03-07  Marek Polacek  <polacek@redhat.com>
81752
81753         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
81754
81755 2012-03-08  Marek Polacek  <polacek@redhat.com>
81756
81757         [BZ #13806]
81758         * stdio-common/Makefile (tests): Add tst-fphex-wide.
81759         * stdio-common/tst-fphex.c: Define a few macros to make the
81760         test reusable.  Use them.
81761         * stdio-common/tst-fphex-wide.c: New file.
81762
81763 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
81764
81765         [BZ #6911]
81766         * manual/macros.texi (gnusystems): New macro.
81767         (nongnusystems): Likewise.
81768         (gnulinuxhurdsystems): Likewise.
81769         (gnuhurdsystems): Likewise..
81770         (gnulinuxsystems): Likewise.
81771         * manual/charset.texi: Use new macros or @theglibc{} to refer to
81772         variants of the GNU system, not "GNU system".
81773         * manual/conf.texi: Likewise.
81774         * manual/errno.texi: Likewise.  Update example of errno macro
81775         expansion.
81776         * manual/filesys.texi: Likewise.
81777         (getumask): Document as specific to GNU/Hurd.
81778         * manual/install.texi: Likewise.  Reword some references to
81779         GNU/Linux.
81780         * manual/intro.texi: Likewise.
81781         * manual/io.texi: Likewise.
81782         (File Name Portability): Detail which constraints are inapplicable
81783         to all GNU systems and which are only inapplicable to GNU/Hurd.
81784         * manual/job.texi: Likewise.
81785         * manual/llio.texi: Likewise.
81786         (O_NOCTTY): Document as present on GNU/Linux.
81787         * manual/maint.texi: Likewise.
81788         * manual/memory.texi: Likewise.
81789         * manual/pattern.texi: Likewise.
81790         * manual/pipe.texi: Likewise.
81791         * manual/process.texi: Likewise.
81792         * manual/resource.texi: Likewise.
81793         (RUSAGE_CHILDREN): Remove statement about specifying a particular
81794         child on GNU/Hurd.
81795         * manual/setjmp.texi: Likewise.
81796         * manual/signal.texi: Likewise.
81797         * manual/startup.texi: Likewise.
81798         * manual/stdio.texi: Likewise.
81799         * manual/terminal.texi: Likewise.
81800         (ONLCR): Document as POSIX.
81801         (OXTABS): Document availability on GNU/Linux as XTABS.
81802         (ONOEOT): Document availability separately from other bits.
81803         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
81804         * manual/time.texi: Likewise.
81805         * manual/users.texi: Likewise.
81806         * INSTALL: Regenerated.
81807         * sysdeps/gnu/errlist.c: Regenerated.
81808
81809         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
81810         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
81811         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
81812         puts.
81813         * configure: Regenerated.
81814
81815 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
81816
81817         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
81818         default includes instead of AC_HEADER_CHECK.
81819         * sysdeps/i386/configure: Regenerated.
81820
81821         [BZ #10716]
81822         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
81823         * math/s_cacoshf.c (__cacoshf): Likewise.
81824         * math/s_cacoshl.c (__cacoshl): Likewise.
81825         * math/s_casinh.c (__casinh): Set signs of result from argument.
81826         * math/s_casinhf.c (__casinhf): Likewise.
81827         * math/s_casinhl.c (__casinhl): Likewise.
81828         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
81829         (casinh_test): Add more tests.
81830         * sysdeps/i386/fpu/libm-test-ulps: Update.
81831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81832
81833 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
81834
81835         * po/zh_TW.po: Update from translation team.
81836
81837         * login/Makefile (distribute): Remove variable.
81838         * catgets/Makefile: Likewise.
81839         * mach/Makefile: Likewise.
81840         * malloc/Makefile: Likewise.
81841         * misc/Makefile: Likewise.
81842         * iconv/Makefile: Likewise.
81843         * nscd/Makefile: Likewise.
81844         * hurd/Makefile: Likewise.
81845         * manual/Makefile: Likewise.
81846         * locale/Makefile: Likewise.
81847         * intl/Makefile: Likewise.
81848         * conform/Makefile: Likewise.
81849         * nss/Makefile: Likewise.
81850         * time/Makefile: Likewise.
81851         * soft-fp/Makefile: Likewise.
81852         * dirent/Makefile: Likewise.
81853         * gmon/Makefile: Likewise.
81854         * po/Makefile: Likewise.
81855         * rt/Makefile: Likewise.
81856         * socket/Makefile: Likewise.
81857         * math/Makefile: Likewise.
81858         * signal/Makefile: Likewise.
81859         * debug/Makefile: Likewise.
81860         * elf/Makefile: Likewise.
81861         * timezone/Makefile: Likewise.
81862         * stdlib/Makefile: Likewise.
81863         * iconvdata/Makefile: Likewise.
81864         * sunrpc/Makefile: Likewise.
81865         * io/Makefile: Likewise.
81866         * argp/Makefile: Likewise.
81867         * inet/Makefile: Likewise.
81868         * hesiod/Makefile: Likewise.
81869         * grp/Makefile: Likewise.
81870         * csu/Makefile: Likewise.
81871         * wctype/Makefile: Likewise.
81872         * crypt/Makefile: Likewise.
81873         * libio/Makefile: Likewise.
81874         * string/Makefile: Likewise.
81875         * nis/Makefile: Likewise.
81876         * resolv/Makefile: Likewise.
81877         * stdio-common/Makefile: Likewise.
81878         * wcsmbs/Makefile: Likewise.
81879         * dlfcn/Makefile: Likewise.
81880         * posix/Makefile: Likewise.
81881
81882         [BZ #6959]
81883         * timezone/Makefile: Don't install timezone files, just the programs
81884         and scripts.
81885
81886 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
81887
81888         * nss/databases.def: Add missing gshadow entry.
81889
81890         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
81891
81892 2012-03-06  Marek Polacek  <polacek@redhat.com>
81893
81894         [BZ #13726]
81895         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
81896         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
81897         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
81898         * stdio-common/tst-long-dbl-fphex.c: New file.
81899
81900 2012-03-06  David S. Miller  <davem@davemloft.net>
81901
81902         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
81903         (set_obp_int): New function.
81904         (get_obp_int): New function.
81905         (__get_clockfreq_via_dev_openprom): Likewise.
81906         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
81907         Avoid unused variable warnings on 'val' and use builtin_expect.
81908         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
81909         __builtin_expect.
81910         (INLINE_CLONE_SYSCALL): Likewise.
81911
81912 2012-03-05  David S. Miller  <davem@davemloft.net>
81913
81914         * sysdeps/sparc/fpu/libm-test-ulps: Update.
81915
81916 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
81917
81918         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81919
81920         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
81921         only for |x| >= 40.
81922         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
81923
81924 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
81925
81926         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
81927         Replace gettimeofday with __vdso_gettimeofday.
81928
81929         * sysdeps/unix/sysv/linux/x86_64/init-first.c
81930         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
81931         __vdso_clock_gettime and __vdso_getcpu.
81932
81933         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
81934         time with __vdso_time.
81935
81936 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81937
81938         * manual/lang.texi (size_t): Note types to which size_t may be
81939         equivalent with the GNU C Library, but do not describe when
81940         differences between them are significant.
81941
81942 2012-03-05  Andreas Jaeger  <aj@suse.de>
81943
81944         * sysdeps/i386/fpu/libm-test-ulps: Update.
81945
81946 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
81947
81948         [BZ #3976]
81949         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
81950         (__ieee754_pow): Save and restore rounding mode and use
81951         round-to-nearest for main computations.
81952         * math/libm-test.inc (pow_test_tonearest): New function.
81953         (pow_test_towardzero): Likewise.
81954         (pow_test_downward): Likewise.
81955         (pow_test_upward): Likewise.
81956         (main): Call the new functions.
81957         * sysdeps/i386/fpu/libm-test-ulps: Update.
81958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81959
81960         [BZ #3976]
81961         * math/libm-test.inc (cosh_test_tonearest): New function.
81962         (cosh_test_towardzero): Likewise.
81963         (cosh_test_downward): Likewise.
81964         (cosh_test_upward): Likewise.
81965         (sinh_test_tonearest): Likewise.
81966         (sinh_test_towardzero): Likewise.
81967         (sinh_test_downward): Likewise.
81968         (sinh_test_upward): Likewise.
81969         (main): Call the new functions.
81970         * sysdeps/i386/fpu/libm-test-ulps: Update.
81971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
81972
81973 2012-03-05  Tom de Vries  <tom@codesourcery.com>
81974
81975         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
81976         default stack guard is set in last bytes.
81977         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
81978
81979 2012-03-05  Kees Cook  <keescook@chromium.org>
81980
81981         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
81982
81983         [BZ #13656]
81984         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
81985         possibly allocate from heap instead of stack.
81986         * stdio-common/bug-vfprintf-nargs.c: New file.
81987         * stdio-common/Makefile (tests): Add nargs overflow test.
81988
81989 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
81990
81991         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
81992
81993 2012-03-03  Marek Polacek  <polacek@redhat.com>
81994
81995         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
81996         * math/math_private.h: Likewise.
81997         * stdlib/tst-strtod.c: Likewise.
81998         * sysdeps/i386/i486/bits/atomic.h: Likewise.
81999         * sysdeps/x86_64/bits/atomic.h: Likewise.
82000
82001 2012-03-02  David S. Miller  <davem@davemloft.net>
82002
82003         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
82004         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
82005         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
82006         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
82007         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
82008         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
82009         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
82010         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
82011
82012 2012-03-02  Roland McGrath  <roland@hack.frob.com>
82013
82014         [BZ #13792]
82015         * manual/examples/README: New file, says the example source files
82016         can be used under GPL>=2.
82017         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
82018         line containing just "*/".
82019         * manual/examples/add.c: Add copyright header (GPL>=2).
82020         * manual/examples/argp-ex1.c: Likewise.
82021         * manual/examples/argp-ex2.c: Likewise.
82022         * manual/examples/argp-ex3.c: Likewise.
82023         * manual/examples/argp-ex4.c: Likewise.
82024         * manual/examples/atexit.c: Likewise.
82025         * manual/examples/db.c: Likewise.
82026         * manual/examples/dir.c: Likewise.
82027         * manual/examples/dir2.c: Likewise.
82028         * manual/examples/execinfo.c: Likewise.
82029         * manual/examples/filecli.c: Likewise.
82030         * manual/examples/filesrv.c: Likewise.
82031         * manual/examples/fmtmsgexpl.c: Likewise.
82032         * manual/examples/genpass.c: Likewise.
82033         * manual/examples/inetcli.c: Likewise.
82034         * manual/examples/inetsrv.c: Likewise.
82035         * manual/examples/isockad.c: Likewise.
82036         * manual/examples/longopt.c: Likewise.
82037         * manual/examples/memopen.c: Likewise.
82038         * manual/examples/memstrm.c: Likewise.
82039         * manual/examples/mkfsock.c: Likewise.
82040         * manual/examples/mkisock.c: Likewise.
82041         * manual/examples/mygetpass.c: Likewise.
82042         * manual/examples/pipe.c: Likewise.
82043         * manual/examples/popen.c: Likewise.
82044         * manual/examples/rprintf.c: Likewise.
82045         * manual/examples/search.c: Likewise.
82046         * manual/examples/select.c: Likewise.
82047         * manual/examples/setjmp.c: Likewise.
82048         * manual/examples/sigh1.c: Likewise.
82049         * manual/examples/sigusr.c: Likewise.
82050         * manual/examples/stpcpy.c: Likewise.
82051         * manual/examples/strdupa.c: Likewise.
82052         * manual/examples/strftim.c: Likewise.
82053         * manual/examples/strncat.c: Likewise.
82054         * manual/examples/subopt.c: Likewise.
82055         * manual/examples/swapcontext.c: Likewise.
82056         * manual/examples/termios.c: Likewise.
82057         * manual/examples/testopt.c: Likewise.
82058         * manual/examples/testpass.c: Likewise.
82059         * manual/examples/timeval_subtract.c: Likewise.
82060
82061         [BZ #13792]
82062         * manual/time.texi (Elapsed Time): Move timeval_subtract example
82063         function to ...
82064         * manual/timeval_subtract.c.texi: ... here, new file.
82065
82066 2012-03-02  David S. Miller  <davem@davemloft.net>
82067
82068         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
82069
82070 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
82071
82072         [BZ #3976]
82073         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
82074         (__sin): Save and restore rounding mode and use round-to-nearest
82075         for all computations.
82076         (__cos): Save and restore rounding mode and use round-to-nearest
82077         for all computations.
82078         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
82079         <fenv.h>.
82080         (tan): Save and restore rounding mode and use round-to-nearest for
82081         all computations.
82082         * math/libm-test.inc (cos_test_tonearest): New function.
82083         (cos_test_towardzero): Likewise.
82084         (cos_test_downward): Likewise.
82085         (cos_test_upward): Likewise.
82086         (sin_test_tonearest): Likewise.
82087         (sin_test_towardzero): Likewise.
82088         (sin_test_downward): Likewise.
82089         (sin_test_upward): Likewise.
82090         (tan_test_tonearest): Likewise.
82091         (tan_test_towardzero): Likewise.
82092         (tan_test_downward): Likewise.
82093         (tan_test_upward): Likewise.
82094         (main): Call the new functions.
82095         * sysdeps/i386/fpu/libm-test-ulps: Update.
82096         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82097
82098         [BZ #10135]
82099         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
82100         small n, then large n, before computing and testing k+n.
82101         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
82102         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
82103         Likewise.
82104         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
82105         Likewise.
82106         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
82107         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
82108         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
82109         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
82110         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
82111         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
82112         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
82113         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
82114         * math/libm-test.inc (scalbn_test): Add more tests.
82115         (scalbln_test): Likewise.
82116
82117         * manual/filesys.texi (mode_t): Describe constraints on size and
82118         signedness, not exact equivalence to a particular type.
82119         (ino_t): Likewise.
82120         (ino64_t): Likewise.
82121         (dev_t): Likewise.
82122         (nlink_t): Likewise.
82123         (blkcnt_t): Likewise.
82124         (blkcnt64_t): Likewise.
82125         * manual/llio.texi (off_t): Likewise.
82126
82127         [BZ #3976]
82128         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
82129         (__ieee754_exp): Save and restore rounding mode and use
82130         round-to-nearest for all computations.
82131         * math/libm-test.inc (exp_test_tonearest): New function.
82132         (exp_test_towardzero): Likewise.
82133         (exp_test_downward): Likewise.
82134         (exp_test_upward): Likewise.
82135         (main): Call the new functions.
82136         * sysdeps/i386/fpu/libm-test-ulps: Update.
82137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82138
82139 2012-03-01  Chris Demetriou  <cgd@google.com>
82140
82141         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
82142         have predictable order.
82143
82144 2012-03-01  David S. Miller  <davem@davemloft.net>
82145
82146         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
82147
82148         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
82149         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
82150         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
82151         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
82152
82153         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
82154         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
82155         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
82156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
82157         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
82158         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
82159         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
82160         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
82161         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
82162
82163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
82164
82165         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
82166         * sysdeps/sparc/fpu/libm-test-ulps: to here.
82167         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
82168
82169         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
82170         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
82171         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82172         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
82173         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
82174         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
82175         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
82176         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
82177         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82178         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
82179         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
82180         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82181         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
82182         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82183         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82184         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82185         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
82186         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
82187         * sysdeps/sparc/elf/configure: Regenerated.
82188
82189 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
82190
82191         * configure.in (AS, LD): Require binutils 2.20 or later.
82192         * configure: Regenerated.
82193         * manual/install.texi (Tools for Compilation): Give binutils 2.20
82194         as required minimum version.
82195         * INSTALL: Regenerated.
82196
82197         [BZ #2541]
82198         [BZ #4108]
82199         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
82200         before squaring exponent.
82201         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
82202         bottom long double and 27 bits of top long double before squaring
82203         exponent.
82204         * math/libm-test.inc (erfc_test): Add more tests.
82205         * sysdeps/i386/fpu/libm-test-ulps: Update.
82206         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82207         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82208
82209 2012-03-01  Kai Tietz  <ktietz@redhat.com>
82210
82211         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
82212         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
82213         containing bit-fields.
82214         * soft-fp/extended.h (_FP_UNION_E): Likewise.
82215         * soft-fp/single.h (_FP_UNION_S): Likewise.
82216         * soft-fp/double.h (_FP_UNION_D): Likewise.
82217
82218 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
82219
82220         [BZ #13786]
82221         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
82222         not include ../strcmp.S.
82223         [USE_AS_STRNCASECMP_L]: Likewise.
82224         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
82225         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
82226         * sysdeps/i386/i686/multiarch/strncase_l-c.c
82227         (__strncasecmp_l_ia32): Define as alias to
82228         __strncasecmp_l_nonascii.
82229
82230         [BZ #5794]
82231         * math/libm-test.inc (expm1_test): Add test for bug 5794.
82232         * sysdeps/i386/fpu/libm-test-ulps: Update.
82233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82234
82235         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
82236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82237
82238 2012-02-29  Jeff Law  <law@redhat.com>
82239
82240         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
82241         out of bounds read.
82242
82243 2012-02-29  Marek Polacek  <polacek@redhat.com>
82244
82245         [BZ #13706]
82246         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
82247         * elf/Makefile: Add rules to run tst-unused-dep.out.
82248
82249 2012-02-28  David S. Miller  <davem@davemloft.net>
82250
82251         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
82252         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
82253         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
82254         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
82255         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
82256         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
82257
82258 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
82259
82260         * math/libm-test.inc (llround_test): Move one test from
82261         lround_test.  Use TEST_f_L in moved test.
82262         (lround_test): Move misplaced test to llround_test.  Add testcase
82263         from bug 2561.
82264
82265 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
82266
82267         * sysdeps/x86_64/fpu/e_expf.S: New file.
82268         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
82269
82270 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
82271
82272         [BZ #13637]
82273         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
82274         of remain_len that may cause incomplete multi-byte character and
82275         false match.
82276         * posix/bug-regex33.c: New file.
82277         * posix/Makefile (tests): Add bug-regex33.
82278
82279 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
82280
82281         * manual/macros.texi: New file.
82282         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
82283         * manual/libc.texinfo: Include macros.texi.
82284         * manual/creatute.texi: Likewise.
82285         * manual/install.texi: Likewise.
82286         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
82287         @glibcadj{} in references to the GNU C Library.
82288         * manual/charset.texi: Likewise.
82289         * manual/conf.texi: Likewise.
82290         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
82291         when not using those macros.
82292         * manual/creature.texi: Likewise.
82293         * manual/crypt.texi: Likewise.
82294         * manual/errno.texi: Likewise.
82295         * manual/filesys.texi: Likewise.
82296         * manual/header.texi: Likewise.
82297         * manual/install.texi: Likewise.
82298         * manual/intro.texi: Likewise.
82299         * manual/io.texi: Likewise.
82300         * manual/job.texi: Likewise.
82301         * manual/lang.texi: Likewise.
82302         * manual/libc.texiinfo: Likewise.
82303         * manual/llio.texi: Likewise.
82304         * manual/locale.texi: Likewise.
82305         * manual/maint.texi: Likewise.
82306         * manual/math.texi: Likewise.
82307         * manual/memory.texi: Likewise.
82308         * manual/message.texi: Likewise.
82309         * manual/nss.texi: Likewise.
82310         * manual/pattern.texi: Likewise.
82311         * manual/process.texi: Likewise.
82312         * manual/resource.texi: Likewise.
82313         * manual/search.texi: Likewise.
82314         * manual/setjmp.texi: Likewise.
82315         * manual/signal.texi: Likewise.
82316         * manual/socket.texi: Likewise.
82317         * manual/startup.texi: Likewise.
82318         * manual/stdio.texi: Likewise.
82319         * manual/string.texi: Likewise.
82320         * manual/sysinfo.texi: Likewise.
82321         * manual/syslog.texi: Likewise.
82322         * manual/terminal.texi: Likewise.
82323         * manual/time.texi: Likewise.
82324         * manual/users.texi: Likewise.
82325         * INSTALL: Regenerated.
82326         * NOTES: Regenerated.
82327         * sysdeps/gnu/errlist.c: Regenerated.
82328
82329 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
82330
82331         * include/dirent.h: Include <dirstream.h> before
82332         <dirent/dirent.h>.
82333
82334 2012-02-28  David S. Miller  <davem@davemloft.net>
82335
82336         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
82337         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
82338         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
82339         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
82340
82341 2012-02-27  David S. Miller  <davem@davemloft.net>
82342
82343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
82344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
82345         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
82346         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
82347
82348         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
82349         frame pointer instead of stack pointer relative arg slot.
82350         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82351         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82352         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82353
82354 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
82355
82356         [BZ #3992]
82357         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
82358
82359 2012-02-27  David S. Miller  <davem@davemloft.net>
82360
82361         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
82362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
82363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
82364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
82365         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
82366         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
82367         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
82368         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
82369
82370 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82371
82372         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
82373         later.  Allow versions 5-9.
82374         * configure: Regenerated.
82375         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
82376         required minimum version and 4.6 as recommended version.  Do not
82377         mention bugs in GCC 2.7 and 2.8.
82378         * INSTALL: Regenerated.
82379
82380 2012-02-27  David S. Miller  <davem@davemloft.net>
82381
82382         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
82383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
82384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
82385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
82386         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
82387         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
82388         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
82389         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
82390
82391         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
82392         manipulate bits before adding and subtracting TWO112[sx].
82393         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
82394
82395 2012-02-27  Roland McGrath  <roland@hack.frob.com>
82396
82397         [BZ #13775]
82398         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
82399         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
82400         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
82401         being in POSIX, because they are in 1003.1-2008.
82402
82403         * rt/tst-aio.c: Include <fcntl.h>.
82404         * rt/tst-aio7.c: Likewise.
82405         * rt/tst-aio64.c: Likewise.
82406
82407         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
82408
82409 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
82410
82411         * manual/install.texi (--with-headers): Describe headers as
82412         interface headers, not private headers.
82413         (Specific advice for GNU/Linux systems): Describe use of headers
82414         from "make headers_install", not private headers from older
82415         kernels.
82416         * INSTALL: Regenerated.
82417         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
82418         Change to 2.6.19.
82419         * sysdeps/unix/sysv/linux/configure: Regenerated.
82420
82421         * manual/llio.texi (fclean): Remove documentation.
82422
82423         * manual/Makefile (libc-texi-generated): New variable.  Include
82424         version.texi.
82425         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
82426         $(libc-texi-generated), not duplicated list of files.
82427         (version.texi, stamp-version): New rules.
82428         (realclean): Remove $(libc-texi-generated), not individual files
82429         from that list.  Do not remove dir-add.texinfo.
82430         * manual/libc.texinfo: Comment out uses of edition numbers and
82431         references to printed manual.  Remove last-updated dates.
82432         (EDITION): Comment out.
82433         (ISBN): Likewise.
82434         (VERSION, UPDATED): Remove.
82435         (version.texi): Include.
82436
82437 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
82438
82439         * sysdeps/posix/spawni.c: Include <signal.h>.
82440         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
82441         * sysdeps/pthread/aio_fsync.c: Likewise.
82442
82443 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
82444
82445         * conform/Makefile (tests): Run only when not cross-compiling and
82446         when fast-check is not defined.
82447
82448         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
82449         * conform/data/limits.h-data: Fixes for POSIX2008.
82450         * conform/run-conformtest.sh: Run all tests.
82451         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
82452         headers.
82453         * include/bits/dlfcn.h: Likewise.
82454         * include/langinfo.h: Likewise.
82455         * include/monetary.h: Likewise.
82456         * include/sys/poll.h: Likewise.
82457
82458         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
82459         for __USE_GNU.
82460         * posix/spawn.h: Define __need_sigset_t.
82461         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
82462         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
82463         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
82464         to get sigevent_t only.
82465         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
82466         only for __USE_GNU.
82467         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
82468         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
82469         process_vm_writev only for __USE_GNU.
82470         * termios/termios.h: Declare tcgetsid also for POSIX2008.
82471
82472         * conform/Makefile: For now ignore errors from run-conformtest.
82473         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
82474         POSIX to avoid namespace pollution.  Don't prepend headers.
82475         * conform/data/aio.h-data: Fixes for POSIX testing.
82476         * conform/data/fcntl.h-data: Likewise.
82477         * conform/data/glob.h-data: Likewise.
82478         * conform/data/grp.h-data: Likewise.
82479         * conform/data/pthread.h-data: Likewise.
82480         * conform/data/pwd.h-data: Likewise.
82481         * conform/data/signal.h-data: Likewise.
82482         * conform/data/spawn.h-data: Likewise.
82483         * conform/data/stdio.h-data: Likewise.
82484         * conform/data/stdlib.h-data: Likewise.
82485         * conform/data/stropts.h-data: Likewise.
82486         * conform/data/sys/mman.h-data: Likewise.
82487         * conform/data/sys/stat.h-data: Likewise.
82488         * conform/data/sys/types.h-data: Likewise.
82489         * conform/data/sys/wait.h-data: Likewise.
82490         * conform/data/time.h-data: Likewise.
82491         * conform/data/unistd.h-data: Likewise.
82492         * conform/data/utime.h-data: Likewise.
82493
82494         * io/sys/stat.h: fchmod was always in POSIX.
82495         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
82496         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
82497         * rt/aio.h: Define __need_timespec before including <time.h>.
82498         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
82499         struct.  Add forward declaration of pthread_attr_t and use it in
82500         sigevent.
82501         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
82502         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
82503         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
82504         always remove CLK_TCK definition.
82505
82506 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
82507
82508         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
82509
82510 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
82511
82512         * conform/run-conformtest.sh: New file.
82513         * conform/Makefile: Run run-conformtest for tests.
82514         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
82515         support.
82516
82517         * conform/data/uchar.h-data: New file.
82518         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
82519         * conform/data/arpa/inet.h-data: Likewise.
82520         * conform/data/assert.h-data: Likewise.
82521         * conform/data/complex.h-data: Likewise.
82522         * conform/data/cpio.h-data: Likewise.
82523         * conform/data/ctype.h-data: Likewise.
82524         * conform/data/dirent.h-data: Likewise.
82525         * conform/data/dlfcn.h-data: Likewise.
82526         * conform/data/errno.h-data: Likewise.
82527         * conform/data/fcntl.h-data: Likewise.
82528         * conform/data/float.h-data: Likewise.
82529         * conform/data/fmtmsg.h-data: Likewise.
82530         * conform/data/fnmatch.h-data: Likewise.
82531         * conform/data/ftw.h-data: Likewise.
82532         * conform/data/glob.h-data: Likewise.
82533         * conform/data/grp.h-data: Likewise.
82534         * conform/data/iconv.h-data: Likewise.
82535         * conform/data/inttypes.h-data: Likewise.
82536         * conform/data/langinfo.h-data: Likewise.
82537         * conform/data/libgen.h-data: Likewise.
82538         * conform/data/limits.h-data: Likewise.
82539         * conform/data/locale.h-data: Likewise.
82540         * conform/data/math.h-data: Likewise.
82541         * conform/data/monetary.h-data: Likewise.
82542         * conform/data/mqueue.h-data: Likewise.
82543         * conform/data/ndbm.h-data: Likewise.
82544         * conform/data/net/if.h-data: Likewise.
82545         * conform/data/netdb.h-data: Likewise.
82546         * conform/data/netinet/in.h-data: Likewise.
82547         * conform/data/nl_types.h-data: Likewise.
82548         * conform/data/poll.h-data: Likewise.
82549         * conform/data/pthread.h-data: Likewise.
82550         * conform/data/pwd.h-data: Likewise.
82551         * conform/data/regex.h-data: Likewise.
82552         * conform/data/sched.h-data: Likewise.
82553         * conform/data/search.h-data: Likewise.
82554         * conform/data/semaphore.h-data: Likewise.
82555         * conform/data/setjmp.h-data: Likewise.
82556         * conform/data/signal.h-data: Likewise.
82557         * conform/data/spawn.h-data: Likewise.
82558         * conform/data/stdarg.h-data: Likewise.
82559         * conform/data/stdio.h-data: Likewise.
82560         * conform/data/stdlib.h-data: Likewise.
82561         * conform/data/string.h-data: Likewise.
82562         * conform/data/strings.h-data: Likewise.
82563         * conform/data/stropts.h-data: Likewise.
82564         * conform/data/sys/ipc.h-data: Likewise.
82565         * conform/data/sys/mman.h-data: Likewise.
82566         * conform/data/sys/msg.h-data: Likewise.
82567         * conform/data/sys/resource.h-data: Likewise.
82568         * conform/data/sys/select.h-data: Likewise.
82569         * conform/data/sys/sem.h-data: Likewise.
82570         * conform/data/sys/shm.h-data: Likewise.
82571         * conform/data/sys/socket.h-data: Likewise.
82572         * conform/data/sys/stat.h-data: Likewise.
82573         * conform/data/sys/statvfs.h-data: Likewise.
82574         * conform/data/sys/time.h-data: Likewise.
82575         * conform/data/sys/timeb.h-data: Likewise.
82576         * conform/data/sys/times.h-data: Likewise.
82577         * conform/data/sys/types.h-data: Likewise.
82578         * conform/data/sys/uio.h-data: Likewise.
82579         * conform/data/sys/un.h-data: Likewise.
82580         * conform/data/sys/utsname.h-data: Likewise.
82581         * conform/data/sys/wait.h-data: Likewise.
82582         * conform/data/syslog.h-data: Likewise.
82583         * conform/data/tar.h-data: Likewise.
82584         * conform/data/termios.h-data: Likewise.
82585         * conform/data/utime.h-data: Likewise.
82586         * conform/data/utmpx.h-data: Likewise.
82587         * conform/data/varargs.h-data: Likewise.
82588         * conform/data/wchar.h-data: Likewise.
82589         * conform/data/wctype.h-data: Likewise.
82590         * conform/data/wordexp.h-data: Likewise.
82591
82592         * include/stropts.h: New file.
82593         * include/uchar.h: New file.
82594         * include/aio.h: Changes to allow conformtest.pl to use the headers.
82595         * include/assert.h: Likewise.
82596         * include/ctype.h: Likewise.
82597         * include/dirent.h: Likewise.
82598         * include/dlfcn.h: Likewise.
82599         * include/fcntl.h: Likewise.
82600         * include/fnmatch.h: Likewise.
82601         * include/glob.h: Likewise.
82602         * include/grp.h: Likewise.
82603         * include/libio.h: Likewise.
82604         * include/locale.h: Likewise.
82605         * include/math.h: Likewise.
82606         * include/net/if.h: Likewise.
82607         * include/netdb.h: Likewise.
82608         * include/netinet/in.h: Likewise.
82609         * include/pthread.h: Likewise.
82610         * include/pwd.h: Likewise.
82611         * include/regex.h: Likewise.
82612         * include/sched.h: Likewise.
82613         * include/search.h: Likewise.
82614         * include/setjmp.h: Likewise.
82615         * include/signal.h: Likewise.
82616         * include/stdio.h: Likewise.
82617         * include/stdlib.h: Likewise.
82618         * include/string.h: Likewise.
82619         * include/sys/cdefs.h: Likewise.
82620         * include/sys/mman.h: Likewise.
82621         * include/sys/msg.h: Likewise.
82622         * include/sys/resource.h: Likewise.
82623         * include/sys/select.h: Likewise.
82624         * include/sys/socket.h: Likewise.
82625         * include/sys/stat.h: Likewise.
82626         * include/sys/statvfs.h: Likewise.
82627         * include/sys/time.h: Likewise.
82628         * include/sys/times.h: Likewise.
82629         * include/sys/uio.h: Likewise.
82630         * include/sys/utsname.h: Likewise.
82631         * include/sys/wait.h: Likewise.
82632         * include/termios.h: Likewise.
82633         * include/time.h: Likewise.
82634         * include/ulimit.h: Likewise.
82635         * include/unistd.h: Likewise.
82636         * include/utime.h: Likewise.
82637         * include/wchar.h: Likewise.
82638         * include/wctype.h: Likewise.
82639         * include/wordexp.h: Likewise.
82640
82641         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
82642
82643         * time/time.h: TIME_UTC must be a macro.
82644         Make timespec_get available for ISO C11 only as well.
82645
82646 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
82647
82648         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
82649         Reported by Peng Haitao <penght@cn.fujitsu.com>.
82650
82651 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82652
82653         * configure.in: Use -o not -a in test for unsupported multi-arch.
82654
82655 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82656
82657         * manual/texinfo.tex: Update to version 2012-01-19.16.
82658
82659 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
82660
82661         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
82662
82663 2012-02-24  Roland McGrath  <roland@hack.frob.com>
82664
82665         [BZ #13738]
82666         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
82667         * manual/fdl-1.3.texi: New file.
82668         * manual/fdl-1.1.texi: File removed.
82669
82670         [BZ #13738]
82671         * manual/libc.texinfo (FDL_VERSION): New @set.
82672         Use it for mention of FDL in cover text.
82673         (Documentation License): Use it in @include file name.
82674
82675 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82676             Roland McGrath  <roland@hack.frob.com>
82677
82678         [BZ #5461]
82679         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
82680         (not LONG_LONG_MAX and LONG_LONG_MIN.
82681         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
82682         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
82683         name.
82684         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
82685
82686 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82687
82688         [BZ #2547]
82689         [BZ #11365]
82690         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
82691         manipulate bits before adding and subtracting TWO23[sx].
82692         * math/libm-test.inc (nearbyint_test): Add more tests.
82693
82694 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82695
82696         [BZ #2548]
82697         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
82698         bits before adding and subtracting TWO23[sx].
82699         * math/libm-test.inc (rint_test): Add more tests.
82700         (rint_test_tonearest): Likewise.
82701         (rint_test_towardzero): Likewise.
82702         (rint_test_downward): Likewise.
82703         (rint_test_upward: Likewise.
82704
82705 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82706
82707         [BZ #10110]
82708         * include/stdc-predef.h: New file.  Extracted from features.h.
82709         * include/features.h: Include stdc-predef.h.
82710         * Makefile (headers): Add stdc-predef.h.
82711         * CONFORMANCE (Compiler limitations): Update.
82712
82713 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
82714
82715         * manual/libc.texinfo (VERSION, UPDATED): Revert.
82716
82717 2012-02-21  David S. Miller  <davem@davemloft.net>
82718
82719         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
82720         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82721
82722 2012-02-20  David S. Miller  <davem@davemloft.net>
82723
82724         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
82725         using a normal save/restore sequence, rather than allocating a
82726         dummy stack frame just to store a frame pointer and restore.
82727         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82728
82729 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82730
82731         * manual/install.texi: Fix stray word in line-wrapped comment.
82732
82733 2012-02-20  David S. Miller  <davem@davemloft.net>
82734
82735         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
82736         both binutils and gcc support GOTDATA.
82737
82738         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
82739         "rd %pc" in the PIC register setup sequences.
82740
82741         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
82742         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
82743         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
82744         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
82745         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
82746         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
82747         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
82748         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
82749         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
82750         (SYSCALL_ERROR_HANDLER): Likewise.
82751         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
82752         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
82753         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
82754         (SYSCALL_ERROR_HANDLER): Likewise.
82755
82756         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
82757         (HAVE_GCC_GOTDATA): New.
82758         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
82759         relocation support in both binutils and gcc.
82760         * sysdeps/sparc/elf/configure: Regenerate.
82761
82762         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
82763         * sysdeps/sparc/sparc32/elf/configure: Delete.
82764         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
82765         * sysdeps/sparc/sparc64/elf/configure: Delete.
82766         * sysdeps/sparc/elf/configure.in: New file.
82767         * sysdeps/sparc/elf/configure: Generate.
82768
82769         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
82770         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
82771         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
82772         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
82773         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
82774
82775 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82776
82777         * manual/install.texi: Do not mention specific glibc version
82778         numbers.
82779         * manual/libc.texinfo (VERSION, UPDATED): Update.
82780         (@copying): Use @copyright{} and range of years.
82781
82782 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
82783
82784         [BZ #13695]
82785         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
82786         [crti.S not in sysdirs] (generated): Do not append.
82787         [crti.S not in sysdirs] (omit-deps): Likewise.
82788         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
82789         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
82790         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
82791         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
82792         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
82793         Likewise.
82794         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
82795         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
82796         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
82797         * csu/defs.awk: Remove file.
82798         * sysdeps/generic/initfini.c: Likewise.
82799         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
82800         variable.
82801         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
82802         Likewise.
82803
82804 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82805
82806         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
82807         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
82808         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
82809         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
82810         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
82811         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
82812         <bits/epoll.h>.
82813         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
82814         (__EPOLL_PACKED): Define to empty if not defined by
82815         <bits/epoll.h>.
82816         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
82817         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82818         bits/epoll.h.
82819
82820 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82821
82822         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
82823         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
82824         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
82825         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
82826         <bits/timerfd.h>.
82827         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
82828         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
82829         bits/timerfd.h.
82830
82831 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
82832
82833         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
82834         in C locale.
82835         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
82836         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
82837         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
82838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
82839
82840 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
82841
82842         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
82843         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
82844
82845 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
82846
82847         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
82848         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
82849         defined.
82850         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
82851         Likewise.
82852         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
82853         entry for 2.16.
82854
82855 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
82856
82857         * math/w_acos.c: Use non-signaling floating-point comparisons.
82858         * math/w_acosf.c: Likewise.
82859         * math/w_acosh.c: Likewise.
82860         * math/w_acoshf.c: Likewise.
82861         * math/w_acoshl.c: Likewise.
82862         * math/w_acosl.c: Likewise.
82863         * math/w_asin.c: Likewise.
82864         * math/w_asinf.c: Likewise.
82865         * math/w_asinl.c: Likewise.
82866         * math/w_atanh.c: Likewise.
82867         * math/w_atanhf.c: Likewise.
82868         * math/w_atanhl.c: Likewise.
82869         * math/w_exp2.c: Likewise.
82870         * math/w_exp2f.c: Likewise.
82871         * math/w_exp2l.c: Likewise.
82872         * math/w_j0.c: Likewise.
82873         * math/w_j0f.c: Likewise.
82874         * math/w_j0l.c: Likewise.
82875         * math/w_j1.c: Likewise.
82876         * math/w_j1f.c: Likewise.
82877         * math/w_j1l.c: Likewise.
82878         * math/w_jn.c: Likewise.
82879         * math/w_jnf.c: Likewise.
82880         * math/w_log.c: Likewise.
82881         * math/w_log10.c: Likewise.
82882         * math/w_log10f.c: Likewise.
82883         * math/w_log10l.c: Likewise.
82884         * math/w_log2.c: Likewise.
82885         * math/w_log2f.c: Likewise.
82886         * math/w_log2l.c: Likewise.
82887         * math/w_logf.c: Likewise.
82888         * math/w_logl.c: Likewise.
82889         * math/w_sqrt.c: Likewise.
82890         * math/w_sqrtf.c: Likewise.
82891         * math/w_sqrtl.c: Likewise.
82892         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
82893         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
82894         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
82895         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
82896         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
82897
82898 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82899
82900         [BZ #9739]
82901         * manual/string.texi (strnlen): Use correct parameter name in
82902         equivalent expression.
82903
82904 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82905
82906         [BZ #11174]
82907         * manual/users.texi (seteuid): Consistently use neweuid for
82908         argument name.
82909
82910 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
82911
82912         [BZ #13704]
82913         * manual/nss.texi (Services in the NSS configuration): Correct
82914         list of services in example configuration file.
82915
82916 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
82917
82918         [BZ #11322]
82919         * manual/arith.texi: Remove statements about negative zero
82920         behaving identically to zero.
82921
82922 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82923
82924         [BZ #5993]
82925         * manual/install.texi: Do not document upgrading from libc5.
82926
82927 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
82928
82929         [BZ #4596]
82930         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
82931
82932 2012-02-18  David S. Miller  <davem@davemloft.net>
82933
82934         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
82935         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
82936         %o7 across the call.
82937         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
82938         instead.
82939         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
82940         SETUP_PIC_REG_LEAF.
82941         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
82942         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
82943         * sysdeps/sparc/crtn.S: Likewise.
82944
82945 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
82946
82947         * aout/Makefile: Remove.
82948
82949 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
82950
82951         [BZ #13058]
82952         * manual/examples/argp-ex1.c (main): Format definition in GNU
82953         style.
82954         * manual/examples/argp-ex2.c (main): Likewise.
82955         * manual/examples/argp-ex3.c (main): Likewise.
82956         * manual/examples/argp-ex4.c (main): Likewise.
82957         * manual/examples/longopt.c (main): Use new-style prototype
82958         definition.
82959         * manual/examples/strncat.c (main): Specify return type and use
82960         (void) for arguments.
82961         * manual/examples/subopt.c (main): Use char **argv argument.
82962
82963 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82964
82965         [BZ #5077]
82966         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
82967         rounding modes.
82968
82969 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
82970
82971         [BZ #6907]
82972         * manual/string.texi (strchr): Change when strchrnul is
82973         recommended.
82974
82975 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
82976
82977         [BZ #174]
82978         * manual/locale.texi (setlocale): Document LOCPATH.
82979
82980 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
82981
82982         [BZ #10210]
82983         * manual/process.texi (execle): Move @dots{} before last argument.
82984
82985 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
82986
82987         [BZ #12047]
82988         * manual/charset.texi (Generic Charset Conversion): Fix typo
82989         (LC_TYPE -> LC_CTYPE).
82990
82991 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
82992
82993         [BZ #5805]
82994         * manual/arith.texi (scalbn): Use @var{} on parameter names.
82995         (scalbnf): Likewise.
82996         (scalbnl): Likewise.
82997         (scalbln): Likewise.
82998         (scalblnf): Likewise.
82999         (scalblnl): Likewise.
83000         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
83001         (vwarnx): Likewise.
83002         (verr): Likewise.
83003         (verrx): Likewise.
83004         * manual/filesys.texi (telldir): Use braces around return type.
83005         * manual/llio.texi (mmap): Add space after comma.
83006         (mmap64): Likewise.
83007         * manual/math.texi (jn): Use @var{} on parameter names.
83008         (jnf): Likewise.
83009         (jnl): Likewise.
83010         (yn): Likewise.
83011         (ynf): Likewise.
83012         (ynl): Likewise.
83013         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
83014         line.
83015         * manual/resource.texi (ulimit): Use @dots{} instead of literal
83016         "...".
83017         (sched_get_priority_min): Remove semicolon on @deftypefun line.
83018         (sched_get_priority_max): Likewise.
83019         * manual/signal.texi (sigvec): Add space after comma.
83020         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
83021         names.
83022         (if_indextoname): Likewise.
83023         (if_freenameindex): Likewise.
83024         (sendto): Use ',' instead of '.' in prototype.
83025         * manual/startup.texi (syscall): Use @dots{} instead of literal
83026         "...".
83027         * manual/stdio.texi (__fpending): Separate initial words of
83028         paragraph from @deftypefun line.
83029         * manual/syslog.texi (syslog): Use @dots{} instead of literal
83030         "...".
83031         (vsyslog): Use @var{} on parameter names.
83032         * manual/terminal.texi (stty): Use @var{} on parameter names.
83033         * manual/users.texi (getutmp): Use @var{} on parameter names.
83034         (getutmpx): Likewise.
83035
83036 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83037
83038         [BZ #6884]
83039         * manual/stdio.texi (fopen): Fix typos in description of
83040         ",ccs=STRING".
83041
83042 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
83043
83044         [BZ #4026]
83045         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
83046         get clock_id definition.
83047
83048 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
83049
83050         [BZ #4822]
83051         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
83052         (madvise): Cast every argument to void on its own.
83053
83054 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83055
83056         [BZ #9902]
83057         * manual/startup.texi (Exit Status): Fix typo.
83058
83059 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
83060
83061         [BZ #10140]
83062         * manual/examples/argp-ex1.c: Include <stdlib.h>.
83063         * manual/examples/argp-ex2.c: Likewise.
83064         * manual/examples/argp-ex3.c: Likewise.
83065
83066 2012-02-16  Richard Henderson  <rth@redhat.com>
83067
83068         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
83069         * sysdeps/s390/s390-32/initfini.c: Remove.
83070         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
83071         * sysdeps/s390/s390-64/initfini.c: Remove.
83072
83073 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
83074
83075         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
83076         compiler output for sysdeps/generic/initfini.c.
83077         * sysdeps/sh/elf/initfini.c: Remove file.
83078
83079 2012-02-16  David S. Miller  <davem@davemloft.net>
83080
83081         [BZ #11494]
83082         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
83083
83084         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
83085         * sysdeps/sparc/crti.S: New file.
83086         * sysdeps/sparc/crtn.S: New file.
83087         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
83088         * sysdeps/sparc/sparc64/Makefile: Likewise.
83089
83090 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
83091
83092         [BZ #3335]
83093         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
83094
83095 2012-02-15  Roland McGrath  <roland@hack.frob.com>
83096
83097         [BZ #4822]
83098         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
83099
83100         * mach/devstream.c (cookie_io_functions_t): Macro removed.
83101         (write, read, close): Likewise.
83102         Patch by Aurelien Jarno <aurelien@aurel32.net>.
83103
83104 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
83105
83106         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
83107         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
83108         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
83109         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
83110         <bits/signalfd.h>.
83111         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
83112         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83113         bits/signalfd.h.
83114
83115 2012-02-14  Marek Polacek  <polacek@redhat.com>
83116
83117         * sysdeps/x86_64/crti.S: New file.
83118         * sysdeps/x86_64/crtn.S: New file.
83119         * sysdeps/x86_64/elf/initfini.c: Remove file.
83120
83121 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
83122
83123         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
83124         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
83125         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
83126         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
83127         <bits/inotify.h>.
83128         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
83129         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83130         bits/inotify.h.
83131
83132 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
83133
83134         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
83135         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
83136         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
83137         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
83138         <bits/eventfd.h>.
83139         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
83140         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
83141         bits/eventfd.h.
83142
83143 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
83144
83145         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
83146         __feraiseexcept instead of feraiseexcept.
83147
83148         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
83149         nanosleep invocations.
83150         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
83151         strings, and add error checking for a nanosleep invocations.
83152
83153 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         Replace FSF snail mail address with URLs, as per GNU coding standards.
83156         Most of the snail mail addresses were wrong anyway, and omitting
83157         them makes the source code easier to maintain.  Almost all of the
83158         changes are to license notices and to locale LC_IDENTIFICATION
83159         addresses, except for this one:
83160         * manual/libc.texinfo: In "Published by", give the FSF's URL,
83161         not its snail mail address.
83162
83163 2012-02-09  Richard Henderson  <rth@twiddle.net>
83164
83165         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
83166         of kernel-features.h.
83167
83168         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
83169
83170 2012-02-08  Marek Polacek  <polacek@redhat.com>
83171
83172         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
83173         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
83174         * sysdeps/gnu/_G_config.h: Likewise.
83175         * sysdeps/generic/_G_config.h: Likewise.
83176
83177 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
83178
83179         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
83180         tests.
83181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
83182
83183         * sysdeps/powerpc/powerpc32/crti.S: New file.
83184         * sysdeps/powerpc/powerpc32/crtn.S: New file.
83185         * sysdeps/powerpc/powerpc64/crti.S: New file.
83186         * sysdeps/powerpc/powerpc64/crtn.S: New file.
83187
83188         * Makeconfig (have-initfini): Don't set.
83189         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
83190         * configure.in (nopic_initfini): Don't substitute.
83191         * config.h.in (HAVE_INITFINI): Don't #undef.
83192         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
83193         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
83194
83195 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
83196
83197         Support crti.S and crtn.S provided directly by architectures.
83198         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
83199         [crti.S in sysdirs] (omit-deps): Likewise.
83200         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
83201         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
83202         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
83203         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
83204         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
83205         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
83206         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
83207         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
83208         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
83209         compiler output for sysdeps/generic/initfini.c.
83210         * sysdeps/i386/elf/Makefile: Remove file.
83211         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
83212
83213 2012-02-07  Marek Polacek  <polacek@redhat.com>
83214
83215         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
83216         * sysdeps/gnu/_G_config.h: Likewise.
83217         * sysdeps/mach/hurd/_G_config.h: Likewise.
83218
83219 2012-02-07  Marek Polacek  <polacek@redhat.com>
83220
83221         * math/Makefile (tests): Add tst-CMPLX2.
83222         * math/tst-CMPLX2.c: New file.
83223
83224 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
83225
83226         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
83227
83228         * math/libm-test.inc (jn_test): Add missing L suffix.
83229
83230 2012-02-06  Marek Polacek  <polacek@redhat.com>
83231
83232         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
83233         * sysdeps/i386/fpu/e_powf.S: Likewise.
83234         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
83235         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
83236         * sysdeps/i386/fpu/e_acosh.S: Likewise.
83237         * sysdeps/i386/fpu/e_pow.S: Likewise.
83238         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
83239         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
83240         * sysdeps/i386/fpu/s_expm1.S: Likewise.
83241         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
83242         * sysdeps/i386/fpu/e_log2.S: Likewise.
83243         * sysdeps/i386/fpu/e_log2l.S: Likewise.
83244         * sysdeps/i386/fpu/e_scalb.S: Likewise.
83245         * sysdeps/i386/fpu/e_powl.S: Likewise.
83246         * sysdeps/i386/fpu/s_log1p.S: Likewise.
83247         * sysdeps/i386/fpu/e_log10f.S: Likewise.
83248         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
83249         * sysdeps/i386/fpu/e_logl.S: Likewise.
83250         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
83251         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
83252         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
83253         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
83254         * sysdeps/i386/fpu/e_log2f.S: Likewise.
83255         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
83256         * sysdeps/i386/fpu/e_log.S: Likewise.
83257         * sysdeps/i386/fpu/s_cexp.S: Likewise.
83258         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
83259         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
83260         * sysdeps/i386/fpu/e_logf.S: Likewise.
83261         * sysdeps/i386/fpu/e_log10l.S: Likewise.
83262         * sysdeps/i386/fpu/e_atanh.S: Likewise.
83263         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
83264         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
83265         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
83266         * sysdeps/i386/fpu/e_log10.S: Likewise.
83267         * sysdeps/i386/fpu/s_frexp.S: Likewise.
83268         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
83269         * sysdeps/i386/fpu/s_asinh.S: Likewise.
83270         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
83271         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
83272         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
83273         * sysdeps/i386/asm-syntax.h: Likewise.
83274         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
83275         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
83276         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
83277         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
83278         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
83279         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
83280         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
83281         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
83282         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
83283         * sysdeps/powerpc/sysdep.h: Likewise.
83284         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
83285         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
83286
83287 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83288
83289         [BZ #411]
83290         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
83291
83292 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
83293
83294         * sysdeps/i386/sysdep.h: Include <features.h>.
83295         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
83296         version.
83297
83298 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
83299
83300         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
83301         Define.
83302         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
83303         LOAD_PIC_REG_STR.
83304
83305 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83306
83307         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
83308         (SETUP_PIC_REG): Use GET_PC_THUNK.
83309         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
83310         macro.
83311
83312 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83313
83314         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
83315         for non-PIC compilation.
83316         (SETUP_PIC_REG): Add .p2align directive.
83317         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
83318         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
83319         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
83320         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
83321         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
83322         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
83323         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
83324         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
83325         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
83326         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
83327         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
83328         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
83329         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
83330         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
83331         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
83332         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
83333         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
83334         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
83335         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
83336         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
83337         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
83338         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
83339         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
83340         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
83341         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
83342         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
83343         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
83344         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
83345         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
83346         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
83347         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
83348         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
83349         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
83350         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
83351         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
83352         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
83353         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
83354         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
83355         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
83356         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
83357         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
83358
83359 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
83360
83361         * math/tst-CMPLX.c: Include <stdio.h>.
83362
83363 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
83364
83365         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
83366         float.
83367         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83368         * sysdeps/sparc/bits/mathdef.h: Likewise.
83369
83370 2012-01-31  Marek Polacek  <polacek@redhat.com>
83371
83372         * libio/libio.h: Don't define _PARAMS.
83373         * locale/programs/config.h: Don't define PARAMS.
83374         * stdlib/strtol_l.c: Likewise.
83375         (__strtol_l): Remove PARAMS from the prototype.
83376
83377 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
83378
83379         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
83380         names.  Just use the correct names.  Remove unnecessary wrapper
83381         functions.
83382         * malloc/arena.c: Likewise.
83383         * malloc/hooks.c: Likewise.
83384
83385         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
83386         ARENA_TEST says not to.  Simplify test for creation of a new arena.
83387         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
83388
83389 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
83390
83391         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
83392         into tail calls.
83393         (update_get_addr): New function.
83394         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
83395         GET_ADDR_MODULE parameter.
83396
83397 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83398
83399         * crypt/cert.c: Remove __STDC__ conditionals.
83400         * crypt/crypt-entry.c: Likewise.
83401         * crypt/crypt_util.c: Likewise.
83402         * libio/filedoalloc.c: Likewise.
83403         * libio/fileops.c: Likewise.
83404         * libio/genops.c: Likewise.
83405         * libio/iofclose.c: Likewise.
83406         * libio/iofdopen.c: Likewise.
83407         * libio/iofopen.c: Likewise.
83408         * libio/iofopen64.c: Likewise.
83409         * libio/iogetdelim.c: Likewise.
83410         * libio/iopopen.c: Likewise.
83411         * libio/obprintf.c: Likewise.
83412         * libio/oldfileops.c: Likewise.
83413         * libio/oldiofclose.c: Likewise.
83414         * libio/oldiofdopen.c: Likewise.
83415         * libio/oldiofopen.c: Likewise.
83416         * libio/oldiopopen.c: Likewise.
83417         * libio/wfiledoalloc.c: Likewise.
83418         * libio/wgenops.c: Likewise.
83419         * locale/programs/xmalloc.c: Likewise.
83420         * misc/syslog.c: Likewise.
83421         * stdio-common/xbug.c: Likewise.
83422         * string/memchr.c: Likewise.
83423         * string/memcmp.c: Likewise.
83424         * string/memrchr.c: Likewise.
83425         * string/rawmemchr.c: Likewise.
83426         * sysdeps/posix/getcwd.c: Likewise.
83427         * time/strftime_l.c: Likewise.
83428
83429 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
83430
83431         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
83432         * config.make.in (config-cflags-sse2avx): Define.
83433         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
83434         Fix typo.
83435
83436 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
83437
83438         * scripts/config.guess: Update from upstream config git repository.
83439         * scripts/config.sub: Likewise.
83440
83441 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
83442
83443         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
83444         (EM_NUM): Update.
83445         (R_TILEPRO_*, R_TILEGX_*): New macros.
83446
83447         * scripts/firstversions.awk: Fix bug in version range handling.
83448
83449         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
83450
83451         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
83452
83453         * include/sys/epoll.h: New file.
83454         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
83455         libc_hidden_def.
83456
83457 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
83458
83459         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
83460         Avoid unnecessary __WORDSIZE == 64 test.
83461         (fmaxf): Use VEX format if possible.
83462         (fmax): Likewise.
83463         (fminf): Likewise.
83464         (fmin): Likewise.
83465
83466         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
83467         * math/math_private.h: Remove libc_fegetround* and
83468         libc_fesetround*.
83469         * sysdeps/i386/configure.in: Check for -msse2avx.
83470         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
83471         also if SSE2AVX is defined.
83472         Remove libc_fegetround* and libc_fesetround*.
83473         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
83474         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
83475         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
83476         of HAS_YMM_USABLE.
83477         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83478         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83479         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83480         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83481         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83482
83483         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
83484
83485 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
83486
83487         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
83488         size is not set.
83489         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
83490
83491 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
83492
83493         [BZ #13618]
83494         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
83495         relocation.
83496         * Makeconfig (libm): Define.
83497         * elf/Makefile: Add rules to build and run tst-relsort1.
83498         * elf/tst-relsort1.c: New file.
83499         * elf/tst-relsort1mod1.c: New file.
83500         * elf/tst-relsort1mod2.c: New file.
83501
83502 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
83503
83504         * math/s_ldexp.c: Remove __STDC__ conditionals.
83505         * math/s_ldexpf.c: Likewise.
83506         * math/s_ldexpl.c: Likewise.
83507         * math/s_nextafter.c: Likewise.
83508         * math/s_nexttowardf.c: Likewise.
83509         * math/s_significand.c: Likewise.
83510         * math/s_significandf.c: Likewise.
83511         * math/s_significandl.c: Likewise.
83512         * math/w_jnl.c: Likewise.
83513         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
83514         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
83515         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
83516         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
83517         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
83518         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
83519         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
83520         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
83521         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
83522         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
83523         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
83524         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
83525         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
83526         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
83527         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
83528         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
83529         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
83530         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
83531         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
83532         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
83533         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
83534         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
83535         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
83536         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
83537         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
83538         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
83539         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
83540         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
83541         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
83542         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
83543         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
83544         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
83545         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
83546         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
83547         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
83548         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
83549         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
83550         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
83551         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
83552         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
83553         * sysdeps/ieee754/k_standard.c: Likewise.
83554         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
83555         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
83556         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
83557         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
83558         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
83559         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
83560         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
83561         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
83562         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
83563         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
83564         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
83565         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
83566         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
83567         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
83568         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
83569         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
83570         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
83571         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
83572         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
83573         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
83574         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
83575         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
83576         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
83577         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
83578         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
83579         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
83580         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
83581         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
83582         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
83583         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
83584         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
83585         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
83586         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
83587         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
83588         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
83589         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
83590         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
83591         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
83592         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
83593         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
83594         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
83595         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
83596         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
83597         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
83598         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
83599         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
83600         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
83601         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
83602         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
83603         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
83604         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
83605         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
83606         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
83607         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
83608         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
83609         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
83610         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
83611         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
83612         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
83613         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
83614         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
83615         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
83616         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
83617         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
83618         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
83619         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
83620         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
83621         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
83622         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
83623         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
83624         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
83625         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
83626         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
83627         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
83628         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
83629         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
83630         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
83631         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
83632         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
83633         * sysdeps/ieee754/s_matherr.c: Likewise.
83634         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
83635         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
83636         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
83637         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
83638
83639 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83640
83641         * crypt/md5.h: Remove __STDC__ conditionals.
83642         * libio/libioP.h: Likewise.
83643         * locale/programs/config.h: Likewise.
83644         * sysdeps/generic/sysdep.h: Likewise.
83645         * sysdeps/i386/asm-syntax.h: Likewise.
83646         * sysdeps/s390/asm-syntax.h: Likewise.
83647         * sysdeps/unix/sysdep.h: Likewise.
83648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
83649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
83650
83651 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
83652
83653         * libio/libio.h: Remove __STDC__ conditionals.
83654         * malloc/obstack.h: Likewise.
83655         * math/complex.h: Likewise.
83656         * math/math.h: Likewise.
83657         * sysdeps/generic/_G_config.h: Likewise.
83658         * sysdeps/gnu/_G_config.h: Likewise.
83659         * sysdeps/mach/hurd/_G_config.h: Likewise.
83660         * sysdeps/powerpc/bits/mathdef.h: Likewise.
83661         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
83662         * sysdeps/sparc/bits/mathdef.h: Likewise.
83663
83664 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
83665
83666         [BZ #13583]
83667         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
83668         Clean up HAS_* macros.
83669         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
83670         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
83671         possible.
83672         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
83673         HAS_AVX.
83674         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
83675         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
83676         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
83677         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
83678         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
83679
83680 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
83681
83682         * elf/tst-unique3.cc (gets): Remove declaration.
83683         * elf/tst-unique3lib.cc (gets): Likewise.
83684         * elf/tst-unique3lib2.cc (gets): Likewise.
83685         * elf/tst-unique4.cc (gets): Likewise.
83686
83687 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
83688
83689         * include/stdio.h: Add C++ protection.  Add gets declarations and
83690         definitions.
83691         * debug/tst-chk1.c: Don't declare gets here.
83692         * stdio-common/tst-gets.c: Likewise.
83693
83694 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83695
83696         * posix/glob: Remove directory.
83697
83698 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
83699
83700         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
83701
83702 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
83703
83704         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
83705         of the non-standard EPFNOSUPPORT.
83706
83707 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
83708
83709         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
83710         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
83711         ANYWHERE set to 1 only on KERN_NO_SPACE error.
83712
83713 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
83714
83715         * wcsmbs/uchar.h: Test __STDC_VERSION__.
83716
83717 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
83718
83719         * nscd/aicache.c (addhstaiX): Do not cache negative results of
83720         transient errors.
83721         * nscd/grpcache.c (cache_addgr): Likewise.
83722         * nscd/hstcache.c (cache_addhst): Likewise.
83723         * nscd/initgrcache.c (addinitgroupsX): Likewise.
83724         * nscd/pwdcache.c (cache_addpw): Likewise.
83725         * nscd/servicescache.c (cache_addserv): Likewise.
83726
83727 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
83728
83729         * malloc/malloc.c: Various cleanups.
83730         * malloc/hooks.c: Likewise.
83731
83732         * stdlib/Makefile (tests): Add bug-fmtmsg1.
83733         * stdlib/bug-fmtmsg1.c: New file.
83734
83735         * stdlib/fmtmsg.c (init): Add missing unlock.
83736         Patch by Peng Haitao <penght@cn.fujitsu.com>.
83737
83738 2012-01-12  Marek Polacek  <polacek@redhat.com>
83739
83740         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
83741         and _GNU_SOURCE.
83742
83743 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
83744
83745         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
83746         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
83747         macro to ensure uniqueness of label name.
83748         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
83749         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
83750
83751 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
83752
83753         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
83754
83755         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
83756         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
83757         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
83758         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
83759
83760 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
83761
83762         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
83763
83764         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
83765         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
83766         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
83767
83768         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
83769
83770         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
83771         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
83772         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
83773         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
83774
83775         * math/bits/math-finite.h: Add ldexp support.
83776
83777 2012-01-10  Marek Polacek  <polacek@redhat.com>
83778
83779         * locale/programs/localedef.h (show_archive_content): Add noreturn
83780         attribute.
83781
83782 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
83783
83784         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
83785
83786 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83787
83788         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
83789
83790         * io/Makefile (headers): Add bits/poll2.h.
83791
83792 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
83793
83794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
83795         typo #include statement.
83796
83797 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83798
83799         * include/sys/cdefs.h: Define __attribute_alloc_size.
83800         * catgets/gencat.c: Add alloc_size attribute and apply consistently
83801         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
83802         * elf/pldd.c: Likewise.
83803         * iconv/iconv_charmap.c: Likewise.
83804         * iconv/iconvconfig.c: Likewise.
83805         * iconv/strtab.c: Likewise.
83806         * locale/programs/locale.c: Likewise.
83807         * locale/programs/localedef.h: Likewise.
83808         * locale/programs/simple-hash.c: Likewise.
83809         * nscd/nscd.h: Likewise.
83810         * nss/makedb.c: Likewise.
83811         * sysdeps/generic/ldconfig.h: Likewise.
83812         * locale/programs/localedef.c: Remove xmalloc prototype.
83813         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
83814
83815 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
83816
83817         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
83818         appropriate.
83819
83820 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
83821
83822         * math/Makefile (tests): Add tst-CMPLX.
83823         * math/tst-CMPLX.c: New file.
83824
83825         * math/complex.h (CMPLXL): Fix typo.
83826
83827         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
83828         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
83829         GLIBC_2.16.
83830         * debug/tst-chk1.c: Add poll and ppoll tests.
83831         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
83832         * include/sys/poll.h: Add hidden proto for ppoll.
83833         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
83834         * sysdeps/mach/hurd/ppoll.c: Likewise.
83835         * io/ppoll.c: Likewise.
83836         * debug/poll_chk.c: New file.
83837         * debug/ppoll_chk.c: New file.
83838         * include/bits/poll2.h: New file.
83839         * io/bits/poll2.h: New file.
83840
83841         [BZ #1350]
83842         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
83843
83844         * configure.in: static is always set to yes.  Remove.
83845         * config.make.in: Don't set build-static.
83846         * Makeconfig: Remove use of build-static.
83847         * dlfcn/Makefile: Likewise.
83848         * elf/Makefile: Likewise.
83849         * math/Makefile: Likewise.
83850         * misc/Makefile: Likewise.
83851         * nptl/Makefile: Likewise.
83852         * sysdeps/mach/hurd/Makefile: Likewise.
83853
83854         * configure.in: PWD_P is not used anymore.
83855         * config.make.in: Remove PWD_P entry.
83856
83857         * configure.in: Remove last remnants of RANLIB.
83858         No need to check for signed size_t anymore.
83859         Don't set libc_commonpagesize and libc_relro_required here for Alpha
83860         and IA-64.
83861         Remove __builtin_expect test because we require at least gcc 3.4.
83862         * aclocal.m4: Likewise.
83863
83864         * wcsmbs/mbrtoc16.c: Implement using towc function.
83865         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
83866         * wcsmbs/wcsmbsload.c: Likewise.
83867         * iconv/gconv_simple.c: Likewise.
83868         * iconv/gconv_int.h: Likewise.
83869         * iconv/gconv_builtin.h: Likewise.
83870         * iconv/iconv_prog.c: Remove CHAR16 handling.
83871
83872         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
83873
83874         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
83875
83876         * configure.in: Remove --with-elf and --enable-bounded options.
83877         Dont set base_machine for ia64.  More non-ELF conditions removed.
83878         Remove testing and setting of leading underscore information.
83879         * config.make.in (build-bounded): Set to no.
83880         * config.h.in: Remove NO_UNDERSCORES entry.
83881         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
83882         them.
83883         * csu/start.c: Remove !NO_UNDERSCORE code.
83884         * locale/localeinfo.h: Likewise.
83885         * sysdeps/generic/machine-gmon.h: Likewise.
83886         * sysdeps/generic/sysdep.h: Likewise.
83887         * sysdeps/i386/sysdep.h: Likewise.
83888         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
83889         * sysdeps/mach/sysdep.h: Likewise.
83890         * sysdeps/s390/s390-32/sysdep.h: Likewise.
83891         * sysdeps/s390/s390-64/sysdep.h: Likewise.
83892         * sysdeps/sh/sysdep.h: Likewise.
83893         * sysdeps/sparc/sparc32/alloca.S: Likewise.
83894         * sysdeps/unix/i386/sysdep.S: Likewise.
83895         * sysdeps/unix/sparc/start.c: Likewise.
83896         * sysdeps/unix/sparc/sysdep.S: Likewise.
83897         * sysdeps/unix/sparc/sysdep.h: Likewise.
83898         * sysdeps/unix/start.c: Likewise.
83899         * sysdeps/unix/x86_64/sysdep.S: Likewise.
83900         * sysdeps/x86_64/sysdep.h: Likewise.
83901
83902 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
83903
83904         [BZ #13553]
83905         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
83906         for non-gcc.
83907         * argp/argp-fmtstream.h: Use const instead __const.
83908         * argp/argp.h: Likewise.
83909         * assert/assert.h: Likewise.
83910         * bits/fenv.h: Likewise.
83911         * bits/sched.h: Likewise.
83912         * bits/sigset.h: Likewise.
83913         * bits/sigthread.h: Likewise.
83914         * catgets/nl_types.h: Likewise.
83915         * conform/data/pthread.h-data: Likewise.
83916         * crypt/crypt-private.h: Likewise.
83917         * crypt/crypt.h: Likewise.
83918         * crypt/crypt_util.c: Likewise.
83919         * ctype/ctype.h: Likewise.
83920         * debug/execinfo.h: Likewise.
83921         * debug/mbsnrtowcs_chk.c: Likewise.
83922         * debug/mbsrtowcs_chk.c: Likewise.
83923         * debug/wcsnrtombs_chk.c: Likewise.
83924         * debug/wcsrtombs_chk.c: Likewise.
83925         * debug/wcstombs_chk.c: Likewise.
83926         * dirent/dirent.h: Likewise.
83927         * dlfcn/dlfcn.h: Likewise.
83928         * elf/neededtest4.c: Likewise.
83929         * grp/grp.h: Likewise.
83930         * gshadow/gshadow.h: Likewise.
83931         * iconv/gconv.h: Likewise.
83932         * iconv/gconv_int.h: Likewise.
83933         * iconv/gconv_simple.c: Likewise.
83934         * iconv/iconv.h: Likewise.
83935         * iconv/loop.c: Likewise.
83936         * iconv/skeleton.c: Likewise.
83937         * include/aio.h: Likewise.
83938         * include/aliases.h: Likewise.
83939         * include/argz.h: Likewise.
83940         * include/arpa/inet.h: Likewise.
83941         * include/assert.h: Likewise.
83942         * include/dirent.h: Likewise.
83943         * include/dlfcn.h: Likewise.
83944         * include/execinfo.h: Likewise.
83945         * include/fcntl.h: Likewise.
83946         * include/fenv.h: Likewise.
83947         * include/glob.h: Likewise.
83948         * include/grp.h: Likewise.
83949         * include/libintl.h: Likewise.
83950         * include/mntent.h: Likewise.
83951         * include/netdb.h: Likewise.
83952         * include/pwd.h: Likewise.
83953         * include/rpc/netdb.h: Likewise.
83954         * include/sched.h: Likewise.
83955         * include/search.h: Likewise.
83956         * include/shadow.h: Likewise.
83957         * include/signal.h: Likewise.
83958         * include/stdio.h: Likewise.
83959         * include/stdlib.h: Likewise.
83960         * include/string.h: Likewise.
83961         * include/sys/socket.h: Likewise.
83962         * include/sys/stat.h: Likewise.
83963         * include/sys/statfs.h: Likewise.
83964         * include/sys/statvfs.h: Likewise.
83965         * include/sys/syslog.h: Likewise.
83966         * include/sys/time.h: Likewise.
83967         * include/sys/uio.h: Likewise.
83968         * include/time.h: Likewise.
83969         * include/unistd.h: Likewise.
83970         * include/utmp.h: Likewise.
83971         * include/wchar.h: Likewise.
83972         * include/wctype.h: Likewise.
83973         * inet/aliases.h: Likewise.
83974         * inet/arpa/inet.h: Likewise.
83975         * inet/netinet/ether.h: Likewise.
83976         * inet/netinet/in.h: Likewise.
83977         * intl/libintl.h: Likewise.
83978         * io/bits/fcntl2.h: Likewise.
83979         * io/fcntl.h: Likewise.
83980         * io/ftw.h: Likewise.
83981         * io/sys/poll.h: Likewise.
83982         * io/sys/stat.h: Likewise.
83983         * io/sys/statfs.h: Likewise.
83984         * io/sys/statvfs.h: Likewise.
83985         * io/utime.h: Likewise.
83986         * libio/bits/stdio.h: Likewise.
83987         * libio/bits/stdio2.h: Likewise.
83988         * libio/libio.h: Likewise.
83989         * libio/libioP.h: Likewise.
83990         * libio/stdio.h: Likewise.
83991         * locale/lc-ctype.c: Likewise.
83992         * locale/locale.h: Likewise.
83993         * login/utmp.h: Likewise.
83994         * malloc/arena.c: Likewise.
83995         * malloc/malloc.c: Likewise.
83996         * malloc/malloc.h: Likewise.
83997         * malloc/mcheck.c: Likewise.
83998         * malloc/mtrace.c: Likewise.
83999         * math/bits/mathcalls.h: Likewise.
84000         * math/fenv.h: Likewise.
84001         * math/math_private.h: Likewise.
84002         * misc/bits/error.h: Likewise.
84003         * misc/bits/syslog.h: Likewise.
84004         * misc/err.h: Likewise.
84005         * misc/error.h: Likewise.
84006         * misc/fstab.h: Likewise.
84007         * misc/mntent.h: Likewise.
84008         * misc/regexp.h: Likewise.
84009         * misc/search.h: Likewise.
84010         * misc/sgtty.h: Likewise.
84011         * misc/sys/mman.h: Likewise.
84012         * misc/sys/syslog.h: Likewise.
84013         * misc/sys/uio.h: Likewise.
84014         * misc/sys/xattr.h: Likewise.
84015         * misc/ttyent.h: Likewise.
84016         * nis/rpcsvc/ypclnt.h: Likewise.
84017         * nss/nss.h: Likewise.
84018         * posix/bits/unistd.h: Likewise.
84019         * posix/fnmatch.h: Likewise.
84020         * posix/glob.h: Likewise.
84021         * posix/sched.h: Likewise.
84022         * posix/spawn.h: Likewise.
84023         * posix/sys/wait.h: Likewise.
84024         * posix/unistd.h: Likewise.
84025         * posix/wordexp.h: Likewise.
84026         * pwd/pwd.h: Likewise.
84027         * resolv/netdb.h: Likewise.
84028         * resource/sys/resource.h: Likewise.
84029         * rt/aio.h: Likewise.
84030         * rt/bits/mqueue2.h: Likewise.
84031         * rt/mqueue.h: Likewise.
84032         * shadow/shadow.h: Likewise.
84033         * signal/signal.h: Likewise.
84034         * socket/send.c: Likewise.
84035         * socket/sendto.c: Likewise.
84036         * socket/sys/socket.h: Likewise.
84037         * stdio-common/printf.h: Likewise.
84038         * stdlib/bits/stdlib.h: Likewise.
84039         * stdlib/fmtmsg.h: Likewise.
84040         * stdlib/monetary.h: Likewise.
84041         * stdlib/stdlib.h: Likewise.
84042         * stdlib/ucontext.h: Likewise.
84043         * streams/stropts.h: Likewise.
84044         * string/argz.h: Likewise.
84045         * string/bits/string2.h: Likewise.
84046         * string/string.h: Likewise.
84047         * string/strings.h: Likewise.
84048         * sunrpc/rpc/auth.h: Likewise.
84049         * sunrpc/rpc/auth_des.h: Likewise.
84050         * sunrpc/rpc/clnt.h: Likewise.
84051         * sunrpc/rpc/netdb.h: Likewise.
84052         * sunrpc/rpc/pmap_clnt.h: Likewise.
84053         * sunrpc/rpc/xdr.h: Likewise.
84054         * sysdeps/generic/inttypes.h: Likewise.
84055         * sysdeps/generic/net/if.h: Likewise.
84056         * sysdeps/generic/sys/swap.h: Likewise.
84057         * sysdeps/gnu/net/if.h: Likewise.
84058         * sysdeps/gnu/utmpx.h: Likewise.
84059         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
84060         * sysdeps/i386/i486/bits/string.h: Likewise.
84061         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
84062         * sysdeps/s390/bits/string.h: Likewise.
84063         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
84064         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
84065         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
84066         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
84067         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
84068         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
84069         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
84070         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
84071         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
84072         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
84073         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
84074         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
84075         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
84076         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
84077         * sysdeps/unix/sysv/linux/readv.c: Likewise.
84078         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
84079         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
84080         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
84081         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
84082         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
84083         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84084         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
84085         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
84086         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
84087         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
84088         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
84089         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
84090         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84091         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
84092         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
84093         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
84094         * sysvipc/sys/ipc.h: Likewise.
84095         * sysvipc/sys/msg.h: Likewise.
84096         * sysvipc/sys/sem.h: Likewise.
84097         * sysvipc/sys/shm.h: Likewise.
84098         * termios/termios.h: Likewise.
84099         * time/sys/time.h: Likewise.
84100         * time/time.h: Likewise.
84101         * wcsmbs/bits/wchar2.h: Likewise.
84102         * wcsmbs/uchar.h: Likewise.
84103         * wcsmbs/wchar.h: Likewise.
84104         * wctype/wctype.h: Likewise.
84105
84106         [BZ #13551]
84107         * Makeconfig: Remove all but ELF support including AIX support.
84108         * Makerules: Likewise.
84109         * config.h.in: Likewise.
84110         * config.make.in: Likewise.
84111         * configure: Likewise.
84112         * configure.in: Likewise.
84113         * csu/Makefile: Likewise.
84114         * csu/version.c: Likewise.
84115         * debug/Makefile: Likewise.
84116         * dlfcn/Makefile: Likewise.
84117         * elf/Makefile: Likewise.
84118         * extra-lib.mk: Likewise.
84119         * iconv/Makefile: Likewise.
84120         * include/libc-symbols.h: Likewise.
84121         * include/shlib-compat.h: Likewise.
84122         * resolv/Makefile: Likewise.
84123         * resolv/res_libc.c: Likewise.
84124         * rt/Makefile: Likewise.
84125         * sysdeps/i386/asm-syntax.h: Likewise.
84126         * sysdeps/i386/sysdep.h: Likewise.
84127         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
84128         * sysdeps/mach/sysdep.h: Likewise.
84129         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
84130         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
84131         * sysdeps/s390/asm-syntax.h: Likewise.
84132         * sysdeps/s390/s390-32/sysdep.h: Likewise.
84133         * sysdeps/s390/s390-64/sysdep.h: Likewise.
84134         * sysdeps/sh/sysdep.h: Likewise.
84135         * sysdeps/unix/sparc/sysdep.h: Likewise.
84136         * sysdeps/wordsize-32/divdi3.c: Likewise.
84137         * sysdeps/x86_64/sysdep.h: Likewise.
84138
84139         * argp/Versions: Remove _argp_unlock_xxx.
84140
84141         [BZ #13559]
84142         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
84143         * abilist/libBrokenLocale.abilist: Likewise.
84144         * abilist/libanl.abilist: Likewise.
84145         * abilist/libc.abilist: Likewise.
84146         * abilist/libcrypt.abilist: Likewise.
84147         * abilist/libdl.abilist: Likewise.
84148         * abilist/libm.abilist: Likewise.
84149         * abilist/libnsl.abilist: Likewise.
84150         * abilist/libpthread.abilist: Likewise.
84151         * abilist/libresolv.abilist: Likewise.
84152         * abilist/librt.abilist: Likewise.
84153         * abilist/libthread_db.abilist: Likewise.
84154         * abilist/libutil.abilist: Likewise.
84155         * abilist/libnss_db.abilist: New file.
84156
84157         * scripts/abilist.awk: Add support for indirect functions.
84158
84159         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
84160
84161         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
84162
84163         * shlib-versions: Remove entries for ports architectures.
84164
84165         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
84166         files in ports.
84167         * elf/stackguard-macros.h: Remove support for IA-64.
84168         * elf/tst-auditmod1.c: Likewise.
84169         * sysdeps/generic/ldsodefs.h: Likewise.
84170
84171         * sysdeps/unix/sysv/linux/configure.in: Ports should define
84172         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
84173         configure files.
84174
84175         [BZ #13552]
84176         * configure.in: Remove --enable-omitfp support.
84177         * FAQ.in: Adjust.
84178         * config.make.in: Likewise.
84179         * Makeconfig: Likewise.
84180         * manual/install.texi: Likewise.
84181
84182         In case anyone cares, the IA-64 architecture could move to ports.
84183         * sysdeps/ia64/*: Removed.
84184         * sysdeps/unix/sysv/linux/ia64/*: Removed.
84185         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
84186
84187         [BZ #13555]
84188         * configure.in: Remove entries for unsupported architectures.
84189
84190         [BZ #13533]
84191         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
84192         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
84193         routines.
84194         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
84195         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
84196         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
84197         fall back to using wcrtomb.
84198         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
84199         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
84200         renaming.
84201         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
84202         * wcsmbs/tst-c16c32-1.c: New file.
84203
84204         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
84205         local variable.
84206
84207         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
84208
84209         * elf/tst-unique3.cc: Add explicit declaration of gets.
84210         * elf/tst-unique3lib.cc: Likewise.
84211         * elf/tst-unique3lib2.cc: Likewise.
84212         * elf/tst-unique4.cc: Likewise.
84213
84214         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
84215
84216 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
84217
84218         [BZ #13566]
84219         * assert/assert.h (static_assert): Don't define for C++.
84220         * libio/stdio.h (gets): Do declare for C++ <= C++11.
84221         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
84222
84223 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
84224
84225         * iconv/loop.c (single loop): Fix assertion in storing of
84226         remaining bytes.
84227
84228         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
84229
84230 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
84231
84232         * posix/getconf.c: Update copyright year.
84233         * nss/getent.c: Likewise.
84234         * nss/makedb.c: Likewise.
84235         * iconv/iconvconfig.c: Likewise.
84236         * iconv/iconv_prog.c: Likewise.
84237         * elf/ldconfig.c: Likewise.
84238         * elf/pldd.c: Likewise.
84239         * elf/sotruss.ksh: Likewise.
84240         * catgets/gencat.c: Likewise.
84241         * csu/version.c: Likewise.
84242         * elf/ldd.bash.in: Likewise.
84243         * elf/sprof.c (print_version): Likewise.
84244         * locale/programs/locale.c: Likewise.
84245         * locale/programs/localedef.c: Likewise.
84246         * login/programs/pt_chown.c: Likewise.
84247         * nscd/nscd.c (print_version): Likewise.
84248         * debug/xtrace.sh: Likewise.
84249         * malloc/memusage.sh: Likewise.
84250         * malloc/mtrace.pl: Likewise.
84251         * debug/catchsegv.sh: Likewise.
84252
84253 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
84254
84255         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
84256         pure attribute.
84257
84258 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
84259
84260         [BZ #13533]
84261         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
84262         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
84263         transformations.
84264         * iconv/gconv_int.h: Likewise.
84265         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
84266         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
84267         from libc for GLIBC_2.16.
84268         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
84269         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
84270         * wcsmbs/uchar.h: Really define mbstate_t.
84271         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
84272         * wcsmbs/c16rtomb.c: New file.
84273         * wcsmbs/mbrtoc16.c: New file.
84274         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
84275         for C/POSIX locale.
84276         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
84277         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
84278
84279         * wcsmbs/wchar.h: Add missing __restrict.
84280
84281 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84282
84283         [BZ #13532]
84284         * time/Makefile (routines): Add timespec_get.
84285         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
84286         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
84287         timespec for ISO C11.
84288         * time/timespec_get.c: New file.
84289         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
84290         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
84291
84292         [BZ #13531]
84293         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
84294         * stdlib/stdlib.h: Declare aligned_alloc.
84295         * Versions.def: Add GLIBC_2.16 for libc.
84296         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
84297
84298         [BZ 13527]
84299         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
84300         ISO C11.
84301
84302         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
84303         code.
84304
84305         [BZ #13528]
84306         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
84307
84308         [BZ #13529]
84309         * assert/assert.h (static_assert): Define.
84310
84311         * version.h: Update for 2.16 development version.
84312
84313         [BZ #13526]
84314         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
84315         _ISOC11_SOURCE.
84316
84317         * version.h (RELEASE): Bump for 2.15 release.
84318         * include/features.h (__GLIBC_MINOR__): Bump to 15.
84319
84320         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
84321         Patch by Marek Polacek <mpolacek@redhat.com>.
84322
84323         * bits/byteswap.h: Protect long long constants with __extension__.
84324         * sysdeps/i386/bits/byteswap.h: Likewise.
84325         * sysdeps/ia64/bits/byteswap.h: Likewise.
84326         * sysdeps/s390/bits/byteswap.h: Likewise.
84327         * sysdeps/x86_64/bits/byteswap.h: Likewise.
84328
84329 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84330
84331         [BZ #13540]
84332         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
84333         destination buffer.
84334         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
84335
84336 2011-12-23  Marek Polacek  <polacek@redhat.com>
84337
84338         * elf/dl-addr.c (determine_info): Add inline keyword.
84339         * elf/tst-auditmod4b.c (check_avx): Likewise.
84340         * elf/tst-auditmod6b.c (check_avx): Likewise.
84341         * elf/tst-auditmod6c.c (check_avx): Likewise.
84342         * elf/tst-auditmod7b.c (check_avx): Likewise.
84343
84344 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
84345
84346         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
84347         !__SSE_MATH__.
84348
84349 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84350
84351         [BZ #13540]
84352         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
84353         processing for last bytes.
84354
84355 2011-08-06  Bruno Haible  <bruno@clisp.org>
84356
84357         [BZ #13061]
84358         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
84359         U+0385, not to U+1FEE.
84360
84361         [BZ #13062]
84362         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
84363         entry for U+00A5 U+0301.
84364
84365 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84366
84367         [BZ #13166]
84368         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
84369         buffer for the output is too small.
84370
84371         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
84372         optimization.
84373
84374         [BZ #13185]
84375         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
84376         SSE flags if possible.
84377
84378 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84379
84380         [BZ #13540]
84381         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
84382         processing for last bytes.
84383
84384 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
84385
84386         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
84387         (syscall-list-default-options, syscall-list-default-condition)
84388         (syscall-list-includes): Define.
84389         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
84390         list of ABIs and options and #if conditions for each ABI.  Do not
84391         handle common syscalls between ABIs specially.
84392         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
84393         Remove.
84394         (syscall-list-variants, syscall-list-32bit-options)
84395         (syscall-list-32bit-condition, syscall-list-64bit-options)
84396         (syscall-list-64bit-condition): Define.
84397         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
84398         (syscall-list-variants, syscall-list-32bit-options)
84399         (syscall-list-32bit-condition, syscall-list-64bit-options)
84400         (syscall-list-64bit-condition): Define.
84401         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
84402         Remove.
84403         (syscall-list-variants, syscall-list-32bit-options)
84404         (syscall-list-32bit-condition, syscall-list-64bit-options)
84405         (syscall-list-64bit-condition): Define.
84406         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
84407         Remove.
84408         (syscall-list-variants, syscall-list-32bit-options)
84409         (syscall-list-32bit-condition, syscall-list-64bit-options)
84410         (syscall-list-64bit-condition): Define.
84411
84412 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
84413
84414         * locale/iso-639.def: Add brx entry.
84415
84416         [BZ #13328]
84417         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
84418         Proposed by Mariusz_Cukr <marcukr@op.pl>.
84419
84420         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
84421         __feraiseexcept_renamed.
84422
84423 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84424
84425         [BZ #13538]
84426         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
84427         EPOLLET with unsigned values.
84428         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
84429         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
84430
84431         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
84432         to large cancellation.
84433         * math/s_cacoshf.c: Likewise.
84434         * math/s_cacoshl.c: Likewise.
84435
84436 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
84437
84438         [BZ #13305]
84439         [BZ #12786]
84440         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
84441         * math/s_cacoshf.c: Likewise.
84442         * math/s_cacoshl.c: Likewise.
84443
84444 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
84445
84446         [BZ #13439]
84447         * iconv/gconv.h: Define __GCONV_SWAP.
84448         * iconvdata/unicode.c: The swap bit must be stored in __flags.
84449         * iconvdata/utf-16.c: Likewise.
84450         * iconvdata/utf-32.c: Likewise.
84451
84452 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
84453
84454         [BZ #13524]
84455         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
84456         numerator after shifting it by one limb.
84457
84458 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
84459
84460         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
84461         under [__USE_EXTERN_INLINES].
84462
84463 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84464
84465         [BZ #13446]
84466         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
84467
84468 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84469
84470         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
84471         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
84472         optimized code.
84473         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
84474         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
84475         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
84476         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
84477         for strncasecmp/strncasecmp_l compilation.
84478         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
84479         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
84480
84481 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
84482
84483         [BZ #13484]
84484         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
84485         of __asm__.
84486
84487 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
84488
84489         [BZ #13506]
84490         * time/tzfile.c (__tzfile_read): Check values from file header.
84491
84492 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
84493
84494         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
84495         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
84496         * powerpc/powerpc32/dl-start.S: Likewise.
84497         * powerpc/powerpc32/elf/start.S: Likewise.
84498         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
84499         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
84500         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
84501         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
84502         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
84503         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
84504         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
84505         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
84506         * powerpc/powerpc32/fpu/s_round.S: Likewise.
84507         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
84508         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
84509         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
84510         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
84511         * powerpc/powerpc32/memset.S: Likewise.
84512         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
84513         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
84514         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
84515         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
84516         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
84517         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
84518         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
84519         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
84520         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
84521         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
84522         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
84523         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
84524         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
84525
84526 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84527
84528         * math/libm-test.inc: Added more nearbyint tests.
84529         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
84530         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
84531         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
84532         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
84533
84534 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
84535
84536         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
84537         FD_CLOEXEC.
84538
84539 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84540
84541         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
84542         Add wcscpy-ssse3 wcscpy-c.
84543         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
84544         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
84545         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
84546         * sysdeps/x86_64/wcschr.S: New file.
84547         * sysdeps/x86_64/wcsrchr.S: New file.
84548         * string/test-strcmp.c: Remove checking of wcscmp function for
84549         wrong alignments.
84550         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
84551         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
84552         wcsrchr-sse2 wcsrchr-c.
84553         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
84554         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
84555         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
84556         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
84557         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
84558         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
84559         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
84560         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
84561         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
84562         * wcsmbc/wcschr.c (WCSCHR): New macro.
84563
84564 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
84565
84566         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
84567         * wcsmbs/test-wcsrchr.c: New file.
84568         * string/test-strrchr.c: Add wcsrchr support.
84569         (WIDE): New macro.
84570         * wcsmbs/test-wcscpy.c: New file.
84571         * string/test-strcpy.c: Add wcscpy support.
84572         (WIDE): New macro.
84573
84574 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
84575
84576         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
84577         the inner loop.
84578
84579 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
84580
84581         [BZ #13472]
84582         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
84583
84584 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
84585
84586         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
84587         Minor optimizations.
84588
84589         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
84590         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
84591         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
84592
84593 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
84594
84595         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
84596         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
84597         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
84598         for gcc to avoid warnings.
84599         * inet/Makefile (tests): Add tst-checks.
84600         * inet/tst-checks.c: New file.
84601
84602         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
84603         warning.
84604
84605         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
84606         __wmemcmp_sse2.
84607
84608         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
84609         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
84610
84611         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
84612
84613 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
84614
84615         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
84616         problem.
84617
84618         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
84619
84620 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
84621
84622         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
84623         conditional on GCC version.
84624         (__arch_compare_and_exchange_val_8_acq)
84625         (__arch_compare_and_exchange_val_16_acq)
84626         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
84627         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
84628         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
84629
84630 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
84631
84632         * sysdeps/sh/backtrace.c: New file.
84633
84634 2011-12-02  Andreas Schwab  <schwab@redhat.com>
84635
84636         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
84637         parenthesis.
84638
84639 2011-12-01  Andreas Schwab  <schwab@redhat.com>
84640
84641         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
84642         falling back to utime.
84643
84644 2011-11-30  Andreas Schwab  <schwab@redhat.com>
84645
84646         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
84647         expectations for float.
84648
84649 2011-11-29  Andreas Schwab  <schwab@redhat.com>
84650
84651         * locale/weight.h (findidx): Add parameter len.
84652         * locale/weightwc.h (findidx): Likewise.
84653         * posix/fnmatch_loop.c (FCT): Adjust caller.
84654         * posix/regcomp.c (build_equiv_class): Likewise.
84655         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
84656         * posix/regexec.c (check_node_accept_bytes): Likewise.
84657         * string/strcoll_l.c (STRCOLL): Likewise.
84658         * string/strxfrm_l.c (STRXFRM): Likewise.
84659
84660 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
84661
84662         * Makefile.in: Remove CVSOPT handling.
84663         * configure.in: Remove use of AC_REVISION.
84664         * iconvdata/Makefile (distribute): No need to filter out CVS.
84665         * scripts/list-sources.sh: Remove CVS, subversion and monotone
84666         handling.
84667
84668 2011-11-16  Andreas Schwab  <schwab@redhat.com>
84669
84670         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
84671         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
84672         [USE_AS_STRNCASECMP_L]: Likewise.
84673         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
84674         NO_TLS_DIRECT_SEG_REFS.
84675         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
84676         Fix argument offsets for non-PIC.
84677         [USE_AS_STRNCASECMP_L]: Likewise.
84678         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
84679         NO_TLS_DIRECT_SEG_REFS.
84680
84681 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84682
84683         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
84684         O_CLOEXEC.
84685         * locale/loadlocale.c (_nl_load_locale): Likewise.
84686
84687 2011-11-15  Andreas Schwab  <schwab@redhat.com>
84688
84689         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
84690         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
84691         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
84692         (SYSCALL_GETTIME): Set errno on error.
84693
84694         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
84695         count references to noai6ai_cached.
84696
84697 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
84698
84699         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
84700
84701         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
84702         FD_CLOEXEC for /proc/self/maps.
84703
84704         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
84705         FD_CLOEXEC for /proc/meminfo.
84706
84707         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
84708         gai.conf.
84709
84710         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
84711         FD_CLOEXEC for given file.
84712
84713         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
84714
84715         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
84716         FD_CLOEXEC for /etc/hosts.
84717         (_gethtent): Likewise.
84718
84719         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
84720
84721         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
84722         cancellation and set FD_CLOEXEC for /etc/netgroup.
84723
84724         * nss/nss_files/files-key.c (search): Don't allow cancellation when
84725         reading /etc/publickey.
84726
84727         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
84728         allow cancellation when reading /etc/group.
84729
84730         * nss/nss_files/files-alias.c (internal_setent): Don't allow
84731         cancellation.
84732         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
84733
84734         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
84735         when using data file.
84736
84737         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
84738
84739         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
84740         (write_nis_obj): Use "c" and "e" in fopen.
84741
84742         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
84743
84744         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
84745
84746         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
84747
84748         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
84749
84750         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
84751         locale.alias.
84752
84753         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
84754
84755         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
84756
84757         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
84758
84759         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
84760         file parsing and set FD_CLOEXEC.
84761
84762 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84763
84764         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
84765
84766 2011-11-14  Andreas Schwab  <schwab@redhat.com>
84767
84768         * malloc/arena.c (arena_get2): Don't call reused_arena when
84769         _int_new_arena failed.
84770
84771 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
84772
84773         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
84774         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
84775         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
84776         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
84777         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
84778         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
84779         to compile strcasecmp and strncasecmp.
84780         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
84781         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
84782
84783         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
84784
84785 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
84786
84787         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
84788         locale-defines.sym to gen-as-const-headers.
84789         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
84790         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
84791         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
84792         to compile strcasecmp and strncasecmp.
84793         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
84794         strcasecmp_l and strncasecmp_l.
84795         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
84796         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
84797         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
84798         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
84799         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
84800         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
84801         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
84802         * sysdeps/i386/i686/multiarch/strncase.S: New file.
84803         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
84804         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
84805         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
84806
84807 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
84808
84809         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
84810         result of SYSDEP_GETTIME_CPU to retval.
84811         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
84812         parameter list to macro.  Remove trailing semicolon.  Adjust users.
84813
84814         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
84815         variable.
84816
84817         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
84818         mantissa words.
84819         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
84820
84821         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
84822         from unused variable.
84823
84824         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
84825         DWARF definitions.
84826         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
84827         for assembling.
84828
84829         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
84830         over namespaces.
84831
84832         * sunrpc/rpc_prot.c (rejected): Fix case value.
84833
84834         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
84835         unsigned long long int to avoid warnings in shift.
84836
84837         * posix/regex_internal.c (re_string_reconstruct): Actually use result
84838         of use of trans.
84839         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
84840         variable tmp.
84841
84842         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
84843         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
84844         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
84845
84846         * nis/nis_table.c (nis_list): Use variable of correct type for
84847         result of __follow_path call.
84848
84849 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
84850
84851         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
84852         of math functions ceil, trunc, floor, round, and sqrt, when
84853         avaliable on the platform.
84854         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
84855         name clash.
84856         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
84857         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
84858         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
84859
84860 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
84861
84862         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
84863         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
84864
84865 2011-11-11  Roland McGrath  <roland@hack.frob.com>
84866
84867         * include/unistd.h: Fix __readlink return type.
84868         Reported by Chris Metcalf <cmetcalf@tilera.com>.
84869
84870 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
84871
84872         * stdlib/ucontext.h: Undo last change for makecontext.
84873
84874 2011-11-11  Andreas Schwab  <schwab@redhat.com>
84875
84876         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
84877
84878         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
84879         * setjmp/setjmp.h: Mark functions as non-leaf.
84880         * setjmp/bits/setjmp2.h: Likewise.
84881         * stdlib/ucontext.h: Likewise.
84882
84883 2011-11-10  Andreas Schwab  <schwab@redhat.com>
84884
84885         * malloc/arena.c (_int_new_arena): Don't increment narenas.
84886         (reused_arena): Don't check arena limit.
84887         (arena_get2): Atomically check arena limit.
84888
84889 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
84890
84891         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
84892         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
84893
84894         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
84895         instructions.
84896
84897 2011-11-07  Andreas Schwab  <schwab@redhat.com>
84898
84899         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
84900         handler when locking.
84901
84902         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
84903         Fix size of allocated buffer.
84904
84905 2011-11-04  Andreas Schwab  <schwab@redhat.com>
84906
84907         [BZ #10103]
84908         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
84909         declarations for long double functions.
84910         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
84911
84912         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
84913
84914 2011-11-03  Andreas Schwab  <schwab@redhat.com>
84915
84916         * nscd/nscd.c (main): Don't start AVC thread until credentials are
84917         installed.
84918
84919         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
84920         is disabled.
84921
84922 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
84923
84924         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
84925
84926 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
84927
84928         * include/alloca.h (stackinfo_alloca_round): Define.
84929         (extend_alloca): Use it.
84930         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
84931         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
84932         here.
84933
84934         * scripts/check-local-headers.sh: Ignore libaudit.h.
84935
84936         * nscd/Makefile (extra-objs): Make recursively expanded.
84937
84938 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
84939
84940         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
84941         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
84942
84943         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
84944         * posix/tst-rfc3484-2.c: Likewise.
84945         * posix/tst-rfc3484-3.c: Likewise.
84946
84947         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
84948         process_vm_writev.
84949         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
84950         process_vm_writev.
84951         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
84952         process_vm_writev from libc using GLIBC_2.15 version.
84953
84954         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
84955
84956 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
84957
84958         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
84959         stack usage.
84960
84961 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
84962
84963         [BZ #13367]
84964         * nss/getent.c (initgroups_keys): Show error message in case no group
84965         names are given.
84966
84967         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
84968         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
84969         __bump_nl_timestamp.
84970         * nscd/connections (nscd_init): When host database is served open
84971         netlink socket and request notification about configuration changes.
84972         (main_loop_poll): Track netlink file descriptor and bump timestamp
84973         in case data becomes available.
84974         (main_loop_epoll): Likewise.
84975         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
84976         (database_pers_head): Add extra_data fileds.
84977         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
84978         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
84979         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
84980         Adjust caller.
84981         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
84982         in6ai data, call __free_in6ai.
84983         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
84984         Add -DHAVE_NETLINK.
84985         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
84986         interface information.  Reuse previous data if netlink timestamp
84987         is not changed.
84988         (__bump_nl_timestamp): New function.
84989         (__free_in6ai): New function.
84990
84991 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
84992
84993         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
84994         close_not_cancel_no_status here.
84995         (__check_pf): Reorganize code a bit to not call close twice if OOM.
84996
84997 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
84998
84999         [BZ #13276]
85000         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
85001         return value.
85002
85003         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
85004         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
85005         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
85006
85007 2011-07-03  Andreas Jaeger  <aj@suse.de>
85008
85009         [BZ #10709]
85010         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
85011         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
85012         * math/libm-test.inc (sin_test): Add test case.
85013
85014 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
85015
85016         [BZ #13337]
85017         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
85018         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
85019
85020         * elf/chroot_canon.c (chroot_canon): Cleanups.
85021
85022         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
85023
85024         [BZ #13335]
85025         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
85026         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
85027
85028         * string/test-strchr.c: Make usable for strchrnul testing.
85029         * string/test-strchrnul.c: New file.
85030         * string/Makefile (strop-tests): Add strchrnul.
85031
85032         * po/it.po: Update from translation team.
85033         * po/es.po: Likewise.
85034
85035 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
85036
85037         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
85038         the three constants needed as parameters.  Drop the others.
85039         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
85040         __m128i_strloadu_tolower.
85041         Create and initialize variable zero and use it in all the places
85042         where _mm_setzero_si128 was used.
85043
85044         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
85045         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
85046         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
85047         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
85048         anymore.
85049         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
85050         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
85051         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
85052         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
85053         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
85054         __mpranred, __mptan.
85055         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
85056         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
85057         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
85058         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
85059         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
85060         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
85061         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
85062         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
85063         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
85064
85065 2011-10-28  Andreas Schwab  <schwab@redhat.com>
85066
85067         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
85068         redefine if SHARED.
85069         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
85070
85071         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
85072         wide char related routines to wcsmbs subdir.
85073
85074 2011-10-27  Andreas Schwab  <schwab@redhat.com>
85075
85076         [BZ #13344]
85077         * misc/sys/cdefs.h (__THROWNL): Define.
85078         * posix/unistd.h: Use __THREADNL instead of __THREAD
85079         for memory synchronization functions.
85080
85081 2011-10-26  Roland McGrath  <roland@hack.frob.com>
85082
85083         [BZ #13349]
85084         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
85085         doesn't exist.
85086         * manual/stdio.texi (Obstack Streams): Node removed.
85087
85088 2011-10-26  Andreas Schwab  <schwab@redhat.com>
85089
85090         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
85091         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
85092         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
85093
85094         * math/math_private.h (math_force_eval): Allow non-addressable
85095         arguments.
85096         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
85097
85098 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
85099
85100         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
85101         file is not needed.
85102
85103         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
85104         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
85105         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
85106         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
85107         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
85108         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
85109         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
85110         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
85111         Add AVX variants.
85112         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
85113         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
85114         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
85115         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
85116         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
85117         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
85118         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
85119         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
85120         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
85121         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
85122         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
85123         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
85124         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
85125         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
85126         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
85127         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
85128         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
85129         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
85130         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
85131
85132         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
85133         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
85134
85135         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
85136         place.  Use VEX encoding when compiling for AVX.
85137
85138 2011-10-25  Andreas Schwab  <schwab@redhat.com>
85139
85140         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
85141         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
85142
85143         * string/test-strchr.c (do_test): Don't generate NUL bytes.
85144
85145 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
85146
85147         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
85148         useless if() expression.
85149         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85150         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
85151         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
85152         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85153         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
85154         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
85155         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85156         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85157         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
85158         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85159         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85160         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85161         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
85162         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85163         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
85164         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
85165         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
85166         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
85167         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
85168
85169         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
85170
85171 2011-10-25  Andreas Schwab  <schwab@redhat.com>
85172
85173         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
85174         condition.
85175         * elf/dl-fini.c (_dl_sort_fini): Likewise.
85176
85177 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
85178
85179         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
85180         .text section.  Avoid duplicate constants.
85181         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
85182         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85183         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85184         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85185         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85186         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85187         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85188         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85189         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
85190         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
85191         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
85192         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
85193         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
85194         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
85195         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
85196         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
85197         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
85198         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
85199         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
85200         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85201         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
85202         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
85203         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
85204         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
85205         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
85206         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
85207         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
85208         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
85209         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
85210         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
85211         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
85212         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
85213         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
85214         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
85215         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
85216         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
85217         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
85218         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
85219         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
85220         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
85221         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
85222         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
85223         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
85224         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
85225         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
85226
85227 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
85228
85229         * sysdeps/x86_64/dla.h: Move to ...
85230         * sysdeps/x86_64/fpu/dla.h: ...here.
85231         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
85232         situations.  Use __builtin_fma only for gcc 4.6 and up.
85233
85234         * config.make.in: Add have-mfma4 entry.
85235         * configure.in: Substitute libc_cv_cc_fma4.
85236         * math/Makefile (dbl-only-routines): Add sincostab.
85237         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
85238         Use __sincostab not sincos.
85239         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
85240         name is a macro.
85241         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85242         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85243         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85244         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
85245         using __copysign.
85246         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
85247         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
85248         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
85249         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
85250         and __inv.
85251         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
85252         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
85253         __copysign.
85254         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
85255         define aliases when function name is a macro.
85256         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
85257         sysdeps/ieee754/dbl-64/sincos.tbl.
85258         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
85259         fma4-enabled routines.
85260         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
85261         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
85262         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
85263         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
85264         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
85265         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
85266         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
85267         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
85268         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
85269         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
85270         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
85271         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
85272         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
85273         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
85274         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
85275         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
85276         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
85277         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
85278         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
85279         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
85280         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
85281         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
85282         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
85283         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
85284         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
85285         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
85286         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
85287         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
85288         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
85289         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
85290
85291         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
85292         rename.
85293         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85294         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85295         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85296         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85297         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85298         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85299         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85300         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85301
85302 2011-10-24  Andreas Schwab  <schwab@redhat.com>
85303
85304         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
85305
85306 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85307
85308         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
85309
85310         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
85311         prediction.
85312         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
85313
85314         * string/strnlen.c: Don't define STRNLEN, reverse logic.
85315         Remove unused variable magic_bits.
85316         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
85317
85318         * string/strnlen.c: Define and use STRNLEN macro.
85319         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
85320         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
85321         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
85322         * wcsmbs/wcslen.c: Define and use WCSLEN.
85323         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
85324         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
85325         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
85326         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
85327         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
85328         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
85329         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
85330
85331 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85332
85333         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
85334         strnlen-sse2-no-bsf.
85335         Rename strlen-no-bsf to strlen-sse2-no-bsf.
85336         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
85337         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
85338         Add strnlen support.
85339         (USE_AS_STRNLEN): New macro.
85340         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
85341         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
85342         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
85343         * sysdeps/x86_64/wcslen.S: New file.
85344
85345 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
85346
85347         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
85348         XMM-moves are used for copying on small sizes.
85349
85350 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85351
85352         * wcsmbs/Makefile (strop-tests): Add wcschr.
85353         * wcsmbs/test-wcschr.c: New file.
85354         * string/test-strchr.c: Update.
85355         Add wcschr support.
85356         (WIDE): New macro.
85357
85358 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85359
85360         * wcsmbs/Makefile (strop-tests): Add wcslen.
85361         * wcsmbs/test-wcslen.c: New file.
85362         * string/test-strlen.c: Update.
85363         Add wcslen support.
85364         (WIDE): New macro.
85365
85366 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85367
85368         * po/it.po: Update from translation team.
85369
85370 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85371
85372         * sysdeps/x86_64/wcscmp.S: Update.
85373         Fix wrong comparison semantics.
85374         wcscmp shall use signed comparison not unsigned.
85375         Don't use substraction to avoid overflow bug.
85376         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
85377         * wcsmbc/wcscmp.c: Likewise.
85378         * string/test-strcmp.c: Likewise.
85379         Add new tests to check cases with negative values.
85380
85381 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
85382
85383         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
85384         * sysdeps/x86_64/dla.h: ...here.  New file.
85385         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
85386         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85387         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85388         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85389         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85390         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85391         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85392         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85393         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85394
85395 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
85396
85397         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
85398         __ynl_finite aliases.
85399
85400 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85401
85402         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
85403
85404         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
85405         define DLA_FMA.
85406         [DLA_FMA] (EMULV): Use DLA_FMA.
85407         [DLA_FMA] (MUL12): Use EMULV.
85408         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
85409         that are not needed.
85410         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
85411         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85412         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85413         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85414         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85415         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
85416         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
85417
85418 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
85419
85420         * math/s_nan.c: Undef __nan.
85421         * math/s_nanf.c: Undef __nanf.
85422         * math/s_nanl.c: Undef __nanl.
85423         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
85424         "math_private.h".
85425
85426 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
85427
85428         * math/s_catan.c: Add branch predictions.
85429         * math/s_catanf.c: Likewise.
85430         * math/s_catanh.c: Likewise.
85431         * math/s_catanhf.c: Likewise.
85432         * math/s_catanhl.c: Likewise.
85433         * math/s_catanl.c: Likewise.
85434         * math/s_cexp.c: Likewise.
85435         * math/s_cexpf.c: Likewise.
85436         * math/s_cexpl.c: Likewise.
85437         * math/s_clog.c: Likewise.
85438         * math/s_clog10.c: Likewise.
85439         * math/s_clog10f.c: Likewise.
85440         * math/s_clog10l.c: Likewise.
85441         * math/s_clogf.c: Likewise.
85442         * math/s_clogl.c: Likewise.
85443         * math/s_csqrt.c: Likewise.
85444         * math/s_csqrtf.c: Likewise.
85445         * math/s_csqrtl.c: Likewise.
85446         * math/s_ctanf.c: Likewise.
85447         * math/s_ctanh.c: Likewise.
85448         * math/s_ctanhf.c: Likewise.
85449         * math/s_ctanhl.c: Likewise.
85450         * math/s_ctanl.c: Likewise.
85451
85452         * math/math_private.h: Define __nan, __nanf, __nanl.
85453         * math/s_cacosh.c: Include <math_private.h>.
85454         * math/s_cacoshl.c: Likewise.
85455         * math/s_casinh.c: Likewise.
85456         * math/s_casinhf.c: Likewise.
85457         * math/s_casinhl.c: Likewise.
85458         * math/s_ccos.c: Rely entire on ccosh.
85459         * math/s_ccosf.c: Rely entire on ccoshf.
85460         * math/s_ccosl.c: Rely entirely on ccoshl.
85461         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
85462         Remove tests for FE_INVALID.
85463         * math/s_ccoshf.c: Likewise.
85464         * math/s_ccoshl.c: Likewise.
85465         * math/s_csin.c: Likewise.
85466         * math/s_csinf.c: Likewise.
85467         * math/s_csinh.c Likewise.
85468         * math/s_csinhf.c: Likewise.
85469         * math/s_csinhl.c: Likewise.
85470         * math/s_csinl.c: Likewise.
85471         * math/s_ctan.c: Likewise.
85472         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
85473         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
85474         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
85475
85476 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
85477
85478         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
85479         compilation problems.
85480
85481         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
85482         __builtin_expect.
85483
85484 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
85485
85486         * sysdeps/i386/configure.in: Test for -mfma4 option.
85487         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
85488         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
85489         COMMON_CPUID_INDEX_80000001.
85490         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
85491         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
85492         use it if FMA3 is not supported.
85493         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
85494
85495         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
85496         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
85497
85498 2011-10-20  Andreas Schwab  <schwab@redhat.com>
85499
85500         [BZ #12892]
85501         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
85502         it would create a cycle with a link time dependency.
85503
85504 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
85505
85506         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
85507         instruction.
85508         * string/Makefile (strop-tests): Add rawmemchr.
85509         * string/test-rawmemchr.c: New file.
85510
85511         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
85512         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
85513         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
85514         when compiling str{,n}casecmp and when AVX is available.  Hook up
85515         new optimized code in initializers.
85516
85517 2011-10-19  Andreas Schwab  <schwab@redhat.com>
85518
85519         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
85520         __feraiseexcept instead of feraiseexcept.
85521
85522 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
85523
85524         * math/math_private.h: Define defaults for libc_fetestexcept and
85525         libc_feupdateenv.
85526         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
85527         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
85528         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85529         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85530         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
85531         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85532         libc_fetestexcept and libc_feupdateenv.
85533
85534         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
85535         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
85536         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
85537         * sysdeps/x86_64/fpu/math_private.h: Define special version of
85538         libc_feholdexcept_setround.
85539
85540         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
85541         Add s_nearbyint-c and s_nearbyintf-c.
85542         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
85543         nearbyintf inlines.
85544         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
85545         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
85546         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
85547         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
85548
85549         * math/math_private.h: Define defaults for libc_fegetround,
85550         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
85551         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
85552         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
85553         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
85554         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
85555         standard functions.
85556         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85557         Remove comments and hacks for old compiler versions.
85558         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
85559         libc_fegetround, libc_fesetround, libc_feholdexcept, and
85560         libc_feholdexceptl.
85561
85562 2011-10-18  Andreas Schwab  <schwab@redhat.com>
85563
85564         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
85565         (__feraiseexcept_renamed): Add __NTH.
85566         (feraiseexcept): Add __NTH.  Rename local variables to fix
85567         namespace violations.
85568
85569 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
85570
85571         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
85572
85573         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
85574
85575         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
85576         recently added interfaces.
85577         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
85578
85579         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
85580         about macro parameter expansion.
85581
85582         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
85583         __NO_MATH_INLINES is defined.  Cleanups.
85584
85585         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
85586         and __floorf is target has SSE4.1.
85587         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
85588         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
85589         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
85590         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
85591
85592         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
85593         name.
85594         (floorf): Likewise.
85595
85596         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
85597
85598 2011-10-17  Andreas Schwab  <schwab@redhat.com>
85599
85600         * misc/sys/cdefs.h: Fix last change.
85601
85602         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
85603         database lookup.
85604
85605 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
85606
85607         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
85608
85609         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
85610         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
85611         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
85612         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
85613         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
85614         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
85615         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
85616         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
85617         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
85618         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
85619         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
85620         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
85621         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
85622         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
85623         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
85624         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
85625         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
85626         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
85627         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
85628         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
85629         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
85630         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
85631
85632         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
85633         ceil, ceilf, floor, floorf.
85634
85635         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
85636         Perform IRELATIVE relocations last.
85637
85638         * elf/do-rel.h: Add another parameter nrelative, replacing the
85639         local variable with the same name.  Change name of the function
85640         to end in Rel or Rela (uppercase).
85641         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
85642         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
85643         elf_dynamic_do_##reloc function.
85644
85645 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85646
85647         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
85648         is sufficient, at least on modern CPUs.
85649
85650         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
85651
85652         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
85653         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
85654
85655         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
85656         __expl_finite.
85657         * math/bits/math-finite.h: Add entries for exp.
85658         * math/e_expl.c: Add __*_finite alias.
85659         * sysdeps/i386/fpu/e_exp.S: Likewise.
85660         * sysdeps/i386/fpu/e_expf.S: Likewise.
85661         * sysdeps/i386/fpu/e_expl.c: Likewise.
85662         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
85663         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
85664         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
85665         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
85666         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
85667         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
85668         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
85669
85670         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
85671         is sufficient, at least on modern CPUs.
85672
85673         * ctype/ctype-info.c (__ctype_init): Define.
85674         * include/ctype.h (__ctype_init): Declare.
85675         (__ctype_b_loc): The variable is always initialized.
85676         (__ctype_toupper_loc): Likewise.
85677         (__ctype_tolower_loc): Likewise.
85678         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
85679         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
85680
85681 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
85682
85683         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
85684
85685         * configure.in: Also look in $cxxmachine/include for C++ system
85686         headers.
85687
85688 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85689
85690         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
85691         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
85692         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
85693         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
85694         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
85695         (USE_AS_WMEMCMP): New macro.
85696         Fixing indents.
85697         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
85698         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
85699         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
85700         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
85701         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85702         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
85703         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
85704         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
85705         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
85706         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
85707         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
85708         (USE_AS_WMEMCMP): New macro.
85709         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
85710         * sysdeps/string/test-memcmp.c: Update.
85711         Fix simple_wmemcmp.
85712         Add new tests.
85713         * wcsmbs/wmemcmp.c: Update.
85714         (WMEMCMP): New macro.
85715         Fix overflow bug.
85716
85717 2011-10-12  Andreas Jaeger  <aj@suse.de>
85718
85719         [BZ #13268]
85720         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
85721
85722 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
85723
85724         * libio/iofwide.c (do_length): Avoid warning.
85725
85726         * ctype/ctype.h (__isctype_f): Add missing __THROW.
85727
85728 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
85729
85730         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
85731
85732         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
85733         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
85734         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
85735         * sysdeps/i386/i686/fpu/e_log.S: New file.
85736         * sysdeps/i386/i686/fpu/e_logf.S: New file.
85737         * sysdeps/i386/i686/fpu/e_logl.S: New file.
85738
85739         * ctype/ctype.h: Add support for inlined isXXX functions when
85740         compiling C++ code.
85741
85742 2011-10-14  Andreas Schwab  <schwab@redhat.com>
85743
85744         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
85745
85746         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
85747
85748 2011-10-13  Roland McGrath  <roland@hack.frob.com>
85749
85750         [BZ #13291]
85751         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
85752
85753 2011-10-13  Andreas Schwab  <schwab@redhat.com>
85754
85755         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
85756         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
85757         feraiseexcept.
85758
85759         * sysdeps/x86_64/memrchr.S: Check for zero size.
85760
85761         * string/stratcliff.c: Add memrchr tests.
85762
85763 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
85764
85765         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
85766         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
85767         rawmemchr-sse2 rawmemchr-sse2-bsf.
85768         * sysdeps/i386/i686/multiarch/memchr.S: New file.
85769         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
85770         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
85771         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
85772         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
85773         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
85774         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
85775         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
85776         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
85777         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
85778         * string/memrchr.c (MEMRCHR): New macro.
85779
85780 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
85781
85782         Add integration with gcc's -ffinite-math-only and optimize wrapper
85783         functions in libm.
85784         * Versions.def: Define GLIBC_2.15 version for libm.
85785         * math/Makefile (headers): Add bits/math-finite.h.
85786         * math/bits/math-finite.h: New file.
85787         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
85788         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
85789         * math/e_acoshl.c: Add __*_finite alias.
85790         * math/e_acosl.c: Likewise.
85791         * math/e_asinl.c: Likewise.
85792         * math/e_atan2l.c: Likewise.
85793         * math/e_atanhl.c: Likewise.
85794         * math/e_coshl.c: Likewise.
85795         * math/e_exp10.c: Likewise.
85796         * math/e_exp10f.c: Likewise.
85797         * math/e_exp10l.c: Likewise.
85798         * math/e_exp2l.c: Likewise.
85799         * math/e_fmodl.c: Likewise.
85800         * math/e_gammal_r.c: Likewise.
85801         * math/e_hypotl.c: Likewise.
85802         * math/e_j0l.c: Likewise.
85803         * math/e_j1l.c: Likewise.
85804         * math/e_jnl.c: Likewise.
85805         * math/e_lgammal_r.c: Likewise.
85806         * math/e_log10l.c: Likewise.
85807         * math/e_log2l.c: Likewise.
85808         * math/e_logl.c: Likewise.
85809         * math/e_powl.c: Likewise.
85810         * math/e_sinhl.c: Likewise.
85811         * math/e_sqrtl.c: Likewise.
85812         * math/e_scalb.c: Completely rewritten and optimized.
85813         * math/e_scalbf.c: Likewise.
85814         * math/e_scalbl.c: Likewise.
85815         * math/w_acos.c: Likewise.
85816         * math/w_acosf.c: Likewise.
85817         * math/w_acosl.c: Likewise.
85818         * math/w_acosh.c: Likewise.
85819         * math/w_acoshf.c: Likewise.
85820         * math/w_acoshl.c: Likewise.
85821         * math/w_asin.c: Likewise.
85822         * math/w_asinf.c: Likewise.
85823         * math/w_asinl.c: Likewise.
85824         * math/w_atan2.c: Likewise.
85825         * math/w_atan2f.c: Likewise.
85826         * math/w_atan2l.c: Likewise.
85827         * math/w_atanh.c: Likewise.
85828         * math/w_atanhf.c: Likewise.
85829         * math/w_atanhl.c: Likewise.
85830         * math/w_exp10.c: Likewise.
85831         * math/w_exp10f.c: Likewise.
85832         * math/w_exp10l.c: Likewise.
85833         * math/w_fmod.c: Likewise.
85834         * math/w_fmodf.c: Likewise.
85835         * math/w_fmodl.c: Likewise.
85836         * math/w_j0.c: Likewise.
85837         * math/w_j0f.c: Likewise.
85838         * math/w_j0l.c: Likewise.
85839         * math/w_j1.c: Likewise.
85840         * math/w_j1f.c: Likewise.
85841         * math/w_j1l.c: Likewise.
85842         * math/w_jn.c: Likewise.
85843         * math/w_jnf.c: Likewise.
85844         * math/w_log.c: Likewise.
85845         * math/w_logf.c: Likewise.
85846         * math/w_logl.c: Likewise.
85847         * math/w_log10.c: Likewise.
85848         * math/w_log10f.c: Likewise.
85849         * math/w_log10l.c: Likewise.
85850         * math/w_log2.c: Likewise.
85851         * math/w_log2f.c: Likewise.
85852         * math/w_log2l.c: Likewise.
85853         * math/w_pow.c: Likewise.
85854         * math/w_powf.c: Likewise.
85855         * math/w_powl.c: Likewise.
85856         * math/w_remainder.c: Likewise.
85857         * math/w_remainderf.c: Likewise.
85858         * math/w_remainderl.c: Likewise.
85859         * math/w_scalb.c: Likewise.
85860         * math/w_scalbf.c: Likewise.
85861         * math/w_scalbl.c: Likewise.
85862         * math/w_sqrt.c: Likewise.
85863         * math/w_sqrtf.c: Likewise.
85864         * math/w_sqrtl.c: Likewise.
85865         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
85866         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
85867         used.
85868         * math/math_private.h: Declare __kernel_standard_f.
85869         * math/w_cosh.c: Remove cruft and optimize a bit.
85870         * math/w_coshf.c: Likewise.
85871         * math/w_coshl.c: Likewise.
85872         * math/w_exp2.c: Likewise.
85873         * math/w_exp2f.c: Likewise.
85874         * math/w_exp2l.c: Likewise.
85875         * math/w_hypot.c: Likewise.
85876         * math/w_hypotf.c: Likewise.
85877         * math/w_hypotl.c: Likewise.
85878         * math/w_lgamma.c: Likewise.
85879         * math/w_lgamma_r.c: Likewise.
85880         * math/w_lgammaf.c: Likewise.
85881         * math/w_lgammaf_r.c: Likewise.
85882         * math/w_lgammal.c: Likewise.
85883         * math/w_lgammal_r.c: Likewise.
85884         * math/w_sinh.c: Likewise.
85885         * math/w_sinhf.c: Likewise.
85886         * math/w_sinhl.c: Likewise.
85887         * math/w_tgamma.c: Likewise.
85888         * math/w_tgammaf.c: Likewise.
85889         * math/w_tgammal.c: Likewise.
85890         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
85891         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
85892         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
85893         Minor optimizations.  Pretty printing.  Remove cruft.
85894         * sysdeps/i386/fpu/e_acosf.S: Likewise.
85895         * sysdeps/i386/fpu/e_acosh.S: Likewise.
85896         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
85897         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
85898         * sysdeps/i386/fpu/e_acosl.c: Likewise.
85899         * sysdeps/i386/fpu/e_asin.S: Likewise.
85900         * sysdeps/i386/fpu/e_asinf.S: Likewise.
85901         * sysdeps/i386/fpu/e_atan2.S: Likewise.
85902         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
85903         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
85904         * sysdeps/i386/fpu/e_atanh.S: Likewise.
85905         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
85906         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
85907         * sysdeps/i386/fpu/e_exp10.S: Likewise.
85908         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
85909         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
85910         * sysdeps/i386/fpu/e_exp2.S: Likewise.
85911         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
85912         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
85913         * sysdeps/i386/fpu/e_fmod.S: Likewise.
85914         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
85915         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
85916         * sysdeps/i386/fpu/e_hypot.S: Likewise.
85917         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
85918         * sysdeps/i386/fpu/e_log.S: Likewise.
85919         * sysdeps/i386/fpu/e_log10.S: Likewise.
85920         * sysdeps/i386/fpu/e_log10f.S: Likewise.
85921         * sysdeps/i386/fpu/e_log10l.S: Likewise.
85922         * sysdeps/i386/fpu/e_log2.S: Likewise.
85923         * sysdeps/i386/fpu/e_log2f.S: Likewise.
85924         * sysdeps/i386/fpu/e_log2l.S: Likewise.
85925         * sysdeps/i386/fpu/e_logf.S: Likewise.
85926         * sysdeps/i386/fpu/e_logl.S: Likewise.
85927         * sysdeps/i386/fpu/e_pow.S: Likewise.
85928         * sysdeps/i386/fpu/e_powf.S: Likewise.
85929         * sysdeps/i386/fpu/e_powl.S: Likewise.
85930         * sysdeps/i386/fpu/e_remainder.S: Likewise.
85931         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
85932         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
85933         * sysdeps/i386/fpu/e_scalb.S: Likewise.
85934         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
85935         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
85936         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
85937         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
85938         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
85939         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
85940         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
85941         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
85942         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
85943         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
85944         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
85945         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
85946         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
85947         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
85948         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
85949         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
85950         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
85951         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
85952         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
85953         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
85954         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
85955         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
85956         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
85957         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
85958         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
85959         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
85960         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
85961         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
85962         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
85963         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
85964         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
85965         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
85966         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
85967         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
85968         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
85969         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
85970         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
85971         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
85972         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
85973         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
85974         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
85975         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
85976         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
85977         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
85978         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
85979         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
85980         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
85981         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
85982         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
85983         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
85984         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
85985         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
85986         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
85987         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
85988         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
85989         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
85990         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
85991         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
85992         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
85993         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
85994         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
85995         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
85996         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
85997         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
85998         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
85999         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
86000         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
86001         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
86002         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
86003         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
86004         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
86005         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
86006         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
86007         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
86008         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
86009         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
86010         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
86011         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
86012         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
86013         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
86014         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
86015         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
86016         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
86017         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
86018         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
86019         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
86020         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
86021         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
86022         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
86023         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
86024         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
86025         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86026         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
86027         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
86028         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
86029         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
86030         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
86031         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
86032         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
86033         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
86034         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
86035         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
86036         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
86037         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
86038         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
86039         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
86040         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
86041         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
86042         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
86043         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
86044         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
86045         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
86046         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
86047         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
86048         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
86049         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
86050         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
86051         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
86052         (__isnanf): Likewise.
86053         (__isinf_ns): Likewise.
86054         (__isinf_nsf): Likewise.
86055         (__finite): Likewise.
86056         (__finitef): Likewise.
86057         (__ieee754_sqrt): Define as macro.
86058         (__ieee754_sqrtf): Define as macro.
86059         (__ieee754_sqrtl): Define as macro.
86060         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
86061         inlined copy.
86062         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
86063         __FINITE_MATH_ONLY__ consistent.
86064         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
86065
86066 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
86067
86068         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
86069         of rawmemchr.
86070
86071         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
86072
86073 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
86074
86075         * po/ja.po: Update from translation team.
86076
86077 2011-10-08  Roland McGrath  <roland@hack.frob.com>
86078
86079         * locale/programs/locarchive.c (prepare_address_space): New function.
86080         (create_archive, enlarge_archive, open_archive): Use it.
86081
86082         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
86083         inside [SHARED], where it is used.
86084
86085         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
86086
86087         * nss/getent.c (netgroup_keys): Remove unused variable.
86088         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
86089
86090 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
86091
86092         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
86093         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
86094         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
86095         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
86096         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
86097         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
86098         * math/Makefile (libm-calls): Add s_isinf_ns.
86099         * math/divtc3.c: Use __isinf_nsl instead of isinf.
86100         * math/multc3.c: Likewise.
86101         * math/s_casin.c: Likewise.
86102         * math/s_casinf.c: Likewise.
86103         * math/s_casinl.c: Likewise.
86104         * math/s_ccos.c: Likewise.
86105         * math/s_ccosf.c: Likewise.
86106         * math/s_ccosl.c: Likewise.
86107         * math/s_ctan.c: Likewise.
86108         * math/s_ctanf.c: Likewise.
86109         * math/s_ctanh.c: Likewise.
86110         * math/s_ctanhf.c: Likewise.
86111         * math/s_ctanhl.c: Likewise.
86112         * math/s_ctanl.c: Likewise.
86113         * math/w_fmod.c: Likewise.
86114         * math/w_fmodf.c: Likewise.
86115         * math/w_fmodl.c: Likewise.
86116         * math/w_remainder.c: Likewise.
86117         * math/w_remainderf.c: Likewise.
86118         * math/w_remainderl.c: Likewise.
86119         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
86120         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
86121         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
86122         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
86123         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
86124         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
86125         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
86126         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
86127
86128         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
86129         of the number.
86130         * stdio-common/printf_fphex.c: Likewise.
86131         * stdio-common/printf_size.c: Likewise.
86132
86133         * math/e_exp10.c: Include math_private.h using <...> not "...".
86134         * math/e_exp10f.c: Likewise.
86135         * math/e_exp10l.c: Likewise.
86136         * math/e_exp2l.c: Likewise.
86137         * math/e_j0l.c: Likewise.
86138         * math/e_j1l.c: Likewise.
86139         * math/e_jnl.c: Likewise.
86140         * math/e_lgammal_r.c: Likewise.
86141         * math/e_rem_pio2l.c: Likewise.
86142         * math/e_scalb.c: Likewise.
86143         * math/e_scalbf.c: Likewise.
86144         * math/e_scalbl.c: Likewise.
86145         * math/k_cosl.c: Likewise.
86146         * math/k_sinl.c: Likewise.
86147         * math/k_tanl.c: Likewise.
86148         * math/s_cacoshf.c: Likewise.
86149         * math/s_catan.c: Likewise.
86150         * math/s_catanf.c: Likewise.
86151         * math/s_catanh.c: Likewise.
86152         * math/s_catanhf.c: Likewise.
86153         * math/s_catanhl.c: Likewise.
86154         * math/s_catanl.c: Likewise.
86155         * math/s_ccosh.c: Likewise.
86156         * math/s_ccoshf.c: Likewise.
86157         * math/s_ccoshl.c: Likewise.
86158         * math/s_cexp.c: Likewise.
86159         * math/s_cexpf.c: Likewise.
86160         * math/s_cexpl.c: Likewise.
86161         * math/s_clog.c: Likewise.
86162         * math/s_clog10.c: Likewise.
86163         * math/s_clog10f.c: Likewise.
86164         * math/s_clog10l.c: Likewise.
86165         * math/s_clogf.c: Likewise.
86166         * math/s_clogl.c: Likewise.
86167         * math/s_csin.c: Likewise.
86168         * math/s_csinf.c: Likewise.
86169         * math/s_csinh.c: Likewise.
86170         * math/s_csinhf.c: Likewise.
86171         * math/s_csinhl.c: Likewise.
86172         * math/s_csinl.c: Likewise.
86173         * math/s_csqrt.c: Likewise.
86174         * math/s_csqrtf.c: Likewise.
86175         * math/s_csqrtl.c: Likewise.
86176         * math/s_ctan.c: Likewise.
86177         * math/s_ctanf.c: Likewise.
86178         * math/s_ctanh.c: Likewise.
86179         * math/s_ctanhf.c: Likewise.
86180         * math/s_ctanhl.c: Likewise.
86181         * math/s_ctanl.c: Likewise.
86182         * math/s_ldexp.c: Likewise.
86183         * math/s_ldexpf.c: Likewise.
86184         * math/s_ldexpl.c: Likewise.
86185         * math/s_significand.c: Likewise.
86186         * math/s_significandf.c: Likewise.
86187         * math/s_significandl.c: Likewise.
86188         * math/w_acos.c: Likewise.
86189         * math/w_acosf.c: Likewise.
86190         * math/w_acosh.c: Likewise.
86191         * math/w_acoshf.c: Likewise.
86192         * math/w_acoshl.c: Likewise.
86193         * math/w_acosl.c: Likewise.
86194         * math/w_asin.c: Likewise.
86195         * math/w_asinf.c: Likewise.
86196         * math/w_asinl.c: Likewise.
86197         * math/w_atan2.c: Likewise.
86198         * math/w_atan2f.c: Likewise.
86199         * math/w_atan2l.c: Likewise.
86200         * math/w_atanh.c: Likewise.
86201         * math/w_atanhf.c: Likewise.
86202         * math/w_atanhl.c: Likewise.
86203         * math/w_cosh.c: Likewise.
86204         * math/w_coshf.c: Likewise.
86205         * math/w_coshl.c: Likewise.
86206         * math/w_dremf.c: Likewise.
86207         * math/w_exp10.c: Likewise.
86208         * math/w_exp10f.c: Likewise.
86209         * math/w_exp10l.c: Likewise.
86210         * math/w_exp2.c: Likewise.
86211         * math/w_exp2f.c: Likewise.
86212         * math/w_fmod.c: Likewise.
86213         * math/w_fmodf.c: Likewise.
86214         * math/w_fmodl.c: Likewise.
86215         * math/w_hypot.c: Likewise.
86216         * math/w_hypotf.c: Likewise.
86217         * math/w_hypotl.c: Likewise.
86218         * math/w_j0.c: Likewise.
86219         * math/w_j0f.c: Likewise.
86220         * math/w_j0l.c: Likewise.
86221         * math/w_j1.c: Likewise.
86222         * math/w_j1f.c: Likewise.
86223         * math/w_j1l.c: Likewise.
86224         * math/w_jn.c: Likewise.
86225         * math/w_jnf.c: Likewise.
86226         * math/w_jnl.c: Likewise.
86227         * math/w_lgamma.c: Likewise.
86228         * math/w_lgamma_r.c: Likewise.
86229         * math/w_lgammaf.c: Likewise.
86230         * math/w_lgammaf_r.c: Likewise.
86231         * math/w_lgammal.c: Likewise.
86232         * math/w_lgammal_r.c: Likewise.
86233         * math/w_log.c: Likewise.
86234         * math/w_log10.c: Likewise.
86235         * math/w_log10f.c: Likewise.
86236         * math/w_log10l.c: Likewise.
86237         * math/w_log2.c: Likewise.
86238         * math/w_log2f.c: Likewise.
86239         * math/w_log2l.c: Likewise.
86240         * math/w_logf.c: Likewise.
86241         * math/w_logl.c: Likewise.
86242         * math/w_pow.c: Likewise.
86243         * math/w_powf.c: Likewise.
86244         * math/w_powl.c: Likewise.
86245         * math/w_remainder.c: Likewise.
86246         * math/w_remainderf.c: Likewise.
86247         * math/w_remainderl.c: Likewise.
86248         * math/w_scalb.c: Likewise.
86249         * math/w_scalbf.c: Likewise.
86250         * math/w_scalbl.c: Likewise.
86251         * math/w_sinh.c: Likewise.
86252         * math/w_sinhf.c: Likewise.
86253         * math/w_sinhl.c: Likewise.
86254         * math/w_sqrt.c: Likewise.
86255         * math/w_sqrtf.c: Likewise.
86256         * math/w_sqrtl.c: Likewise.
86257         * math/w_tgamma.c: Likewise.
86258         * math/w_tgammaf.c: Likewise.
86259         * math/w_tgammal.c: Likewise.
86260
86261         * po/ja.po: Update from translation team.
86262
86263 2011-09-29  Andreas Jaeger  <aj@suse.de>
86264
86265         [BZ #13179]
86266         * sunrpc/netname.c (netname2host): Fix logic.
86267
86268         [BZ #6779]
86269         [BZ #6783]
86270         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
86271         correctly.
86272         * math/w_remainder.c (__remainder): Likewise.
86273         * math/w_remainderf.c (__remainderf): Likewise.
86274         * math/libm-test.inc (remainder_test): Add test cases.
86275
86276 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
86277
86278         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
86279         sdiv_qrnnd.
86280
86281 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86282
86283         * string/test-memcmp.c: Avoid unncessary #defines.
86284         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
86285
86286 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86287
86288         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
86289         Use new sse2 version for core i3 - i7 as it's faster
86290         than sse42 version.
86291         (bit_Prefer_PMINUB_for_stringop): New.
86292         * sysdeps/x86_64/rawmemchr.S: Update.
86293         Replace with faster SSE2 version.
86294         * sysdeps/x86_64/memrchr.S: New file.
86295         * sysdeps/x86_64/memchr.S: Update.
86296         Replace with faster SSE2 version.
86297
86298 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
86299
86300         * elf/dl-load.c (lose): Add cast to avoid warning.
86301
86302 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
86303
86304         * po/ca.po: Update from translation team.
86305
86306         * inet/getnetgrent_r.c: Hook up nscd.
86307         * nscd/Makefile (routines): Add nscd_netgroup.
86308         (nscd-modules): Add netgroupcache.
86309         (CFLAGS-netgroupcache.c): Define.
86310         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
86311         (cache_search): Add const to second parameter.
86312         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
86313         INNETGR.
86314         (dbs): Add netgrdb entry.
86315         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
86316         (verify_persistent_db): Handle netgrdb.
86317         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
86318         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
86319         GETFDNETGR.
86320         (netgroup_response_header): Define.
86321         (innetgroup_response_header): Define.
86322         (datahead): Add netgroup_response_header and innetgroup_response_header
86323         elements.
86324         * nscd/nscd.conf: Add entries for netgroup cache.
86325         * nscd/nscd.h (dbtype): Add netgrdb.
86326         (_PATH_NSCD_NETGROUP_DB): Define.
86327         (netgroup_iov_disabled): Declare.
86328         (xmalloc, xcalloc, xrealloc): Move declarations here.
86329         (cache_search): Adjust prototype.
86330         Add netgroup-related prototypes.
86331         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
86332         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
86333         (__nscd_innetgr): Declare.
86334         * nscd/selinux.c (perms): Use access_vector_t as element type and
86335         add netgroup-related initializers.
86336         * nscd/netgroupcache.c: New file.
86337         * nscd/nscd_netgroup.c: New file.
86338         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
86339         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
86340         For four parameters use innetgr.
86341         * nss/nss_files/files-init.c: Add definition and callback for netgr.
86342         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
86343         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
86344         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
86345
86346         * nscd/connections.c (register_traced_file): Don't register file
86347         for disabled databases.
86348
86349 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
86350
86351         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
86352
86353         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
86354         from tree and freeing node.
86355
86356 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
86357
86358         * nss/nsswitch.c (__nss_database_lookup): Handle
86359         nss_parse_service_list out of memory case.
86360
86361 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
86362
86363         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
86364         out of memory case.
86365
86366 2011-10-04  Andreas Schwab  <schwab@redhat.com>
86367
86368         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
86369         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
86370         pass it down.
86371         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
86372         elf_machine_rela, elf_machine_lazy_rel.
86373         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
86374         (ELF_DYNAMIC_DO_REL): Likewise.
86375         (ELF_DYNAMIC_DO_RELA): Likewise.
86376         (ELF_DYNAMIC_RELOCATE): Likewise.
86377         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
86378         to ELF_DYNAMIC_DO_REL.
86379         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
86380         (dl_main): In trace mode always set __RTLD_NOIFUNC.
86381         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
86382         elf_machine_rela.
86383         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
86384         skip_ifunc, don't call ifunc function if non-zero.
86385         (elf_machine_rela): Likewise.
86386         (elf_machine_lazy_rel): Likewise.
86387         (elf_machine_lazy_rela): Likewise.
86388         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
86389         (elf_machine_lazy_rel): Likewise.
86390         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
86391         Likewise.
86392         (elf_machine_lazy_rel): Likewise.
86393         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86394         Likewise.
86395         (elf_machine_lazy_rel): Likewise.
86396         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
86397         (elf_machine_lazy_rel): Likewise.
86398         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
86399         (elf_machine_lazy_rel): Likewise.
86400         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
86401         (elf_machine_lazy_rel): Likewise.
86402         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
86403         (elf_machine_lazy_rel): Likewise.
86404         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
86405         (elf_machine_lazy_rel): Likewise.
86406         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
86407         (elf_machine_lazy_rel): Likewise.
86408
86409 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
86410
86411         * nss/nss_files/files-init.c (_nss_files_init): Use static
86412         initialization for all the *_traced_file variables.
86413
86414 2011-09-28  Andreas Schwab  <schwab@redhat.com>
86415
86416         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86417
86418 2011-09-27  Roland McGrath  <roland@hack.frob.com>
86419
86420         [BZ #13226]
86421         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
86422
86423 2011-09-27  Andreas Schwab  <schwab@redhat.com>
86424
86425         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
86426         Reread the line before reparsing it.
86427
86428 2011-09-26  Andreas Schwab  <schwab@redhat.com>
86429
86430         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
86431
86432 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
86433             Maxim Kuvyrkov  <maxim@codesourcery.com>
86434             Joseph Myers  <joseph@codesourcery.com>
86435
86436         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
86437         if needed for __stack_chk_guard.
86438
86439 2011-09-19  Roland McGrath  <roland@hack.frob.com>
86440
86441         * sysdeps/posix/spawni.c (script_execute): Always define it.
86442         It will be optimized away if unused.
86443         (maybe_script_execute): New function.
86444         (__spawni): Call it.
86445
86446         * Makerules: Don't include tls.make.
86447         (config-tls): Always set to thread.
86448         * tls.make.c: File removed.
86449
86450 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
86451
86452         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
86453         * config.make.in (CPPFLAGS-config): New substituted variable.
86454
86455 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86456
86457         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
86458
86459         [BZ #13192]
86460         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
86461         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
86462
86463 2011-09-15  Roland McGrath  <roland@hack.frob.com>
86464
86465         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
86466         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
86467         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
86468         (CALL_FAIL): Likewise.
86469         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
86470         (CALL_FAIL): Macro removed.
86471         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
86472
86473 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
86474
86475         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
86476         for __FINITE_MATH_ONLY__ == 1.
86477
86478 2011-09-15  Andreas Schwab  <schwab@redhat.com>
86479
86480         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
86481         __ieee754_sqrt instead of sqrt.
86482         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
86483         __ieee754_sqrtf instead of sqrtf.
86484         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
86485         __floorf instead of floorf.
86486         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
86487         __floorf, __truncf instead of floorf, truncf.
86488
86489 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
86490
86491         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
86492
86493         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
86494         __extern_always_inline.
86495         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
86496         32-bit.
86497
86498 2011-09-14  Andreas Schwab  <schwab@redhat.com>
86499
86500         * elf/rtld.c (dl_main): Also relocate in dependency order when
86501         doing symbol dependency testing.
86502
86503 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
86504
86505         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
86506         Always define `refsym'.
86507
86508 2011-09-13  Andreas Schwab  <schwab@redhat.com>
86509
86510         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
86511         (__FD_ELT): Renamed from __FDELT.
86512         * misc/bits/select2.h (__FD_ELT): Likewise.
86513         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
86514         __FD_MASK instead of __FDELT, __FDMASK.
86515         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86516         Likewise.
86517         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
86518         Likewise.
86519
86520         * elf/Makefile (gen-ldd): Fix pattern.
86521
86522         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
86523         (init_tls): Likewise.
86524
86525 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
86526
86527         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
86528
86529 2011-09-12  Andreas Schwab  <schwab@redhat.com>
86530
86531         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
86532         `struct cmsghdr *' instead of `void *'.
86533         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
86534         Likewise.
86535
86536 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
86537
86538         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
86539         if non-absolute.
86540         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
86541         ldd_rewrite_script.
86542
86543 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
86544
86545         * configure.in: Remove --with-tls option.
86546         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
86547         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
86548         out in case it is missing.
86549         * sysdeps/ia64/elf/configure.in: Likewise.
86550         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
86551         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
86552         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
86553         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
86554         * sysdeps/sh/elf/configure.in: Likewise.
86555         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
86556         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
86557         * sysdeps/x86_64/elf/configure.in: Likewise.
86558         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
86559         * sysdeps/mach/hurd/tls.h: Likewise.
86560
86561         [BZ #13067]
86562         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
86563
86564         [BZ #13090]
86565         * configure.in: Fix use of AC_INIT.
86566
86567         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
86568
86569 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
86570
86571         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
86572         __set_errno.
86573         * malloc/hooks.c: Likewise.
86574
86575         [BZ #11929]
86576         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
86577         variables statically.
86578         (narenas): Initialize.
86579         (list_lock): Initialize.
86580         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
86581         initializtion of main_arena and list_lock.  Small cleanups.
86582         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
86583         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
86584         Add initializers to main_arena and mp_.
86585         (malloc_state): Remove pagesize member.  Change all users to use
86586         GLRO(dl_pagesize).
86587
86588         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
86589         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
86590         is always initialized.
86591
86592         * malloc/malloc.c: Removed unused configurations and dead code.
86593         * malloc/arena.c: Likewise.
86594         * malloc/hooks.c: Likewise.
86595         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
86596
86597         * include/tls.h: Removed.  USE___THREAD must always be defined.
86598         * bits/libc-tsd.h: Don't handle !USE___THREAD.
86599         * elf/dl-libc.c: Likewise.
86600         * elf/dl-tsd.c: Likewise.
86601         * include/errno.h: Likewise.
86602         * include/netdb.h: Likewise.
86603         * include/resolv.h: Likewise.
86604         * inet/herrno-loc.c: Likewise.
86605         * inet/herrno.c: Likewise.
86606         * malloc/arena.c: Likewise.
86607         * malloc/hooks.c: Likewise.
86608         * malloc/malloc.c: Likewise.
86609         * resolv/res-state.c: Likewise.
86610         * resolv/res_libc.c: Likewise.
86611         * sysdeps/i386/dl-machine.h: Likewise.
86612         * sysdeps/ia64/dl-machine.h: Likewise.
86613         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
86614         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
86615         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
86616         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
86617         * sysdeps/sh/dl-machine.h: Likewise.
86618         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
86619         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
86620         * sysdeps/unix/i386/sysdep.S: Likewise.
86621         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
86622         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
86623         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
86624         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
86625         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
86626         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
86627         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
86628         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
86629         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
86630         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
86631         * sysdeps/unix/x86_64/sysdep.S: Likewise.
86632         * sysdeps/x86_64/dl-machine.h: Likewise.
86633         * tls.make.c: Likewise.
86634
86635         * configure.in: Remove --with-__thread option.  Make tests for
86636         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
86637         tls_model attribute fail if no support is available.  Remove
86638         USE_IN_LIBIO.
86639         * Makeconfig: Adjust for dropped configure option.  All features are
86640         now mandatory.
86641         * Makerules: Likewise.
86642         * Versions.def: Likewise.
86643         * argp/argp-fmtstream.c: Likewise.
86644         * argp/argp-fmtstream.h: Likewise.
86645         * argp/argp-help.c: Likewise.
86646         * assert/assert.c: Likewise.
86647         * config.h.in: Likewise.
86648         * config.make.in: Likewise.
86649         * configure: Likewise.
86650         * configure.in: Likewise.
86651         * csu/Versions: Likewise.
86652         * csu/init.c: Likewise.
86653         * elf/tst-audit2.c: Likewise.
86654         * elf/tst-tls10.c: Likewise.
86655         * elf/tst-tls10.h: Likewise.
86656         * elf/tst-tls11.c: Likewise.
86657         * elf/tst-tls12.c: Likewise.
86658         * elf/tst-tls14.c: Likewise.
86659         * elf/tst-tlsmod11.c: Likewise.
86660         * elf/tst-tlsmod12.c: Likewise.
86661         * elf/tst-tlsmod13.c: Likewise.
86662         * elf/tst-tlsmod13a.c: Likewise.
86663         * elf/tst-tlsmod14a.c: Likewise.
86664         * elf/tst-tlsmod15b.c: Likewise.
86665         * elf/tst-tlsmod16a.c: Likewise.
86666         * elf/tst-tlsmod16b.c: Likewise.
86667         * elf/tst-tlsmod7.c: Likewise.
86668         * elf/tst-tlsmod8.c: Likewise.
86669         * elf/tst-tlsmod9.c: Likewise.
86670         * gmon/gmon.c: Likewise.
86671         * grp/fgetgrent_r.c: Likewise.
86672         * grp/putgrent.c: Likewise.
86673         * hurd/fopenport.c: Likewise.
86674         * include/libc-symbols.h: Likewise.
86675         * include/tls.h: Likewise.
86676         * intl/gettextP.h: Likewise.
86677         * intl/loadinfo.h: Likewise.
86678         * locale/global-locale.c: Likewise.
86679         * locale/localeinfo.h: Likewise.
86680         * mach/devstream.c: Likewise.
86681         * malloc/arena.c: Likewise.
86682         * malloc/set-freeres.c: Likewise.
86683         * misc/err.c: Likewise.
86684         * misc/getttyent.c: Likewise.
86685         * misc/mntent_r.c: Likewise.
86686         * posix/getopt.c: Likewise.
86687         * posix/wordexp.c: Likewise.
86688         * pwd/fgetpwent_r.c: Likewise.
86689         * resolv/Versions: Likewise.
86690         * resolv/res_hconf.c: Likewise.
86691         * shadow/fgetspent_r.c: Likewise.
86692         * shadow/putspent.c: Likewise.
86693         * stdio-common/printf_fphex.c: Likewise.
86694         * stdio-common/tmpfile.c: Likewise.
86695         * stdlib/abort.c: Likewise.
86696         * stdlib/fmtmsg.c: Likewise.
86697         * sunrpc/auth_unix.c: Likewise.
86698         * sunrpc/clnt_perr.c: Likewise.
86699         * sunrpc/clnt_tcp.c: Likewise.
86700         * sunrpc/clnt_udp.c: Likewise.
86701         * sunrpc/clnt_unix.c: Likewise.
86702         * sunrpc/openchild.c: Likewise.
86703         * sunrpc/svc_simple.c: Likewise.
86704         * sunrpc/svc_tcp.c: Likewise.
86705         * sunrpc/svc_udp.c: Likewise.
86706         * sunrpc/svc_unix.c: Likewise.
86707         * sunrpc/xdr.c: Likewise.
86708         * sunrpc/xdr_array.c: Likewise.
86709         * sunrpc/xdr_rec.c: Likewise.
86710         * sunrpc/xdr_ref.c: Likewise.
86711         * sunrpc/xdr_stdio.c: Likewise.
86712
86713 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86714
86715         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
86716
86717 2011-07-03  Andreas Jaeger  <aj@suse.de>
86718
86719         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
86720         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
86721         regenerate with gen-libm-tests.pl.
86722
86723 2010-05-12  Petr Baudis  <pasky@suse.cz>
86724
86725         [BZ #11589]
86726         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
86727         around j0() zero points by switching to j1().
86728         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
86729         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
86730         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
86731         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
86732
86733 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86734
86735         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
86736         instead of 0.
86737         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
86738         instead of 0.
86739         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
86740         Patch in part by Pavel Roskin <proski@gnu.org>.
86741
86742         [BZ #13138]
86743         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
86744         realloc.
86745         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
86746         Free memory block if necessary.
86747
86748         [BZ #12847]
86749         * libio/genops.c (INTDEF): For string streams the _lock pointer can
86750         be NULL.  Don't lock in this case.
86751
86752 2011-09-09  Roland McGrath  <roland@hack.frob.com>
86753
86754         * elf/elf.h (ELFOSABI_GNU): New macro.
86755         (ELFOSABI_LINUX): Define to that.
86756
86757 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
86758
86759         * string/strncat.c (strncat): Undef the symbol in case it has been
86760         defined in bits/string.h.
86761
86762 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
86763
86764         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
86765
86766         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
86767         link map.
86768
86769 2011-08-17  Andreas Jaeger  <aj@suse.de>
86770
86771         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
86772
86773 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
86774             Ian Lance Taylor  <iant@google.com>
86775
86776         * math/libm-test.inc (lround_test): New testcase.
86777         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
86778
86779 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
86780
86781         * Makefile: Remove support for automatic cvs check-ins.
86782         * Makerules: Likewise.
86783         * config.make.in: Likewise.
86784         * configure.in: Likewise.
86785         * intl/Makefile: Likewise.
86786         * locale/Makefile: Likewise.
86787         * po/Makefile: Likewise.
86788         * posix/Makefile: Likewise.
86789         * sysdeps/gnu/Makefile: Likewise.
86790         * sysdeps/mach/hurd/Makefile: Likewise.
86791         * sysdeps/sparc/sparc32/Makefile: Likewise.
86792
86793         [BZ #13118]
86794         * posix/Makefile (bug-regex32-ENV): Define.
86795         Patch by John Stanley <jpsinthemix@verizon.net>.
86796
86797         * misc/Makefile (headers): Add bits/select2.h.
86798         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
86799         * misc/bits/select2.h: New file.
86800         * include/bits/select2.h: New file.
86801         * debug/Makefile (routines): Add fdelt_chk.
86802         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
86803         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
86804         FD_ISSET.
86805         * debug/fdelt_chk.c: New file.
86806
86807         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
86808         * wcsmbs/test-wmemcmp.c: Likewise.
86809         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
86810         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
86811
86812 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
86813
86814         * string/Makefile (strop-tests): Add memcmp.
86815         * string/test-wmemcmp.c: New file.
86816         * string/test-memcmp.c: Add wmemcmp support.
86817
86818 2011-09-08  Roland McGrath  <roland@hack.frob.com>
86819
86820         [BZ #13153]
86821         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
86822         2011-07-19 change.
86823
86824         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
86825         garbage value in a __mach_port_mod_refs call in the cases of the
86826         task-self and thread-self ports.
86827
86828 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
86829
86830         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
86831
86832 2011-09-08  Andreas Schwab  <schwab@redhat.com>
86833
86834         * elf/dl-load.c (lose): Check for non-null L.
86835
86836 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86837
86838         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
86839
86840         * elf/dl-libc.c (dlerror_run): Pass back error code from
86841         dl_catch_error.
86842
86843         [BZ #13123]
86844         * elf/dl-load.c (lose): Free l_origin if it is valid.
86845
86846         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
86847         names.
86848         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
86849         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86850         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
86851         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86852         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
86853         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
86854
86855 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86856
86857         * sysdeps/powerpc/fpu/e_hypot.c: New file.
86858         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
86859         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
86860         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
86861         * sysdeps/powerpc/fpu/k_cosf.c: New file.
86862         * sysdeps/powerpc/fpu/k_sinf.c: New file.
86863         * sysdeps/powerpc/fpu/s_cosf.c: New file.
86864         * sysdeps/powerpc/fpu/s_sinf.c: New file.
86865         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
86866         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
86867
86868 2011-08-15  Alan Modra  <amodra@gmail.com>
86869
86870         [BZ #13092]
86871         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
86872         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
86873         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
86874         ppc_mcount to static-only-routines.
86875         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
86876         __mcount_internal.
86877         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
86878         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
86879
86880 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
86881
86882         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
86883         for finite and infinity parameters.
86884
86885 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
86886
86887         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
86888         and add nop instructions for throughput optimization.
86889         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
86890
86891 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
86892
86893         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
86894         aligned copy for power7 with vector-scalar instructions.
86895         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
86896
86897 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
86898
86899         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
86900         AVX check.
86901
86902 2011-09-07  Andreas Schwab  <schwab@redhat.com>
86903
86904         [BZ #13144]
86905         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
86906         last change.
86907
86908 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
86909
86910         * sysdeps/unix/sysv/linux/x86_64/init-first.c
86911         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
86912         syscall wrapper around clock_gettime in __vdso_clock_gettime.
86913         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
86914         clock_gettime.
86915
86916 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86917
86918         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
86919         Forgot to demangle the pointer.
86920
86921         * sysdeps/i386/sysdep.h: Define atom_text_section.
86922         * sysdeps/x86_64/sysdep.h: Likewise.
86923         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
86924         section with atom_text_section.
86925         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
86926         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
86927         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
86928         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
86929         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
86930
86931         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
86932         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
86933         already be defined.  Change to take two parameters and don't assign
86934         result to variable.  Adjust all users.
86935         Define INTERNAL_GETTIME if not already defined.
86936         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
86937         call.
86938         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
86939         HAVE_CLOCK_GETTIME_VSYSCALL.
86940         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
86941
86942         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
86943         gettimeofday vsyscall, just use time.
86944
86945 2011-09-06  Andreas Schwab  <schwab@redhat.com>
86946
86947         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
86948         <errno.h>.
86949
86950 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
86951
86952         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
86953         syscall on x86-64.
86954         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
86955         syscall.
86956         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
86957         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
86958         syscall if possible.
86959
86960 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86961
86962         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
86963         e_ident.  Don't pass to find_mapsXX.
86964         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
86965
86966 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
86967
86968         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
86969         strchr-sse2-no-bsf strrchr-sse2-no-bsf
86970         * sysdeps/x86_64/multiarch/strchr.S: Update.
86971         Check bit_slow_BSF bit.
86972         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
86973         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
86974         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
86975
86976 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
86977
86978         [BZ #13134]
86979         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
86980         before glibc 2.15.
86981         (tryshell): Define.
86982         (__spawni): Change last parameter to be flag.  Test
86983         SPAWN_XFLAGS_USE_PATH flag to use path or not.
86984         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
86985         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
86986         * posix/spawni.c: Likewise.
86987         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
86988         * posix/spawnp.c: Likewise.  Change normal version to use
86989         SPAWN_XFLAGS_USE_PATH.
86990         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
86991         SPAWN_XFLAGS_TRY_SHELL.
86992
86993         [BZ #13150]
86994         * posix/glob.h: Remove gcc 1.x support.
86995
86996         [BZ #13068]
86997         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
86998
86999 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87000
87001         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87002         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
87003         strrchr-sse2-bsf
87004         * sysdeps/i386/i686/multiarch/strchr.S: New file.
87005         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
87006         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
87007         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
87008         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
87009         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
87010
87011 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87012
87013         * sysdeps/x86_64/wcscmp.S: New file.
87014
87015         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
87016         wcscmp-c wcscmp-sse2
87017         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
87018         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
87019         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
87020         * wcsmbs/wcscmp.c: Allow renaming.
87021
87022 2011-09-05  David S. Miller  <davem@davemloft.net>
87023
87024         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
87025         stack slot, rather than the struct return pointer slot.
87026         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
87027         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
87028         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
87029         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
87030
87031 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
87032
87033         * po/ja.po: Update from translation team.
87034
87035         [BZ #13144]
87036         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
87037         kernel in 64-bit binaries.
87038
87039 2011-09-01  David S. Miller  <davem@davemloft.net>
87040
87041         * elf/elf.h (HWCAP_SPARC_*): Move to..
87042         * sysdeps/sparc/sysdep.h: this new file and add new values.
87043         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
87044         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
87045         _DL_HWCAP_COUNT to 24.
87046         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
87047         entries.
87048         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
87049         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
87050         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
87051         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
87052         instead of magic constants.
87053         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
87054
87055 2011-08-31  David S. Miller  <davem@davemloft.net>
87056
87057         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
87058         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
87059         Reimplement to do errno handling inline.
87060         (SYSCALL_ERROR_HANDLER): New macro.
87061         (__SYSCALL_STRING): Do not do errno handling in asm.
87062         (__CLONE_SYSCALL_STRING): Delete.
87063         (__INTERNAL_SYSCALL_STRING): Delete.
87064         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
87065         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
87066         (PSEUDO): Reimplement to do errno handling inline.
87067         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
87068         (SYSCALL_ERROR_HANDLER): New macro.
87069         (__SYSCALL_STRING): Do not do errno handling in asm.
87070         (__CLONE_SYSCALL_STRING): Delete.
87071         (__INTERNAL_SYSCALL_STRING): Delete.
87072         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
87073         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
87074         i386.
87075         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
87076         (inline_syscall*): Add 'err' argument.
87077         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
87078         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
87079         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
87080         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
87081
87082         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
87083         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
87084
87085 2011-08-30  Andreas Schwab  <schwab@redhat.com>
87086
87087         * elf/rtld.c (dl_main): Relocate objects in dependency order.
87088
87089 2011-08-29  Jiri Olsa <jolsa@redhat.com>
87090
87091         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
87092         directive.
87093
87094 2011-08-24  David S. Miller  <davem@davemloft.net>
87095
87096         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
87097
87098 2011-08-24  Andreas Schwab  <schwab@redhat.com>
87099
87100         * elf/Makefile: Add rules to build and run unload8 test.
87101         * elf/unload8.c: New file.
87102         * elf/unload8mod1.c: New file.
87103         * elf/unload8mod1x.c: New file.
87104         * elf/unload8mod2.c: New file.
87105         * elf/unload8mod3.c: New file.
87106
87107         * elf/dl-close.c (_dl_close_worker): Reset private search list if
87108         it wasn't used.
87109
87110 2011-08-23  David S. Miller  <davem@davemloft.net>
87111
87112         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
87113         subtract stack bias.
87114         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
87115         %sp not %fp in calculations.
87116         (_JMPBUF_UNWINDS_ADJ): Likewise.
87117
87118         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
87119         (aio_suspend): Call it to force an exception region around the
87120         AIO_MISC_WAIT() invocation.
87121
87122 2011-08-23  Andreas Schwab  <schwab@redhat.com>
87123
87124         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
87125         backslash.
87126
87127 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
87128
87129         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
87130         protection macro.
87131         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
87132         and <dl-machine.h>.
87133         (Elf64_FuncDesc): Remove.
87134
87135 2011-08-22  David S. Miller  <davem@davemloft.net>
87136
87137         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
87138         sigaltstack check, add missing cfi directives.
87139         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
87140         missing cfi directives, and sigaltstack handling.
87141
87142 2011-08-16  Andreas Schwab  <schwab@redhat.com>
87143
87144         [BZ #11724]
87145         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
87146         object is seen twice.
87147         * elf/dl-fini.c (_dl_sort_fini): Likewise.
87148
87149         * elf/Makefile (distribute): Add tst-initorder2.c.
87150         (tests): Add tst-initorder2.
87151         (modules-names): Add tst-initorder2a tst-initorder2b
87152         tst-initorder2c tst-initorder2d.  Add rules to build them.
87153         ($(objpfx)tst-initorder2.out): New rule.
87154         * elf/tst-initorder2.c: New file.
87155         * elf/tst-initorder2.exp: New file.
87156
87157 2011-08-22  Andreas Schwab  <schwab@redhat.com>
87158
87159         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
87160
87161         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
87162         dependencies back to end of function.
87163
87164         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
87165         $(elfobjdir)/ld.so.
87166
87167 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
87168
87169         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
87170         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
87171         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
87172         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
87173         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
87174         of __vdso_gettimeofday.
87175         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
87176         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
87177         attribute_hidden.
87178         (_libc_vdso_platform_setup): Remove initialization of
87179         __vdso_gettimeofday and __vdso_time.
87180
87181 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
87182
87183         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
87184         and fgetc_unlocked.
87185         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
87186         getc_unlocked.
87187
87188         * elf/dl-open.c (add_to_global): Report additions to the global scope
87189         for LD_DEBUG=scopes.
87190         (dl_open_worker): Also print scope of newly loaded dependencies.
87191         (_dl_show_scope): Indicate if there is no scope.
87192
87193         [BZ #13114]
87194         * stdio-common/Makefile (tests): Add bug24.
87195         * stdio-common/bug24.c: New file.
87196
87197 2011-08-19  Andreas Jaeger  <aj@suse.de>
87198
87199         [BZ #13114]
87200         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
87201         non-existant file when using close-on-exec mode.
87202
87203 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
87204
87205         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
87206         the very first instruction.
87207
87208         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
87209         the CFI state in the end.
87210         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
87211         inclusion of dl-trampoline.h.
87212         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
87213
87214 2011-08-19  Andreas Schwab  <schwab@redhat.com>
87215
87216         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
87217         expectations for long double.
87218
87219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
87220         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
87221
87222 2011-08-14  David S. Miller  <davem@davemloft.net>
87223
87224         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
87225         artificual limit depends upon the system page size.
87226
87227 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
87228
87229         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
87230         * resolv/Makefile: Define CFLAGS-libresolv.
87231
87232 2011-08-17  Andreas Schwab  <schwab@redhat.com>
87233
87234         * nss/makedb.c (compute_tables): Make variables used in nested
87235         function static.
87236
87237 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
87238
87239         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
87240         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
87241         if buffer was too small.
87242
87243         * elf/pldd.c (main): Attach to all threads in the process.
87244         Rewrite /proc handling to use *at functions.
87245
87246 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
87247
87248         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
87249         specifies first scope to show.
87250         (dl_open_worker): Update callers.  Move printing scope of new
87251         object to before the relocation.
87252         * elf/rtld.c (dl_main): Update _dl_show_scope call.
87253         * sysdeps/generic/ldsodefs.h: Update declaration.
87254
87255         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
87256         string for the scope number.
87257
87258 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
87259
87260         * nscd/servicescache.c (cache_addserv): Make sure written is always
87261         initialized.
87262
87263 2011-08-14  Roland McGrath  <roland@hack.frob.com>
87264
87265         * sysdeps/i386/i486/bits/atomic.h
87266         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
87267         statement expression, so as to suppress "set but not used" warning.
87268         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
87269
87270         * string/strncat.c (STRNCAT): Use prototype definition.
87271
87272         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
87273         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
87274         -Iprograms here.
87275         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
87276         (localedef-modules): Add localedef.
87277         (locale-modules): Add locale.
87278
87279         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
87280         * elf/rtld.c (dl_main): Invert order of assignment in last change,
87281         to avoid a warning.
87282
87283 2011-08-14  David S. Miller  <davem@davemloft.net>
87284
87285         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
87286         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
87287
87288 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
87289
87290         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
87291         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
87292         * elf/rtld.c (dl_main): Set l_name of vDSO.
87293         Call _dl_show_scope when DL_DEBUG_SCOPES.
87294         (process_dl_debug): Recognize scopes flag and also set it for all.
87295         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
87296         Declare _dl_show_scope.
87297
87298         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
87299         (do_dlopen): Pass caller_dlopen to dl_open.
87300         (__libc_dlopen_mode): Initialize caller_dlopen.
87301
87302         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
87303         of libc.  Make tolower call locale-independent.  Optimize a bit by
87304         using isdigit instead of isalnum.
87305         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
87306
87307 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
87308
87309         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
87310         was a dependency or dynamically loaded.
87311
87312 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
87313
87314         * intl/l10nflist.c: Allow architecture-specific pop function.
87315         * sysdeps/x86_64/l10nflist.c: New file.
87316
87317         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
87318         classification.
87319
87320 2011-08-10  Andreas Schwab  <schwab@redhat.com>
87321
87322         * include/dirent.h: Add libc_hidden_proto for scandirat and
87323         scandirat64.  Don't declare __scandirat64.
87324         * dirent/scandirat.c: Add libc_hidden_def.
87325         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
87326         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
87327
87328 2011-08-10  David S. Miller  <davem@davemloft.net>
87329
87330         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
87331         enum.
87332         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87333         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87334         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87335
87336 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
87337
87338         * Versions.def [libc]: Add GLIBC_2.15.
87339         * dirent/Makefile (routines): Add scandirat and scandirat64.
87340         * dirent/Versions [libc]: Export scandirat and scandirat64 for
87341         GLIBC_2.15.
87342         * dirent/dirent.h: Declare scandirat and scandirat64.
87343         * dirent/scandirat.c: New file.
87344         * dirent/scandirat64.c: New file.
87345         * sysdeps/wordsize-64/scandirat.c: New file.
87346         * sysdeps/wordsize-64/scandirat64.c: New file.
87347         * dirent/opendir.c: Define opendirat.
87348         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
87349         using scandirat.
87350         * dirent/scandir64.c: Adjust for scandir.c change.
87351         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
87352         __scandirat64, and __scandir_cancel_handler.
87353         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
87354         additional parameter and use openat instead of open (outside of ld.so).
87355         Add new __opendir as wrapper around __opendirat.
87356         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
87357         here without requiring old scandirat implementation.
87358
87359 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
87360
87361         * dirent/scandir.c (cancel_handler): Renamed to
87362         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
87363         defined.  Adjust users.
87364         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
87365         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
87366
87367 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
87368
87369         * string/test-string.h (IMPL): Use __STRING to expand name and then
87370         stringify it.
87371
87372         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
87373         of cleanups.
87374
87375 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87376
87377         * string/Makefile: Update.
87378         (strop-tests): Append strncat.
87379         * string/test-wcscmp.c: New file.
87380         New comprehensive test for wcscmp.
87381         * string/test-strcmp.c: Update.
87382         (WIDE): New define.
87383
87384 2011-07-22  Andreas Schwab  <schwab@redhat.com>
87385
87386         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
87387         line.
87388
87389 2011-07-26  Andreas Schwab  <schwab@redhat.com>
87390
87391         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
87392         encoding to ACE if AI_IDN.
87393
87394 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
87395
87396         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
87397         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
87398
87399 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87400
87401         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
87402         Fix overflow bug in strncat.
87403         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
87404
87405         * string/test-strncat.c: Update.
87406         Add new tests for checking overflow bugs.
87407
87408 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87409
87410         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87411         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
87412         * sysdeps/i386/i686/multiarch/strcat.S: New file.
87413         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
87414         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
87415         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
87416         * sysdeps/i386/i686/multiarch/strncat.S: New file.
87417         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
87418         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
87419
87420         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
87421         (USE_AS_STRCAT): Define.
87422         Add strcat and strncat support.
87423         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
87424
87425 2011-07-25  Andreas Schwab  <schwab@redhat.com>
87426
87427         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
87428         __n bigger than INT_MAX+1.
87429         (__strncmp_g): Likewise.
87430
87431 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
87432
87433         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
87434         * libio/stido.h: Likewise.
87435
87436         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
87437         (AF_NFC): Define.
87438         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
87439         (AF_NFC): Define.
87440
87441         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
87442         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
87443         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
87444         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
87445         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
87446
87447         [BZ #13021]
87448         * scripts/test-installation.pl: Don't expect libnss_test1 to be
87449         installed.
87450
87451         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
87452         typo.
87453         (_dl_x86_64_save_sse): Likewise.
87454
87455 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
87456
87457         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
87458         OSXSAVE.
87459         (_dl_x86_64_save_sse): Likewise.
87460
87461         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
87462
87463         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
87464
87465 2011-07-21  Andreas Schwab  <schwab@redhat.com>
87466
87467         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
87468         change.
87469         (_dl_x86_64_save_sse): Use correct AVX check.
87470
87471 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
87472
87473         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
87474         bug in strncpy/strncat.
87475         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
87476
87477 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
87478
87479         * string/tester.c (test_strcat): Add tests for different alignments
87480         of source and destination.
87481         (test_strncat): Likewise.
87482
87483 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87484
87485         [BZ #12852]
87486         * posix/glob.c (glob): Check passed in values before using them in
87487         expressions to avoid some overflows.
87488         (glob_in_dir): Likewise.
87489
87490         [BZ #13007]
87491         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
87492         check for AVX enablement so that we don't crash with old kernels and
87493         new hardware.
87494         * elf/tst-audit4.c: Add same checks here.
87495         * elf/tst-audit6.c: Likewise.
87496
87497         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
87498
87499 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
87500
87501         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
87502
87503 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
87504
87505         * po/cs.po: Update from translation team.
87506         * po/bg.po: Likewise.
87507
87508 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
87509
87510         * misc/sys/cdefs.h: Add support for const attribute.
87511         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
87512         to gnu_dev_{major,minor,makedev} functions.
87513
87514 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
87515
87516         * intl/dcigettext.c (get_output_charset): Add missing bracket.
87517
87518 2011-07-20  Andreas Schwab  <schwab@redhat.com>
87519
87520         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
87521         strlen results.
87522
87523 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
87524
87525         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
87526         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
87527         register in order to avoid conflicts with the soft frame pointer
87528         being held in r11 when necessary.
87529         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
87530         (INTERNAL_VSYSCALL_NCS): Likewise.
87531
87532 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
87533
87534         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
87535         * elf/dl-fini.c (_dl_fini): Adjust caller.
87536         * elf/dl-close.c (_dl_close_worker): Likewise.
87537         * sysdeps/generic/ldsodefs.h: Adjust declaration.
87538
87539 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87540
87541         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
87542         "aux_cache->nlibs < 0".
87543
87544         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
87545         in the reload-count case.
87546
87547 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
87548
87549         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87550         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
87551         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
87552         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
87553         * sysdeps/x86_64/multiarch/strcat.S: New file.
87554         * sysdeps/x86_64/multiarch/strncat.S: New file.
87555         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
87556         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
87557         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
87558         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
87559         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
87560         (USE_AS_STRCAT): Define.
87561         Add strcat and strncat support.
87562         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
87563         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
87564         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
87565         * string/strncat.c: Update.
87566         (USE_AS_STRNCAT): Define.
87567         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87568         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
87569         and i7.
87570         * sysdeps/x86_64/multiarch/init-arch.h
87571         (bit_Prefer_PMINUB_for_stringop): New.
87572         (index_Prefer_PMINUB_for_stringop): Likewise.
87573         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
87574         bit_Prefer_PMINUB_for_stringop.
87575
87576 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87577
87578         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
87579         buffer64.
87580         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
87581         of casting of buffer.
87582         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
87583         buffer32 and buffer64.
87584         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
87585         writes instead of casting of buffer.
87586         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
87587         buffer32.
87588         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
87589         casting of buffer.
87590
87591 2011-07-19  Andreas Schwab  <schwab@redhat.com>
87592
87593         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
87594
87595 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
87596
87597         * nscd/nscd.c (termination_handler): Don't do anything for a database
87598         if it has not yet been initialized.
87599
87600 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87601
87602         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87603
87604 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
87605
87606         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
87607
87608 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
87609
87610         * po/nl.po: Update from translation team.
87611         * po/sv.po: Likewise.
87612
87613 2011-07-16  Roland McGrath  <roland@hack.frob.com>
87614
87615         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
87616         now disallowed by GCC.
87617
87618         * configure.in (use-default-link): Default to yes if a test -shared
87619         link meets our qualifications.
87620         * configure: Regenerated.
87621
87622         * config.make.in (output-format): New variable.
87623         * configure.in: Check for ld --print-output-format support.
87624         * configure: Regenerated.
87625         * Makerules ($(common-objpfx)format.lds)
87626         [$(output-format) != unknown]: Just use $(output-format),
87627         instead of the linker-script munging.
87628
87629 2011-07-14  Roland McGrath  <roland@hack.frob.com>
87630
87631         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
87632         of $(common-objpfx)shlib.lds.
87633         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
87634
87635         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
87636         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
87637
87638         * configure.in (-z relro check): Adjust test code to add a large
87639         writable data section after it.
87640         * configure: Regenerated.
87641
87642 2011-07-11  Roland McGrath  <roland@hack.frob.com>
87643
87644         * configure.in (-z relro check): Fix test code to make the variable
87645         truly const.
87646         * configure: Regenerated.
87647
87648 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
87649
87650         * nscd/nscd.h (struct traced_file): Define.
87651         (struct database_dyn): Remove inotify_descr, reset_res, and filename
87652         elements.  Add traced_files.
87653         (inotify_fd): Declare.
87654         (register_traced_file): Declare.
87655         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
87656         (inotify_fd): Export.
87657         (resolv_conf_descr): Remove.
87658         (nscd_init): Move inotify descriptor creation to main.
87659         Don't register files for notification here.
87660         (register_traced_file): New function.
87661         (invalidate_cache): Don't use reset_res to determine whether to call
87662         res_init, go through the list of registered files.
87663         (main_loop_poll): The inotify descriptors are now stored in the
87664         structures for the traced files.
87665         (main_loop_epoll): Likewise.
87666         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
87667         to __nss_disable_nscd.
87668         * nscd/cache.c (prune_cache): There is no single inotify descriptor
87669         for a database anymore.  Check the records for all the registered
87670         files instead.
87671         * nss/Makefile (libnss_files-routines): Add files-init.
87672         (libnss_db-routines): Add db-init.
87673         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
87674         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
87675         * nss/nss_db/db-init.c: New file.
87676         * nss/nss_files/files-init.c: New file.
87677         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
87678         __nss_lookup_function.
87679         (__nss_lookup_function): Call nss_load_library.
87680         (nss_load_all_libraries): New function.
87681         (__nss_disable_nscd): Take parameter with callback function for files
87682         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
87683         used for the cached services.
87684         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
87685         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
87686         options for features to all the files in nscd.
87687
87688         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
87689
87690 2011-07-10  Roland McGrath  <roland@hack.frob.com>
87691
87692         * csu/elf-init.c (__libc_csu_init): Comment typo.
87693
87694 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
87695
87696         * po/pl.po: Update from translation team.
87697         * po/ja.po: Likewise.
87698         * po/ru.po: Likewise.
87699         * po/ko.po: Likewise.
87700         * po/fr.po: Likewise.
87701
87702 2011-07-09  Roland McGrath  <roland@hack.frob.com>
87703
87704         * configure.in (.ctors/.dtors header and trailer check):
87705         Use an empirical test on a built program.
87706         * configure: Regenerated.
87707
87708         * configure.in (-z relro check): Use an empirical test on a built DSO.
87709         Detect, but do not require, on ia64.
87710         * configure: Regenerated.
87711
87712         * configure.in (READELF): Find it with AC_CHECK_TOOL.
87713         Update tests that use readelf to use $READELF instead.
87714         * configure: Regenerated.
87715
87716 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
87717
87718         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
87719         if the result is not used.
87720
87721 2011-07-05  Andreas Jaeger  <aj@suse.de>
87722
87723         [BZ #9696]
87724         * stdlib/tst-strtod.c: Add testcase.
87725
87726 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
87727
87728         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
87729         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
87730         The latter has a higher limit.  Take additional parameter to pass to
87731         the new function.
87732         (__pathconf): Pass file to __statfs_link_max.
87733         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
87734         __statfs_link_max.
87735         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
87736         __statfs_link_max.
87737
87738         [BZ #12868]
87739         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
87740         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
87741         Handle Lustre.
87742         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
87743         (__statfs_filesize_max): Likewise.
87744         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
87745
87746 2011-07-05  Andreas Jaeger  <aj@suse.de>
87747
87748         * resolv/res_comp.c (dn_skipname): Remove unused variable.
87749
87750 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
87751
87752         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
87753         `status' variable.
87754         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
87755         Likewise.
87756
87757 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
87758
87759         * Makefile (strop-tests): Add strncat.
87760         * string/test-strncat.c: New file.
87761
87762 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
87763
87764         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
87765
87766 2011-06-21  Andreas Jaeger  <aj@suse.de>
87767
87768         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
87769         Copy rule from iconvdata/Makefile.
87770
87771 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87772
87773         [BZ #12922]
87774         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
87775         but no long options are defined, just return 'W'.
87776
87777 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
87778
87779         [BZ #9696]
87780         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
87781
87782 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
87783
87784         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
87785         netgroups to read.
87786         (innetgr): Likewise.
87787
87788 2011-07-05  Roland McGrath  <roland@hack.frob.com>
87789
87790         * config.make.in (install_root): Default to $(DESTDIR).
87791
87792 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
87793
87794         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
87795
87796 2011-07-02  Roland McGrath  <roland@hack.frob.com>
87797
87798         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
87799
87800         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
87801         containing directory rather than embedding absolute directory names.
87802
87803         * scripts/check-local-headers.sh: Rewritten using awk.
87804         Match by word, not by line.  Print error messages for matches.
87805         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
87806
87807         * Makerules [shlib-lds-flags empty]:
87808         ($(common-objpfx)libc_pic.opts): New target.
87809         ($(common-objpfx)libc_pic.os.clean): New target.
87810         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
87811
87812         * config.make.in (OBJCOPY): New variable.
87813         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
87814         * configure: Regenerated.
87815
87816         * config.make.in (use-default-link): New variable.
87817         * configure.in (use_default_link): Grok --with-default-link to set it.
87818         * configure: Regenerated.
87819         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
87820         (shlib-lds, shlib-lds-flags): Define to empty.
87821
87822         * Makerules (shlib-lds): New variable.
87823         (shlib-lds-flags): New variable.
87824         (build-shlib, build-moduile, build-module-asneeded): Use it.
87825         ($(common-objpfx)libc.so): Use $(shlib-lds).
87826         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
87827         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
87828
87829         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
87830         DT_FLAGS/DT_FLAGS_1 with zero flags.
87831
87832         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
87833         linker script munging.
87834
87835 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
87836
87837         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
87838         as 128-bit value.
87839         * crypt/sha512.c (sha512_process_block): Perform total addition using
87840         128-bit if possible.
87841         (__sha512_finish_ctx): Likewise.
87842         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
87843         as 64-bit value.
87844         * crypt/sha256.c (SWAP64): Define.
87845         (sha256_process_block): Perform total addition using 64-bit if
87846         possible.
87847         (__sha256_finish_ctx): Likewise.
87848
87849 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
87850
87851         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
87852         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87853         * nscd/hstcache.c (cache_addhst): Likewise.
87854         * nscd/grpcache.c (cache_addgr): Likewise.
87855         * nscd/aicache.c (addhstaiX): Likewise.
87856         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
87857
87858 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
87859
87860         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
87861         * nscd/initgrcache.c (addinitgroupsX): Likewise.
87862         * nscd/hstcache.c (cache_addhst): Likewise.
87863         * nscd/grpcache.c (cache_addgr): Likewise.
87864         * nscd/aicache.c (addhstaiX): Likewise.
87865
87866 2011-07-01  Andreas Schwab  <schwab@redhat.com>
87867
87868         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
87869         domain only when needed.
87870
87871 2011-06-30  Andreas Schwab  <schwab@redhat.com>
87872
87873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
87874         is always restored.
87875
87876 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
87877
87878         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
87879         are re-adding the entry.
87880         * nscd/servicescache.c (cache_addserv): Likewise.
87881
87882 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
87883
87884         * sysdeps/generic/dl-irel.h: fix protection against multiple
87885         inclusions.
87886         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
87887
87888 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
87889
87890         [BZ #12935]
87891         * malloc/memusage.sh: Fix quoting in message.
87892         * debug/xtrace.sh: Likewise.
87893
87894         * configure.in: Remove support for --experimental-malloc option, make
87895         it the default.
87896         * config.make.in: Likewise.
87897         * malloc/Makefile: Likewise.
87898
87899 2011-06-27  Andreas Schwab  <schwab@redhat.com>
87900
87901         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
87902         two-byte characters.
87903
87904 2011-06-27  Roland McGrath  <roland@hack.frob.com>
87905
87906         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
87907         AC_CACHE_CHECK invocation.
87908         * configure: Regenerated.
87909
87910         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
87911
87912 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
87913
87914         [BZ #12350]
87915         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
87916         bit from old_res_options.
87917
87918         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
87919
87920         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
87921         value type for setfct.
87922
87923 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
87924
87925         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
87926         __gettimeofday instead of gettimeofday.
87927
87928 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
87929
87930         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
87931
87932 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
87933
87934         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
87935
87936         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
87937         info.
87938
87939 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87940
87941         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
87942         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87943         strcpy-sse2-unaligned strncpy-sse2-unaligned
87944         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
87945         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
87946         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
87947         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
87948         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
87949         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
87950         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
87951         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
87952         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
87953         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
87954         (STRCPY): Support SSE2 and SSSE3 versions.
87955
87956 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
87957
87958         [BZ #12874]
87959         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
87960         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
87961         kernels which artificially limit size of requests.
87962
87963 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
87964
87965         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
87966         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
87967         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
87968         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
87969         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
87970         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
87971         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
87972         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
87973         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
87974         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
87975         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
87976         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
87977         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
87978         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
87979         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
87980         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
87981         Enable unaligned load optimization for Intel Core i3, i5 and i7
87982         processors.
87983         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
87984         Define.
87985         (index_Fast_Unaligned_Load): Define.
87986         (HAS_FAST_UNALIGNED_LOAD): Define.
87987
87988 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
87989
87990         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
87991
87992 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
87993
87994         [BZ #12907]
87995         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
87996         until it is clear that the information is realy needed.
87997         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
87998
87999 2011-06-22  Andreas Schwab  <schwab@redhat.com>
88000
88001         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
88002
88003 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
88004
88005         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
88006         /sys/devices/system/cpu/online if it is usable.
88007
88008         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
88009         reading the information from the /proc filesystem to once a second.
88010
88011 2011-06-21  Andreas Jaeger  <aj@suse.de>
88012
88013         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
88014         NULL after inclusion of kernel headers.
88015
88016 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
88017
88018         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
88019         calls to internal_setent.
88020
88021         [BZ #12885]
88022         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
88023         addresses using gethostbyname4_r ignore IPv4 addresses.
88024
88025         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
88026         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
88027
88028         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
88029
88030 2011-06-20  David S. Miller  <davem@davemloft.net>
88031
88032         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
88033         inclusions.
88034         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
88035
88036         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
88037         (elf_irel): Use it.
88038         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
88039         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
88040         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
88041         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
88042         * sysdeps/x86_64/dl-irel.h: Likewise.
88043
88044         * elf/dl-runtime.c: Use elf_ifunc_invoke.
88045         * elf/dl-sym.c: Likewise.
88046
88047 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
88048
88049         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
88050         need to dereference resplen2.
88051
88052 2011-06-14  Andreas Schwab  <schwab@redhat.com>
88053
88054         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
88055
88056 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
88057
88058         * Makeconfig: Define vardbdir and inst_vardbdir.
88059         * nss/Makefile: Add rules to install db-Makefile.
88060
88061         * nss/nss_db/db-XXX.c: Cleanup.
88062
88063         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
88064         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
88065         GLIBC_PRIVATE.
88066         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
88067         * nss/makedb.c: Implement -g option to specify that value strings
88068         are generated and should not be added to table iterated over for
88069         get*ent calls.
88070         * nss/nss_db/db-initgroups.c: New file.
88071
88072         * nss/getent.c: Add support for initgroups lookups through getgrouplist
88073         interface.
88074
88075         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
88076         (internal_getgrouplist): Adjust to name change.
88077         Update use_initgroups_entry if this is not the first call.
88078         * nss/databases.def: Add initgroups entry.
88079
88080         * nss/makedb.c (compute_tables): Check result of multiple hash table
88081         sizes to minimize maximum chain length.
88082
88083 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
88084
88085         * Versions.def: Add entry for libnss_db.
88086         * shlib-versions: Likewise.
88087         * nss/Makefile: Add rules to build libnss_db.
88088         * nss/Versions: Add libnss_db information.  Organize libnss_files
88089         entries better.
88090         * nss/db-Makefile: Add gshadow support.  Change rules for the new
88091         makedb progra.  Some minor improvements to generate smaller files.
88092         * nss/nss_db/nss_db.h: Move NSS database header data structures to
88093         here from...
88094         * nss/makedb.c: ...here.
88095         Improve database format to be smaller and require less memory at
88096         runtime.
88097         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
88098         db anymore.
88099         * nss/nss_db/db-netgrp.c: Likewise.
88100         * nss/nss_db/db-open.c: Likewise.
88101         * nss/nss_files/flies-XXX.x: Adjust comments.
88102         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
88103         * nss/nss_files/files-grp.c: Likewise.
88104         * nss/nss_files/files-hosts.c: Likewise.
88105         * nss/nss_files/files-network.c: Likewise.
88106         * nss/nss_files/files-proto.c: Likewise.
88107         * nss/nss_files/files-pwd.c: Likewise.
88108         * nss/nss_files/files-rpc.c: Likewise.
88109         * nss/nss_files/files-service.c: Likewise.
88110         * nss/nss_files/files-sgrp.c: Likewise.
88111         * nss/nss_files/files-spwd.c: Likewise.
88112         * nss/nss_db/db-alias.c: Removed.
88113         * nss/nss_db/dummy-db.h: Removed.
88114
88115 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
88116
88117         * nss/makedb.c: Rewritten to not use database library.
88118         * nss/Makefile: Update to build new makedb program.
88119
88120 2011-06-14  Andreas Jaeger  <aj@suse.de>
88121
88122         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
88123         memset declaration.
88124
88125 2011-06-10  Andreas Schwab  <schwab@redhat.com>
88126
88127         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
88128         tmpbuf.
88129
88130 2011-06-10  Roland McGrath  <roland@hack.frob.com>
88131
88132         * Makerules (shlib.lds): Fail if the linker script comes out empty.
88133         * elf/Makefile ($(objpfx)ld.so): Likewise.
88134
88135         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
88136         Don't list ld.so twice in dependencies.
88137
88138         * posix/bug-regex31.c: Include <stdlib.h>.
88139
88140         * nscd/hstcache.c (cache_addhst): Remove unused variable.
88141
88142         * nis/nss_compat/compat-spwd.c
88143         (getspent_next_nss_netgr): Remove unused variable.
88144         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
88145
88146         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
88147         nonmembers" output to use the right array.
88148
88149         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
88150
88151         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
88152
88153         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
88154         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
88155         * catgets/gencat.c (read_input_file): Likewise.
88156         * locale/programs/locarchive.c (enlarge_archive): Likewise.
88157
88158         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
88159         variable definition inside #if's controlling its use.
88160
88161         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
88162
88163         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
88164
88165         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
88166
88167         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
88168         unreachable code.
88169
88170         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
88171
88172         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
88173         * configure: Regenerated.
88174
88175         * Makerules: Revert last change.
88176         * elf/Makefile: Likewise.
88177
88178 2011-06-09  Roland McGrath  <roland@hack.frob.com>
88179
88180         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
88181         * elf/Makefile ($(objpfx)librtld.os): Likewise.
88182         (reloc-link): Likewise.
88183
88184 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
88185
88186         * elf/Makefile: Add rules to build pldd.
88187         * elf/pldd.c: New file.
88188         * elf/pldd-xx.c: New file.
88189
88190 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
88191
88192         * version.h: Update for 2.15 development version.
88193
88194 2011-06-07  David S. Miller  <davem@davemloft.net>
88195
88196         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
88197         ifuncs.
88198         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
88199         elf_machine_lazy_rel): Likewise.
88200         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
88201         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
88202         elf_machine_lazy_rel): Likewise.
88203         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
88204         dl_hwcap via passed in argument.
88205         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
88206         Likewise.
88207
88208 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88209
88210         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
88211
88212 2011-06-06  Roland McGrath  <roland@hack.frob.com>
88213
88214         [BZ #12849]
88215         * manual/fdl-1.1.texi: New file, verbatim from:
88216         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
88217         * manual/lgpl-2.1.texi: New file, verbatim from:
88218         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
88219         * manual/Makefile (licenses): New variable, list those new file names.
88220         (texis): Use it.
88221         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
88222
88223         * manual/fdl.texi: File removed.
88224         * manual/lesser.texi: File removed.
88225         * manual/libc.texinfo (Copying, Documentation License):
88226         Use new @include file names, put @appendix directive before @include.
88227
88228 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
88229
88230         [BZ #12841]
88231         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
88232         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
88233         (mq_open): Add __NTH.
88234
88235 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
88236
88237         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
88238         Assume Intel Core i3/i5/i7 processor if AVX is available.
88239
88240 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
88241
88242         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
88243         typo.
88244
88245 2011-05-31  Andreas Schwab  <schwab@redhat.com>
88246
88247         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
88248         memory.  Use alloca_account.  Fix memory leak when retrying.
88249
88250 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
88251
88252         * version.h (RELEASE): Bump for 2.14 release.
88253         * include/features.h (__GLIBC_MINOR__): Bump to 14.
88254
88255         * config.make.in (RANLIB): Remove entry.
88256
88257 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
88258
88259         * po/Makefile (po-sed-cmd): Add ksh to extensions.
88260         (libc.pot): Work around missing support for .ksh extension in xgettext.
88261
88262         [BZ #12684]
88263         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
88264         if both request failed.
88265         (send_dg): In case of server errors clear resplen or *resplen2.
88266
88267         [BZ #12454]
88268         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
88269         when there are multiple maps.
88270         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
88271         (_dl_fini): Remove test here.
88272
88273         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
88274
88275 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
88276
88277         [BZ #12350]
88278         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
88279         bit from old_res_options.
88280         (gaih_inet): Likewise.
88281
88282         [BZ #11099]
88283         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
88284         as signed.
88285
88286         * resolv/res_init.c (res_setoptions): Make the code more compact.
88287
88288         [BZ #11558]
88289         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
88290         set RES_USEVC.
88291
88292         [BZ #11634]
88293         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
88294
88295         * malloc/malloc.h: Mark malloc hook variables as deprecated.
88296
88297         [BZ #11781]
88298         * malloc/malloc.h: Declare malloc hook variables as volatile.
88299
88300         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
88301         in last patch.
88302
88303         [BZ #11799]
88304         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
88305         raise in the comment.
88306         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
88307         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
88308         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
88309
88310 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
88311
88312         [BZ #12811]
88313         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
88314         grow the buffers more if it already has to be sufficient.
88315         (build_wcs_upper_buffer): Likewise.
88316         * posix/regexec.c (check_matching): Likewise.
88317         (clean_state_log_if_needed): Likewise.
88318         (extend_buffers): Don't enlarge buffers beyond size of the input
88319         buffer.
88320         Patches mostly by Emil Wojak <emil@wojak.eu>.
88321         * posix/bug-regex32.c: New file.
88322         * posix/Makefile (tests): Add bug-regex32.
88323
88324         * locale/findlocale.c (_nl_find_locale): Return right away if
88325         _nl_explode_name failed.
88326         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
88327
88328         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
88329
88330         * debug/xtrace.sh: Unify messages.
88331         * malloc/memusage.sh: Likewise.
88332
88333         [BZ #12813]
88334         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
88335         time symbol from vDSO.  Substitute with vsyscall if not available.
88336         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
88337         __vdso_time.
88338
88339         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
88340         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
88341         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
88342         Add sendmmsg and internal_sendmmsg.
88343         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
88344         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
88345         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
88346
88347         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
88348         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
88349         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
88350
88351 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
88352
88353         [BZ #12813]
88354         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
88355         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
88356         available.
88357         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
88358         __vdso_getcpu.
88359
88360         [BZ #12814]
88361         * iconvdata/Makefile (tests): Add bug-iconv9.
88362         * iconvdata/bug-iconv9.c: New file.
88363
88364 2011-05-27  Andreas Schwab  <schwab@redhat.com>
88365
88366         [BZ #12814]
88367         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
88368
88369 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
88370
88371         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88372         (struct user_regs_struct): Change intcs field back to cs.
88373
88374 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
88375
88376         * po/ja.po: Update from translation team.
88377
88378 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
88379
88380         [BZ #12795]
88381         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
88382         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
88383
88384 2011-05-20  Andreas Schwab  <schwab@redhat.com>
88385
88386         * stdlib/longlong.h: Update from GCC.
88387
88388 2011-05-23  Andreas Schwab  <schwab@redhat.com>
88389
88390         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
88391         parameter name.
88392         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
88393         Add parameter name.
88394         (__sysconf): Pass it down.
88395
88396 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
88397
88398         [BZ #12671]
88399         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
88400         some situations.
88401         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
88402         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
88403         add in in __libc_use_alloca calls.  Adjust callers.
88404         (glob): Use malloc in some situations.
88405
88406         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
88407         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
88408         pltexit.
88409
88410 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
88411
88412         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
88413         and CLOCK_BOOTTIME_ALARM.
88414
88415         [BZ #12782]
88416         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
88417         is returned.
88418
88419         * string/_strerror.c (__strerror_r): Print negative errors as signed
88420         numbers.
88421
88422         [BZ #12777]
88423         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
88424         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
88425         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
88426
88427         * configure.in: Fix typo in redirection and correct removal of test
88428         files in two cases.
88429
88430         [BZ #12788]
88431         * locale/setlocale.c (new_composite_name): Fix test to check for
88432         identical name of all categories.
88433
88434         [BZ #12792]
88435         * libio/filedoalloc.c (local_isatty): New function.
88436         (_IO_file_doallocate): Use local_isatty.
88437         * stdio-common/perror.c (perror): In case a new stream is used
88438         forward the stream error.
88439         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
88440         error flag.
88441
88442 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
88443
88444         [BZ #11884]
88445         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
88446         alloca.
88447         * include/alloca.h (extend_alloca_account): Define.
88448
88449         [BZ #11857]
88450         * posix/regex.h: Fix comments with documentation of user-accessible
88451         fields after compilation and describe correct free'ing of pattern
88452         after re_compile_pattern.
88453         Patch by Reuben Thomas <rrt@sc3d.org>.
88454
88455 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
88456
88457         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
88458         and -mno-altivec to prevent the compiler from using Altivec and/or
88459         VSX instructions when the corresponding registers are not available.
88460
88461 2011-05-19  Andreas Schwab  <schwab@redhat.com>
88462
88463         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
88464
88465 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
88466
88467         * libio/freopen.c (freopen): Use __dup2, not dup2.
88468         * libio/freopen64.c (freopen64): Likewise.
88469
88470 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
88471
88472         [BZ #12775]
88473         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
88474         * math/Makefile (tests): Add test-powl.
88475         (CFLAGS-test-powl.c): Define.
88476         * math/test-powl.c: New file.
88477
88478 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
88479
88480         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
88481
88482 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
88483
88484         [BZ #11837]
88485         * iconvdata/gb18030.c: Update to GB18020-2005.
88486
88487 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
88488
88489         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
88490         RE_SYNTAX_POSIX_AWK): Update to match recent development.
88491         Patch by Aharon Robbins <arnold@skeeve.com>.
88492
88493         [BZ #11892]
88494         * stdlib/putenv.c (putenv): Don't always create copy of the variable
88495         on the stack.
88496
88497         [BZ #11895]
88498         * misc/pselect.c (__pselect): Handle timeout value errors hidden
88499         through underflows.
88500
88501         [BZ #12766]
88502         * misc/error.c (error_at_line): Ensure file_name and old_file_name
88503         point to strings before performing equality test for error_one_per_line
88504         mode.
88505
88506         [BZ #11697]
88507         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
88508
88509         [BZ #11820]
88510         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
88511         (struct user_fpregs_struct): Avoid __uint*_t types.
88512
88513         [BZ #6420]
88514         * malloc/mtrace.c (tr_where): Add additional parameter to point to
88515         symbol info.  Use it instead of calling _dl_addr locally.
88516         (lock_and_info): New function.
88517         (tr_freehook): Call lock_and_info and pass symbol info as additional
88518         parameter to tr_where.
88519         (tr_mallochook): Likewise.
88520         (tr_reallochook): Likewise.
88521         (tr_memalignhook): Likewise.
88522
88523         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
88524         used and couldn't be at all thread-safe.
88525
88526 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
88527
88528         * libio/freopen.c (freopen): Don't close old file descriptor
88529         before the new one is opened.  Instead dup the new file descriptor
88530         to the old one after the new stream is created.
88531         * libio/freopen64.c (freopen64): Likewise.
88532         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
88533         * libio/fileops.c (_IO_new_file_close_it): Handle new
88534         _IO_FLAGS2_NOCLOSE flag.
88535         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
88536         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
88537         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
88538         _IO_FLAGS2_NOCLOSE flag.
88539         * include/unistd.h: Add hidden_proto for dup3.
88540         Define __have_dup3.
88541         * io/dup3.c: Define hidden symbol.
88542         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
88543
88544         [BZ #7101]
88545         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
88546         when an incomplete long option is used.
88547         * posix/tst-getopt_long1.c: New file.
88548         * posix/Makefile (tests): Add tst-getopt_long1.
88549
88550         [BZ #10138]
88551         * scripts/config.guess: Update from autoconf-2.68.
88552         * scripts/config.sub: Likewise.
88553
88554         [BZ #10157]
88555         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
88556         tests into ...
88557         (has_cpuclock): ...this.  New function.
88558         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
88559         macro here based on has_cpuclock code.
88560
88561         [BZ #10149]
88562         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88563         First byte (not low byte) is now always NUL.
88564         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
88565
88566         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
88567         Use non-cancelable interfaces.
88568
88569         [BZ #9809]
88570         * locale/iso-639.def: Add entry for Sorani.
88571
88572         [BZ #11901]
88573         * include/stdlib.h: Move include protection to the right place.
88574         Define abort_msg_s.  Declare __abort_msg with it.
88575         * stdlib/abort.c (__abort_msg): Adjust type.
88576         * assert/assert.c (__assert_fail_base): New function.  Majority
88577         of code from __assert_fail.  Allocate memory for __abort_msg with
88578         mmap.
88579         (__assert_fail): Now call __assert_fail_base.
88580         * assert/assert-perr.c: Remove bulk of implementation.  Use
88581         __assert_fail_base.
88582         * include/assert.hL Declare __assert_fail_base.
88583         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
88584         mmap.
88585         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
88586
88587 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
88588
88589         [BZ #11952]
88590         [BZ #12453]
88591         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
88592         until all modules are registered in the DTV.
88593         * elf/Makefile: Add rules to build and run tst-tls19.
88594         * elf/tst-tls19.c: New file.
88595         * elf/tst-tls19mod1.c: New file.
88596         * elf/tst-tls19mod2.c: New file.
88597         * elf/tst-tls19mod3.c: New file.
88598         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
88599
88600         [BZ #12083]
88601         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
88602         correctly.
88603
88604         [BZ #12601]
88605         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
88606         two-byte sequence errors.
88607         * iconvdata/Makefile (tests): Add bug-iconv8.
88608         * iconvdata/bug-iconv8.c: New file.
88609
88610         [BZ #12626]
88611         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
88612         buf2 definition.
88613
88614         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
88615
88616         [BZ #12432]
88617         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
88618         (dummy_getcfa): New function.
88619         (init): Get _Unwind_GetCFA address, use dummy if not found.
88620         (backtrace_helper): In recursion check, also check whether CFA changes.
88621         (__backtrace): Completely initialize arg.
88622
88623         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
88624         storing incomplete byte sequence in state object.  Avoid testing for
88625         guaranteed too small input if we know there is enough data available.
88626
88627 2011-05-11  Andreas Schwab  <schwab@redhat.com>
88628
88629         * Makeconfig (+link-pie): Indent.
88630         * Rules (binaries-pie): Define if $(have-fpie) and
88631         $(build-shared).
88632         (binaries-shared): Also filter out $(binaries-pie).
88633         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
88634         * nscd/Makefile (others-pie): Add nscd.
88635         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
88636         ($(objpfx)nscd): Remove command override.
88637         * login/Makefile (others-pie): Add pt_chown.
88638         ($(objpfx)pt_chown): Remove command override.
88639         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
88640         remove command overrides.
88641
88642 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
88643
88644         * libio/tst_putwc.c: Fix error messages.
88645
88646         [BZ #12724]
88647         * libio/fileops.c (_IO_new_file_close_it): Always flush when
88648         currently writing and seek to current position when not.
88649         * libio/Makefile (tests): Add bug-fclose1.
88650         * libio/bug-fclose1.c: New file.
88651
88652 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
88653
88654         [BZ #12511]
88655         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
88656         don't set DF_1_NODELETE here.
88657         (do_lookup_x): When entering new entry test for copy relocation
88658         and if necessary set DF_1_NODELETE flag.
88659         * elf/tst-unique4.cc: New file.
88660         * elf/tst-unique4.h: New file.
88661         * elf/tst-unique4lib.cc: New file.
88662         * elf/Makefile: Add rules to build and run tst-unique4.
88663         Patch by Piotr Bury <pbury@goahead.com>.
88664
88665 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
88666
88667         [BZ #12052]
88668         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
88669
88670         [BZ #12625]
88671         * misc/mntent_r.c (addmntent): Flush the stream after the output
88672
88673         [BZ #12393]
88674         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
88675         (is_trusted_path_normalize): Skip initial colon.  Append slash
88676         to empty buffer.  Duplicate is_trusted_path code but allow
88677         constructed patch to be prefix.
88678         (is_dst): Allow $ORIGIN followed by /.
88679         (_dl_dst_substitute): Correct clearing of check_for_trusted.
88680         Correct testing of result of is_trusted_path_normalize
88681         (decompose_rpath): Fix warning.
88682
88683 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
88684
88685         [BZ #11257]
88686         * grp/initgroups.c (internal_getgrouplist): When we found the service
88687         list through the initgroups entry in nsswitch.conf do not always
88688         continue on a successful lookup.  Don't always use the
88689         __nss_group_database value if it is set.
88690         * nss/nsswitch.conf (initgroups): Change action for successful db
88691         lookup to continue for compatibility.
88692
88693 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
88694
88695         [BZ #11532]
88696         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
88697         and CP774 modules.
88698         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
88699         and CP774 modules.
88700         * iconvdata/tst-tables.sh: Likewise.
88701         * iconvdata/cp770.c: New file.
88702         * iconvdata/cp771.c: New file.
88703         * iconvdata/cp772.c: New file.
88704         * iconvdata/cp773.c: New file.
88705         * iconvdata/cp774.c: New file.
88706         * iconvdata/testdata/CP770: New file.
88707         * iconvdata/testdata/CP770..UTF8: New file.
88708         * iconvdata/testdata/CP771: New file.
88709         * iconvdata/testdata/CP771..UTF8: New file.
88710         * iconvdata/testdata/CP772: New file.
88711         * iconvdata/testdata/CP772..UTF8: New file.
88712         * iconvdata/testdata/CP773: New file.
88713         * iconvdata/testdata/CP773..UTF8: New file.
88714         * iconvdata/testdata/CP774: New file.
88715         * iconvdata/testdata/CP774..UTF8: New file.
88716
88717         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
88718         END CHARMAP line.
88719         * iconvdata/gen-8bit-gap.sh: Likewise.
88720         * iconvdata/gen-8bit.sh: Likewise.
88721
88722         * locale/iso-639.def: Add ary entry.
88723
88724         [BZ #11258]
88725         * locale/C-translit.h.in: Add U20A1 transliteration.
88726
88727         [BZ #12178]
88728         * locale/iso-639.def: Add wae entry.
88729         Patch by Kevin Bortis <bortis@translate-wae.ch>.
88730
88731         [BZ #12545]
88732         * locale/programs/localedef.c (construct_output_path): Use ssize_t
88733         for n.
88734
88735         [BZ #12711]
88736         * locale/C-translit.h.in: Add entry for U20B9.
88737         Patch by pravin.d.s@gmail.com.
88738
88739 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
88740
88741         [BZ #12713]
88742         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
88743         ENAMETOOLONG use generic getcwd.
88744         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
88745         in rtld.  Use *stat64.
88746         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
88747         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
88748         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
88749         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
88750         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
88751         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
88752         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
88753         __fstatat64 macros.
88754         * include/dirent.h: Add libc_hidden_proto for rewinddir.
88755         * dirent/rewinddir.c: Add libc_hidden_def.
88756         * sysdeps/mach/hurd/rewinddir.c: Likewise.
88757         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
88758
88759         * include/dirent.h (__alloc_dir): Add flags parameter.
88760         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
88761         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
88762         __alloc_dir.
88763         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
88764         from fdopendir if O_CLOEXEC is already set.
88765
88766 2011-03-15  Alan Modra  <amodra@gmail.com>
88767
88768         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
88769         l_tls_firstbyte_offset non-zero.  Save padding offset in
88770         l_tls_firstbyte_offset for later use.
88771         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
88772         freeing static tls block.
88773
88774 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
88775
88776         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
88777         where #ifdef was intended.  The intent is to prevent ARG_MAX from
88778         being defined by the kernel headers.
88779
88780 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
88781
88782         [BZ #12734]
88783         * resolv/resolv.h: Define RES_NOTLDQUERY.
88784         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
88785         no-tld-query and set RES_NOTLDQUERY.
88786         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
88787         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
88788         modern BIND to search name as TLD unless forbidden.
88789
88790 2011-05-07  Petr Baudis  <pasky@suse.cz>
88791             Ulrich Drepper  <drepper@gmail.com>
88792
88793         [BZ #12393]
88794         * elf/dl-load.c (fillin_rpath): Move trusted path check...
88795         (is_trusted_path): ...to here.
88796         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
88797         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
88798         using is_trusted_path_normalize() in setuid scripts.
88799
88800 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
88801
88802         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
88803         __BEGIN/__END_DECLS.
88804
88805 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
88806
88807         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
88808         NSS_STATUS_NOTFOUND if no record was found.
88809
88810 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88811
88812         * sunrpc/Makefile (headers): Add rpc/netdb.h.
88813         (headers-not-in-tirpc): Remove rpc/netdb.h
88814         * resolv/netdb.h: Revert last change.
88815
88816 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
88817
88818         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
88819         circular dependency between libgcc.a and libc.a.
88820
88821 2011-05-05  Andreas Schwab  <schwab@redhat.com>
88822
88823         * resolv/netdb.h: Don't include <rpc/netdb.h>.
88824         * nis/Makefile: Don't install rpcsvc/*.
88825         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
88826         instead of <rpc/types.h>.
88827         (MAXHOSTNAMELEN): Define.
88828
88829 2011-05-03  Andreas Schwab  <schwab@redhat.com>
88830
88831         * elf/ldconfig.c (add_dir): Don't crash on empty path.
88832
88833 2011-04-28  Maciej Babinski  <mbabinski@google.com>
88834
88835         [BZ #12714]
88836         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
88837         gethostbyname4_r when IPv6 results are possible.
88838
88839 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
88840
88841         [BZ #12723]
88842         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
88843         _PC_PIPE_BUF handling.
88844
88845 2011-04-30  Bruno Haible  <bruno@clisp.org>
88846
88847         [BZ #12717]
88848         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
88849         * resolv/netdb.h (getnameinfo): Change type of flags parameter
88850         to 'int'.
88851         * inet/getnameinfo.c (getnameinfo): Likewise.
88852
88853 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
88854
88855         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
88856         to groups setting in database lookup.
88857         * nss/nsswitch.conf: Add initgroups entry.
88858
88859 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
88860
88861         [BZ #12685]
88862         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
88863         mode string.
88864         Patch by Eric Blake <eblake@redhat.com>.
88865
88866 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
88867
88868         * sunrpc/Makefile (need-export-routines): Add svc_run.
88869         (routines): Remove svc_run.
88870         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
88871         * sunrpc/clnt_perr.c (clnt_perrno): Export.
88872         * sunrpc/svc_run.c (svc_run): Likewise.
88873         * sunrpc/svc_udp.c (svcudp_create): Likewise.
88874
88875 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
88876
88877         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
88878         problem in reallocation in last patch.
88879
88880 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
88881
88882         * sunrpc/Makefile: Move inclusion of Rules.
88883
88884 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88885
88886         * nss/nss_files/files-initgroups.c: New file.
88887         * nss/Makefile (libnss_files-routines): Add files-initgroups.
88888         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
88889         _nss_files_initgroups_dyn.
88890
88891 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
88892
88893         * elf/elf.h (R_ARM_IRELATIVE): Define.
88894
88895 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
88896
88897         * po/ru.po: Update from translation team.
88898
88899 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88900
88901         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
88902         dependencies.
88903
88904 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
88905
88906         [BZ #12653]
88907         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
88908         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
88909         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
88910         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
88911         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
88912
88913 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
88914
88915         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
88916         differing bytes.
88917         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
88918         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
88919         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
88920
88921 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
88922
88923         [BZ #12420]
88924         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
88925         storing it.
88926         * stdlib/bug-getcontext.c: New file.
88927         * stdlib/Makefile: Add rules to build and run bug-getcontext.
88928
88929 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88930
88931         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
88932         instructions into .machine "z9-109".
88933         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
88934         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
88935
88936 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
88937
88938         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
88939         between environment variables and auxiliary vector.
88940
88941 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
88942
88943         * Makefile: Add rules to build linkobj/libc.so.
88944         * include/libc-symbols.h: Define libc_hidden_nolink.
88945         * include/rpc/auth.h: Mark functions which are to be hidden.
88946         * include/rpc/auth_des.h: Likewise.
88947         * include/rpc/auth_unix.h: Likewise.
88948         * include/rpc/clnt.h: Likewise.
88949         * include/rpc/des_crypt.h: Likewise.
88950         * include/rpc/key_prot.h: Likewise.
88951         * include/rpc/pmap_clnt.h: Likewise.
88952         * include/rpc/pmap_prot.h: Likewise.
88953         * include/rpc/pmap_rmt.h: Likewise.
88954         * include/rpc/rpc_msg.h: Likewise.
88955         * include/rpc/svc.h: Likewise.
88956         * include/rpc/svc_auth.h: Likewise.
88957         * include/rpc/xdr.h: Likewise.
88958         * nis/Makefile: Link all DSOs against linkobj/libc.so.
88959         * nss/Makefile: Likewise.
88960         * sunrpc/Makefile: Don't install headers.  Build library with normal
88961         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
88962         * sunrpc/auth_des.c: Hide exported symbols by default, export some
88963         for the compat linking library.  Remove use of INTDEF/INTUSE.
88964         * sunrpc/auth_none.c: Likewise.
88965         * sunrpc/auth_unix.c: Likewise.
88966         * sunrpc/authdes_prot.c: Likewise.
88967         * sunrpc/authuxprot.c: Likewise.
88968         * sunrpc/clnt_gen.c: Likewise.
88969         * sunrpc/clnt_perr.c: Likewise.
88970         * sunrpc/clnt_raw.c: Likewise.
88971         * sunrpc/clnt_simp.c: Likewise.
88972         * sunrpc/clnt_tcp.c: Likewise.
88973         * sunrpc/clnt_udp.c: Likewise.
88974         * sunrpc/clnt_unix.c: Likewise.
88975         * sunrpc/des_crypt.c: Likewise.
88976         * sunrpc/des_soft.c: Likewise.
88977         * sunrpc/get_myaddr.c: Likewise.
88978         * sunrpc/key_call.c: Likewise.
88979         * sunrpc/key_prot.c: Likewise.
88980         * sunrpc/netname.c: Likewise.
88981         * sunrpc/pm_getmaps.c: Likewise.
88982         * sunrpc/pm_getport.c: Likewise.
88983         * sunrpc/pmap_clnt.c: Likewise.
88984         * sunrpc/pmap_prot.c: Likewise.
88985         * sunrpc/pmap_prot2.c: Likewise.
88986         * sunrpc/pmap_rmt.c: Likewise.
88987         * sunrpc/publickey.c: Likewise.
88988         * sunrpc/rpc_cmsg.c: Likewise.
88989         * sunrpc/rpc_common.c: Likewise.
88990         * sunrpc/rpc_dtable.c: Likewise.
88991         * sunrpc/rpc_prot.c: Likewise.
88992         * sunrpc/rpc_thread.c: Likewise.
88993         * sunrpc/rtime.c: Likewise.
88994         * sunrpc/svc.c: Likewise.
88995         * sunrpc/svc_auth.c: Likewise.
88996         * sunrpc/svc_authux.c: Likewise.
88997         * sunrpc/svc_raw.c: Likewise.
88998         * sunrpc/svc_run.c: Likewise.
88999         * sunrpc/svc_simple.c: Likewise.
89000         * sunrpc/svc_tcp.c: Likewise.
89001         * sunrpc/svc_udp.c: Likewise.
89002         * sunrpc/svc_unix.c: Likewise.
89003         * sunrpc/svcauth_des.c: Likewise.
89004         * sunrpc/xcrypt.c: Likewise.
89005         * sunrpc/xdr.c: Likewise.
89006         * sunrpc/xdr_array.c: Likewise.
89007         * sunrpc/xdr_float.c: Likewise.
89008         * sunrpc/xdr_intXX_t.c: Likewise.
89009         * sunrpc/xdr_mem.c: Likewise.
89010         * sunrpc/xdr_rec.c: Likewise.
89011         * sunrpc/xdr_ref.c: Likewise.
89012         * sunrpc/xdr_sizeof.c: Likewise.
89013         * sunrpc/xdr_stdio.c: Likewise.
89014
89015 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
89016
89017         [BZ #12650]
89018         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
89019         * sysdeps/ia64/dl-tls.h: Likewise.
89020         * sysdeps/powerpc/dl-tls.h: Likewise.
89021         * sysdeps/s390/dl-tls.h: Likewise.
89022         * sysdeps/sh/dl-tls.h: Likewise.
89023         * sysdeps/sparc/dl-tls.h: Likewise.
89024         * sysdeps/x86_64/dl-tls.h: Likewise.
89025         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
89026
89027 2011-03-14  Andreas Schwab  <schwab@redhat.com>
89028
89029         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
89030         rpath element also skip the following colon.
89031         (expand_dynamic_string_token): Add is_path parameter and pass
89032         down to DL_DST_REQUIRED and _dl_dst_substitute.
89033         (decompose_rpath): Call expand_dynamic_string_token with
89034         non-zero is_path.  Ignore empty rpaths.
89035         (_dl_map_object_from_fd): Call expand_dynamic_string_token
89036         with zero is_path.
89037
89038 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
89039
89040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
89041         Make cancelable.
89042
89043 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
89044
89045         [BZ #12655]
89046         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
89047         Patch by Filipe David Manana <fdmanana@apache.org>.
89048
89049 2011-04-07  Andreas Schwab  <schwab@redhat.com>
89050
89051         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
89052         Maintain aligned stack.
89053         (CHECK_RSP): Remove unused macro.
89054
89055 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
89056
89057         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
89058         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
89059
89060 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
89061
89062         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
89063
89064         * include/features.h: Mention __USE_XOPEN2K8 in comment.
89065
89066 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
89067
89068         [BZ #12518]
89069         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
89070         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
89071         * sysdeps/x86_64/memmove.c: New file.
89072         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
89073         (memcpy): Renamed to ...
89074         (__new_memcpy): This.
89075         (memcpy): Provide GLIBC_2_14 memcpy.
89076         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
89077         (memcpy): Provide GLIBC_2_2_5 memcpy.
89078
89079 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
89080
89081         [BZ #12631]
89082         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
89083
89084 2011-03-30  Andreas Schwab  <schwab@redhat.com>
89085
89086         * misc/syncfs.c: New file.
89087         * misc/Makefile (routines): Add syncfs.
89088         * posix/unistd.h: Declare syncfs.
89089         * sysdeps/unix/syscalls.list: Add syncfs.
89090
89091 2011-04-01  Andreas Schwab  <schwab@redhat.com>
89092
89093         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
89094         open_by_handle_at.
89095         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
89096         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89097         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89098         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89099         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89100         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
89101         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89102
89103 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
89104
89105         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
89106         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89107         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
89108         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89109         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89110         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89111         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89112
89113         * io/Makefile: Compile fallocate.c, fallocate64.c, and
89114         sync_file_range.c with -fexceptions.
89115         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
89116         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
89117         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
89118         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
89119         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
89120         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
89121         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
89122         sync_file_range as cancellation point
89123         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
89124         now a wrapper around __call_sync_file_range with cancellation handling.
89125         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
89126         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
89127         function name to __call_sync_file_range.
89128         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
89129         Add call_sync_file_range.
89130
89131 2011-04-01  Andreas Schwab  <schwab@redhat.com>
89132
89133         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
89134         bits/timex.h.
89135
89136 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
89137
89138         * iconv/iconv.h: Fix typo in comment.
89139         * io/fcntl.h: Likewise.
89140         * libio/stdio.h: Likewise.
89141         * posix/spawn.h: Likewise.
89142         * posix/unistd.h: Likewise.
89143         * stdlib/stdlib.h: Likewise.
89144         * time/time.h: Likewise.
89145         * wcsmbs/wchar.h: Likewise.
89146
89147         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
89148         open_by_handle): Add.
89149         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
89150         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
89151         Augment a few comments.
89152         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
89153         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
89154         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
89155         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
89156         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
89157         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
89158         open_by_handle.
89159
89160         * io/fcntl.h (AT_EMPTY_PATH): Define.
89161
89162 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
89163
89164         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
89165         * sysdeps/unix/sysv/linux/bits/time.h: New file.
89166         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
89167         to...
89168         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
89169         * Versions.def: Add GLIBC_2.14.
89170         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
89171         Export.
89172
89173 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
89174
89175         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
89176         round counter.
89177         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
89178
89179 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
89180
89181         [BZ #12597]
89182         * string/test-strncmp.c (do_page_test): New function.
89183         (check2): Likewise.
89184         (test_main): Call check2.
89185         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
89186
89187 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
89188
89189         [BZ #12587]
89190         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
89191         Handle cache information in CPU leaf 4.
89192         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
89193
89194 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
89195
89196         [BZ #12583]
89197         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
89198         character representation.
89199         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
89200
89201 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
89202
89203         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
89204         END(__isnan) to END(__isnanf) to match function entry point/label
89205         EALIGN(__isnanf,...).
89206
89207 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
89208
89209         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
89210
89211 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
89212
89213         [BZ #12510]
89214         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
89215         copy from the symbol referenced in the relocation to initialize the
89216         used variable.
89217         Patch by Piotr Bury <pbury@goahead.com>.
89218         * elf/Makefile: Add rules to build and tst-unique3.
89219         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
89220         * elf/tst-unique3.cc: New file.
89221         * elf/tst-unique3.h: New file.
89222         * elf/tst-unique3lib.cc: New file.
89223         * elf/tst-unique3lib2.cc: New file.
89224
89225         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
89226
89227 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
89228
89229         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
89230         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
89231         to _start.
89232
89233 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
89234
89235         * elf/dl-load.c (_dl_map_object): If we are looking for the first
89236         to-be-loaded object along a path to loader is ld.so.
89237
89238 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
89239             Ulrich Drepper  <drepper@gmail.com>
89240
89241         * sysdeps/x86_64/memset.S: After aligning destination, code
89242         branches to different locations depending on the value of
89243         misalignment, when multiarch is enabled. Fix this.
89244
89245 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
89246
89247         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
89248         Set _x86_64_preferred_memory_instruction for AMD processsors.
89249         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89250         Set bit_Prefer_SSE_for_memop for AMD processors.
89251
89252 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
89253
89254         * libio/fmemopen.c (fmemopen): Optimize a bit.
89255
89256 2011-03-03  Andreas Schwab  <schwab@redhat.com>
89257
89258         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
89259
89260 2011-03-03  Roland McGrath  <roland@redhat.com>
89261
89262         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
89263
89264 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
89265
89266         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
89267         __bzero_ultra1 instead of __memset_ultra1.
89268
89269 2011-02-23  Andreas Schwab  <schwab@redhat.com>
89270             Ulrich Drepper  <drepper@gmail.com>
89271
89272         [BZ #12509]
89273         * include/link.h (struct link_map): Add l_orig_initfini.
89274         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
89275         returning unsuccessfully.
89276         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
89277         close of a file loaded at startup, restore the original l_initfini
89278         list.
89279         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
89280         list, store the pointer.
89281         * elf/Makefile ($(objpfx)noload-mem): New rule.
89282         (noload-ENV): Define.
89283         (tests): Add $(objpfx)noload-mem.
89284         * elf/noload.c: Include <memcheck.h>.
89285         (main): Call mtrace.  Close all opened handles.
89286
89287 2011-02-17  Andreas Schwab  <schwab@redhat.com>
89288
89289         [BZ #12454]
89290         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
89291         dependencies are missing.
89292
89293 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89294
89295         Fix __if_freereq crash: Unlike the generic version which uses free,
89296         Hurd needs munmap.
89297         * sysdeps/mach/hurd/ifreq.h: New file.
89298
89299 2011-01-27  Petr Baudis  <pasky@suse.cz>
89300             Ulrich Drepper  <drepper@gmail.com>
89301
89302         [BZ 12445]#
89303         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
89304         to extend_alloca().
89305         * stdio-common/bug23.c: New file.
89306         * stdio-common/Makefile (tests): Add bug23.
89307
89308 2010-09-28  Andreas Schwab  <schwab@redhat.com>
89309             Ulrich Drepper  <drepper@gmail.com>
89310
89311         [BZ #12489]
89312         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
89313         before performing relro protection.  At old place add assertion
89314         to make sure nothing changed.
89315
89316 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
89317             Glauber de Oliveira Costa  <glommer@gmail.com>
89318
89319         * elf/elf.h: Add new ARM TLS relocs.
89320
89321 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
89322
89323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
89324         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
89325         cast from r3.
89326         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
89327         'tests' variable.
89328         * sysdeps/wordsize-64/tst-writev.c: New file.
89329
89330 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
89331
89332         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
89333         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
89334         insns in _dl_start to prevent a TOC reference before relocs are
89335         resolved.
89336
89337 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
89338
89339         [BZ #12469]
89340         * Makeconfig: Remove RANLIB definition.
89341         * Makerules: Don't use RANLIB.
89342         * aclocal.m4: Remove ranlib test.
89343         * configure.in: No need to check for ranlib.
89344         * elf/rtld-Rules: Don't use RANLIB.
89345
89346 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89347
89348         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
89349         protection macro.
89350         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
89351         inclusion protection macro.
89352
89353         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
89354         SIGRTMIN and SIGRTMAX and print information in that case only when
89355         SIGRTMIN is defined.
89356
89357 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
89358
89359         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
89360         arginfo fn returning -1.
89361
89362         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
89363         and thousands string is zero terminated.
89364
89365 2011-02-03  Andreas Schwab  <schwab@redhat.com>
89366
89367         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
89368         sysdeps/unix/sysv/linux/bits/socket.h.
89369
89370 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
89371
89372         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
89373         (__CPU_COUNT): Remove old macros.
89374         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
89375         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
89376         (__CPU_ALLOC, __CPU_FREE): Add macros.
89377         (__sched_cpualloc, __sched_cpufree): Add declarations.
89378
89379 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
89380
89381         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
89382         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
89383         * nscd/aicache.c (addhstaiX): Return timeout of added value.
89384         (readdhstai): Return value of addhstaiX call.
89385         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
89386         (addgrbyX): Return value returned by cache_addgr.
89387         (readdgrbyname): Return value returned by addgrbyX.
89388         (readdgrbygid): Likewise.
89389         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
89390         (addpwbyX): Return value returned by cache_addpw.
89391         (readdpwbyname): Return value returned by addhstbyX.
89392         (readdpwbyuid): Likewise.
89393         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
89394         (addservbyX): Return value returned by cache_addserv.
89395         (readdservbyname): Return value returned by addservbyX:
89396         (readdservbyport): Likewise.
89397         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
89398         (addhstbyX): Return value returned by cache_addhst.
89399         (readdhstbyname): Return value returned by addhstbyX.
89400         (readdhstbyaddr): Likewise.
89401         (readdhstbynamev6): Likewise.
89402         (readdhstbyaddrv6): Likewise.
89403         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
89404         (readdinitgroups): Return value returned by addinitgroupsX.
89405         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
89406         (prune_cache): Keep track of timeout value of re-added entries.
89407         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
89408         * nscd/nscd.h: Adjust prototypes of readd* functions.
89409
89410 2011-02-04  Roland McGrath  <roland@redhat.com>
89411
89412         * nis/nis_server.c (nis_servstate): Use the right name for 0.
89413         (nis_stats): Likewise.
89414         * nis/nis_modify.c (nis_modify): Likewise.
89415         * nis/nis_remove.c (nis_remove): Likewise.
89416         * nis/nis_add.c (nis_add): Likewise.
89417
89418         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
89419
89420         * posix/fnmatch_loop.c: Add some consts.
89421
89422         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
89423
89424 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
89425
89426         [BZ #12460]
89427         * config.make.in (config-cflags-novzeroupper): Define.
89428         * configure.in: Substitute libc_cv_cc_novzeroupper.
89429         * elf/Makefile (AVX-CFLAGS): Define.
89430         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
89431         (CFLAGS-tst-auditmod4a.c): Likewise.
89432         (CFLAGS-tst-auditmod4b.c): Likewise.
89433         (CFLAGS-tst-auditmod6b.c): Likewise.
89434         (CFLAGS-tst-auditmod6c.c): Likewise.
89435         (CFLAGS-tst-auditmod7b.c): Likewise.
89436         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
89437
89438 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
89439
89440         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
89441         function to the callback.
89442         Patch partly by Jiri Olsa <jolsa@redhat.com>.
89443
89444 2011-02-02  Andreas Schwab  <schwab@redhat.com>
89445
89446         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
89447         of errno.
89448
89449 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
89450
89451         [BZ #11724]
89452         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
89453         of constructors.
89454         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
89455         of destructors.
89456         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
89457
89458         [BZ #11724]
89459         * elf/Makefile: Add rules to build and run new test.
89460         * elf/tst-initorder.c: New file.
89461         * elf/tst-initorder.exp: New file.
89462         * elf/tst-initordera1.c: New file.
89463         * elf/tst-initordera2.c: New file.
89464         * elf/tst-initordera3.c: New file.
89465         * elf/tst-initordera4.c: New file.
89466         * elf/tst-initorderb1.c: New file.
89467         * elf/tst-initorderb2.c: New file.
89468         * elf/tst-order-a1.c: New file.
89469         * elf/tst-order-a2.c: New file.
89470         * elf/tst-order-a3.c: New file.
89471         * elf/tst-order-a4.c: New file.
89472         * elf/tst-order-b1.c: New file.
89473         * elf/tst-order-b2.c: New file.
89474         * elf/tst-order-main.c: New file.
89475         New test case by George Gensure <werkt0@gmail.com>.
89476
89477 2010-10-01  Andreas Schwab  <schwab@redhat.com>
89478
89479         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
89480         decoding ACE if AI_CANONIDN.
89481
89482 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
89483
89484         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
89485
89486 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
89487
89488         * version.h (RELEASE): Bump for 2.13 release.
89489         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
89490
89491         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
89492
89493         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
89494         MADV_NOHUGEPAGE.
89495         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
89496         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
89497         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
89498         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
89499         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
89500         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89501
89502         * posix/getconf.c: Update copyright year.
89503         * catgets/gencat.c: Likewise.
89504         * csu/version.c: Likewise.
89505         * debug/catchsegv.sh: Likewise.
89506         * debug/xtrace.sh: Likewise.
89507         * elf/ldconfig.c: Likewise.
89508         * elf/ldd.bash.in: Likewise.
89509         * elf/sprof.c (print_version): Likewise.
89510         * iconv/iconv_prog.c: Likewise.
89511         * iconv/iconvconfig.c: Likewise.
89512         * locale/programs/locale.c: Likewise.
89513         * locale/programs/localedef.c: Likewise.
89514         * malloc/memusage.sh: Likewise.
89515         * malloc/mtrace.pl: Likewise.
89516         * nscd/nscd.c (print_version): Likewise.
89517         * nss/getent.c: Likewise.
89518
89519         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
89520         PF_CAIF, and PF_ALG.
89521         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
89522
89523 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
89524
89525         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
89526         (modules-names): Use them.
89527         (ifunc-test-modules, ifunc-pie-tests): Define.
89528         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
89529         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
89530         (test-extras): Likewise.
89531         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
89532         $(compile-command.c).
89533         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
89534         (all-built-dso): Define.
89535         (check-textrel.out, check-execstack.out): Depend on it.
89536
89537         * configure.in: Don't override --enable-multi-arch.
89538
89539 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
89540
89541         [BZ #6812]
89542         * nscd/hstcache.c (tryagain): Define.
89543         (cache_addhst): Return tryagain not notfound for temporary errors.
89544         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
89545         failed.
89546
89547 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
89548
89549         [BZ #10563]
89550         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
89551         to make the syscall.
89552         * sysdeps/unix/sysv/linux/setgroups.c: New file.
89553
89554         [BZ #12378]
89555         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
89556         and fall back to matching as normal character if the string ends before
89557         the matching ']' is found.  This is what POSIX requires.
89558         * posix/testfnm.c: Adjust test result.
89559         * posix/globtest.sh: Adjust test result.  Add new test.
89560         * posix/tst-fnmatch.input: Likewise.
89561         * posix/tst-fnmatch2.c: Add new test.
89562
89563 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
89564
89565         * elf/Makefile (check-execstack): Revert last change.  Depend on
89566         check-execstack.h.
89567         (check-execstack.h): New target.
89568         (generated): Add check-execstack.h.
89569         * elf/check-execstack.c: Include "check-execstack.h".
89570         (main): Revert last change.
89571         (handle_file): Return zero if GNU_STACK is absent and
89572         DEFAULT_STACK_PERMS doesn't include PF_X.
89573
89574 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
89575
89576         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
89577         in child fails because the descriptor is already closed.
89578         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
89579         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
89580         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
89581
89582         [BZ #12397]
89583         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
89584         syscall.
89585
89586         [BZ #10484]
89587         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
89588         temporary buffer used to handle multi lookups locally.
89589         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
89590
89591 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89592
89593         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
89594         loader is ld.so.
89595
89596 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
89597
89598         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
89599         alignment for SSE2.
89600
89601 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
89602
89603         [BZ #12394]
89604         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
89605         characters.  When rounding increased number of integer digits recompute
89606         number of groups.
89607         * stdio-common/tst-grouping.c: New file.
89608         * stdio-common/Makefile: Add rules to build and run tst-grouping.
89609
89610 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
89611
89612         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
89613         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
89614
89615         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
89616         void.
89617         * bits/select.h: Likewise.
89618
89619 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
89620
89621         * po/ja.po: Update from translation team.
89622
89623 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
89624
89625         [BZ #11155]
89626         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
89627         implementation just like for lxstat, fxstatat, et al.
89628
89629 2010-12-27  Jim Meyering  <meyering@redhat.com>
89630
89631         [BZ #12348]
89632         * posix/regexec.c (build_trtable): Return failure indication upon
89633         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
89634
89635 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
89636
89637         [BZ #12201]
89638         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
89639         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
89640         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
89641         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
89642
89643         [BZ #12207]
89644         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
89645
89646         [BZ #12204]
89647         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
89648         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
89649
89650 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
89651
89652         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
89653         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
89654         script has SORT_BY_INIT_PRIORITY.
89655         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
89656         NO_CTORS_DTORS_SECTIONS is defined.
89657         * elf/soinit.c: Likewise.
89658         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
89659         NO_CTORS_DTORS_SECTIONS is defined.
89660         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
89661         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
89662         * sysdeps/sh/init-first.c: Likewise.
89663         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
89664
89665 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
89666
89667         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
89668         always use the slow path.
89669
89670 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
89671
89672         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
89673         similar rule which adds the sysdep directories to the header search in
89674         order to pick up the correct platform stackinfo.h.
89675         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
89676         perform test if it is, otherwise return successfully without testing.
89677         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
89678         DEFAULT_STACK_PERMS define in stackinfo.h.
89679         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
89680         defined in stackinfo.h.
89681         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
89682         DEFAULT_STACK_PERMS defined in stackinfo.h.
89683         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
89684         * sysdeps/ia64/stackinfo.h: Likewise.
89685         * sysdeps/s390/stackinfo.h: Likewise.
89686         * sysdeps/sh/stackinfo.h: Likewise.
89687         * sysdeps/sparc/stackinfo.h: Likewise.
89688         * sysdeps/x86_64/stackinfo.h: Likewise.
89689         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
89690         PF_X for powerpc64.  Retain PF_X for powerpc32.
89691
89692 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
89693
89694         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
89695         accurately.
89696         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
89697         GETDENTS_64BIT_ALIGNED.
89698
89699 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
89700
89701         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
89702
89703 2010-12-10  Andreas Schwab  <schwab@redhat.com>
89704
89705         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
89706         _GNU_SOURCE.
89707
89708         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
89709         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
89710         Remove __restrict.
89711         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
89712         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
89713
89714 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
89715
89716         [BZ #11655]
89717         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
89718         are initialized.
89719
89720 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
89721
89722         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
89723
89724 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
89725
89726         * po/it.po: Update from translation team.
89727
89728 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
89729
89730         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
89731         unused codes.
89732
89733 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
89734
89735         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
89736
89737 2010-11-24  Andreas Schwab  <schwab@redhat.com>
89738
89739         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
89740         specially.
89741         (gaih_getanswer_slice): Likewise.
89742
89743 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
89744
89745         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
89746
89747 2010-05-31  Petr Baudis  <pasky@suse.cz>
89748
89749         [BZ #11149]
89750         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
89751         silently even in the chroot mode.
89752
89753 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
89754
89755         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
89756         last patch a bit.  Pretty printing
89757
89758 2010-05-31  Petr Baudis <pasky@suse.cz>
89759
89760         [BZ #10085]
89761         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
89762         initialization of skip_initgroups_dyn.
89763
89764 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
89765
89766         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
89767         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
89768
89769 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
89770
89771         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
89772
89773 2010-11-11  Andreas Schwab  <schwab@redhat.com>
89774
89775         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
89776         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
89777         (tst-fnmatch-ENV): Set MALLOC_TRACE.
89778         ($(objpfx)tst-fnmatch-mem): New rule.
89779         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
89780         * posix/tst-fnmatch.c (main): Call mtrace.
89781
89782 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
89783
89784         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89785         Support Intel processor model 6 and model 0x2c.
89786
89787 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
89788
89789         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
89790           signed comparison.
89791
89792 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
89793
89794         [BZ #12205]
89795         * string/test-strncasecmp.c (check_result): New function.
89796         (do_one_test): Use it.
89797         (check1): New function.
89798         (test_main): Use it.
89799         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
89800         Support strcasecmp and strncasecmp.
89801
89802 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
89803
89804         [BZ #12194]
89805         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
89806         * sysdeps/x86_64/bits/byteswap.h: Likewise.
89807
89808 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
89809
89810         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
89811         IFUNC support.
89812         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
89813         memset-x86-64.
89814         * sysdeps/x86_64/multiarch/bzero.S: New file.
89815         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
89816         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
89817         * sysdeps/x86_64/multiarch/memset.S: New file.
89818         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
89819         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
89820         Set bit_Prefer_SSE_for_memop for Intel processors.
89821         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
89822         Define.
89823         (index_Prefer_SSE_for_memop): Define.
89824         (HAS_PREFER_SSE_FOR_MEMOP): Define.
89825
89826 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
89827
89828         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
89829         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
89830
89831 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
89832
89833         [BZ #12191]
89834         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89835         (__x86_64_raw_data_cache_size_half): Likewise.
89836         (__x86_64_raw_shared_cache_size): Likewise.
89837         (__x86_64_raw_shared_cache_size_half): Likewise.
89838
89839         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
89840         (__x86_64_raw_data_cache_size_half): Likewise.
89841         (__x86_64_raw_shared_cache_size): Likewise.
89842         (__x86_64_raw_shared_cache_size_half): Likewise.
89843         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
89844         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
89845         and __x86_64_raw_shared_cache_size_half.  Round
89846         __x86_64_data_cache_size_half, __x86_64_data_cache_size
89847         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
89848         to multiple of 256 bytes.
89849
89850 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
89851
89852         [BZ #12167]
89853         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
89854         of inacessible symlinks.  Verify result of symlink before returning it.
89855         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
89856         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
89857
89858 2010-10-28  Erich Ritz  <erichritz@gmail.com>
89859
89860         * math/math.h (isinf): Fix typo in comment.
89861
89862 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
89863
89864         * po/da.po: Update from translation team.
89865
89866 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
89867
89868         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
89869         is added to the list.
89870
89871 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
89872             Ulrich Drepper  <drepper@gmail.com>
89873
89874         * elf/dl-object.c (_dl_new_object): Don't append the new object to
89875         the global list here.  Move code to...
89876         (_dl_add_to_namespace_list): ...here.  New function.
89877         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
89878         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
89879         * elf/dl-load.c (lose): Don't remove the element from the list.
89880         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
89881         (_dl_map_object): Likewise.
89882
89883 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
89884
89885         [BZ #12159]
89886         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
89887         into all bytes of SSE register.
89888         Patch by Richard Li <richardpku@gmail.com>.
89889
89890 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
89891
89892         [BZ #12140]
89893         * malloc/malloc.c (_int_free): Fill correct number of bytes when
89894         perturbing.
89895
89896 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
89897
89898         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
89899         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
89900         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
89901         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
89902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
89903         submachine.
89904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
89905
89906 2010-10-22  Andreas Schwab  <schwab@redhat.com>
89907
89908         * include/dlfcn.h (__RTLD_SECURE): Define.
89909         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
89910         mode & __RTLD_SECURE instead.
89911         (open_path): Rename preloaded parameter to secure.
89912         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
89913         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
89914         * elf/dl-deps.c (openaux): Likewise.
89915         * elf/rtld.c (struct map_args): Remove is_preloaded.
89916         (map_doit): Don't use it.
89917         (dl_main): Likewise.
89918         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
89919         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
89920
89921 2010-09-09  Andreas Schwab  <schwab@redhat.com>
89922
89923         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
89924         (sysd-rules-targets): Remove duplicates.
89925         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
89926         rtld-%.$o dependency.
89927
89928 2010-10-18  Andreas Schwab  <schwab@redhat.com>
89929
89930         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
89931         _dl_map_object do it.
89932
89933 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
89934
89935         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
89936         fast fma builtins, define the macros in the C99 standard.
89937         (FP_FAST_FMAF): Likewise.
89938         (FP_FAST_FMAL): Likewise.
89939         * sysdeps/x86_64/bits/mathdef.h: Likewise.
89940
89941         * bits/mathdef.h: Update copyright year.
89942         * sysdeps/powerpc/bits/mathdef.h: Likewise.
89943
89944 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
89945
89946         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
89947         builtins, define the macros in the C99 standard.
89948         (FP_FAST_FMAF): Likewise.
89949         (FP_FAST_FMAL): Likewise.
89950         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
89951         multiply/add.
89952         (FP_FAST_FMAF): Likewise.
89953
89954 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
89955
89956         [BZ #3268]
89957         * math/libm-test.inc (fma_test): Some new testcases.
89958         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
89959         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
89960         y and infinite z.  Do multiplication by C already in long double.
89961         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
89962         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
89963         y and infinite z.  Do bitwise or of inexact bit into u.d.
89964         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
89965         * sysdeps/i386/fpu/s_fmaf.S: Removed.
89966         * sysdeps/i386/fpu/s_fma.S: Removed.
89967         * sysdeps/i386/fpu/s_fmal.S: Removed.
89968
89969 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
89970
89971         [BZ #3268]
89972         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
89973         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
89974         computation is not scheduled after fetestexcept.  Fix value
89975         of minimum denormal long double.
89976
89977 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
89978
89979         [BZ #3268]
89980         * math/libm-test.inc (fma_test): Add some more tests.
89981         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
89982         correctly.
89983
89984 2010-10-15  Andreas Schwab  <schwab@redhat.com>
89985
89986         * scripts/data/localplt-s390-linux-gnu.data: New file.
89987         * scripts/data/localplt-s390x-linux-gnu.data: New file.
89988
89989 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
89990
89991         [BZ #3268]
89992         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
89993         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
89994         instead of dbl-64.
89995         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
89996         inlines.
89997         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
89998         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
89999         if one of x and y is very large and the other is subnormal.
90000         * sysdeps/s390/fpu/s_fmaf.c: New file.
90001         * sysdeps/s390/fpu/s_fma.c: New file.
90002         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
90003         * sysdeps/powerpc/fpu/s_fma.S: New file.
90004         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
90005         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
90006         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
90007
90008 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
90009
90010         [BZ #3268]
90011         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
90012         fma tests.
90013         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
90014         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
90015         * sysdeps/i386/i686/multiarch/s_fma.c: Include
90016         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
90017         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
90018         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
90019         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
90020
90021 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
90022
90023         [BZ #12078]
90024         * posix/regcomp.c (parse_branch): One more memory leak plugged.
90025         * posix/bug-regex31.input: Add test case.
90026
90027 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
90028
90029         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
90030         * posix/bug-regex31.input: New file.
90031
90032         [BZ #12078]
90033         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
90034         (parse_sub_exp): Fix last change, use postorder.
90035
90036         * posix/bug-regex31.c: New file.
90037         * posix/Makefile: Add rules to build and run bug-regex31.
90038
90039         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
90040
90041         [BZ #12078]
90042         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
90043
90044         [BZ #12108]
90045         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
90046         to have entries in sys_siglist.
90047
90048         [BZ #12093]
90049         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
90050         be NULL.
90051
90052 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
90053
90054         [BZ #3268]
90055         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
90056         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
90057         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
90058         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
90059         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
90060         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
90061         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
90062         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
90063         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
90064         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
90065         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
90066         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
90067         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
90068         * math/ftestexcept.c (fetestexcept): Likewise.
90069         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
90070         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
90071         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
90072         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
90073         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
90074         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
90075         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
90076
90077 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
90078
90079         [BZ #12107]
90080         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
90081         newline.
90082
90083 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
90084
90085         * string/bug-strstr1.c: New file.
90086         * string/Makefile: Add rules to build and run bug-strstr1.
90087
90088 2010-10-05  Eric Blake  <eblake@redhat.com>
90089
90090         [BZ #12092]
90091         * string/str-two-way.h (two_way_long_needle): Always clear memory
90092         when skipping input due to the shift table.
90093
90094 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
90095
90096         [BZ #12005]
90097         * malloc/mcheck.c: Handle large requests.
90098
90099         [BZ #12077]
90100         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
90101         for strncmp and strncasecmp.
90102         * string/stratcliff.c: Add tests for strcmp and strncmp.
90103         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
90104
90105 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
90106
90107         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
90108         __set_fpscr.
90109
90110 2010-09-30  Andreas Jaeger  <aj@suse.de>
90111
90112         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
90113         (CGROUP_SUPER_MAGIC): Define.
90114         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90115         Handle btrfs and cgroup file systems.
90116         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
90117         Likewise.
90118
90119 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
90120
90121         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
90122         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
90123
90124 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
90125
90126         [BZ #12067]
90127         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
90128         trying to locate the ELF header.
90129
90130 2010-09-27  Andreas Schwab  <schwab@redhat.com>
90131
90132         [BZ #11611]
90133         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
90134         Mask out sign-bit copies when constructing f_fsid.
90135
90136 2010-09-24  Petr Baudis <pasky@suse.cz>
90137
90138         * debug/stack_chk_fail_local.c: Add missing licence exception.
90139         * debug/warning-nop.c: Likewise.
90140
90141 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
90142
90143         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
90144         implementing getdents64 using getdents syscall, set d_type if
90145         __ASSUME_GETDENTS32_D_TYPE.
90146
90147 2010-09-16  Andreas Schwab  <schwab@redhat.com>
90148
90149         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
90150         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
90151
90152 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
90153
90154         [BZ #12037]
90155         * posix/unistd.h: Undo change of feature selection for ftruncate from
90156         2010-01-11.
90157
90158 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
90159
90160         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
90161         detection.
90162
90163 2010-09-20  Andreas Schwab  <schwab@redhat.com>
90164
90165         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
90166         fanotify_mark.
90167         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90168
90169 2010-09-14  Andreas Schwab  <schwab@redhat.com>
90170
90171         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
90172         variables after CHECK_SP call.
90173         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
90174
90175 2010-09-13  Andreas Schwab  <schwab@redhat.com>
90176             Ulrich Drepper  <drepper@redhat.com>
90177
90178         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
90179         re-relocationg ld.so.
90180         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
90181         _dl_init_paths call.
90182         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
90183         here anymore.
90184
90185 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
90186
90187         * resolv/res_init.c (__res_vinit): Count the default server we added.
90188
90189 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
90190             Ulrich Drepper  <drepper@redhat.com>
90191
90192         [BZ #11968]
90193         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
90194         (____longjmp_chk): Use %ebx for saving value across system call.
90195         Add unwind info.
90196
90197 2010-09-06  Andreas Schwab  <schwab@redhat.com>
90198
90199         * manual/Makefile: Don't mix pattern rules with normal rules.
90200
90201 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
90202
90203         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
90204         operation.
90205         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
90206         * libio/iofopncook.c (_IO_cookie_init): Likewise.
90207         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
90208         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
90209         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
90210         Likewise.
90211
90212 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
90213
90214         [BZ #11979]
90215         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
90216         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
90217
90218 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
90219
90220         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
90221         * sysdeps/x86_64/addmul_1.S: Likewise.
90222         * sysdeps/x86_64/lshift.S: Likewise.
90223         * sysdeps/x86_64/mul_1.S: Likewise.
90224         * sysdeps/x86_64/rshift.S: Likewise.
90225         * sysdeps/x86_64/sub_n.S: Likewise.
90226         * sysdeps/x86_64/submul_1.S: Likewise.
90227
90228 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90229
90230         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
90231         Define __sched_param instead of SCHED_* and sched_param when
90232         <bits/sched.h> is included with __need_schedparam defined.
90233         * bits/sched.h [__need_schedparam]
90234         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
90235         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
90236         (__defined_schedparam): Define to 1.
90237         (__sched_param): New structure, identical to sched_param.
90238         (__need_schedparam): Undefine.
90239
90240 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
90241
90242         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
90243         (epoll_create1): Declare.
90244
90245         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
90246
90247 2010-08-31  Andreas Schwab  <schwab@redhat.com>
90248
90249         [BZ #7066]
90250         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
90251         shifting retval into place.
90252
90253 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
90254
90255         * nis/rpcsvc/nis.h: Update copyright notice.
90256         * nis/rpcsvc/nis.x: Likewise.
90257         * nis/rpcsvc/nis_callback.h: Likewise.
90258         * nis/rpcsvc/nis_callback.x: Likewise.
90259         * nis/rpcsvc/nis_object.x: Likewise.
90260         * nis/rpcsvc/nis_tags.h: Likewise.
90261         * nis/rpcsvc/yp.h: Likewise.
90262         * nis/rpcsvc/yp.x: Likewise.
90263         * nis/rpcsvc/ypupd.h: Likewise.
90264         * nis/yp_xdr.c: Likewise.
90265         * nis/ypupdate_xdr.c: Likewise.
90266
90267         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
90268         mainly the body of pmap_getport.  Add parameters to specify timeouts.
90269         (pmap_getport): Use __libc_rpc_getport.
90270         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
90271         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
90272         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
90273
90274 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
90275
90276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
90277         fanotify_mark.
90278
90279 2010-08-27  Roland McGrath  <roland@redhat.com>
90280
90281         * sysdeps/i386/i686/multiarch/Makefile
90282         (CFLAGS-varshift.c): New variable.
90283
90284 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
90285
90286         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
90287         * sysdeps/i386/i686/multiarch/varshift.c: New file.
90288
90289         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
90290
90291         * sysdeps/x86_64/strlen.S: Minimal code improvement.
90292
90293 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
90294
90295         * sysdeps/x86_64/strlen.S: Unroll the loop.
90296         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90297         strlen-sse2 strlen-sse2-bsf.
90298         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
90299         __strlen_no_bsf if bit_Slow_BSF is set.
90300         (__strlen_sse42): Removed.
90301         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
90302         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
90303
90304 2010-08-25  Roland McGrath  <roland@redhat.com>
90305
90306         * sysdeps/x86_64/multiarch/varshift.S: File removed.
90307         * sysdeps/x86_64/multiarch/varshift.c: New file.
90308         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
90309         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
90310         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
90311         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
90312
90313 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
90314
90315         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90316         strlen-sse2 strlen-sse2-bsf.
90317         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
90318         __strlen_sse2_bsf if bit_Slow_BSF is unset.
90319         (__strlen_sse2): Removed.
90320         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
90321         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
90322         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
90323         bit_Slow_BSF for Atom.
90324         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
90325         (index_Slow_BSF): Define.
90326         (HAS_SLOW_BSF): Define.
90327
90328 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
90329
90330         [BZ #10851]
90331         * resolv/res_init.c (__res_vinit): When no server address at all
90332         is given default to loopback.
90333
90334 2010-08-24  Roland McGrath  <roland@redhat.com>
90335
90336         * configure.in: Remove config-name.h generation.
90337         * configure: Regenerated.
90338         * config-name.in: File removed.
90339         * scripts/config-uname.sh: New file.
90340         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
90341         ($(objdir)config-name.h): New target.
90342
90343         * sunrpc/rpc_parse.h: Avoid nested comment.
90344
90345 2010-08-24  Richard Henderson  <rth@redhat.com>
90346             Ulrich Drepper  <drepper@redhat.com>
90347             H.J. Lu  <hongjiu.lu@intel.com>
90348
90349         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
90350         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
90351         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
90352         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
90353         _mm_alignr_epi8 with _mm_loadu_si128.
90354         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
90355         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
90356         (__m128i_shift_right): Removed.
90357         * sysdeps/i386/i686/multiarch/varshift.h: New file.
90358         * sysdeps/i386/i686/multiarch/varshift.S: New file.
90359         * sysdeps/x86_64/multiarch/varshift.h: New file.
90360         * sysdeps/x86_64/multiarch/varshift.S: New file.
90361
90362 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
90363
90364         * configure.in: Move assembler checks to before sysdep dir checking.
90365
90366 2010-08-20  Petr Baudis  <pasky@suse.cz>
90367
90368         * LICENSES: Sync the sunrpc license.
90369
90370 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
90371
90372         * sunrpc/auth_des.c: Update copyright notice once again.
90373         * sunrpc/auth_none.c: Likewise.
90374         * sunrpc/auth_unix.c: Likewise.
90375         * sunrpc/authdes_prot.c: Likewise.
90376         * sunrpc/authuxprot.c: Likewise.
90377         * sunrpc/bindrsvprt.c: Likewise.
90378         * sunrpc/clnt_gen.c: Likewise.
90379         * sunrpc/clnt_perr.c: Likewise.
90380         * sunrpc/clnt_raw.c: Likewise.
90381         * sunrpc/clnt_simp.c: Likewise.
90382         * sunrpc/clnt_tcp.c: Likewise.
90383         * sunrpc/clnt_udp.c: Likewise.
90384         * sunrpc/clnt_unix.c: Likewise.
90385         * sunrpc/des_crypt.c: Likewise.
90386         * sunrpc/des_soft.c: Likewise.
90387         * sunrpc/get_myaddr.c: Likewise.
90388         * sunrpc/getrpcport.c: Likewise.
90389         * sunrpc/key_call.c: Likewise.
90390         * sunrpc/key_prot.c: Likewise.
90391         * sunrpc/openchild.c: Likewise.
90392         * sunrpc/pm_getmaps.c: Likewise.
90393         * sunrpc/pm_getport.c: Likewise.
90394         * sunrpc/pmap_clnt.c: Likewise.
90395         * sunrpc/pmap_prot.c: Likewise.
90396         * sunrpc/pmap_prot2.c: Likewise.
90397         * sunrpc/pmap_rmt.c: Likewise.
90398         * sunrpc/rpc/auth.h: Likewise.
90399         * sunrpc/rpc/auth_unix.h: Likewise.
90400         * sunrpc/rpc/clnt.h: Likewise.
90401         * sunrpc/rpc/des_crypt.h: Likewise.
90402         * sunrpc/rpc/key_prot.h: Likewise.
90403         * sunrpc/rpc/netdb.h: Likewise.
90404         * sunrpc/rpc/pmap_clnt.h: Likewise.
90405         * sunrpc/rpc/pmap_prot.h: Likewise.
90406         * sunrpc/rpc/pmap_rmt.h: Likewise.
90407         * sunrpc/rpc/rpc.h: Likewise.
90408         * sunrpc/rpc/rpc_des.h: Likewise.
90409         * sunrpc/rpc/rpc_msg.h: Likewise.
90410         * sunrpc/rpc/svc.h: Likewise.
90411         * sunrpc/rpc/svc_auth.h: Likewise.
90412         * sunrpc/rpc/types.h: Likewise.
90413         * sunrpc/rpc/xdr.h: Likewise.
90414         * sunrpc/rpc_clntout.c: Likewise.
90415         * sunrpc/rpc_cmsg.c: Likewise.
90416         * sunrpc/rpc_common.c: Likewise.
90417         * sunrpc/rpc_cout.c: Likewise.
90418         * sunrpc/rpc_dtable.c: Likewise.
90419         * sunrpc/rpc_hout.c: Likewise.
90420         * sunrpc/rpc_main.c: Likewise.
90421         * sunrpc/rpc_parse.c: Likewise.
90422         * sunrpc/rpc_parse.h: Likewise.
90423         * sunrpc/rpc_prot.c: Likewise.
90424         * sunrpc/rpc_sample.c: Likewise.
90425         * sunrpc/rpc_scan.c: Likewise.
90426         * sunrpc/rpc_scan.h: Likewise.
90427         * sunrpc/rpc_svcout.c: Likewise.
90428         * sunrpc/rpc_tblout.c: Likewise.
90429         * sunrpc/rpc_util.c: Likewise.
90430         * sunrpc/rpc_util.h: Likewise.
90431         * sunrpc/rpcinfo.c: Likewise.
90432         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
90433         * sunrpc/rpcsvc/key_prot.x: Likewise.
90434         * sunrpc/rpcsvc/klm_prot.x: Likewise.
90435         * sunrpc/rpcsvc/mount.x: Likewise.
90436         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
90437         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
90438         * sunrpc/rpcsvc/rex.x: Likewise.
90439         * sunrpc/rpcsvc/rstat.x: Likewise.
90440         * sunrpc/rpcsvc/rusers.x: Likewise.
90441         * sunrpc/rpcsvc/sm_inter.x: Likewise.
90442         * sunrpc/rpcsvc/spray.x: Likewise.
90443         * sunrpc/rpcsvc/yppasswd.x: Likewise.
90444         * sunrpc/rtime.c: Likewise.
90445         * sunrpc/svc.c: Likewise.
90446         * sunrpc/svc_auth.c: Likewise.
90447         * sunrpc/svc_authux.c: Likewise.
90448         * sunrpc/svc_raw.c: Likewise.
90449         * sunrpc/svc_run.c: Likewise.
90450         * sunrpc/svc_simple.c: Likewise.
90451         * sunrpc/svc_tcp.c: Likewise.
90452         * sunrpc/svc_udp.c: Likewise.
90453         * sunrpc/svc_unix.c: Likewise.
90454         * sunrpc/svcauth_des.c: Likewise.
90455         * sunrpc/xcrypt.c: Likewise.
90456         * sunrpc/xdr.c: Likewise.
90457         * sunrpc/xdr_array.c: Likewise.
90458         * sunrpc/xdr_float.c: Likewise.
90459         * sunrpc/xdr_mem.c: Likewise.
90460         * sunrpc/xdr_rec.c: Likewise.
90461         * sunrpc/xdr_ref.c: Likewise.
90462         * sunrpc/xdr_sizeof.c: Likewise.
90463         * sunrpc/xdr_stdio.c: Likewise.
90464
90465         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
90466         handling.
90467
90468 2010-08-19  Andreas Schwab  <schwab@redhat.com>
90469
90470         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
90471
90472 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
90473
90474         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
90475         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
90476         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
90477         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
90478         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
90479         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
90480         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
90481         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
90482         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
90483         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
90484         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
90485         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
90486         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
90487         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
90488
90489 2010-07-26  Anton Blanchard  <anton@samba.org>
90490
90491         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
90492         * malloc/arena.c (heap_trim): Likewise.
90493
90494 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
90495
90496         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
90497         here.  Not...
90498         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
90499         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
90500
90501 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
90502
90503         * sysdeps/i386/elf/Makefile: New file.
90504
90505 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90506
90507         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
90508         from fanotify_init.
90509         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
90510         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90511
90512 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
90513
90514         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
90515         of strncasecmp_l.
90516         * sysdeps/multiarch/strcmp.S: Likewise.
90517
90518 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
90519
90520         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90521         strncase_l-nonascii.
90522         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90523         Add strncase_l-ssse3.
90524         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
90525         * sysdeps/x86_64/strcmp.S: Likewise.
90526         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
90527         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
90528         * sysdeps/x86_64/strncase.S: New file.
90529         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
90530         * sysdeps/x86_64/strncase_l.S: New file.
90531         * string/Makefile (strop-tests): Add strncasecmp.
90532         * string/test-strncasecmp.c: New file.
90533
90534         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
90535         warning.
90536
90537         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
90538         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
90539
90540 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
90541
90542         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
90543
90544 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
90545
90546         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
90547         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
90548         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
90549
90550 2010-05-01  Alan Modra  <amodra@gmail.com>
90551
90552         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
90553         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
90554         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
90555         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
90556         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
90557         tidying.  Don't tail-call __sigjmp_save for static lib.
90558         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
90559         save location.
90560         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
90561         (CALL_MCOUNT): Add eh info, and nop after bl.
90562         (TAIL_CALL_SYSCALL_ERROR): New macro.
90563         (PSEUDO_RET): Use it.
90564         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
90565         Correct save location of integer regs and cr.
90566         (_dl_profile_resolve): Correct cr save location.  Delete nops
90567         after bl when SHARED.  Reduce cfi size a little by better
90568         placement of cfi directives.
90569         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
90570         make a stack frame.  Instead use parm save area as a temp.
90571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
90572         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
90573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
90574         Don't make a stack frame for parent, use parm save area.
90575         Increase child stack frame to 112 bytes.  Don't save unused reg,
90576         and adjust reg usage.  Set up cfi on error recovery and
90577         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
90578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
90579         (__makecontext): Add dummy nop after jump to exit.
90580         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
90581         Use correct parm save area and cr save, reduce stack frame.
90582         Correct cfi for possible PSEUDO_RET frame setup.
90583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
90584         Branch to local label emitted by PSEUDO_RET rather than
90585         __syscall_error.
90586
90587 2010-08-12  Andreas Schwab  <schwab@redhat.com>
90588
90589         [BZ #11904]
90590         * locale/programs/locale.c (print_assignment): New function.
90591         (show_locale_vars): Use it.
90592
90593 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
90594
90595         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
90596         field.
90597         (struct statfs64): Likewise.
90598         (_STATFS_F_FLAGS): Define.
90599         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
90600         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
90601         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
90602         (ST_VALID): Define locally.
90603         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
90604         __statvfs_getflags, use the provided value.
90605         * sysdeps/unix/sysv/linux/kernel-features.h: Define
90606         __ASSUME_STATFS_F_FLAGS.
90607
90608         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
90609
90610         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
90611         Add sys/fanotify.h.
90612         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
90613         fanotify_mask for GLIBC_2.13.
90614         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
90615         fanotify_init and fanotify_mark.
90616         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
90617         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
90618
90619         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
90620         Add prlimit.
90621         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
90622         prlimit64 for GLIBC_2.13.
90623         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
90624         prlimit64.
90625         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
90626         syscall.
90627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
90628         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
90629         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
90630         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
90631         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
90632         add prlimit alias.
90633         * sysdeps/unix/sysv/linux/prlimit.c: New file.
90634
90635         [BZ #11903]
90636         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
90637         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
90638
90639         * nss/Makefile: Add rules to build and run tst-nss-test1.
90640         * shlib-versions: Add entry for libnss_test1.
90641         * nss/nss_test1.c: New file.
90642         * nss/tst-nss-test1.c: New file.
90643
90644         * nss/nsswitch.c (__nss_database_custom): Define new variable.
90645         (__nss_configure_lookup): Set appropriate entry in
90646         __nss_configure_lookup to true.
90647         * nss/nsswitch.h: Define enum with indeces of databases in
90648         databases and __nss_database_custom arrays.  Declare
90649         __nss_database_custom.
90650         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
90651         to avoid using nscd when custom rules are installed.
90652         * nss/getXXbyYY_r.c: Likewise.
90653         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
90654
90655         * nss/nss_files/files-parse.c: Whitespace fixes.
90656
90657 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
90658
90659         [BZ #11883]
90660         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
90661         * posix/fnmatch_loop.c: Likewise.
90662
90663 2010-07-17  Andi Kleen  <ak@linux.intel.com>
90664
90665         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
90666         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
90667         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
90668         * Versions.def [GLIBC_2.13]: Add.
90669
90670 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
90671
90672         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90673         Also fail if tpwd after pwuid call is NULL.
90674
90675 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90676
90677         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
90678         when converting to ms.
90679
90680 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
90681
90682         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
90683         EOPNOTSUPP errors with ENOTTY.
90684         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
90685         EOPNOTSUPP errors with ENOTTY.
90686
90687 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
90688
90689         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
90690         Add strcasecmp_l-ssse3.
90691         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
90692         strcasecmp.
90693         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
90694         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
90695         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
90696
90697 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
90698
90699         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
90700
90701         * string/Makefile (strop-tests): Add strcasecmp.
90702         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
90703         strcasecmp_l-nonascii.
90704         (gen-as-const-headers): Add locale-defines.sym.
90705         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
90706         * sysdeps/x86_64/strcasecmp.S: New file.
90707         * sysdeps/x86_64/strcasecmp_l.S: New file.
90708         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
90709         * sysdeps/x86_64/locale-defines.sym: New file.
90710         * string/test-strcasecmp.c: New file.
90711
90712         * string/test-strcasestr.c: Test both ends of the range of characters.
90713         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
90714
90715 2010-07-29  Roland McGrath  <roland@redhat.com>
90716
90717         [BZ #11856]
90718         * manual/locale.texi (Yes-or-No Questions): Fix example code.
90719
90720 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
90721
90722         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
90723         for ld.so.
90724
90725 2010-07-27  Andreas Schwab  <schwab@redhat.com>
90726
90727         * manual/memory.texi (Malloc Tunable Parameters): Document
90728         M_PERTURB.
90729
90730 2010-07-26  Roland McGrath  <roland@redhat.com>
90731
90732         [BZ #11840]
90733         * configure.in (-fgnu89-inline check): Set and substitute
90734         gnu89_inline, not libc_cv_gnu89_inline.
90735         * configure: Regenerated.
90736         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
90737
90738 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
90739
90740         * string/test-strnlen.c: New file.
90741         * string/Makefile (strop-tests): Add strnlen.
90742         * string/tester.c (test_strnlen): Add a few more test cases.
90743         * string/tst-strlen.c: Better error reporting.
90744
90745         * sysdeps/x86_64/strnlen.S: New file.
90746
90747 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
90748
90749         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
90750         lower-latency instructions.
90751
90752 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
90753
90754         * string/test-strcasestr.c: New file.
90755         * string/test-strstr.c: New file.
90756         * string/Makefile (strop-tests): Add strstr and strcasestr.
90757         * string/str-two-way.h: Don't undefine MAX.
90758         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
90759
90760 2010-07-21  Andreas Schwab  <schwab@redhat.com>
90761
90762         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
90763         strcasestr-nonascii.
90764         (CFLAGS-strcasestr-nonascii.c): Define.
90765         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
90766         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
90767         Remove unused attribute.
90768
90769 2010-07-20  Roland McGrath  <roland@redhat.com>
90770
90771         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
90772         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
90773         ld.so.cache was broken.  With it, there is no way to disable dsocaps
90774         like LD_HWCAP_MASK can disable hwcaps.
90775
90776 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90777
90778         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
90779
90780 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
90781
90782         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
90783         call in strcasestr.
90784         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
90785         __strcasestr_sse42_nonascii.
90786         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
90787         strcasestr-nonascii.c.
90788         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
90789
90790 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
90791
90792         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
90793         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
90794         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
90795         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
90796
90797 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
90798
90799         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
90800         fcntl.
90801
90802 2010-07-06  Andreas Schwab  <schwab@redhat.com>
90803
90804         [BZ #11577]
90805         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
90806         dl_signal_cerror.
90807
90808 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
90809
90810         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
90811         _PC_PIPE_BUF using F_GETPIPE_SZ.
90812
90813 2010-07-05  Roland McGrath  <roland@redhat.com>
90814
90815         * manual/arith.texi (Rounding Functions): Fix rint description
90816         implicit in round description.
90817
90818 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
90819
90820         * elf/Makefile: Fix linking for a few tests to make recent linker
90821         happy.
90822
90823 2010-06-30  Andreas Schwab  <schwab@redhat.com>
90824
90825         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
90826         $(common-objpfx)libc_nonshared.a.
90827
90828 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
90829
90830         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
90831         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
90832         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90833         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90834         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
90835         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
90836         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90837         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
90839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
90840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
90841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
90842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
90843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
90844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
90845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
90846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
90847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
90848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
90849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
90850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
90851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
90852         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
90853         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
90854         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
90855         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
90856         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
90857         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
90858         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
90859         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
90860         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
90861         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
90862         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
90863         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
90864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
90865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
90866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
90867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
90868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
90869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
90870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
90871         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
90872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
90873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
90874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
90875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
90876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
90877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
90878
90879 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
90880
90881         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
90882         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
90883         * string/memmove.c (memmove): Renamed to ...
90884         (MEMMOVE): ...this.  Default to memmove.
90885         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
90886         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
90887         (END_CHK): Define.
90888         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
90889         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
90890         mempcpy-ssse3-back memmove-ssse3-back.
90891         * sysdeps/x86_64/multiarch/bcopy.S: New file .
90892         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
90893         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
90894         * sysdeps/x86_64/multiarch/memcpy.S: New file.
90895         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
90896         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
90897         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
90898         * sysdeps/x86_64/multiarch/memmove.c: New file.
90899         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
90900         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
90901         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
90902         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
90903         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
90904         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
90905         Define.
90906         (index_Fast_Copy_Backward): Define.
90907         (HAS_ARCH_FEATURE): Define.
90908         (HAS_FAST_REP_STRING): Define.
90909         (HAS_FAST_COPY_BACKWARD): Define.
90910
90911 2010-06-21  Andreas Schwab  <schwab@redhat.com>
90912
90913         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
90914         Restore proper fallback handling.
90915
90916 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
90917
90918         [BZ #11701]
90919         * posix/group_member.c (__group_member): Correct checking loop.
90920
90921         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
90922         OOM in getpwuid_r correctly.  Return error number when the caller
90923         should return, otherwise -1.
90924         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
90925         call returning > 0 value.
90926         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
90927
90928 2010-06-07  Andreas Schwab  <schwab@redhat.com>
90929
90930         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
90931         libc_nonshared.a from targets in modules-names.
90932
90933 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
90934
90935         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
90936         requires it.
90937
90938 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
90939
90940         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
90941         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
90942         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
90943         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
90944
90945 2010-06-02  Andreas Schwab  <schwab@redhat.com>
90946
90947         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
90948
90949 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
90950
90951         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
90952         and F_GETPIPE_SZ.
90953         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
90954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
90955         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
90956         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
90957         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
90958         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
90959
90960 2010-06-14  Roland McGrath  <roland@redhat.com>
90961
90962         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
90963
90964 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
90965
90966         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
90967         __REDIRECT followed by __THROW.
90968         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
90969         * posix/getopt.h (getopt): Likewise.
90970
90971 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
90972
90973         * hurd/lookup-at.c (__file_name_lookup_at): Accept
90974         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
90975         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
90976         in AT_FLAGS.
90977         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
90978         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
90979
90980 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
90981
90982         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
90983
90984 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
90985
90986         [BZ #11640]
90987         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
90988         Properly check family and model.
90989
90990 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
90991
90992         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
90993
90994 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
90995
90996         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
90997
90998 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
90999
91000         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
91001         symbol reference.
91002
91003 2010-05-19  Andreas Schwab  <schwab@redhat.com>
91004
91005         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
91006         symbol reference.
91007
91008 2010-05-21  Andreas Schwab  <schwab@redhat.com>
91009
91010         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
91011         and internal_recvmmsg.
91012         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
91013         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
91014         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
91015         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
91016
91017         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
91018         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
91019         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
91020
91021 2010-05-20  Andreas Schwab  <schwab@redhat.com>
91022
91023         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
91024
91025 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
91026
91027         POWER7 optimizations.
91028         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
91029         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
91030
91031 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
91032
91033         * version.h: Update for 2.13 development version.
91034
91035 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
91036
91037         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
91038         exceptions.  Return 0.
91039
91040 2010-05-07  Roland McGrath  <roland@redhat.com>
91041
91042         * elf/ldconfig.c (main): Add a const.
91043
91044 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
91045
91046         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
91047         (args_options): Add no-idn option.
91048         (ahosts_keys_int): Add idn_flags to ai_flags.
91049         (parse_option): Handle 'i' option to clear idn_flags.
91050
91051         * malloc/malloc.c (_int_free): Possible race in the most recently
91052         added check.  Only act on the data if no current modification
91053         happened.
91054
91055 See ChangeLog.17 for earlier changes.