Update headers for Linux 3.15.
[platform/upstream/glibc.git] / ChangeLog
1 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4         (FALLOC_FL_COLLAPSE_RANGE): New macro.
5         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
6         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
7         (IPV6_PMTUDISC_INTERFACE): Likewise.
8         (IPV6_PMTUDISC_OMIT): Likewise.
9
10 2014-06-23  Andreas Schwab  <schwab@suse.de>
11
12         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
13         Remove unused errout label.
14
15 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16
17         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
18         macro: hardware supports Vector Crypto instructions.
19
20 2014-06-23  Will Newton  <will.newton@linaro.org>
21
22         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
23         rather than __builtin_expect.
24
25         * elf/dl-lookup.c (undefined_msg): Remove variable.
26         (_dl_lookup_symbol_x): Replace undefined_msg with string
27         literal.
28
29         * elf/dl-lookup.c (do_lookup_unique): New function.
30         (do_lookup_x): Move STB_GNU_UNIQUE handling code
31         to a separate function.
32
33 2014-06-23  Andreas Schwab  <schwab@suse.de>
34
35         [BZ #17079]
36         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
37         before reading the next line.
38
39 2014-06-23  Will Newton  <will.newton@linaro.org>
40
41         * test-skeleton.c (signal_handler): Use printf and %m
42         rather than perror.  Use printf rather than fprintf to
43         stderr.  Use puts rather than fputs to stderr.
44         (main): Likewise.
45
46 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
47
48         * nscd/nscd.c (thread_info_t): Remove typedef.
49         (thread_info): Remove variable.
50
51 2014-06-21  Allan McRae  <allan@archlinux.org>
52
53         * NEWS: Mention CVE-2014-4043.
54
55 2014-06-20  Roland McGrath  <roland@hack.frob.com>
56
57         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
58         * nptl/smp.h: ... here.
59
60         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
61
62         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
63         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
64         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
65         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
66
67         * nptl/allocatestack.c: Include <stack-aliasing.h>.
68         * nptl/stack-aliasing.h: New file.
69         * sysdeps/i386/i686/stack-aliasing.h: New file.
70         * sysdeps/i386/i686/nptl/Makefile: File removed.
71         * sysdeps/x86_64/stack-aliasing.h: New file.
72         * sysdeps/x86_64/nptl/Makefile
73         (CFLAGS-pthread_create.c): Variable removed.
74
75         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
76         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
77         old file.
78         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
79         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
80         old file.
81
82 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
83
84         * sysdeps/unix/sysv/linux/arm/kernel-features.h
85         (__ASSUME_SIGFRAME_V2): Remove macro.
86         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
87         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
88         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
89         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
90         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
91         Declare as function.  Remove conditional macro definitions.
92         (__default_rt_sa_restorer): Likewise.
93         (__default_sa_restorer_v1): Remove declaration.
94         (__default_sa_restorer_v2): Likewise.
95         (__default_rt_sa_restorer_v1): Likewise.
96         (__default_rt_sa_restorer_v2): Likewise.
97         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
98         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
99         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
100
101 2014-06-20  Roland McGrath  <roland@hack.frob.com>
102
103         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
104         (libpthread-routines): Add sysdep.
105         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
106         * sysdeps/unix/sysv/linux/sparc/Versions
107         (libpthread: GLIBC_2.3.3): New version set.
108         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
109         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
110         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
111         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
112         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
113         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
114         Moved ...
115         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
116         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
117         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
118         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
119         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
120         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
121         * sysdeps/sparc/nptl/sem_init.c: ... here.
122         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
123         * sysdeps/sparc/nptl/sem_post.c: ... here.
124         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
125         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
126         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
127         * sysdeps/sparc/nptl/sem_wait.c: ... here.
128         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
129         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
130         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
131         (libpthread-routines): Add cpu_relax.
132         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
133         File removed.
134         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
135         (librt: GLIBC_2.3.3): New version set.
136         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
137         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
138         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
139         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
140         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
141         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
142         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
143         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
144         Moved ...
145         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
146         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
147         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
148         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
149         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
150         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
151         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
152         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
153         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
154         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
155         Moved ...
156         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
157         Update #include.
158         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
159         Moved ...
160         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
161         Update #include.
162         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
163         Moved ...
164         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
165         Update #include.
166         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
167         Moved ...
168         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
169         Update #include.
170         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
171         Moved ...
172         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
173         Update #include.
174         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
175         Moved ...
176         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
177         Update #include.
178         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
179         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
180         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
181         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
182         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
183         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
184         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
185         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
186         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
187         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
188         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
189         Moved ...
190         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
191         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
192         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
193         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
194         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
195
196 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
197
198         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
199         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
200         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
201         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
202         * nscd/nscd.c: Likewise.
203         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
204         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
205         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
206         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
207
208         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
209         <kernel-features.h>.
210         (init_mq_netlink): Remove conditional have_sock_cloexec
211         definitions.  Remove code conditional on have_sock_cloexec < 0.
212         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
213         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
214         * sysdeps/unix/sysv/linux/opensock.c: Do not include
215         <kernel-features.h>.
216         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
217         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
218
219 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
220
221         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
222         Add tests for memset_chk and memset.
223
224         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
225         with AVX2_Usable.
226
227 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
228
229         [BZ #16046]
230         * elf/tst-dl-iter-static.c: New file.
231         * elf/Makefile (tests-static): Add tst-dl-iter-static.
232
233         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
234         error.
235
236 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
237
238         * sysdeps/unix/sysv/linux/kernel-features.h
239         (__ASSUME_F_GETOWN_EX): Remove macro.
240         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
241         <kernel-features.h>.
242         (miss_F_GETOWN_EX): Remove variable or macro.
243         (do_fcntl): Do not check miss_F_GETOWN_EX.
244         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
245
246         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
247         Remove macro.
248         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
249         [!__ASSUME_AT_RANDOM]: Remove conditional code.
250         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
251
252         * sysdeps/unix/sysv/linux/kernel-features.h
253         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
254         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
255         [ADJ_OFFSET_SS_READ]: Make code unconditional.
256         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
257
258 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
259
260         [BZ #17075]
261         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
262         Fix calculation of the symbol's value.
263         * sysdeps/arm/tst-armtlsdescloc.c: New file.
264         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
265         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
266         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
267         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
268         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
269         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
270         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
271         (modules-names): Add `tst-armtlsdescmod',
272         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
273         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
274         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
275         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
276         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
277         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
278         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
279         ($(objpfx)tst-armtlsdescloc): New dependency.
280         ($(objpfx)tst-armtlsdescextnow): Likewise.
281         ($(objpfx)tst-armtlsdescextlazy): Likewise.
282         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
283         TLS scheme support.
284         * sysdeps/arm/configure: Regenerate.
285
286 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
287
288         * include/fcntl.h (__atfct_seterrno): Remove prototype.
289         (__atfct_seterrno_2): Likewise.
290         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
291         <kernel-features.h>.
292         (__ASSUME_ATFCTS): Do not undefine and redefine.
293         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
294         (__have_atfcts): Remove conditional definition.
295         (__fxstatat([__NR_fstatat64]: Make code unconditional.
296         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
297         unreachable if [__ASSUME_ATFCTS].
298         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
299         not undefine and redefine.
300         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
301         <kernel-features.h>.
302         (faccessat) [__NR_faccessat]: Make code unconditional.
303         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
304         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
305         <kernel-features.h>.
306         (fchmodat) [__NR_fchmodat]: Make code unconditional.
307         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
308         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
309         <kernel-features.h>.
310         (fchownat) [__NR_fchownat]: Make code unconditional.
311         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
312         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
313         <kernel-features.h>.
314         (futimesat) [__NR_futimesat]: Make code unconditional.
315         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
316         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
317         <kernel-features.h>.
318         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
319         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
320         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
321         <kernel-features.h>.
322         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
323         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
324         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
325         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
326         <kernel-features.h>.
327         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
328         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
329         * sysdeps/unix/sysv/linux/linkat.c: Do not include
330         <kernel-features.h>.
331         (linkat) [__NR_linkat]: Make code unconditional.
332         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
333         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
334         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
335         <kernel-features.h>.
336         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
337         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
338         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
339         <kernel-features.h>.
340         (mkdirat) [__NR_mkdirat]: Make code unconditional.
341         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
342         * sysdeps/unix/sysv/linux/openat.c: Do not include
343         <kernel-features.h>.
344         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
345         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
346         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
347         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
348         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
349         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
350         <kernel-features.h>.
351         (readlinkat) [__NR_readlinkat]: Make code unconditional.
352         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
353         result of INLINE_SYSCALL directly, not via int variable.
354         * sysdeps/unix/sysv/linux/renameat.c: Do not include
355         <kernel-features.h>.
356         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
357         (renameat) [__NR_renameat]: Make code unconditional.
358         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
359         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
360         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
361         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
362         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
363         (__ASSUME_ATFCTS): Do not undefine and redefine.
364         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
365         <kernel-features.h>.
366         (symlinkat) [__NR_symlinkat]: Make code unconditional.
367         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
368         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
369         <kernel-features.h>.
370         (unlinkat) [__NR_unlinkat]: Make code unconditional.
371         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
372         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
373         (__ASSUME_ATFCTS): Do not undefine and redefine.
374         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
375         <kernel-features.h>.
376         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
377         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
378         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
379         <kernel-features.h>.
380         (__xmknodat) [__NR_mknodat]: Make code unconditional.
381         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
382
383 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
384
385         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
386
387 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
388
389         [BZ #17069]
390         * posix/regcomp.c (parse_reg_exp): Deallocate partially
391         constructed tree before returning error.
392         * posix/bug-regexp36.c: Expand test case.
393
394 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
395
396         [BZ #6803]
397         * math/libm-test.inc (scalbln_test_date):
398         Add errno expectations.
399         * math/w_scalblnf.c: New File.
400         Add wrapper which checks for setting errno to ERANGE.
401         Add weak_alias for corresponding scalbln function.
402         * math/w_scalbln.c: Likewise.
403         * math/w_scalblnl.c: Likewise.
404         * math/Makefile (libm-calls): Add w_scalbln.
405         * sysdeps/ieee754/flt-32/s_scalblnf.c:
406         Remove weak_alias for corresponding scalbln function.
407         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
408         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
409         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
410         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
411         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
412         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
413         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
414         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
415         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
416         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
417         Remove long_double_symbol for scalblnl function in libm, libc.
418         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
419         Add wrapper which checks for setting errno to ERANGE.
420         Add long_double_symbol for scalblnl function in libm, libc.
421         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
422         Remove long_double_symbol for scalblnl in libm.
423         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
424         Add wrapper which checks for setting errno to ERANGE.
425         Add long_double_symbol for scalblnl function in libm.
426         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
427         Do not use wrapper because of own implementation.
428
429 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
430
431         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
432         3 bytes for __pad1 for x32.
433         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
434
435 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
436             H.J. Lu  <hongjiu.lu@intel.com>
437
438         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
439         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
440         * sysdeps/x86_64/multiarch/memset.S: Likewise.
441         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
442         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
443
444 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
445
446         [BZ #17069]
447         * posix/regcomp.c (parse_expression): Deallocate partially
448         constructed tree before returning error.
449         * posix/Makefile.c (tests): Add bug-regex36.
450         (generated): Add bug-regex36.mtrace.
451         (tests-special): Add $(objpfx)bug-regex36-mem.out
452         (bug-regex36-ENV): New variable.
453         ($(objpfx)bug-regex36-mem.out): New rule.
454         * posix/bug-regex36.c: New file.
455
456 2014-06-19  Will Newton  <will.newton@linaro.org>
457
458         * malloc/malloc.c (systrim): If extra is zero then return
459         early.
460
461 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
462
463         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
464
465 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
466
467         * sysdeps/aarch64/strchr.S: New file.
468
469 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
470
471         [BZ #17022]
472         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
473         from arguments -2 or below.
474         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
475         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
476
477 2014-06-18  Andreas Schwab  <schwab@suse.de>
478
479         [BZ #17062]
480         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
481         of a bracket expr not to run off the end of the string.
482         * posix/Makefile (tests): Add tst-fnmatch3.
483         * posix/tst-fnmatch3.c: New file.
484
485 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
486
487         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
488         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
489         [$(cross-compiling) = no]: Likewise.
490         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
491         [$(cross-compiling) = no]: Likewise.
492
493 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
494
495         [BZ #17031]
496         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
497         double, adjusted for any remainder from the high double.
498         * math/libm-test.inc (nearbyint): Add tests.
499         (rint): Likewise.
500
501 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
502
503         * nptl/sysdeps/powerpc/Makefile: Moved ...
504         * sysdeps/powerpc/nptl/Makefile: ... here.
505         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
506         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
507         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
508         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
509         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
510         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
511         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
512         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
513         * nptl/sysdeps/powerpc/tls.h: Moved ...
514         * sysdeps/powerpc/nptl/tls.h: ... here.
515
516 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
517
518         [BZ #16681]
519         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
520         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
521         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
522         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
523         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
524         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
525         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
526         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
527         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
528
529 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
530
531         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
532
533 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
534
535         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
536         defined operator.
537
538         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
539         $TIMEOUTFACTOR.
540
541 2014-06-16  Florian Weimer  <fweimer@redhat.com>
542
543         [BZ #17058]
544         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
545         non-executed part of the test.
546
547 2014-06-16  Andreas Schwab  <schwab@suse.de>
548
549         * string/bits/string2.h (strdup, strndup): Update feature guard.
550
551 2014-06-14  David S. Miller  <davem@davemloft.net>
552
553         * sysdeps/sparc/fpu/libm-test-ulps: Update.
554
555 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
556
557         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
558         that was previously under [RESET_PID].
559         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
560
561         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
562         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
563         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
564         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
565         (__libc_vfork): New strong alias.
566         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
567
568 2014-06-14 Andi Kleen  <ak@linux.intel.com>
569
570         * sysdeps/generic/elide.h: New file.
571
572 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
573
574         * Makefile (installed-headers): Adjust path of pthread.h header.
575
576 2014-06-13  Roland McGrath  <roland@hack.frob.com>
577
578         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
579         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
580         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
581         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
582
583         * nptl/sysdeps/s390/Makefile: Moved ...
584         * sysdeps/s390/nptl/Makefile: ... here.
585         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
586         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
587         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
588         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
589         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
590         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
591         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
592         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
593         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
594         * sysdeps/s390/nptl/pthreaddef.h: ... here.
595         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
596         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
597         * nptl/sysdeps/s390/tls.h: Moved ...
598         * sysdeps/s390/nptl/tls.h: ... here.
599
600         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
601         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
602
603 2014-06-13  David S. Miller  <davem@davemloft.net>
604
605         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
606         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
607         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
608         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
609         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
610         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
611         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
612         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
613         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
614         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
615         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
616         Remove RESET_PID cpp guards.
617         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
618         Remove RESET_PID cpp guards.
619         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
620
621 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
622
623         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
624         __sp to uintptr_t.
625
626 2014-06-13  Andi Kleen  <ak@linux.intel.com>
627
628         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
629         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
630         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
631         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
632         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
633         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
634         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
635         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
636         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
637         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
638         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
639         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
640         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
641         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
642         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
643         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
644         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
645         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
646         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
647         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
648
649         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
650         (pthread_rwlock_rdlock): Add elision.
651         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
652         (pthread_rwlock_wrlock): Add elision.
653         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
654         (pthread_rwlock_trywrlock): Add elision.
655         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
656         (pthread_rwlock_tryrdlock): Add elision.
657         * nptl/pthread_rwlock_unlock.c: Include elide.h.
658         (pthread_rwlock_tryrdlock): Add elision unlock.
659         * nptl/sysdeps/pthread/pthread.h:
660         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
661         (PTHREAD_RWLOCK_INITIALIZER,
662         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
663         Handle new elision field.
664         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
665         * sysdeps/arm/nptl/bits/pthreadtypes.h
666         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
667         * sysdeps/sh/nptl/bits/pthreadtypes.h
668         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
669         * sysdeps/tile/nptl/bits/pthreadtypes.h
670         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
671         * sysdeps/a/nptl/bits/pthreadtypes.h
672         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
673         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
674         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
675         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
676         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
677         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
678         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
679         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
680         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
681         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
682         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
683         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
684         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
685         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
686         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
687         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
688         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
689         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
690         (elision_init): Set try_xbegin to zero when no RTM.
691         * sysdeps/x86/nptl/bits/pthreadtypes.h
692         (pthread_rwlock_t): Change __pad1 to __rwelision.
693         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
694
695 2014-06-13  Andi Kleen  <ak@linux.intel.com>
696
697         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
698         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
699         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
700         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
701
702 2014-06-13  Meador Inge  <meadori@codesourcery.com>
703
704         [BZ #16996]
705         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
706         that the cached result has been set before returning it.
707
708 2014-06-12  Roland McGrath  <roland@hack.frob.com>
709
710         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
711         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
712         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
713         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
714         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
715         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
716
717         * nptl/sysdeps/sparc/Makefile: Moved ...
718         * sysdeps/sparc/nptl/Makefile: ... here.
719         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
720         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
721         * nptl/sysdeps/sparc/tls.h: Moved ...
722         * sysdeps/sparc/nptl/tls.h: ... here.
723         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
724         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
725         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
726         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
727         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
728         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
729         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
730         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
731         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
732         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
733         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
734         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
735         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
736         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
737         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
738         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
739         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
740         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
741         Update #include.
742         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
743         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
744         Update #include.
745         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
746         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
747         Update #include.
748         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
749         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
750         Update #include.
751
752         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
753
754         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
755         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
756
757         * sysdeps/pthread/posix-timer.h: Include <list.h>.
758         (struct list_links): Type removed.
759         (struct thread_node, struct timer_node): Replace struct list_links
760         with struct list_head.
761         (list_unlink_ip): Likewise.
762         * sysdeps/pthread/timer_routines.c
763         (timer_free_list, thread_free_list, thread_active_list): Likewise.
764         (list_append, list_insbefore): Likewise.
765         (list_init): Function removed.
766         (thread_init, init_module): Use INIT_LIST_HEAD instead.
767         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
768         * sysdeps/pthread/Makefile: ... here, new file.
769
770         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
771         * sysdeps/nptl/Implies: ... here.
772         * sysdeps/unix/sysv/linux/Implies: Add nptl.
773         * nptl/sysdeps/pthread/list.h: Moved ...
774         * include/list.h: ... here.
775         * nptl/sysdeps/pthread/createthread.c: Moved ...
776         * nptl/createthread.c: ... here.
777         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
778         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
779         * nptl/pt-longjmp.c: ... here.
780         * nptl/sysdeps/pthread/Makefile: Moved ...
781         * sysdeps/nptl/Makefile: ... here.
782         * nptl/sysdeps/pthread/Subdirs: Moved ...
783         * sysdeps/nptl/Subdirs: ... here.
784         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
785         * sysdeps/nptl/aio_misc.h: ... here.
786         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
787         * sysdeps/nptl/bits/libc-lock.h: ... here.
788         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
789         * sysdeps/nptl/bits/libc-lockP.h: ... here.
790         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
791         * sysdeps/nptl/bits/stdio-lock.h: ... here.
792         * nptl/sysdeps/pthread/configure: Moved ...
793         * sysdeps/nptl/configure: ... here.
794         * nptl/sysdeps/pthread/configure.ac: Moved ...
795         * sysdeps/nptl/configure.ac: ... here.
796         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
797         * sysdeps/nptl/gai_misc.h: ... here.
798         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
799         * sysdeps/nptl/librt-cancellation.c: ... here.
800         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
801         * sysdeps/nptl/malloc-machine.h: ... here.
802         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
803         * sysdeps/nptl/pthread-functions.h: ... here.
804         * nptl/sysdeps/pthread/pthread.h: Moved ...
805         * sysdeps/nptl/pthread.h: ... here.
806         * nptl/sysdeps/pthread/setxid.h: Moved ...
807         * sysdeps/nptl/setxid.h: ... here.
808         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
809         * sysdeps/nptl/sigfillset.c: ... here.
810         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
811         * sysdeps/nptl/tcb-offsets.h: ... here.
812         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
813         * sysdeps/nptl/tst-mqueue8x.c: ... here.
814         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
815         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
816         * nptl/sysdeps/pthread/allocalim.h: Moved ...
817         * sysdeps/pthread/allocalim.h: ... here.
818         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
819         * sysdeps/pthread/bits/sigthread.h: ... here.
820         * nptl/sysdeps/pthread/flockfile.c: Moved ...
821         * sysdeps/pthread/flockfile.c: ... here.
822         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
823         * sysdeps/pthread/ftrylockfile.c: ... here.
824         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
825         * sysdeps/pthread/funlockfile.c: ... here.
826         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
827         * sysdeps/pthread/posix-timer.h: ... here.
828         * nptl/sysdeps/pthread/timer_create.c: Moved ...
829         * sysdeps/pthread/timer_create.c: ... here.
830         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
831         * sysdeps/pthread/timer_delete.c: ... here.
832         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
833         * sysdeps/pthread/timer_getoverr.c: ... here.
834         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
835         * sysdeps/pthread/timer_gettime.c: ... here.
836         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
837         * sysdeps/pthread/timer_routines.c: ... here.
838         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
839         * sysdeps/pthread/timer_settime.c: ... here.
840         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
841         * sysdeps/pthread/tst-timer.c: ... here.
842         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
843         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
844
845         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
846         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
847
848         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
849         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
850         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
851         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
852         Update #include target.
853         * nptl/sysdeps/i386/i686/Makefile: Moved ...
854         * sysdeps/i386/i686/nptl/Makefile: ... here.
855         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
856         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
857         Update #include target.
858         * nptl/sysdeps/i386/i686/tls.h: Moved ...
859         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
860         * nptl/sysdeps/i386/Makefile: Moved ...
861         * sysdeps/i386/nptl/Makefile: ... here.
862         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
863         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
864         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
865         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
866         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
867         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
868         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
869         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
870         * sysdeps/i386/nptl/pthreaddef.h: ... here.
871         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
872         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
873         * nptl/sysdeps/i386/tls.h: Moved ...
874         * sysdeps/i386/nptl/tls.h: ... here.
875
876         * sysdeps/sh/Makefile [$(subdir) = csu]
877         (gen-as-const-headers): Add tcb-offsets.sym.
878         * nptl/sysdeps/sh/Makefile: File removed.
879         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
880         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
881         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
882         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
883         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
884         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
885         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
886         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
887         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
888         * sysdeps/sh/nptl/pthreaddef.h: ... here.
889         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
890         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
891         * nptl/sysdeps/sh/tls.h: Moved ...
892         * sysdeps/sh/nptl/tls.h: ... here.
893         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
894         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
895         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
896         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
897         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
898         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
899         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
900         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
901         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
902         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
903         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
904         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
905         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
906         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
907         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
908         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
909         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
910         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
911         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
912         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
913         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
914         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
915         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
916         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
917         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
918         Moved ...
919         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
920         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
921         Moved ...
922         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
923         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
924         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
925         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
926         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
927         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
928         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
929         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
930         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
931         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
932         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
933         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
934         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
935         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
936         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
937         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
938         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
939         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
940         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
941
942 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
943
944         * posix/spawn_faction_addopen.c: Include string.h.
945
946 2014-06-11  Roland McGrath  <roland@hack.frob.com>
947
948         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
949         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
950         * nptl/sysdeps/x86_64/Makefile: Moved ...
951         * sysdeps/x86_64/nptl/Makefile: ... here.
952         * nptl/sysdeps/x86_64/configure: Moved ...
953         * sysdeps/x86_64/nptl/configure: ... here.
954         * nptl/sysdeps/x86_64/configure.ac: Moved ...
955         * sysdeps/x86_64/nptl/configure.ac: ... here.
956         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
957         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
958         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
959         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
960         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
961         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
962         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
963         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
964         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
965         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
966         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
967         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
968         * nptl/sysdeps/x86_64/tls.h: Moved ...
969         * sysdeps/x86_64/nptl/tls.h: ... here.
970         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
971         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
972         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
973         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
974
975         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
976
977 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
978
979         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
980
981 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
982
983         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
984         type.
985         [POSIX] (off_t): Likewise.
986         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
987         [POSIX] (S_ISBLK): Require macro.
988         [POSIX] (S_ISCHR): Likewise.
989         [POSIX] (S_ISDIR): Likewise.
990         [POSIX] (S_ISFIFO): Likewise.
991         [POSIX] (S_ISREG): Likewise.
992         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
993         optional-macro.
994         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
995         type.
996         [POSIX] (time_t): Likewise.
997         [POSIX] (timer_t): Likewise.
998
999 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1000
1001         [BZ #17048]
1002         * posix/spawn_int.h (struct __spawn_action): Make the path string
1003         non-const to support deallocation.
1004         * posix/spawn_faction_addopen.c
1005         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1006         * posix/spawn_faction_destroy.c
1007         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1008         path in all spawn_do_open actions.
1009         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1010         posix_spawn_file_actions_addopen.
1011
1012 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1013
1014         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1015         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1016         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1017         conditional code always true.
1018         (__libc_vfork): New alias.
1019
1020 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1021
1022         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1023         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1024
1025         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1026
1027         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1028         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1029
1030         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1031         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1032
1033         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1034         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1035
1036 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1037
1038         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1039         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1040         multiarch strcmp for PPC64.
1041         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1042         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1043         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1044         multiarch optimizations.
1045         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1046         (__libc_ifunc_impl_list): Likewise.
1047
1048 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1049
1050         * benchtests/scripts/validate_benchout.py: New script.
1051         * benchtests/Makefile (bench-func): Call it.
1052         * benchtests/scripts/benchout.schema.json: New file.
1053
1054 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1055
1056         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1057         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1058         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1059         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1060         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1061         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1062         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1063         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1064         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1065         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1066         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1067         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1068         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1069         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1070         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1071         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1072         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1073         Moved ...
1074         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1075         ... here.
1076         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1077         Moved ...
1078         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1079         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1080         Moved ...
1081         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1082         ... here.
1083         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1084         Moved ...
1085         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1086         ... here.
1087         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1088         Moved ...
1089         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1090         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1091         Moved ...
1092         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1093         ... here.
1094         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1095         Moved ...
1096         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1097         ... here.
1098         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1099         Moved ...
1100         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1101         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1102         Moved ...
1103         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1104         ... here.
1105         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1106         Moved ...
1107         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1108         ... here.
1109         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1110         Moved ...
1111         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1112         ... here.
1113         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1114         Moved ...
1115         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1116         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1117         Moved ...
1118         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1119         ... here.
1120         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1121         Moved ...
1122         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1123         ... here.
1124         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1125         Moved ...
1126         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1127         ... here.
1128         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1129         Moved ...
1130         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1131         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1132         Moved ...
1133         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1134         ... here.
1135         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1136         Moved ...
1137         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1138         ... here.
1139         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1140         Moved ...
1141         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1142         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1143         Moved ...
1144         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1145         ... here.
1146         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1147         Moved ...
1148         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1149         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1150         Moved ...
1151         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1152         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1153         Moved ...
1154         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1155         ... here.
1156         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1157         Moved ...
1158         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1159         ... here.
1160         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1161         Moved ...
1162         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1163         ... here.
1164         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1165         Moved ...
1166         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1167         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1168         Moved ...
1169         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1170         ... here.
1171         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1172         Moved ...
1173         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1174         ... here.
1175         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1176         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1177         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1178         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1179         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1180         Moved ...
1181         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1182         ... here.
1183         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1184         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1185         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1186         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1187         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1188         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1189         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1190         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1191         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1192         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1193         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1194         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1195         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1196         Moved ...
1197         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1198         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1199         Moved ...
1200         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1201         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1202         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1203         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1204         Moved ...
1205         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1206         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1207         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1208         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1209         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1210         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1211         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1212
1213 2014-06-10  Wilco  <wdijkstr@arm.com>
1214
1215         * math/test-fenv-return.c: New file.
1216         * math/Makefile: Add new test test-fenv-return.
1217
1218 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1219
1220         [BZ #17042]
1221         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1222         when x - 1 is zero.
1223         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1224         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1225         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1226         0.0L for an argument of 1.0L.
1227         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1228         Likewise.
1229         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1230         value when x - 1 is zero.
1231         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1232         * sysdeps/i386/fpu/libm-test-ulps: Update.
1233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1234
1235 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1236
1237         [BZ #15119]
1238         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1239
1240 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1241
1242         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1243         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1244
1245 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1246
1247         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1248         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1249
1250         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1251         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1252
1253         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1254         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1255
1256         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1257         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1258
1259         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1260         if not already defined.
1261         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1262         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1263         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1264         (TLS_INIT_TP): Use it.
1265         (TLS_DEFINE_INIT_TP): New macro.
1266         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1267
1268 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1269
1270         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1271         constant.
1272         [POSIX] (IXANY): Likewise.
1273         [POSIX] (OLCUC): Likewise.
1274         [POSIX || POSIX2008] (CBAUD): Do not allow.
1275         [POSIX || POSIX2008] (DEFECHO): Likewise.
1276         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1277         [POSIX || POSIX2008] (ECHOKE): Likewise.
1278         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1279         [POSIX || POSIX2008] (EXTA): Likewise.
1280         [POSIX || POSIX2008] (EXTB): Likewise.
1281         [POSIX || POSIX2008] (FLUSHO): Likewise.
1282         [POSIX || POSIX2008] (LOBLK): Likewise.
1283         [POSIX || POSIX2008] (PENDIN): Likewise.
1284         [POSIX || POSIX2008] (SWTCH): Likewise.
1285         [POSIX || POSIX2008] (VDISCARD): Likewise.
1286         [POSIX || POSIX2008] (VDSUSP): Likewise.
1287         [POSIX || POSIX2008] (VLNEXT): Likewise.
1288         [POSIX || POSIX2008] (VREPRINT): Likewise.
1289         [POSIX || POSIX2008] (VSTATUS): Likewise.
1290         [POSIX || POSIX2008] (VWERASE): Likewise.
1291         (B*): Change to B[0123456789]*.
1292         * conform/data/time.h-data [POSIX || UNIX98]
1293         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1294         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1295         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1296         [POSIX] (tm_*): Do not allow.
1297
1298 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1299
1300         * Makefile (install): Don't set LANGUAGE.
1301         * Makefile.in (install): Likewise.
1302         * assert/Makefile (test-assert-ENV): Remove variable.
1303         (test-assert-perr-ENV): Likewise.
1304         * elf/Makefile (neededtest4-ENV): Likewise.
1305         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1306         [$(cross-compiling) = no]: Don't set LANGUAGE.
1307         * io/ftwtest-sh (LANG): Remove variable.
1308         * libio/Makefile (tst-widetext-ENV): Likewise.
1309         * manual/install.texi (Running make install): Don't refer to
1310         environment settings for make install.
1311         * INSTALL: Regenerated.
1312         * nptl/tst-tls6.sh: Don't set LANG.
1313         * posix/globtest.sh (LANG): Remove variable.
1314         * string/Makefile (tester-ENV): Likewise.
1315         (inl-tester-ENV): Likewise.
1316         (noinl-tester-ENV): Likewise.
1317         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1318         [$(cross-compiling) = no]: Don't set LANGUAGE.
1319         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1320         without explicit environment settings.
1321
1322 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1323
1324         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1325         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1326         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1327         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1328
1329 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1330
1331         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1332         other files in the crypt directory.
1333         * crypt/crypt.c: Remove duplicate includes.
1334         * crypt/crypt-entry.c: Likewise.
1335         * crypt/crypt_util.c: Likewise.
1336
1337 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1338
1339         * Makeconfig (run-program-env): New variable.
1340         (run-program-prefix-before-env): Likewise.
1341         (run-program-prefix-after-env): Likewise.
1342         (run-program-prefix): Define in terms of new variables.
1343         (built-program-cmd-before-env): New variable.
1344         (built-program-cmd-after-env): Likewise.
1345         (built-program-cmd): Define in terms of new variables.
1346         (test-program-prefix-before-env): New variable.
1347         (test-program-prefix-after-env): Likewise.
1348         (test-program-prefix): Define in terms of new variables.
1349         (test-program-cmd-before-env): New variable.
1350         (test-program-cmd-after-env): Likewise.
1351         (test-program-cmd): Define in terms of new variables.
1352         * Rules (make-test-out): Use $(run-program-env).
1353         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1354         (help): Do not mention environment variables.  Mention
1355         --timeoutfactor option.
1356         (timeoutfactor): New variable.
1357         (blacklist_exports): Remove function.
1358         (exports): Remove variable.
1359         (command): Do not include ${exports}.
1360         * manual/install.texi (Configuring and compiling): Do not mention
1361         test wrappers preserving environment variables.  Mention that last
1362         assignment to a variable must take precedence.
1363         * INSTALL: Regenerated.
1364         * benchtests/Makefile (run-bench): Use $(run-program-env).
1365         * catgets/Makefile ($(objpfx)test1.cat): Use
1366         $(built-program-cmd-before-env), $(run-program-env) and
1367         $(built-program-cmd-after-env).
1368         ($(objpfx)test2.cat): Do not specify environment variables
1369         explicitly.
1370         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1371         $(run-program-env) and $(built-program-cmd-after-env).
1372         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1373         $(run-program-env) and $(test-program-cmd-after-env).
1374         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1375         explicitly.
1376         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1377         run_program_env and test_program_cmd_after_env arguments.
1378         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1379         * elf/tst-pathopt.sh: Use run_program_env argument.
1380         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1381         $(test-wrapper-env) and $(run-program-env).
1382         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1383         run_program_env arguments.
1384         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1385         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1386         $(test-program-prefix-before-env), $(run-program-env) and
1387         $(test-program-prefix-after-env).
1388         ($(objpfx)tst-gettext2.out): Likewise.
1389         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1390         run_program_env and test_program_prefix_after_env arguments.
1391         * intl/tst-gettext2.sh: Likewise.
1392         * intl/tst-gettext4.sh: Do not set environment variables
1393         explicitly.
1394         * intl/tst-gettext6.sh: Likewise.
1395         * intl/tst-translit.sh: Likewise.
1396         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1397         $(test-program-prefix-before-env), $(run-program-env) and
1398         $(test-program-prefix-after-env).
1399         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1400         run_program_env and test_program_prefix_after_env arguments.
1401         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1402         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1403         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1404         explicitly with each use of ${test_wrapper_env}.
1405         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1406         $(test-program-prefix-before-env), $(run-program-env) and
1407         $(test-program-prefix-after-env).
1408         * posix/tst-getconf.sh: Do not set environment variables
1409         explicitly.
1410         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1411         run_program_env and test_program_prefix_after_env arguments.
1412         * stdio-common/tst-printf.sh: Do not set environment variables
1413         explicitly.
1414         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1415         $(test-program-prefix-before-env), $(run-program-env) and
1416         $(test-program-prefix-after-env).
1417         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1418         run_program_env and test_program_prefix_after_env arguments.
1419         Split $test calls into $test_pre and $test.
1420         * timezone/Makefile (build-testdata): Use
1421         $(built-program-cmd-before-env), $(run-program-env) and
1422         $(built-program-cmd-after-env).
1423
1424 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1425
1426         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1427         strlen for non SHARED builds.
1428
1429 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1430
1431         * nptl/allocatestack.c (check_list): Inlined function...
1432         (__reclaim_stacks): ... here.
1433
1434 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1435
1436         [BZ #15698]
1437         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1438         memory overrun.
1439
1440 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1441
1442         * Rules (make-test-out): Include
1443         LOCPATH=$(common-objpfx)localedata in default environment.
1444         * debug/Makefile (tst-chk1-ENV): Remove variable.
1445         (tst-chk2-ENV): Likewise.
1446         (tst-chk3-ENV): Likewise.
1447         (tst-chk4-ENV): Likewise.
1448         (tst-chk5-ENV): Likewise.
1449         (tst-chk6-ENV): Likewise.
1450         (tst-lfschk1-ENV): Likewise.
1451         (tst-lfschk2-ENV): Likewise.
1452         (tst-lfschk3-ENV): Likewise.
1453         (tst-lfschk4-ENV): Likewise.
1454         (tst-lfschk5-ENV): Likewise.
1455         (tst-lfschk6-ENV): Likewise.
1456         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1457         (tst-iconv7-ENV): Likewise.
1458         * intl/Makefile (LOCPATH-ENV): Likewise.
1459         (tst-codeset-ENV): Likewise.
1460         (tst-gettext3-ENV): Likewise.
1461         (tst-gettext5-ENV): Likewise.
1462         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1463         (tst-fopenloc-ENV): Likewise.
1464         (tst-fgetws-ENV): Remove variable.
1465         (tst-ungetwc1-ENV): Likewise.
1466         (tst-ungetwc2-ENV): Likewise.
1467         (bug-ungetwc2-ENV): Likewise.
1468         (tst-swscanf-ENV): Likewise.
1469         (bug-ftell-ENV): Likewise.
1470         (tst-fgetwc-ENV): Likewise.
1471         (tst-fseek-ENV): Likewise.
1472         (tst-ftell-partial-wide-ENV): Likewise.
1473         (tst-ftell-active-handler-ENV): Likewise.
1474         (tst-ftell-append-ENV): Likewise.
1475         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1476         (tst-regexloc-ENV): Likewise.
1477         (bug-regex1-ENV): Likewise.
1478         (tst-regex-ENV): Likewise.
1479         (tst-regex2-ENV): Likewise.
1480         (bug-regex5-ENV): Likewise.
1481         (bug-regex6-ENV): Likewise.
1482         (bug-regex17-ENV): Likewise.
1483         (bug-regex18-ENV): Likewise.
1484         (bug-regex19-ENV): Likewise.
1485         (bug-regex20-ENV): Likewise.
1486         (bug-regex22-ENV): Likewise.
1487         (bug-regex23-ENV): Likewise.
1488         (bug-regex25-ENV): Likewise.
1489         (bug-regex26-ENV): Likewise.
1490         (bug-regex30-ENV): Likewise.
1491         (bug-regex32-ENV): Likewise.
1492         (bug-regex33-ENV): Likewise.
1493         (bug-regex34-ENV): Likewise.
1494         (bug-regex35-ENV): Likewise.
1495         (tst-rxspencer-ENV): Likewise.
1496         (tst-rxspencer-no-utf8-ENV): Likewise.
1497         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1498         (tst-sscanf-ENV): Likewise.
1499         (tst-swprintf-ENV): Likewise.
1500         (tst-swscanf-ENV): Likewise.
1501         (test-vfprintf-ENV): Likewise.
1502         (scanf13-ENV): Likewise.
1503         (bug14-ENV): Likewise.
1504         (tst-grouping-ENV): Likewise.
1505         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1506         (tst-strtod3-ENV): Likewise.
1507         (tst-strtod4-ENV): Likewise.
1508         (tst-strtod5-ENV): Likewise.
1509         (testmb2-ENV): Likewise./
1510         * string/Makefile (tst-strxfrm-ENV): Likewise.
1511         (tst-strxfrm2-ENV): Likewise.
1512         (bug-strcoll1-ENV): Likewise.
1513         (test-strcasecmp-ENV): Likewise.
1514         (test-strncasecmp-ENV): Likewise.
1515         * time/Makefile (tst-strptime-ENV): Likewise.
1516         (tst-ftime_l-ENV): Likewise.
1517         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1518         (tst-mbrtowc-ENV): Likewise.
1519         (tst-wcrtomb-ENV): Likewise.
1520         (tst-mbrtowc2-ENV): Likewise.
1521         (tst-c16c32-1-ENV): Likewise.
1522         (tst-mbsnrtowcs-ENV): Likewise.
1523
1524 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1525
1526         * manual/resource.texi (How to get information about the memory
1527         subsystem?): Fix typo.
1528         Reported by Peon de la Parra Ivan <peon@keba.com>
1529
1530 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1531
1532         [BZ #16882]
1533         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1534         (pthread_spin_lock): Branch out of spin loop to proper location.
1535         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1536         (pthread_spin_lock): Likewise.
1537
1538         * nptl/tst-spin4.c: New test.
1539         * nptl/Makefile (tests): Add tst-spin4.
1540
1541 2014-06-03  Andreas Schwab  <schwab@suse.de>
1542
1543         [BZ #15946]
1544         * resolv/res_send.c (send_dg): Reload file descriptor after
1545         calling reopen.
1546
1547 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1548
1549         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1550
1551 2014-06-03  Richard Henderson  <rth@redhat.com>
1552
1553         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1554         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1555         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1556         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1557         in the SAVE_PID block.
1558         (__libc_vfork): New alias.
1559         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1560
1561         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1562         child in registers, not on the stack.  Remove RESET_PID conditionals.
1563         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1564
1565 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1566
1567         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1568
1569 2014-06-03  Wilco  <wdijkstr@arm.com>
1570
1571         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1572         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1573         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1574         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1575         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1576         Likewise.
1577
1578 2014-06-03  Wilco  <wdijkstr@arm.com>
1579
1580         * sysdeps/aarch64/fpu/math_private.h
1581         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1582         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1583         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1584         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1585         Fix declarations.
1586
1587 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1588
1589         * crypt/crypt-private.h: Include ufc-crypt.h.
1590         (__b64_from_24bit): Declare extern.
1591         * crypt/crypt_util.c(__b64_from_24bit): New function.
1592         (b64t): New static const variable.
1593         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1594         (b64t): Remove variable.
1595         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1596         * crypt/sha256-crypt.c: Include crypt-private.h.
1597         (b64t): Remove variable.
1598         (__sha256_crypt_r): Remove b64_from_24bit and replace
1599         with __b64_from_24bit.
1600         * crypt/sha512-crypt.c: Likewise.
1601
1602 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1603
1604         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1605         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1606         Label the code __libc_vfork rather than __vfork.
1607         [!NOT_IN_libc] (vfork): Define as weak alias.
1608         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
1609         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1610         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
1611
1612 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1613
1614         * malloc/malloc.c (malloc_info): Fix format specifier for
1615         n_mmaps.
1616
1617 2014-06-02  Wilco  <wdijkstr@arm.com>
1618
1619         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
1620         FPCR write.
1621
1622 2014-06-02  Wilco  <wdijkstr@arm.com>
1623
1624         [BZ #17009]
1625         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
1626         Rewrite to reduce FPCR/FPSR accesses.
1627
1628 2014-06-01  David S. Miller  <davem@davemloft.net>
1629
1630         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1631
1632 2014-05-31  David S. Miller  <davem@davemloft.net>
1633
1634         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
1635         to occur in round to nearest mode when |x| >= 2.0
1636
1637 2014-05-30  Richard Henderson  <rth@twiddle.net>
1638
1639         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
1640         (PSEUDO_RET_NOERRNO): Remove.
1641         (ret): Don't redefine.
1642         (ret_NOERRNO): Define in terms of ret.
1643         (ret_ERRVAL): Likewise.
1644
1645         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
1646         use of PSEUDO_RET; perform the error check directly.
1647
1648 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
1649
1650         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
1651         with __int128_t.
1652
1653 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1654
1655         * malloc/malloc (malloc_info): Fix formatting.
1656
1657 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1658             Roland McGrath  <roland@hack.frob.com>
1659
1660         * malloc/malloc (malloc_info): Also print mmapped statistics.
1661
1662 2014-05-30  Roland McGrath  <roland@hack.frob.com>
1663
1664         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
1665         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
1666
1667 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
1668
1669         * malloc/malloc.c (malloc_info): Inline mi_arena.
1670
1671 2014-05-29  Richard Henderson  <rth@twiddle.net>
1672
1673         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
1674         Remove comma before expanding ASM_ARGS_##nr.
1675         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
1676         Make _x0 a strict output; make _x8 a strict input; adjust expansion
1677         of ASM_ARGS_##nr.
1678         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
1679         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
1680         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
1681         (ASM_ARGS_1): Add leading comma.
1682
1683         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
1684         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
1685         to __errno_location.
1686         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
1687         Remove the expected plt for __errno_location.
1688
1689         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1690         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
1691         call to __read_tp.
1692
1693         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1694         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
1695         it and break it down.
1696         (DOCARGS_0, DOCARGS_1): Do nothing.
1697         (DOCARGS_2): Update to store into the new stack frame.
1698         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
1699         (UNDOCARGS_1): Update to restore from the new stack frame.
1700         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
1701         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
1702
1703         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1704         (SINGLE_THREAD_P): New parameter for result regno.
1705         (PSEUDO): Update to match; use cbz instead of beq.
1706
1707         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1708         Use ENTRY to define the _nocancel entry point.  Share the syscall
1709         and syscall error check paths with the cancel path.
1710         (PSEUDO_END): New.
1711
1712         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
1713         whitespace; tabs before and after asm mnemonics.
1714
1715 2014-05-29  Eric Wong  <normalperson@yhbt.net>
1716
1717         [BZ #15132]
1718         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1719         Call fstat64 or stat64 internally, depending on arguments passed.
1720         Replace stat buffer argument with file descriptor argument.
1721         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
1722         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
1723         Pass fd to __internal_statvfs instead of calling fstat64.
1724         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
1725         Pass fd to __internal_statvfs64 instead of calling fstat64.
1726         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
1727         Pass -1 to __internal_statvfs instead of calling stat64.
1728         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
1729         Pass -1 to __internal_statvfs64 instead of calling stat64.
1730
1731 2014-05-28  Roland McGrath  <roland@hack.frob.com>
1732
1733         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
1734         that was previously under [RESET_PID].
1735         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
1736
1737         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
1738         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
1739
1740 2014-05-27  Roland McGrath  <roland@hack.frob.com>
1741
1742         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
1743
1744         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
1745         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
1746
1747 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
1748
1749         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
1750
1751 2014-05-27  Andreas Schwab  <schwab@suse.de>
1752
1753         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
1754         TLS_INIT_TP macro.
1755         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1756         * elf/rtld.c (init_tls, dl_main): Likewise.
1757         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
1758         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
1759         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
1760         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
1761         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
1762         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1763         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
1764         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
1765         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
1766         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
1767         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
1768         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
1769         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
1770         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
1771         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
1772         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
1773         * sysdeps/generic/tls.h: Update description.
1774
1775 2014-05-27  Will Newton  <will.newton@linaro.org>
1776
1777         [BZ #16990]
1778         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
1779         and restore r2 rather than just restoring.
1780
1781 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1782
1783         [BZ #16724]
1784         * libio/tst-ftell-append.c: New test case.
1785         * libio/Makefile (tests): Add test case.
1786         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
1787         append mode.
1788         * libio/wfileops.c (do_ftell_wide): Likewise.
1789
1790 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1791
1792         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1793
1794         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
1795         ...
1796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
1797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
1798         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
1799         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
1800         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
1801         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
1802         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
1803         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
1804         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
1805         Moved ...
1806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
1807         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
1808         Moved ...
1809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
1810         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
1811         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
1812         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
1813         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
1814         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
1815         ...
1816         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
1817         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
1818         Moved ...
1819         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
1820         here.
1821         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
1822         ...
1823         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
1824         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
1825         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
1826
1827         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
1828         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
1829         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
1830         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
1831
1832         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
1833         merge into ...
1834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
1835         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
1836         ...
1837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
1838         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
1839         ...
1840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
1841         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
1842         Moved ...
1843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
1844         here.
1845         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
1846         Moved ...
1847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
1848         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
1849         Moved ...
1850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
1851
1852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
1853         conditional [RESET_PID].
1854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1855         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
1856         removed.
1857         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
1858         removed.
1859
1860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
1861         <tcb-offsets.h>.
1862         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1863         (__libc_vfork): New strong alias.
1864         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
1865         removed.
1866         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
1867         Removed.
1868
1869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
1870         <tcb-offsets.h>.
1871         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
1872         (__libc_vfork): New strong alias.
1873         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
1874         removed.
1875         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
1876         removed.
1877
1878 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
1879
1880         * malloc/malloc.c (mi_arena): New function.
1881         (malloc_info): Remove nested function mi_arena. Call non-nosted
1882         function mi_arena.
1883
1884 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1885
1886         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
1887         by insrwi.
1888         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1889         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
1890         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
1891         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
1892         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
1893         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
1894         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
1895
1896 2014-05-26  Andreas Schwab  <schwab@suse.de>
1897
1898         [BZ #16984]
1899         * locale/programs/repertoire.c (repertoire_read): Add slash
1900         between I18NPATH element and file name.
1901         * locale/programs/locfile.c (locfile_read): Likewise.
1902
1903 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1904
1905         * nptl/pthread_mutexattr_settype.c
1906         (__pthread_mutexattr_settype):
1907         Disable lock elision for PTHREAD_MUTEX_NORMAL.
1908
1909 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1910
1911         * nptl/tst-mutex5 (do_test):
1912         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
1913
1914 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1915
1916         * benchtests/README: Document 'init' directive.
1917         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
1918         BENCH_INIT.
1919         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
1920         (parse_file): Recognize 'init' directive.
1921
1922 2014-05-26  Kyle McMartin  <kyle@redhat.com>
1923
1924         [BZ #16796]
1925         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
1926         alignment of struct pthread.
1927
1928 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1929
1930         [BZ #16878]
1931         * nscd/netgroupcache.c (addgetnetgrentX): Look for
1932         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1933         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
1934         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1935
1936 2014-05-25  Richard Henderson  <rth@twiddle.net>
1937
1938         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1939         (SINGLE_THREAD_P_PIC): Remove.
1940         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
1941         (SINGLE_THREAD_P_PIC): Remove.
1942
1943         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
1944         branch to syscall error ...
1945         (PSEUDO): ... here.
1946         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
1947         from __local_syscall_error to .Lsyscall_error.
1948         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
1949         (SYSCALL_ERROR): Update label name.
1950
1951         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1952         Do not use DOARGS/UNDOARGS.
1953         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
1954         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
1955         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
1956         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
1957         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
1958
1959         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
1960         block comment.
1961
1962         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
1963         define if !NOT_IN_libc.
1964         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
1965         define with non-default symbol versions.
1966
1967 2014-05-23  Richard Henderson  <rth@twiddle.net>
1968
1969         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
1970         (vfork, __vfork): Define via compat_symbol.
1971
1972         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
1973         [!HAVE_IFUNC] (vfork_compat): Remove.
1974         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
1975
1976 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1977
1978         [BZ #16978]
1979         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
1980         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
1981         variable.
1982
1983 2014-05-23  Richard Henderson  <rth@twiddle.net>
1984
1985         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
1986         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
1987         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
1988         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
1989
1990         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
1991         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
1992         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
1993         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
1994         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
1995         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
1996         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
1997         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
1998         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
1999         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2000         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2001         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2002         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2003         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2004         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2005         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2006         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2007         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2008         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2009         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2010         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2011         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2012         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2013         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2014         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2015         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2016         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2017         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2018         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2019         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2020         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2021         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2022         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2023         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2024         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2025         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2026         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2027         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2028         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2029         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2030         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2031         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2032         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2033         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2034         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2035         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2036         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2037         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2038         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2039         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2040         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2041         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2042         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2043         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2044         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2045         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2046
2047         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2048         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2049         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2050         before exiting on error.
2051         (__libc_vfork): New strong alias.
2052         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2053         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2054
2055         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2056         that was previously under [RESET_PID].
2057         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2058
2059         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2060
2061 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2062
2063         [BZ #16977]
2064         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2065         value when x - 1 is zero.
2066         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2067         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2068         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2069         0.0L for an argument of 1.0L.
2070         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2071         Likewise.
2072         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2073         value when x - 1 is zero.
2074         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2075         * sysdeps/i386/fpu/libm-test-ulps: Update.
2076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2077
2078 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2079
2080         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2081         alphasort and versionsort.
2082
2083 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2084
2085         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2086         macro.
2087         [copysignf]: Likewise.
2088
2089 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2090
2091         * crypt/md5-crypt.c: Fix formatting.
2092
2093 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2094
2095         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2096         (b64_from_24bit): New function.
2097
2098 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2099
2100         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2101         libc_hidden_builtin_def to ifunc.
2102         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2103         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2104
2105 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2106
2107         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2108         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2109
2110 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2111
2112         * nscd/Depend (linuxthreads): Remove.
2113         (nptl): Add.
2114         * resolv/Depend (linuxthreads): Remove.
2115         * rt/Depend (linuxthreads): Remove.
2116
2117         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2118         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2119         $(common-objpfx)elf/.
2120         (link-libc-before-gnulib): Likewise.
2121         (elfobjdir): Remove variable.
2122         * Makefile (install): Use $(elf-objpfx) instead of
2123         $(common-objpfx)elf/.
2124         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2125         $(elfobjdir)/.
2126         (link-libc-deps): Likewise.
2127         ($(common-objpfx)libc.so): Likewise.
2128         ($(common-objpfx)linkobj/libc.so): Likewise.
2129         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2130         instead of $(common-objpfx)elf/.
2131         (symbolic-link-list): Likewise.
2132         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2133         [$(cross-compiling) = no]: Likewise.
2134         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2135         $(elfobjdir)/.
2136         (static-gnulib-arch): Likewise.
2137         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2138         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2139         $(common-objpfx)elf/.
2140
2141 2014-05-21  Richard Henderson  <rth@redhat.com>
2142
2143         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2144         (SINGLE_THREAD_P): Use the correct width load.  Fold
2145         into the ldr offset.
2146
2147         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2148         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2149
2150 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2151
2152         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2153         (libgcc_s_resume): Use __attribute_used__.
2154         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2155         Likewise.
2156
2157 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2158
2159         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2160         optimization when used with float constants.
2161
2162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2163
2164 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2165
2166         [BZ #16915]
2167         * locale/nl_langinfo_l.c: Make direct reference to every
2168         _nl_current_CATEGORY symbol.
2169         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2170         (tests-static): Add tst-langinfo-static.
2171         (tests-special): Add tst-langinfo-static.out.
2172         ($(objpfx)tst-langinfo.out): Redirect output.
2173         ($(objpfx)tst-langinfo-static.out): New.
2174         * localedata/tst-langinfo.sh: Send output to stdout.
2175         * localedata/tst-langinfo-static.c: New file.
2176
2177         [BZ #16965]
2178         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2179         when the shift amount is modulo the limb size.
2180
2181 2014-05-20  Richard Henderson  <rth@redhat.com>
2182
2183         [BZ #16967]
2184         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2185         Change type of sa_flags from unsigned int to int.
2186
2187         [BZ #16966]
2188         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2189
2190         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2191
2192 2014-05-20  Will Newton  <will.newton@linaro.org>
2193
2194         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2195         Test the return value of the system call in the nocancel case.
2196
2197 2014-05-20  Will Newton  <will.newton@linaro.org>
2198             Yvan Roux  <yvan.roux@linaro.org>
2199
2200         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2201         #include of asm/ptrace.h.
2202         (PTRACE_GET_THREAD_AREA): Remove #undef.
2203         (PTRACE_GETHBPREGS): Likewise.
2204         (PTRACE_SETHBPREGS): Likewise.
2205         (struct user_regs_struct): New structure.
2206         (struct user_fpsimd_struct): New structure.
2207         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2208         #include of asm/ptrace.h and second #include of sys/user.h.
2209         (PTRACE_GET_THREAD_AREA): Remove #undef.
2210         (PTRACE_GETHBPREGS): Likewise.
2211         (PTRACE_SETHBPREGS): Likewise.
2212         (ELF_NGREG): Use new struct user_regs_struct.
2213         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2214
2215 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2216
2217         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2218         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2219
2220 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2221
2222         [BZ #16958]
2223         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2224         membar to avoid block loads/stores to overlap previous stores.
2225
2226 2014-05-17  Richard Henderson  <rth@redhat.com>
2227
2228         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2229         Create the __##syscall_name##_nocancel entry point.
2230         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2231         Remove; let the sysdep-cancel.h code create it.
2232
2233 2014-05-17  David S. Miller  <davem@davemloft.net>
2234
2235         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2236         Protect with __USE_GNU.
2237         (TIOCSET_TEMPT): Likewise.
2238         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2239         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2240         these are already provided in bits/ioctl-types.h
2241
2242 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2243
2244         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2245         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2246
2247         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2248         Use wait4 regardless of [__NR_waitpid].
2249
2250 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2251
2252         PR libgcc/60166
2253         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2254         (_FP_NANSIGN_Q): Set the quiet bit.
2255
2256 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2257
2258         * benchtests/Makefile
2259         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2260         not $(common-objpfx)math/libm.so.
2261         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2262         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2263         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2264         $(common-objpfx)dlfcn/libdl.so.
2265         ($(objpfx)tst-audit8): Depend on $(libm), not
2266         $(common-objpfx)math/libm.so.
2267         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2268         not $(common-objpfx)dlfcn/libdl.so.
2269         * math/Makefile
2270         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2271         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2272         [$(build-shared) = yes].
2273         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2274         $(common-objpfx)nptl/libpthread.so.
2275         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2276         $(common-objpfx)math/libm.so$(libm.so-version) or
2277         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2278         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2279         $(common-objpfx)dlfcn/libdl.so.
2280         * setjmp/Makefile (link-libm): Remove variable.
2281         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2282         * stdio-common/Makefile (link-libm): Remove variable.
2283         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2284         * stdlib/Makefile (link-libm): Remove variable.
2285         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2286         ($(objpfx)tst-strtod-round): Likewise.
2287         ($(objpfx)tst-tininess): Likewise.
2288         ($(objpfx)tst-strtod-underflow): Likewise.
2289         ($(objpfx)tst-strtod6): Likewise.
2290         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2291         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2292         $(common-objpfx)dlfcn/libdl.so.
2293
2294 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2295
2296         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2297         BSD terminal modes definitions.
2298
2299 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2300
2301         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2302         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2303
2304         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2305         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2306         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2307         Don't do #include_next.
2308         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2309         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2310         Don't do #include_next.
2311         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2312         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2313         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2314         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2315
2316 2014-05-16  Allan McRae  <allan@archlinux.org>
2317
2318         * po/sv.po: Update Swedish translation from translation project.
2319
2320         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2321         in sed expression.
2322
2323 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2324
2325         [BZ #16917]
2326         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2327         errno if the TIOCGPTN ioctl fails with an error different than
2328         EINVAL.
2329         * login/tst-ptsname.c: New file.
2330         * login/Makefile (tests): Add tst-ptsname.
2331
2332         [BZ #16943]
2333         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2334         and prlimit64.
2335
2336 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2337
2338         [BZ #16849]
2339         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2340         herrno to return EAI_AGAIN.
2341
2342 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2343
2344         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2345         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2346         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2347         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2348         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2349         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2350         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2351         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2352         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2353         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2354         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2355         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2356         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2357         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2358         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2359         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2360         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2361         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2362         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2363         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2364         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2365         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2366         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2367         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2368         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2369         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2370         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2371         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2372         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2373         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2374         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2375         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2376         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2377         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2378         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2379         Moved ...
2380         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2381         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2382         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2383         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2384         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2385         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2386         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2388         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2389         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2390         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2391         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2392         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2393         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2394         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2395         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2396         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2397         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2398         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2399         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2400         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2402         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2403         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2404         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2405         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2406         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2407         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2408         Moved ...
2409         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2410         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2411         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2412         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2413         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2414         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2415         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2416         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2417         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2418         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2419         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2420         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2421         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2422         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2423         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2424         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2425         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2426         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2427         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2428         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2429         Moved ...
2430         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2431         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2432         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2433
2434         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2435         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2436         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2437         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2438         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2439         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2440         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2441         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2442         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2443         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2444         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2445         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2446         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2447         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2448         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2449         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2450         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2451         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2452         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2453         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2454         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2455         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2456         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2457         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2458         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2459         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2460         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2461         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2462         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2463         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2464         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2465
2466         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2467         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2468
2469         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2470         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2471         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2472         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2473         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2474         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2475         Moved ...
2476         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2477         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2478         Moved ...
2479         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2480         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2481         Moved ...
2482         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2483         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2484         Moved ...
2485         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2486         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2487         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2488         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2489         Moved ...
2490         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2491         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2492         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2493         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2494         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2495         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2496         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2497         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2498         Moved ...
2499         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2500         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2501         Moved ...
2502         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2503         ... here.
2504         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2505         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2506         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2507         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2508         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2509         Moved ...
2510         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2511         ... here.
2512         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2513         Moved ...
2514         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2515         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2516         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2517         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2518         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2519         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2520         Moved ...
2521         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2522         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2523         Moved ...
2524         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2525         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2526         Moved ...
2527         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2528         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2529         Moved ...
2530         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2531         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2532         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2533         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2534         Moved ...
2535         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2536         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2537         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2538         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2539         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2540         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2541         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2542         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2543         Moved ...
2544         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2545         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2546         Moved ...
2547         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2548         ... here.
2549         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2550         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2551         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2552         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2553         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2554         Moved ...
2555         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2556         ... here.
2557         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2558         Moved ...
2559         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2560         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2561         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2562         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2563         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2564         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2565         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2566         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2567         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2568         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2569         Moved ...
2570         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2571         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2572         Moved ...
2573         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2574         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2575         Moved ...
2576         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2577         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2578         Moved ...
2579         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2580         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2581         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2582         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2583         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2584         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2585         Moved ...
2586         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2587         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2588         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2589         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2590         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2591         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2592         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2593         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2594         Moved ...
2595         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2596         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2597         Moved ...
2598         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2599         ... here.
2600         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2601         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2602         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2603         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2604         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2605         Moved ...
2606         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2607         ... here.
2608         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
2609         Moved ...
2610         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
2611         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
2612         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
2613         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
2614         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
2615         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
2616         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
2617         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
2618         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
2619         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
2620         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
2621
2622         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
2623         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
2624
2625         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
2626         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
2627
2628         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
2629         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
2630         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
2631         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
2632         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
2633         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
2634         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
2635         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
2636         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
2637         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
2638         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
2639         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
2640         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
2641         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
2642         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
2643         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
2644         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
2645         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
2646         Moved ...
2647         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
2648         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
2649         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
2650         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
2651         Moved ...
2652         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
2653         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
2654         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
2655         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
2656         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
2657         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
2658         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
2659         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2660         Moved ...
2661         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
2662         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2663         Moved ...
2664         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
2665         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
2666         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
2667         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
2668         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
2669         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
2670         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
2671         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
2672         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
2673         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
2674         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
2675         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
2676         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
2677         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
2678         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
2679         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
2680         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
2681
2682         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
2683         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
2684         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
2685         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
2686         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
2687
2688         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
2689         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
2690         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
2691         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
2692         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
2693         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
2694         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
2695         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
2696         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
2697         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
2698
2699         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
2700         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
2701
2702         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
2703         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
2704         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
2705         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
2706         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
2707         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
2708         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
2709         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
2710         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
2711         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
2712         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
2713         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
2714         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
2715         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
2716         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
2717         Update #include.
2718         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
2719         Likewise.
2720         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2721         Likewise.
2722         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2723         Likewise.
2724         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2725         Likewise.
2726         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
2727         Likewise.
2728         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
2729         Likewise.
2730         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
2731         Likewise.
2732         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
2733         Likewise.
2734         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
2735         Likewise.
2736         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
2737         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
2738         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
2739         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
2740         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
2741         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
2742         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
2743         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
2744         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
2745         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
2746         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
2747         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
2748         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
2749         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
2750         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
2751
2752         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
2753         that was previously under [RESET_PID].
2754         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2755         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
2756         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
2757
2758         * sysdeps/i386/nptl/Implies: New file.
2759         * sysdeps/x86_64/nptl/Implies: New file.
2760         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
2761         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
2762         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
2763         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
2764
2765         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
2766         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2767         (__libc_vfork): New strong alias.
2768         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
2769         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
2770
2771         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
2772         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2773         (__libc_vfork): New strong alias.
2774         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
2775         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
2776
2777         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
2778         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2779         (__libc_vfork): New strong alias.
2780         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
2781         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
2782         * nptl/pt-vfork.c: New file.
2783         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
2784         (libpthread: GLIBC_2.20): New version set (empty).
2785
2786 2014-05-14  Will Newton  <will.newton@linaro.org>
2787
2788         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
2789         rather than #if.
2790
2791 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2792
2793         [BZ #16564]
2794         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
2795         arguments with exponent 65 or above.
2796         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
2797         arguments 0x1p113L or above.
2798         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
2799         to arguments 0x1p107L or above.
2800         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
2801         positive arguments with exponent 65 or above.
2802         * math/auto-libm-test-in: Add more tests of log1p.
2803         * math/auto-libm-test-out: Regenerated.
2804
2805         [BZ #16928]
2806         * math/s_cacos.c (__cacos): Ensure zero real part of result from
2807         non-finite arguments is +0.
2808         * math/s_cacosf.c (__cacosf): Likewise.
2809         * math/s_cacosl.c (__cacosl): Likewise.
2810         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
2811         * sysdeps/i386/fpu/libm-test-ulps: Update.
2812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2813
2814         [BZ #16927]
2815         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
2816         value.
2817         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
2818         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
2819         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
2820         for explicit high bit of mantissa when testing for argument equal
2821         to 1.
2822         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
2823         * sysdeps/i386/fpu/libm-test-ulps: Update.
2824         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2825
2826         [BZ #16516]
2827         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
2828         (__erf): Scale by 16 instead of 8 in potentially underflowing
2829         case.  Ensure exception if result actually underflows.
2830         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
2831         (__erff): Scale by 16 instead of 8 in potentially underflowing
2832         case.  Ensure exception if result actually underflows.
2833         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
2834         (efx8): Remove variable.
2835         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2836         case.  Ensure exception if result actually underflows.
2837         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
2838         (efx8): Remove variable.
2839         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2840         case.  Ensure exception if result actually underflows.
2841         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
2842         (efx8): Remove variable.
2843         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2844         case.  Ensure exception if result actually underflows.
2845         * math/auto-libm-test-in: Add more tests of erf.
2846         * math/auto-libm-test-out: Regenerated.
2847
2848 2014-05-14  Andreas Schwab  <schwab@suse.de>
2849
2850         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
2851         Remove code conditionalized on USE___THREAD.
2852
2853         * config.h.in (HAVE_PT_CHOWN): Define as 0.
2854         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
2855         not definedness.
2856
2857 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2858
2859         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
2860         Define unconditionally.
2861         (__ASSUME_O_CLOEXEC): Likewise.
2862         (__ASSUME_SOCK_CLOEXEC): Likewise.
2863         (__ASSUME_IN_NONBLOCK): Likewise.
2864         (__ASSUME_PIPE2): Likewise.
2865         (__ASSUME_EVENTFD2): Likewise.
2866         (__ASSUME_SIGNALFD4): Likewise.
2867         (__ASSUME_DUP3): Likewise.
2868         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
2869         (__ASSUME_DUP3): Do not define.
2870         (__ASSUME_EVENTFD2): Likewise.
2871         (__ASSUME_IN_NONBLOCK): Likewise.
2872         (__ASSUME_O_CLOEXEC): Likewise.
2873         (__ASSUME_PIPE2): Likewise.
2874         (__ASSUME_SIGNALFD4): Likewise.
2875         (__ASSUME_SOCK_CLOEXEC): Likewise.
2876         (__ASSUME_UTIMES): Undefine.
2877         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2878         (__ASSUME_UTIMES): Do not define.
2879         (__ASSUME_O_CLOEXEC): Likewise.
2880         (__ASSUME_SOCK_CLOEXEC): Likewise.
2881         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
2882         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
2883         0x020621].
2884         (__ASSUME_PIPE2): Likewise.
2885         (__ASSUME_EVENTFD2): Likewise.
2886         (__ASSUME_SIGNALFD4): Likewise.
2887         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
2888         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
2889         Do not define.
2890         (__ASSUME_EVENTFD2): Likewise.
2891         (__ASSUME_SIGNALFD4): Likewise.
2892         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2893         (__ASSUME_32BITUIDS): Likewise.
2894         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2895         (__ASSUME_IPC64): Likewise.
2896         (__ASSUME_ST_INO_64_BIT): Likewise.
2897         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
2898         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
2899         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2900         (__ASSUME_UTIMES): Do not define.
2901         (__ASSUME_PSELECT): Likewise.
2902         (__ASSUME_PPOLL): Likewise.
2903         (__ASSUME_O_CLOEXEC): Likewise.
2904         (__ASSUME_SOCK_CLOEXEC): Likewise.
2905         (__ASSUME_IN_NONBLOCK): Likewise.
2906         (__ASSUME_PIPE2): Likewise.
2907         (__ASSUME_EVENTFD2): Likewise.
2908         (__ASSUME_SIGNALFD4): Likewise.
2909         (__ASSUME_DUP3): Likewise.
2910         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2911         (__ASSUME_UTIMES): Likewise.
2912         (__ASSUME_O_CLOEXEC): Likewise.
2913         (__ASSUME_SOCK_CLOEXEC): Likewise.
2914         (__ASSUME_IN_NONBLOCK): Likewise.
2915         (__ASSUME_PIPE2): Likewise.
2916         (__ASSUME_EVENTFD2): Likewise.
2917         (__ASSUME_SIGNALFD4): Likewise.
2918         (__ASSUME_DUP3): Likewise.
2919         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2920         (__ASSUME_UTIMES): Likewise.
2921         (__ASSUME_O_CLOEXEC): Likewise.
2922         (__ASSUME_SOCK_CLOEXEC): Likewise.
2923         (__ASSUME_IN_NONBLOCK): Likewise.
2924         (__ASSUME_PIPE2): Likewise.
2925         (__ASSUME_EVENTFD2): Likewise.
2926         (__ASSUME_SIGNALFD4): Likewise.
2927         (__ASSUME_DUP3): Likewise.
2928         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
2929         Likewise.
2930         (__ASSUME_UTIMES): Likewise.
2931         (__ASSUME_EVENTFD2): Likewise.
2932         (__ASSUME_SIGNALFD4): Likewise.
2933         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2934         (__ASSUME_O_CLOEXEC): Likewise.
2935         (__ASSUME_SOCK_CLOEXEC): Likewise.
2936         (__ASSUME_IN_NONBLOCK): Likewise.
2937         (__ASSUME_PIPE2): Likewise.
2938         (__ASSUME_EVENTFD2): Likewise.
2939         (__ASSUME_SIGNALFD4): Likewise.
2940         (__ASSUME_DUP3): Likewise.
2941         (__ASSUME_UTIMES): Undefine.
2942
2943         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
2944         feclearexcept.  Remove symbol versioning code.
2945         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
2946         symbol versioning code.
2947         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
2948         symbol versioning code.
2949         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
2950         feupdateenv.  Remove symbol versioning code.
2951         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
2952         fegetexceptflag.  Remove symbol versioning code.
2953         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
2954         fesetexceptflag.  Remove symbol versioning code.
2955         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
2956         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
2957         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
2958         (__posix_fadvise64_l32): Remove prototype.
2959         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
2960         code.
2961
2962 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2963
2964         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
2965         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
2966         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
2967         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
2968
2969 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
2970
2971         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
2972         current working directory
2973
2974 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2975
2976         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
2977         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
2978         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
2979         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
2980         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
2981         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
2982         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
2983         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
2984         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
2985         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
2986         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
2987         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
2988         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
2989         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
2990         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
2991         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
2992         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
2993         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
2994         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
2995         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
2996         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
2997         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
2998         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
2999         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3000         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3001         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3002         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3003         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3004         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3005         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3006         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3007         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3008         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3009         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3010         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3011         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3012         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3013         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3014         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3015         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3016         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3017         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3018
3019         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3020         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3021
3022         * sysdeps/unix/sysv/linux/arm/Makefile
3023         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3024         Add rt-aeabi_unwind_cpp_pr1.
3025         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3026         Add nptl-aeabi_unwind_cpp_pr1.
3027         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3028         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3029         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3030         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3031         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3032         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3033
3034         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3035         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3036         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3037         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3038
3039         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3040         Deconditionalize the code that was previously under [RESET_PID].
3041         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3042
3043         * sysdeps/generic/exit-thread.h: New file.
3044         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3045         * include/unistd.h (__exit_thread): Remove declaration.
3046         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3047         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3048         * csu/libc-start.c: Include <exit-thread.h>.
3049         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3050         * nptl/pthread_create.c: Include <exit-thread.h>.
3051         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3052         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3053         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3054         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3055         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3056         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3057         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3058         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3059         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3060         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3061         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3062         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3063         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3064         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3065         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3066         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3067         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3068
3069 2014-05-13  Andreas Schwab  <schwab@suse.de>
3070
3071         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3072
3073 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3074
3075         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3076         (__ASSUME_UTIMES): Do not condition on kernel version.
3077         (__ASSUME_PSELECT): Define unconditionally.
3078         (__ASSUME_PPOLL): Likewise.
3079         (__ASSUME_ATFCTS): Likewise.
3080         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3081         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3082         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3083         (__ASSUME_UTIMENSAT): Define unconditionally.
3084         (__ASSUME_PRIVATE_FUTEX): Likewise.
3085         (__ASSUME_FALLOCATE): Likewise.
3086         (__ASSUME_O_CLOEXEC): Likewise.
3087         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3088         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3089         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3090         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3091         (__ASSUME_IN_NONBLOCK): Likewise.
3092         (__ASSUME_PIPE2): Likewise.
3093         (__ASSUME_EVENTFD2): Likewise.
3094         (__ASSUME_SIGNALFD4): Likewise.
3095         (__ASSUME_DUP3): Likewise.
3096         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3097         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3098         (__ASSUME_AT_RANDOM): Likewise.
3099         (__ASSUME_PREADV): Likewise.
3100         (__ASSUME_PWRITEV): Likewise.
3101         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3102         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3103         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3104         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3105         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3106         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3107         (__ASSUME_O_CLOEXEC): Define unconditionally.
3108         (__ASSUME_PSELECT): Do not undefine conditionally.
3109         (__ASSUME_PPOLL): Likewise.
3110         (__ASSUME_ATFCTS): Likewise.
3111         (__ASSUME_SET_ROBUST_LIST): Likewise.
3112         (__ASSUME_UTIMENSAT): Likewise.
3113         (__ASSUME_FDATASYNC): Define unconditionally.
3114         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3115         (__ASSUME_SIGFRAME_V2): Likewise.
3116         )__ASSUME_EVENTFD2): Likewise.
3117         (__ASSUME_SIGNALFD4): Likewise.
3118         (__ASSUME_PSELECT): Do not undefine conditionally.
3119         (__ASSUME_PPOLL): Likewise.
3120         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3121         (__ASSUME_PSELECT): Define unconditionally.
3122         (__ASSUME_PPOLL): Likewise.
3123         (__ASSUME_O_CLOEXEC): Likewise.
3124         (__ASSUME_SOCK_CLOEXEC): Likewise.
3125         (__ASSUME_IN_NONBLOCK): Likewise.
3126         (__ASSUME_PIPE2): Likewise.
3127         (__ASSUME_EVENTFD2): Likewise.
3128         (__ASSUME_SIGNALFD4): Likewise.
3129         (__ASSUME_DUP3): Likewise.
3130         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3131         (__ASSUME_O_CLOEXEC): Likewise.
3132         (__ASSUME_SOCK_CLOEXEC): Likewise.
3133         (__ASSUME_IN_NONBLOCK): Likewise.
3134         (__ASSUME_PIPE2): Likewise.
3135         (__ASSUME_EVENTFD2): Likewise.
3136         (__ASSUME_SIGNALFD4): Likewise.
3137         (__ASSUME_DUP3): Likewise.
3138         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3139         (__ASSUME_EVENTFD2): Likewise.
3140         (__ASSUME_SIGNALFD4): Likewise.
3141         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3142
3143 2014-05-12  Andreas Schwab  <schwab@suse.de>
3144
3145         [BZ #16932]
3146         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3147         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3148         than maximum RPC packet size.
3149         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3150         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3151         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3152         (_nss_nis_getservbyport_r): Likewise.
3153
3154 2014-05-12  Will Newton  <will.newton@linaro.org>
3155
3156         * malloc/Makefile (tests): Add tst-mallopt.
3157         * malloc/tst-mallopt.c: New file.
3158
3159 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3160
3161         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3162         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3163
3164 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3165
3166         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3167         (tst-tlsmod6.so): Likewise.
3168
3169 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3170
3171         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3172
3173 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3174
3175         [BZ #16064]
3176         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3177         and <dl-procinfo.h>.
3178         (__fegetenv): Save SSE state in envp->__eip if supported.
3179         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3180         envp->__eip if supported.
3181         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3182         and <dl-procinfo.h>.
3183         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3184         __data_offset and __data_selector in environment to 0.  Set SSE
3185         state if supported.
3186         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3187         test-fenv-sse.
3188         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3189         -mfpmath=sse.
3190         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3191
3192 2014-05-09  Will Newton  <will.newton@linaro.org>
3193
3194         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3195         and libc_relro_required for ARM.
3196         * sysdeps/arm/preconfigure: Regenerate.
3197
3198 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3199             Stefan Liebler  <stli@linux.vnet.ibm.com>
3200
3201         * config.make.in (enable-lock-elision): New Makefile variable.
3202         * configure.ac: Likewise.
3203         * configure: Regenerate.
3204         * sysdeps/s390/configure.ac:
3205         Add check for gcc transactions support.
3206         * sysdeps/s390/configure: Regenerate.
3207         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3208         Build elision files if enabled.
3209         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3210         Add lock elision support for s390.
3211         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3212         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3213         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3214         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3215         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3216         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3217         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3218         Likewise.
3219         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3220         Likewise.
3221         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3222         Likewise.
3223         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3224         Likewise.
3225         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3226         (__lll_timedlock_elision, __lll_lock_elision)
3227         (__lll_unlock_elision, __lll_trylock_elision)
3228         (lll_timedlock_elision, lll_lock_elision)
3229         (lll_unlock_elision, lll_trylock_elision): Add.
3230         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3231         (pthread_mutex_t): Add lock elision support for s390.
3232
3233 2014-05-14  Wilco  <wdijkstr@arm.com>
3234
3235         * sysdeps/arm/fclrexcpt.c: Cleanup.
3236         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3237         * sysdeps/arm/feenablxcpt.c: Cleanup.
3238         * sysdeps/arm/fegetenv.c: Cleanup.
3239         * sysdeps/arm/fegetexcept.c: Cleanup.
3240         * sysdeps/arm/fegetround.c: Cleanup.
3241         * sysdeps/arm/feholdexcpt.c: Cleanup.
3242         * sysdeps/arm/fesetenv.c: Cleanup.
3243         * sysdeps/arm/fesetround.c: Cleanup.
3244         * sysdeps/arm/feupdateenv.c: Cleanup.
3245         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3246         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3247         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3248         * sysdeps/arm/ftestexcept.c: Cleanup.
3249         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3250         * sysdeps/arm/setfpucw.c: Cleanup.
3251
3252 2014-05-09  Will Newton  <will.newton@linaro.org>
3253
3254         * sysdeps/arm/armv7/strcmp.S: New file.
3255         * NEWS: Mention addition of ARMv7 optimized strcmp.
3256
3257 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3258
3259         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3260         look for %.ac rather than %.in.
3261
3262         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3263         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3264         * sysdeps/mach/hurd/configure: Regenerated.
3265         * sysdeps/unix/sysv/linux/configure: Regenerated.
3266
3267         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3268
3269 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3270
3271         [BZ# 16922]
3272         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3273         (LONG_SUB): Ditto.
3274         (PTR_SUB): Ditto.
3275
3276 2014-05-07  Andreas Schwab  <schwab@suse.de>
3277
3278         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3279         when skipping over non-matching result from nscd.
3280
3281 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3282
3283         [BZ #16876]
3284         * nptl/sockperf.c (client): Check socket return value.
3285
3286         [BZ #16877]
3287         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3288         nscd security class.
3289
3290 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3291
3292         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3293         * sysdeps/arm/unwind.h: ... here.
3294
3295 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3296
3297         [BZ# 16916]
3298         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3299         Define.
3300
3301 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3302
3303         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3304         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3305         multiarch strncpy for PPC64.
3306         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3307         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3308         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3309         multiarch optimizations.
3310         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3311         (__libc_ifunc_impl_list): Likewise.
3312         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3313         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3314         multiarch stpncpy for PPC64.
3315         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3316         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3317
3318 2014-05-06  Andreas Schwab  <schwab@suse.de>
3319
3320         [BZ #16912]
3321         * gmon/mcount.c (_MCOUNT_DECL): Use
3322         atomic_compare_and_exchange_bool_acq instead of
3323         catomic_compare_and_exchange_bool_acq.
3324
3325 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3326
3327         * elf/Makefile (others, install-bin): Remove pldd.
3328         (pldd-modules): Variable removed.
3329         ($(objpfx)pldd): Target removed.
3330         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3331         (others, install-bin): Append pldd here.
3332         ($(objpfx)pldd): New target.
3333
3334         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3335         to 0, so the first #if test emitted later doesn't see it undefined.
3336         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3337         * sysdeps/gnu/errlist.c: Regenerated.
3338
3339 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3340
3341         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3342         [libc_hidden_builtin_def]: Define to empty value.
3343         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3344         [libc_hidden_builtin_def]: Likewise.
3345         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3346         [libc_hidden_builtin_def]: Likewise.
3347         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3348         [libc_hidden_builtin_def]: Likewise.
3349         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3350         __redirect_memcpy and define ifunc as default hidden symbol.
3351         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3352         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3353
3354 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3355
3356         * locale/iso-4217.def: Reintroduce XDR currency.
3357
3358 2014-05-04  Allan McRae  <allan@archlinux.org>
3359
3360         * po/eo.po: Update Esperanto translation from translation project.
3361
3362 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3363
3364         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3365         and FEATURE_INDEX_MAX to 1.
3366         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3367
3368 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3369
3370         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3371         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3372         * iconvdata/big5.c (ONE_DIRECTION): Define.
3373         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3374         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3375         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3376         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3377         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3378         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3379         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3380         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3381         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3382         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3383         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3384         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3385         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3386         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3387         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3388         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3389         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3390         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3391         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3392         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3393         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3394         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3395         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3396         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3397         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3398         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3399         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3400         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3401         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3402         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3403         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3404         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3405         * iconvdata/johab.c (ONE_DIRECTION): Define.
3406         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3407         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3408         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3409         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3410         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3411         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3412         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3413         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3414         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3415         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3416
3417 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3418
3419         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3420         (_IO_JUMPS_OFFSET): Define to 0.
3421
3422         * nptl/sysdeps/pthread/bits/libc-lock.h
3423         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3424         (__libc_lock_define_initialized_recursive): Always define using
3425         initializer.  Modern compilers treat uninitialized (implicit zero) and
3426         explicit zero initializers the same (i.e. put the datum in bss).
3427
3428 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3429
3430         * nscd/nscd-client.h: Include <string.h>.
3431
3432 2014-05-01  David S. Miller  <davem@davemloft.net>
3433
3434         [BZ #16885]
3435         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3436         multiple zero bytes exist at the end of a string.
3437         Reported by Aurelien Jarno <aurelien@aurel32.net>
3438
3439         * string/test-strcmp.c (check): Add explicit test for situations where
3440         there are multiple zero bytes after the first.
3441
3442 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3443
3444         [BZ #16890]
3445         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3446         when compiling wprintf.
3447         * stdio-common/tstdiomisc.c (t3): New function.
3448         (main): Call it.
3449
3450 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3451
3452         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3453         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3454         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3455         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3456
3457 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3458
3459         * stdlib/longlong.h: Updated from GCC.
3460
3461 2014-05-01  Will Newton  <will.newton@linaro.org>
3462             Bernard Ogden  <bernie.ogden@linaro.org>
3463
3464         * NEWS: Update fixed bug list.
3465
3466         [BZ #15119]
3467         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3468
3469 2014-04-30  David S. Miller  <davem@davemloft.net>
3470
3471         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3472         (libc_feholdexcept_setround_sparc_ctx): New function.
3473         (libc_fesetenv_sparc_ctx): Likewise.
3474         (libc_feupdateenv_sparc_ctx): Likewise.
3475         (libc_feholdsetround_sparc_ctx): Likewise.
3476         (libc_feholdexcept_setround_ctx): Define.
3477         (libc_feholdexcept_setroundf_ctx): Likewise.
3478         (libc_feholdexcept_setroundl_ctx): Likewise.
3479         (libc_fesetenv_ctx): Likewise.
3480         (libc_fesetenvf_ctx): Likewise.
3481         (libc_fesetenvl_ctx): Likewise.
3482         (libc_feupdateenv_ctx): Likewise.
3483         (libc_feupdateenvf_ctx): Likewise.
3484         (libc_feupdateenvl_ctx): Likewise.
3485         (libc_feresetround_ctx): Likewise.
3486         (libc_feresetroundf_ctx): Likewise.
3487         (libc_feresetroundl_ctx): Likewise.
3488         (libc_feholdsetround_ctx): Likewise.
3489         (libc_feholdsetroundf_ctx): Likewise.
3490         (libc_feholdsetroundl_ctx): Likewise.
3491
3492         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3493         with __USE_GNU instead of XOPEN cpp guards.
3494
3495         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3496         0.
3497
3498         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3499         with XOPEN cpp guards.
3500
3501 2014-04-30  Julian Brown  <julian@codesourcery.com>
3502
3503         [BZ #16888]
3504         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3505         handling.
3506
3507 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3508
3509         [BZ #9894]
3510         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3511         Change to 2.6.32.
3512         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3513         * sysdeps/unix/sysv/linux/configure: Regenerated.
3514         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3515         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3516         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3517         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3518         * README: Update reference to required Linux kernel version.
3519         * manual/install.texi (Linux): Update reference to required Linux
3520         kernel headers version.
3521         * INSTALL: Regenerated.
3522
3523         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3524         header inclusion.
3525         [POSIX] (limits.h): Likewise.
3526         [POSIX] (math.h): Likewise.
3527         [POSIX] (sys/wait.h): Likewise.
3528         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3529         function.
3530         [POSIX] (stddef.h): Do not allow header inclusion.
3531
3532 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3533
3534         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3535
3536 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3537
3538         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3539         Return immediately after lll_futex_wake.
3540
3541 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3542
3543         [BZ #16791]
3544         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3545         structure.
3546         (datahead_init_pos): Call datahead_init_common early.
3547         (datahead_init_neg): Likewise.
3548
3549         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3550         datahead_init_neg): New functions.
3551         * nscd/aicache.c (addhstaiX): Use them.
3552         * nscd/grpcache.c (cache_addgr): Likewise.
3553         * nscd/hstcache.c (cache_addhst): Likewise.
3554         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3555         * nscd/netgroupcache.c (do_notfound): Likewise.
3556         (addgetnetgrentX): Likewise.
3557         (addinnetgrX): Likewise.
3558         * nscd/pwdcache.c (cache_addpw): Likewise.
3559         * nscd/servicescache.c (cache_addserv): Likewise.
3560
3561 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3562             Atsushi Onoe  <atsushi@onoe.org>
3563
3564         [BZ #14308]
3565         [BZ #12994]
3566         [BZ #13651]
3567         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3568         one response is valid.
3569         * resolv/res_send.c (send_dg): Check for validity of other
3570         response if the current response is a referral.
3571
3572 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3573
3574         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3575
3576 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3577
3578         [BZ #16823]
3579         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3580         Always divide by positive zero when computing -Inf result.
3581         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3582         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3583
3584 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3585
3586         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3587         FPSCR if value do not change.
3588         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3589         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3590         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3591         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3592         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3593         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3594         function.
3595
3596 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3597
3598         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3599         * sysdeps/unix/sysv/linux/hppa: Move directory from
3600         ports/systeps/unix/sysv/linux/hppa.
3601         * README: Update listing for hppa-*-linux-gnu.
3602
3603 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3604
3605         [BZ #16754]
3606         * manual/stdio.texi (Hook functions): Fix types of stream hook
3607         functions.
3608         [BZ #16854]
3609         * socket/sys/socket.h: Fix typo in comment.
3610
3611 2014-04-28  Wilco  <wdijkstr@arm.com>
3612
3613         * sysdeps/arm/fenv_private.h: New file.
3614         * sysdeps/arm/math_private.h: New file.
3615         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
3616
3617 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3618
3619         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
3620         with __int128_t.
3621         (La_x86_64_retval): Likewise.
3622
3623 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
3624
3625         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
3626         fpsr if value didn't change.
3627         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
3628         to fpcr if value didn't change.
3629         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
3630         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
3631         fpsr or fpcr if value didn't change.
3632         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3633         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
3634         fpcr if value didn't change.
3635         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
3636         to fpsr if value didn't change.
3637
3638 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3639
3640         * nptl/tst-sem3.c: Use test-skeleton.c
3641         (main): Rename to do_test.  Use return instead of
3642         exit.
3643         * nptl/tst-sem4.c: Use test-skeleton.c
3644         (main): Rename to do_test.
3645
3646 2014-04-22  David S. Miller  <davem@davemloft.net>
3647
3648         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
3649         (struct sigaction): New struct member __glibc_reserved0, change
3650         type of sa_flags to int.
3651
3652 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
3653
3654         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
3655         (COUNT_LEADING_ZEROS_0): Define for AArch64.
3656
3657 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3658
3659         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
3660         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3661
3662 2014-04-22  Will Newton  <will.newton@linaro.org>
3663             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
3664
3665         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
3666         (__longjmp): Add longjmp and longjmp_target SystemTap
3667         probes.
3668         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
3669         (__sigsetjmp): Add setjmp SystemTap probe.
3670
3671 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
3672
3673         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
3674         match manual order.
3675
3676 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3677
3678         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
3679
3680         * sysdeps/powerpc/fpu/fenv_private.h
3681         (libc_feholdexcept_setroundl_ctx): Define to
3682         libc_feholdexcept_setround_ppc_ctx.
3683         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
3684         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
3685         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
3686         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
3687
3688 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3689
3690         * sysdeps/aarch64/math-tests.h: New file.
3691
3692 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
3693
3694         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
3695         New.
3696         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3697         Check and set bit_AVX2_Usable.
3698         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
3699         macro.
3700         (bit_AVX2): Likewise.
3701         (index_AVX2_Usable): Likewise.
3702         (CPUID_AVX2): Likewise.
3703         (HAS_AVX2): Likewise.
3704
3705 2014-04-17  Will Newton  <will.newton@linaro.org>
3706
3707         * manual/setjmp.texi (System V contexts): Add note that
3708         calling setcontext on a context created by a call to a
3709         signal handler is undefined.  Update text to note that
3710         setcontext from a signal handler is possible but not
3711         recommended.
3712
3713         [BZ #16629]
3714         * stdlib/tst-setcontext.c: Include signal.h.
3715         (main): Check that the signal stack before and
3716         after swapcontext is the same.
3717
3718         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
3719         Re-implement to restore registers in user code and avoid
3720         rt_sigreturn system call.
3721
3722 2014-04-17  Wilco  <wdijkstr@arm.com>
3723
3724         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
3725         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
3726         * math/test-fenv.c: Skip exception trap tests on targets which only
3727         support non-stop mode.
3728
3729 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3730             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3731
3732         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
3733         (libc_feholdsetround_aarch64_ctx)
3734         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
3735         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
3736         (libc_feresetround_ctx, libc_feresetroundf_ctx)
3737         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
3738         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
3739         (libc_feresetround_noexl_ctx): Define.
3740
3741 2014-04-16  Richard Henderson  <rth@redhat.com>
3742
3743         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
3744
3745         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
3746         unwind tables.
3747
3748         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
3749         const from the non-libc, non-ldso copy.
3750
3751         * sysdeps/alpha/libm-test-ulps: Regenerate.
3752
3753 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
3754             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3755
3756         * sysdeps/aarch64/fpu/math_private.h: New file.
3757
3758 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3759
3760         * sysdeps/aarch64/libm-test-ulps: Regenerate.
3761
3762 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3763
3764         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
3765         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
3766         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3767         Intel MPX bound registers before _dl_profile_fixup.
3768         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
3769         registers after _dl_profile_fixup.  Save and restore bound
3770         registers bnd0/bnd1 when calling _dl_call_pltexit.
3771         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
3772         (LR_BND_OFFSET): Likewise.
3773         (LRV_BND0_OFFSET): Likewise.
3774         (LRV_BND1_OFFSET): Likewise.
3775
3776 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3777
3778         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
3779         to...
3780         * sysdeps/mach/hurd/i386/tls.h: ... here.
3781         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
3782         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
3783         fields.
3784
3785 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3786
3787         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
3788
3789 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3790
3791         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3792
3793 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3794
3795         [BZ #14770]
3796         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
3797         * sysdeps/s390/configure: Regenerate.
3798
3799         [BZ #16824]
3800         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
3801         Set round-to-nearest internally to reduce error accumulation.
3802
3803 2014-04-16  Alan Modra  <amodra@gmail.com>
3804
3805         [BZ #16740]
3806         [BZ #16619]
3807         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
3808         * math/libm-test.inc (frexp_test_data): Add tests.
3809         * NEWS: Update fixed bug list.
3810
3811 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3812
3813         * benchtests/Makefile: Depend on libraries in build directory.
3814         (bench-math): Separate out math tests.
3815         (bench-pthread): Separate out pthread tests.
3816         (bench): Include math and pthread tests.
3817
3818 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
3819
3820         [BZ #16831]
3821         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
3822         _dl_debug_initialize.
3823
3824         * configure.ac: Remove SELinux header check.
3825         * configure: Regenerate.
3826         * nscd/selinux.c (perms): Array of const char* to permission names.
3827         (nscd_request_avc_has_perm): Call security_deny_unknown to find
3828         default policy. Call string_to_security_class and string_to_av_perm to
3829         translate strings. Enforce default policy and call avs_has_perm with
3830         results of translated strings.
3831
3832 2014-04-13  David S. Miller  <davem@davemloft.net>
3833
3834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3835
3836 2014-04-12  Allan McRae  <allan@archlinux.org>
3837
3838         [BZ #16838]
3839         * manual/string.texi (Collation Functions): Fix qsort argument
3840         order in example.
3841         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3842
3843 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
3844
3845         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
3846         Make the test a no-op if there are no exceptions defined.
3847
3848 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
3849
3850         * elf/Makefile (tests): make tst-dlopen-aout conditional on
3851         enable-hardcoded-path-in-tests
3852
3853 2014-04-11  Will Newton  <will.newton@linaro.org>
3854
3855         * benchtests/Makefile (extra-objs): Add json-lib.o.
3856         (bench-func): Tidy up JSON output.
3857         * benchtests/bench-skeleton.c: Include json-lib.h.
3858         (main): Use JSON library functions to do output of
3859         benchmark results.
3860         * benchtests/bench-timing-type.c (main): Output the
3861         timing type simply, leaving formatting to the user.
3862         * benchtests/json-lib.c: New file.
3863         * benchtests/json-lib.h: Likewise.
3864
3865 2014-04-11  Torvald Riegel  <triegel@redhat.com>
3866
3867         [BZ #15215]
3868         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
3869         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
3870         memory barriers.  Add comments.
3871         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
3872         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
3873         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
3874         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
3875         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
3876         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
3877
3878 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
3879
3880         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
3881         * sysdeps/s390/s390-64/configure.ac: ... this ...
3882         * sysdeps/s390/configure.ac: ... to here.
3883         * sysdeps/s390/s390-32/configure: Delete file.
3884         * sysdeps/s390/s390-64/configure: Delete file.
3885         * sysdeps/s390/configure: Regenerate.
3886
3887 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
3888
3889         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
3890
3891 2014-04-11  Will Newton  <will.newton@linaro.org>
3892
3893         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
3894         to zero if it is not defined elsewhere.  (mtrim): Test
3895         the value of MALLOC_DEBUG with #if rather than #ifdef.
3896
3897 2014-04-10 Torvald Riegel  <triegel@redhat.com>
3898
3899         * benchtests/pthread_once-inputs: New file.
3900         * benchtests/pthread_once-source.c: New file.
3901         * benchtests/README: Update documentation.
3902
3903 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
3904             H.J. Lu  <hongjiu.lu@intel.com>
3905
3906         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
3907         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
3908         * sysdeps/x86_64/configure: Regenerated.
3909         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
3910         macro.
3911         (REGISTER_SAVE_RAX): Likewise.
3912         (REGISTER_SAVE_RCX): Likewise.
3913         (REGISTER_SAVE_RDX): Likewise.
3914         (REGISTER_SAVE_RSI): Likewise.
3915         (REGISTER_SAVE_RDI): Likewise.
3916         (REGISTER_SAVE_R8): Likewise.
3917         (REGISTER_SAVE_R9): Likewise.
3918         (REGISTER_SAVE_BND0): Likewise.
3919         (REGISTER_SAVE_BND1): Likewise.
3920         (REGISTER_SAVE_BND2): Likewise.
3921         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
3922         bound registers when calling _dl_fixup.
3923
3924 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3925
3926         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
3927         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
3928         of its definition.
3929         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
3930         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
3931         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
3932         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
3933         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
3934         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
3935         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
3936
3937 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
3938
3939         [BZ #15514]
3940         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
3941         pathconf(_PC_NAME_MAX).
3942
3943 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3944
3945         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
3946         Remove macro usage.
3947         (__PTHREAD_SPINS): Move definition to ...
3948         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3949         (__PTHREAD_SPINS): ... here.
3950         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3951         (__PTHREAD_SPIN): Likewise.
3952         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
3953         (__PTHREAD_SPIN): Likewise.
3954         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3955         (__PTHREAD_SPIN): Likewise.
3956         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
3957         (__PTHREAD_SPIN): Likewise.
3958         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
3959         (__PTHREAD_SPIN): Likewise.
3960         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
3961         (__PTHREAD_SPIN): Likewise.
3962         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
3963         (__PTHREAD_SPIN): Likewise.
3964         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
3965         (__PTHREAD_SPIN): Likewise.
3966         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
3967         (__PTHREAD_SPIN): Likewise.
3968         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
3969         (__PTHREAD_SPIN): Likewise.
3970         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
3971         (__PTHREAD_SPIN): Likewise.
3972         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
3973         (__PTHREAD_SPIN): Likewise.
3974
3975         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3976         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
3977         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
3978         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
3979         imply folder.
3980         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
3981         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3982         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
3983         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
3984         correct imply path.
3985         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
3986         strlen symbol for non multi-arch builds.
3987         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
3988         missing hidden_def and weak_alias.
3989
3990 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
3991
3992         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
3993
3994 2014-04-07  Will Newton  <will.newton@linaro.org>
3995
3996         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
3997         and contents.  [!_LIBC] Remove #ifndef and contents.
3998         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
3999         * string/memccpy.c (__memccpy): Use ANSI prototype.
4000         * string/memfrob.c (memfrob): Likewise.
4001         * string/strcoll.c (STRCOLL): Likewise.
4002         * string/strlen.c (strlen): Likewise.
4003         * string/strtok.c (STRTOK): Likewise.
4004         * string/strcat.c: Remove unused #include of memcopy.h.
4005         (strcat): Use ANSI prototype.
4006         * string/strchr.c: Remove unused #include of memcopy.h.
4007         (strchr): Use ANSI prototype.
4008         * string/strcmp.c: Remove unused #include of memcopy.h.
4009         (strcmp): Use ANSI prototype.
4010         * string/strcpy.c: Remove unused #include of memcopy.h.
4011         (strcpy): Use ANSI prototype.
4012
4013 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4014
4015         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4016         * config.make.in (config-extra-cppflags): Set it from
4017         libc_extra_cppflags.
4018         * configure.ac (libc_extra_cflags): Make it accumulate over
4019         configure fragments.
4020         (libc_extra_cppflags): New flag.
4021         * configure. Regenerate.
4022         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4023         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4024         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4026
4027         [BZ #16815]
4028         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4029         result for FE_DOWNWARD rounding mode.
4030         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4031         Likewise.
4032         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4033
4034 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4035
4036         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4037         in function argument name.
4038
4039 2014-04-03  David Svoboda  <svoboda@cert.org>
4040
4041         [BZ #5666]
4042         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4043         explicitly.
4044
4045 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4046
4047         * elf/dl-unmap-segments.h: New file.
4048         * sysdeps/generic/ldsodefs.h
4049         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4050         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4051         * elf/dl-fptr.c: Likewise.
4052         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4053         * sysdeps/aarch64/tlsdesc.c: Likewise.
4054         * sysdeps/arm/tlsdesc.c: Likewise.
4055         * sysdeps/i386/tlsdesc.c: Likewise.
4056         * sysdeps/tile/dl-runtime.c: Likewise.
4057         * sysdeps/x86_64/tlsdesc.c: Likewise.
4058         * elf/dl-load.h: New file.
4059         * elf/dl-load.c: Include it.
4060         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4061         Macros moved to dl-load.h.
4062         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4063         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4064         Use _dl_unmap_segments in place of __munmap.
4065         Break out segment-mapping loop into ...
4066         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4067
4068 2014-04-03  Will Newton  <will.newton@linaro.org>
4069
4070         * elf/dl-lookup.c (do_lookup_x): Remove comment
4071         referring to nested function and move variable
4072         declarations down to before first use.
4073
4074 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4075
4076         [BZ #16799]
4077         [BZ #16800]
4078         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4079         with 0 numerator.
4080         * math/s_catanf.c (__catanf): Likewise.
4081         * math/s_catanh.c (__catanh): Likewise.
4082         * math/s_catanhf.c (__catanhf): Likewise.
4083         * math/s_catanhl.c (__catanhl): Likewise.
4084         * math/s_catanl.c (__catanl): Likewise.
4085         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4086         by positive zero when computing -Inf result.
4087         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4088         (catanh_test): Likewise.
4089         * sysdeps/i386/fpu/libm-test-ulps: Update.
4090         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4091
4092         [BZ #16789]
4093         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4094         instead of using underflowing value in computing result.
4095         * math/s_clog10.c (__clog10): Likewise.
4096         * math/s_clog10f.c (__clog10f): Likewise.
4097         * math/s_clog10l.c (__clog10l): Likewise.
4098         * math/s_clogf.c (__clogf): Likewise.
4099         * math/s_clogl.c (__clogl): Likewise.
4100         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4101         (clog10_test): Likewise.
4102         * sysdeps/i386/fpu/libm-test-ulps: Update.
4103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4104
4105 2014-04-02  Alan Modra  <amodra@gmail.com>
4106
4107         [BZ #16739]
4108         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4109         output when value is near a power of two.  Use int64_t for lx and
4110         remove casts.  Use decimal rather than hex exponent constants.
4111         Don't use long double multiplication when double will suffice.
4112         * math/libm-test.inc (nextafter_test_data): Add tests.
4113         * NEWS: Add 16739 and 16786 to bug list.
4114
4115         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4116
4117         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4118
4119 2014-04-01  Will Newton  <will.newton@linaro.org>
4120
4121         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4122         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4123
4124 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4125
4126         [BZ #13347]
4127         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4128         * nptl/tst-setuid2.c: New file.
4129         * nptl/Makefile (xtests): Add tst-setuid2.
4130
4131 2014-04-01  Alan Modra  <amodra@gmail.com>
4132
4133         [BZ #16786]
4134         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4135
4136 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4137
4138         [BZ #6803]
4139         [BZ #6804]
4140         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4141         set errno as appropriate.
4142         * math/w_scalbf.c (__scalbf): Likewise.
4143         * math/w_scalbl.c (__scalbl): Likewise.
4144         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4145         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4146         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4147         Add more NaN tests.
4148
4149         [BZ #16349]
4150         * math/w_atan2.c: Include <errno.h>.
4151         (__atan2): Set errno for result underflowing to zero.
4152         * math/w_atan2f.c: Include <errno.h>.
4153         (__atan2f): Set errno for result underflowing to zero.
4154         * math/w_atan2l.c: Include <errno.h>.
4155         (__atan2l): Set errno for result underflowing to zero.
4156         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4157         tests.
4158         * math/auto-libm-test-out: Regenerated.
4159
4160 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4161
4162         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4163         Encode instruction correctly in little endian.
4164         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4165         Likewise.
4166         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4167         Likewise.
4168         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4169         Likewise.
4170         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4171         Likewise.
4172
4173 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4174
4175         [BZ #9894]
4176         * sysdeps/unix/sysv/linux/kernel-features.h
4177         [__sparc__ && !__arch64__ && !__sparc_v9__]
4178         (__ASSUME_SET_ROBUST_LIST): Do not define.
4179         [__sparc__ && !__arch64__ && !__sparc_v9__]
4180         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4181         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4182         Likewise.
4183         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4184         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4185         (__ASSUME_REQUEUE_PI): Likewise.
4186         (__ASSUME_SET_ROBUST_LIST): Likewise.
4187         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4188         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4189         Undefine.
4190         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4191         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4192         Likewise.
4193         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4194         Likewise.
4195         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4196         Likewise.
4197         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4198         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4199         Undefine.
4200         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4201         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4202         Likewise.
4203
4204         [BZ #16648]
4205         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4206         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4207         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4208
4209 2014-03-31  Will Newton  <will.newton@linaro.org>
4210
4211         * benchtests/Makefile (bench): Add ffs and ffsll to list
4212         of tests.
4213         * benchtests/ffs-inputs: New file.
4214         * benchtests/ffsll-inputs: Likewise.
4215
4216 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4217
4218         [BZ #16770]
4219         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4220         too large before casting to int.
4221         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4222         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4223         * math/libm-test.inc (scalb_test_data): Add more tests.
4224
4225 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4226
4227         * benchtests/Makefile (DETAILED_OPT): New make option.
4228         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4229         set.
4230         * benchtests/bench-skeleton.c: Include stdbool.h.
4231         (main): Store and print timings per input.
4232         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4233         member to each argument value.
4234         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4235         (_print_arg_data): Initialize per-input timing to 0.
4236
4237         * benchtests/Makefile (timing-type): New binary.
4238         (bench-clean): Also remove bench-timing-type.
4239         (bench): New target for timing-type.
4240         (bench-func): Print output in JSON format.
4241         * benchtests/bench-skeleton.c (main): Print output in JSON
4242         format.
4243         * benchtests/bench-timing-type.c: New file.
4244         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4245         (TIMING_PRINT_STATS): Remove.
4246         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4247         name separately.
4248
4249         * benchtests/bench-modf.c: Remove.
4250         * benchtests/modf-inputs: New inputs file.
4251
4252 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4253
4254         [BZ #16362]
4255         * math/s_clog10.c (M_PI_LOG10E): New macro.
4256         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4257         imaginary parts are 0.
4258         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4259         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4260         imaginary parts are 0.
4261         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4262         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4263         imaginary parts are 0.
4264         * math/libm-test.inc (clog10_test_data): Update expected results
4265         for when real and imaginary parts are 0.
4266
4267 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4268
4269         * elf/dl-load.c: Finish conversion of __builtin_expect into
4270         __glibc_{un}likely.
4271
4272 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4273
4274         [BZ #16348]
4275         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4276         1+x for argument with exponent below -67.
4277         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4278         Likewise.
4279         * math/auto-libm-test-in: Add more tests of exp.
4280         * math/auto-libm-test-out: Regenerated.
4281
4282 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4283
4284         [BZ #16759]
4285         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4286         (nscd_getnetgrent): Use it.
4287
4288         [BZ #16760]
4289         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4290         of stpcpy.
4291
4292 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4293
4294         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4295         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4296         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4297         (lll_robust_unlock): Remove out of line section. Use cfi
4298         intrinsics.
4299         (LLL_STUB_UNWIND_INFO*): Remove.
4300         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4301         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4302         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4303         (lll_robust_unlock): Remove out of line section. Use cfi
4304         intrinsics.
4305         (LLL_STUB_UNWIND_INFO*): Remove.
4306
4307 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4308
4309         [BZ #16758]
4310         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4311         blank values.
4312
4313 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4314
4315         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4316
4317 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4318
4319         [BZ #16198]
4320         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4321         fnstenv.
4322         * math/test-fenv-preserve.c: New file.
4323         * math/Makefile (tests): Add test-fenv-preserve.
4324
4325 2014-03-26  Will Newton <will.newton@linaro.org>
4326
4327         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4328
4329 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4330
4331         * scripts/versionlist.awk: Partition the version sets and emit all
4332         GLIBC_* (sorted) before all others (sorted).
4333
4334 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4335
4336         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4337         GLIBC_2.2.5 version.
4338
4339 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4340
4341         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4342         calls.
4343
4344         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4345         previous change.
4346
4347         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4348
4349 2014-03-25  Andreas Schwab  <schwab@suse.de>
4350
4351         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4352         label to be used after in6ailist is initialized.
4353
4354 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4355
4356         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4357         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4358
4359 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4360
4361         [BZ #16357]
4362         [BZ #16599]
4363         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4364         min_plus_half.
4365         (fp_formats): Update initializers.
4366         (init_fp_formats): Initialize new field.
4367         (output_for_one_input_case): Allow underflow for results up to
4368         min_plus_half.
4369         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4370         * math/auto-libm-test-in: Don't mark some underflows from asin and
4371         atanh as spurious.
4372         * math/auto-libm-test-out: Regenerated.
4373         * sysdeps/i386/fpu/libm-test-ulps: Update.
4374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4375
4376 2014-03-25  Andreas Schwab  <schwab@suse.de>
4377
4378         * libio/Makefile (tst-ftell-partial-wide-ENV)
4379         (tst-ftell-active-handler-ENV): Define.
4380
4381 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4382
4383         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4384
4385 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4386
4387         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4388
4389 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4390
4391         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4392         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4393         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4394
4395 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4396
4397         [BZ #16634]
4398         * elf/dl-load.c (open_verify): Add mode parameter.
4399         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4400         (open_path): Change from boolean 'secure' to complete flag 'mode'
4401         (_dl_map_object): Adjust.
4402         * elf/Makefile (tests): Add tst-dlopen-aout.
4403         * elf/tst-dlopen-aout.c: New test.
4404
4405 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4406
4407         [BZ #16714]
4408         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4409         (struct stat): Rename member pad0 to __glibc_reserved0.
4410
4411         [BZ #16712]
4412         * sysdeps/s390/s390-32/bits/wordsize.h
4413         (__WORDSIZE32_SIZE_ULONG): New define.
4414         * sysdeps/s390/s390-64/bits/wordsize.h
4415         (__WORDSIZE32_SIZE_ULONG): Likewise.
4416         * sysdeps/generic/stdint.h (SIZE_MAX):
4417         Define as UL if __WORDSIZE32_SIZE_ULONG.
4418
4419         [BZ #16713]
4420         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4421         (__glibc_reserved0): New variable.
4422         (sa_flags): Change type to int.
4423
4424         * posix/Makefile (before-compile): Use += before-compile instead
4425         of a :=.
4426
4427         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4428         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4429
4430 2014-03-20  Andreas Schwab  <schwab@suse.de>
4431
4432         [BZ #16743]
4433         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4434         non-matching result from nscd.
4435
4436 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4437
4438         * scripts/bench.py: Moved to ...
4439         * benchtests/scripts/bench.py: ... here.
4440         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4441
4442 2014-03-24  Andreas Schwab  <schwab@suse.de>
4443
4444         [BZ #16002]
4445         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4446         alloca_account and account alloca use for struct in6ailist.
4447
4448 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4449
4450         [BZ #16284]
4451         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4452         rounding mode to recompute results that overflow to infinity or
4453         underflow to zero.
4454         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4455         bug 16284.
4456         * math/auto-libm-test-out: Regenerated.
4457         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4458         (ccosh_test): Likewise.
4459         (csin_test_data): Use plus_oflow.
4460         (csin_test): Use ALL_RM_TEST.
4461         (csinh_test_data): Use plus_oflow.
4462         (csinh_test): Use ALL_RM_TEST.
4463         * sysdeps/i386/fpu/libm-test-ulps: Update.
4464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4465
4466 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4467
4468         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4469         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4470         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4471
4472         [BZ #16731]
4473         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4474         when x - 1 is zero.
4475         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4476         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4477         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4478         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4479         argument is 1.
4480         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4481         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4482         zero.
4483         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4484         * sysdeps/i386/fpu/libm-test-ulps: Update.
4485         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4486
4487 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4488
4489         * scripts/bench.pl: Remove file.
4490         * scripts/bench.py: New benchmark script.
4491         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4492         * benchtests/README: Mention python dependency.
4493         * scripts/pylintrc: New file.
4494         * scripts/pylint: New file.
4495
4496         * bits/mathdef.h: Use #ifdef instead of #if.
4497         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4498         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4499         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4500         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4501         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4502         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4503
4504 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4505             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4506
4507         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4508         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4509         and strpbrk-ppc64 objects.
4510         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4511         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4512         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4513         multiarch strpbrk for POWER7.
4514         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4515         multiarch strpbrk for PPC64.
4516         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4517         ifunc selector.
4518         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4519         strpbrk for POWER7.
4520
4521 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4522
4523         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4524         (atan_test): Likewise.
4525         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4526         (atanh_test): Use ALL_RM_TEST.
4527         (atan2_test_data): Likewise.
4528         (cabs_test): Likewise.
4529         (cacosh_test): Likewise.
4530         (carg_test): Likewise.
4531         (casin_test): Likewise.
4532         (casinh_test): Likewise.
4533         (cbrt_test): Likewise.
4534         (csqrt_test): Likewise.
4535         (erf_test): Likewise.
4536         (erfc_test): Likewise.
4537         (pow10_test): Likewise.
4538         (exp2_test): Likewise.
4539         (hypot_test): Likewise.
4540         (j0_test): Likewise.
4541         (j1_test): Likewise.
4542         (lgamma_test): Likewise.
4543         (gamma_test): Likewise.
4544         (sincos_test): Likewise.
4545         (tanh_test): Likewise.
4546         (y0_test): Likewise.
4547         (y1_test): Likewise.
4548         * sysdeps/i386/fpu/libm-test-ulps: Update.
4549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4550
4551 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4552
4553         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4554         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4555         and strcspn-ppc64 objects.
4556         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4557         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4558         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4559         multiarch strcspn for POWER7.
4560         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4561         multiarch strcspn for PPC64.
4562         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4563         ifunc selector.
4564         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4565         strcspn for POWER7.
4566
4567 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4568
4569         * math/gen-libm-test.pl (generate_testfile): Expect only function
4570         name as argument to AUTO_TESTS_* and pass results for all rounding
4571         modes to parse_args.
4572         (parse_auto_input): Separate inputs of automatic tests from
4573         outputs before storing in %auto_tests.
4574         * math/libm-test.inc (acos_test_data): Update call to
4575         AUTO_TESTS_f_f.
4576         (acos_test): Use ALL_RM_TEST.
4577         (acos_tonearest_test_data): Remove.
4578         (acos_test_tonearest): Likewise.
4579         (acos_towardzero_test_data): Likewise.
4580         (acos_test_towardzero): Likewise.
4581         (acos_downward_test_data): Likewise.
4582         (acos_test_downward): Likewise.
4583         (acos_upward_test_data): Likewise.
4584         (acos_test_upward): Likewise.
4585         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4586         (asin_test_data): Likewise.
4587         (asin_test): Use ALL_RM_TEST.
4588         (asin_tonearest_test_data): Remove.
4589         (asin_test_tonearest): Likewise.
4590         (asin_towardzero_test_data): Likewise.
4591         (asin_test_towardzero): Likewise.
4592         (asin_downward_test_data): Likewise.
4593         (asin_test_downward): Likewise.
4594         (asin_upward_test_data): Likewise.
4595         (asin_test_upward): Likewise.
4596         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4597         (atan_test_data): Likewise.
4598         (atanh_test_data): Likewise.
4599         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4600         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4601         (carg_test_data): Likewise.
4602         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4603         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4604         (ccosh_test_data): Likewise.
4605         (cexp_test_data): Likewise.
4606         (clog_test_data): Likewise.
4607         (clog10_test_data): Likewise.
4608         (cos_test_data): Update call to AUTO_TESTS_f_f.
4609         (cos_test): Use ALL_RM_TEST.
4610         (cos_tonearest_test_data): Remove.
4611         (cos_test_tonearest): Likewise.
4612         (cos_towardzero_test_data): Likewise.
4613         (cos_test_towardzero): Likewise.
4614         (cos_downward_test_data): Likewise.
4615         (cos_test_downward): Likewise.
4616         (cos_upward_test_data): Likewise.
4617         (cos_test_upward): Likewise.
4618         (cosh_test_data): Update call to AUTO_TESTS_f_f.
4619         (cosh_test): Use ALL_RM_TEST.
4620         (cosh_tonearest_test_data): Remove.
4621         (cosh_test_tonearest): Likewise.
4622         (cosh_towardzero_test_data): Likewise.
4623         (cosh_test_towardzero): Likewise.
4624         (cosh_downward_test_data): Likewise.
4625         (cosh_test_downward): Likewise.
4626         (cosh_upward_test_data): Likewise.
4627         (cosh_test_upward): Likewise.
4628         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
4629         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
4630         (ctan_test_data): Likewise.
4631         (ctan_test): Use ALL_RM_TEST.
4632         (ctan_tonearest_test_data): Remove.
4633         (ctan_test_tonearest): Likewise.
4634         (ctan_towardzero_test_data): Likewise.
4635         (ctan_test_towardzero): Likewise.
4636         (ctan_downward_test_data): Likewise.
4637         (ctan_test_downward): Likewise.
4638         (ctan_upward_test_data): Likewise.
4639         (ctan_test_upward): Likewise.
4640         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
4641         (ctanh_test): Use ALL_RM_TEST.
4642         (ctanh_tonearest_test_data): Remove.
4643         (ctanh_test_tonearest): Likewise.
4644         (ctanh_towardzero_test_data): Likewise.
4645         (ctanh_test_towardzero): Likewise.
4646         (ctanh_downward_test_data): Likewise.
4647         (ctanh_test_downward): Likewise.
4648         (ctanh_upward_test_data): Likewise.
4649         (ctanh_test_upward): Likewise.
4650         (erf_test_data): Update call to AUTO_TESTS_f_f.
4651         (erfc_test_data): Likewise.
4652         (exp_test_data): Likewise.
4653         (exp_test): Use ALL_RM_TEST.
4654         (exp_tonearest_test_data): Remove.
4655         (exp_test_tonearest): Likewise.
4656         (exp_towardzero_test_data): Likewise.
4657         (exp_test_towardzero): Likewise.
4658         (exp_downward_test_data): Likewise.
4659         (exp_test_downward): Likewise.
4660         (exp_upward_test_data): Likewise.
4661         (exp_test_upward): Likewise.
4662         (exp10_test_data): Update call to AUTO_TESTS_f_f.
4663         (exp10_test): Use ALL_RM_TEST.
4664         (exp10_tonearest_test_data): Remove.
4665         (exp10_test_tonearest): Likewise.
4666         (exp10_towardzero_test_data): Likewise.
4667         (exp10_test_towardzero): Likewise.
4668         (exp10_downward_test_data): Likewise.
4669         (exp10_test_downward): Likewise.
4670         (exp10_upward_test_data): Likewise.
4671         (exp10_test_upward): Likewise.
4672         (exp2_test_data): Update call to AUTO_TESTS_f_f.
4673         (expm1_test_data): Likewise.
4674         (expm1_test): Use ALL_RM_TEST.
4675         (expm1_tonearest_test_data): Remove.
4676         (expm1_test_tonearest): Likewise.
4677         (expm1_towardzero_test_data): Likewise.
4678         (expm1_test_towardzero): Likewise.
4679         (expm1_downward_test_data): Likewise.
4680         (expm1_test_downward): Likewise.
4681         (expm1_upward_test_data): Likewise.
4682         (expm1_test_upward): Likewise.
4683         (fma_test_data): Update call to AUTO_TESTS_fff_f.
4684         (fma_test): Use ALL_RM_TEST.
4685         (fma_towardzero_test_data): Remove.
4686         (fma_test_towardzero): Likewise.
4687         (fma_downward_test_data): Likewise.
4688         (fma_test_downward): Likewise.
4689         (fma_upward_test_data): Likewise.
4690         (fma_test_upward): Likewise.
4691         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
4692         (j0_test_data): Update call to AUTO_TESTS_f_f.
4693         (j1_test_data): Likewise.
4694         (jn_test_data): Update call to AUTO_TESTS_if_f.
4695         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
4696         (log_test_data): Update call to AUTO_TESTS_f_f.
4697         (log10_test_data): Likewise.
4698         (log1p_test_data): Likewise.
4699         (log2_test_data): Likewise.
4700         (pow_test_data): Update call to AUTO_TESTS_ff_f.
4701         (pow_tonearest_test_data): Likewise.
4702         (sin_test_data): Update call to AUTO_TESTS_f_f.
4703         (sin_test): Use ALL_RM_TEST.
4704         (sin_tonearest_test_data): Remove.
4705         (sin_test_tonearest): Likewise.
4706         (sin_towardzero_test_data): Likewise.
4707         (sin_test_towardzero): Likewise.
4708         (sin_downward_test_data): Likewise.
4709         (sin_test_downward): Likewise.
4710         (sin_upward_test_data): Likewise.
4711         (sin_test_upward): Likewise.
4712         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
4713         (sinh_test_data): Update call to AUTO_TESTS_f_f.
4714         (sinh_test): Use ALL_RM_TEST.
4715         (sinh_tonearest_test_data): Remove.
4716         (sinh_test_tonearest): Likewise.
4717         (sinh_towardzero_test_data): Likewise.
4718         (sinh_test_towardzero): Likewise.
4719         (sinh_downward_test_data): Likewise.
4720         (sinh_test_downward): Likewise.
4721         (sinh_upward_test_data): Likewise.
4722         (sinh_test_upward): Likewise.
4723         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
4724         (sqrt_test): Use ALL_RM_TEST.
4725         (sqrt_tonearest_test_data): Remove.
4726         (sqrt_test_tonearest): Likewise.
4727         (sqrt_towardzero_test_data): Likewise.
4728         (sqrt_test_towardzero): Likewise.
4729         (sqrt_downward_test_data): Likewise.
4730         (sqrt_test_downward): Likewise.
4731         (sqrt_upward_test_data): Likewise.
4732         (sqrt_test_upward): Likewise.
4733         (tan_test_data): Update call to AUTO_TESTS_f_f.
4734         (tan_test): Use ALL_RM_TEST.
4735         (tan_tonearest_test_data): Remove.
4736         (tan_test_tonearest): Likewise.
4737         (tan_towardzero_test_data): Likewise.
4738         (tan_test_towardzero): Likewise.
4739         (tan_downward_test_data): Likewise.
4740         (tan_test_downward): Likewise.
4741         (tan_upward_test_data): Likewise.
4742         (tan_test_upward): Likewise.
4743         (tanh_test_data): Update call to AUTO_TESTS_f_f.
4744         (tgamma_test_data): Likewise.
4745         (y0_test_data): Likewise.
4746         (y1_test_data): Likewise.
4747         (yn_test_data): Update call to AUTO_TESTS_if_f.
4748         (main): Do not call removed functions.
4749
4750 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4751
4752         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
4753         (ldexp_test_data): Remove.
4754         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
4755         scalbn_test_data.
4756         (scalb_test): Use ALL_RM_TEST.
4757
4758 2014-03-19  Andreas Schwab  <schwab@suse.de>
4759
4760         * nscd/nscd.service: Also invalidate netgroup cache on reload.
4761
4762 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4763
4764         [BZ #16649]
4765         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4766         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
4767         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
4768         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4769         (__ASSUME_PREADV): Undefine.
4770         (__ASSUME_PWRITEV): Likewise.
4771
4772 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4773
4774         * bits/mman-linux.h: Add comment about non-Linux use.
4775         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
4776         bits/mman-linux.h resting place.
4777
4778         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
4779         * bits/mman-linux.h: ... here.
4780
4781 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4782
4783         * conform/conformtest.pl: Add standard definition when calling C
4784         preprocessor on data files.
4785         (checknamespace): Remove unused variable.
4786
4787 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4788
4789         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
4790         minus_oflow, plus_uflow and minus_uflow in expected results.
4791         * math/libm-test.inc (scalbn_test_data): Add more tests of
4792         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
4793         minus_uflow.
4794         (scalbn_test): Use ALL_RM_TEST.
4795         (scalbln_test_data): Add more tests of negative arguments.  Use
4796         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
4797         (scalbln_test): Use ALL_RM_TEST.
4798
4799 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4800
4801         * scripts/abilist.awk: Ignore symbols marked with .hidden.
4802
4803 2014-03-18  Will Newton  <will.newton@linaro.org>
4804
4805         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
4806         inaccurate comment.
4807
4808 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4809
4810         * Makerules [!subdir] (check-abi): Exit with error status if a
4811         test failed.
4812
4813 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4814
4815         * math/libm-test.inc (nearbyint_test_data): Include all tests used
4816         for rint.  Include results for all rounding modes.
4817         (nearbyint_test): Use ALL_RM_TEST.
4818         (rint_test_data): Include all tests used for nearbyint.
4819
4820 2014-03-17  Will Newton  <will.newton@linaro.org>
4821
4822         * nptl/sysdeps/pthread/pthread.h: Revert previous
4823         change.
4824
4825         * sysdeps/generic/ldsodefs.h: Revert previous
4826         change.
4827
4828         * libio/genops.c: Revert previous change.
4829         * libio/libioP.h: Likewise.
4830         * stdio-common/vfprintf.c: Likewise.
4831
4832         * sysdeps/generic/math_private.h: Revert previous
4833         change.
4834
4835         * sysdeps/generic/math_private.h: Check whether
4836         HAVE_RM_CTX is defined with #ifdef rather
4837         than #if.
4838
4839         * argp/argp-fmtstream.h: Check whether
4840         __STRICT_ANSI__ is defined with #ifdef rather
4841         than #if.
4842         * argp/argp.h: Likewise.
4843
4844         * libio/genops.c: Check whether
4845         _IO_JUMPS_OFFSET is defined with #ifdef rather
4846         than #if.
4847         * libio/libioP.h: Likewise.
4848         * stdio-common/vfprintf.c: Likewise.
4849
4850         * sysdeps/generic/ldsodefs.h: Check whether
4851         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
4852         than #if.
4853
4854         * nptl/sysdeps/pthread/pthread.h: Check
4855         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
4856         its value.
4857
4858 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4859
4860         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
4861         setting O_APPEND.
4862         * libio/tst-ftell-active-handler.c (do_append_test): Add a
4863         test case.
4864
4865         [BZ #16680]
4866         * libio/fileops.c (_IO_file_open): Seek to end of file but
4867         don't cache the offset.
4868         (get_file_offset): Remove function.
4869         (do_ftell): Use cached offset when available.
4870         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
4871         don't cache the offset.
4872         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
4873         case.
4874         (do_one_test): Call it.
4875         (do_ftell_test): Fix up expected old offset for a+ mode.
4876         * libio/wfileops.c (do_ftell_wide): Used cached offset when
4877         available.
4878
4879         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
4880         up test status with function return status.
4881         (do_write_test): Likewise.
4882         (do_append_test): Likewise.
4883
4884         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
4885         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
4886         Remove.
4887
4888 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4889
4890         * math/gen-libm-test.pl (parse_args): Handle results specified for
4891         each rounding mode separately.
4892         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
4893         tests and results from lrint_tonearest_test_data,
4894         lrint_towardzero_test_data, lrint_downward_test_data and
4895         lrint_upward_test_data.
4896         (lrint_test): Use ALL_RM_TEST.
4897         (lrint_tonearest_test_data): Remove.
4898         (lrint_test_tonearest): Likewise.
4899         (lrint_towardzero_test_data): Likewise.
4900         (lrint_test_towardzero): Likewise.
4901         (lrint_downward_test_data): Likewise.
4902         (lrint_test_downward): Likewise.
4903         (lrint_upward_test_data): Likewise.
4904         (lrint_test_upward): Likewise.
4905         (llrint_test_data): Merge in per-rounding-mode tests and results
4906         from llrint_tonearest_test_data, llrint_towardzero_test_data,
4907         llrint_downward_test_data and llrint_upward_test_data.
4908         (llrint_test): Use ALL_RM_TEST.
4909         (llrint_tonearest_test_data): Remove.
4910         (llrint_test_tonearest): Likewise.
4911         (llrint_towardzero_test_data): Likewise.
4912         (llrint_test_towardzero): Likewise.
4913         (llrint_downward_test_data): Likewise.
4914         (llrint_test_downward): Likewise.
4915         (llrint_upward_test_data): Likewise.
4916         (llrint_test_upward): Likewise.
4917         (rint_test_data): Merge in per-rounding-mode tests and results
4918         from rint_tonearest_test_data, rint_towardzero_test_data,
4919         rint_downward_test_data and rint_upward_test_data.  Add
4920         per-rounding-mode results for tests not in those arrays.
4921         (rint_test): Use ALL_RM_TEST.
4922         (rint_tonearest_test_data): Remove.
4923         (rint_test_tonearest): Likewise.
4924         (rint_towardzero_test_data): Likewise.
4925         (rint_test_towardzero): Likewise.
4926         (rint_downward_test_data): Likewise.
4927         (rint_test_downward): Likewise.
4928         (rint_upward_test_data): Likewise.
4929         (rint_test_upward): Likewise.
4930         (main): Don't call removed functions.
4931
4932 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4933
4934         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
4935         "Compiled on ..." crapola.  It is anti-useful.
4936
4937 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
4938
4939         * scripts/evaluate-test.sh: Handle fourth argument to determine
4940         whether test run should stop on failure.
4941         * Makeconfig (stop-on-test-failure): New variable.
4942         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
4943         $(stop-on-test-failure).
4944         * Makefile (tests): Give a summary of results from testing and
4945         exit with failure status if they include an ERROR or FAIL.
4946         (xtests): Likewise.
4947         * manual/install.texi (Configuring and compiling): Mention
4948         stop-on-test-failure=y.
4949         * INSTALL: Regenerated.
4950
4951 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4952
4953         * scripts/versionlist.awk: New file.
4954         * Makerules [$(build-shared) = yes]
4955         (postclean-generated): Add Versions.def, not Versions.def.v and
4956         Versions.def.v.i.
4957         ($(common-objpfx)Versions.def.v.i): Target removed.
4958         ($(common-objpfx)Versions.def): New target.
4959         ($(common-objpfx)Versions.all): Depend on that rather that
4960         $(common-objpfx)Versions.def.v.
4961         * Versions.def: File removed.
4962
4963         * Makeconfig (+gccwarn): Add -Wundef.
4964         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
4965         a dl-sysdep.h breaking its contract.
4966         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
4967         * include/stackinfo.h: New file.
4968         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
4969         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
4970         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
4971         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
4972         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
4973         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
4974         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4975         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4976         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4977         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4978         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4979         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
4980         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4981         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4982         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4983
4984 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4985
4986         [BZ #16707]
4987         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
4988         implementation.
4989         * math/libm-test.inc (round_test_data): Add more tests.
4990
4991         [BZ #16706]
4992         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
4993         implementation.
4994         * math/libm-test.inc (nearbyint_test_data): Add more tests.
4995
4996         [BZ #16701]
4997         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
4998         implementation.
4999         * math/libm-test.inc (ceil_test_data): Add more tests.
5000
5001         * math/libm-test.inc (trunc_test_data): Add more tests related to
5002         BZ#16414.
5003
5004 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5005
5006         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5007         with #if rather than #ifdef.
5008         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5009
5010 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5011
5012         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5013         first.  Disable AVX-512 GCC support if assembler doesn't support
5014         it.
5015         * sysdeps/x86_64/configure: Regenerated.
5016
5017 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5018
5019         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5020         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5021         (__old_pthread_attr_setstack): Likewise.
5022         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5023         [!_STACK_GROWS_DOWN]: Likewise.
5024
5025 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5026
5027         * config.make.in (have-bash2): Delete.
5028         * configure.ac (libc_cv_have_bash2): Delete.
5029         * configure: Regenerate.
5030         * elf/Makefile (common-ldd-rewrite): Rename to ...
5031         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5032         (sh-ldd-rewrite): Delete.
5033         (bash-ldd-rewrite): Delete.
5034         (have-bash2): Delete checks.
5035         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5036         ldd-rewrite.
5037
5038         * config.make.in (have-ksh): Delete.
5039         (KSH): Delete.
5040         * configure.ac (libc_cv_have_ksh): Delete.
5041         * configure: Regenerate.
5042
5043         * elf/Makefile: Delete $(have-ksh) check.
5044         ($(objpfx)sotruss): Change KSH to BASH.
5045         * elf/sotruss.ksh: Rename to ...
5046         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5047         function style to match POSIX.  Drop ksh vim mode setting.
5048
5049         * manual/time.texi (Specifying the Time Zone with TZ): Change
5050         Tuesday to Thursday.
5051
5052         * debug/tst-longjmp_chk2.c: Update header comment.
5053         (stackoverflow_handler): Add comment.  Call assert on pass value.
5054
5055 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5056
5057         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5058         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5059         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5060         (La_x86_64_vector): Add zmm.
5061         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5062         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5063         ($(objpfx)tst-audit10): New target.
5064         ($(objpfx)tst-audit10.out): Likewise.
5065         (tst-audit10-ENV): New.
5066         (AVX512-CFLAGS): Likewise.
5067         (CFLAGS-tst-audit10.c): Likewise.
5068         (CFLAGS-tst-auditmod10a.c): Likewise.
5069         (CFLAGS-tst-auditmod10b.c): Likewise.
5070         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5071         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5072         * sysdeps/x86_64/configure: Regenerated.
5073         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5074         AVX-512 zmm register support.
5075         (_dl_x86_64_save_sse): Likewise.
5076         (_dl_x86_64_restore_sse): Likewise.
5077         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5078         size vector registers.
5079         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5080         (ZMM_SIZE): Likewise.
5081         * sysdeps/x86_64/tst-audit10.c: New file.
5082         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5083         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5084
5085 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5086
5087         * configure.ac (HAVE_EHDR_START): New check.
5088         * configure: Regenerated.
5089         * config.h.in (HAVE_EHDR_START): New #undef.
5090         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5091         assuming the lowest-addressed segment maps the start of the file.
5092
5093 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5094
5095         * INSTALL: Regenerated.
5096
5097 2014-03-13  Will Newton  <will.newton@linaro.org>
5098
5099         * manual/setjmp.texi (System V contexts): Improve
5100         clarity and grammar of documentation.
5101
5102 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5103
5104         [BZ #16381]
5105         * elf/Makefile (tests): Add tst-pie2.
5106         (tests-pie): Add tst-pie2.
5107         * elf/tst-pie2.c: New file.
5108         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5109         for ET_EXEC.
5110         * elf/rtld.c (map_doit): Load executable as lt_executable.
5111         (dl_main): Likewise.
5112
5113 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5114
5115         [BZ #16642]
5116         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5117         (__ASSUME_PSELECT): Undefine.
5118
5119 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5120
5121         [BZ #16689]
5122         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5123         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5124         static build.
5125         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5126         selector for static builds.
5127
5128 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5129
5130         [BZ #16695]
5131         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5132         key in the buffer.
5133
5134 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5135
5136         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5137         IFUNC selector for static builds.
5138
5139 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5140
5141         * sysdeps/mips/math_private.h [__mips_hard_float]
5142         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5143         libc_feresetround_mips_ctx.
5144         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5145         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5146         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5147
5148         [BZ #16677]
5149         * math/s_nextafter.c (__nextafter): Do not return value from
5150         overflowing computation.
5151         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5152         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5153         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5154         Likewise.
5155         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5156         Likewise.
5157         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5158         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5159
5160 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5161
5162         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5163         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5164         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5165         the new mov targetting sp.
5166
5167 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5168
5169         [BZ #16683]
5170         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5171         Define it for static builds as well.
5172         (NO_BZERO_IMPL): Likewise.
5173
5174 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5175
5176         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5177         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5178         multiarch strspn for PPC64.
5179         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5180         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5181         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5182         (__libc_ifunc_impl_list): Likewise.
5183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5184         multiarch optimizations
5185         * string/strspn.c (strspn): Using macro to redefine symbol name.
5186
5187 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5188             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5189
5190         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5191         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5192         multiarch strncat for PPC64.
5193         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5194         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5195         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5196         (__libc_ifunc_impl_list): Likewise.
5197         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5198         multiarch optimizations
5199
5200 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5201
5202         [BZ #16639]
5203         * nscd/nscd.service: Make service type forking.
5204
5205 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5206
5207         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5208         sign in non default rounding modes.
5209         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5210
5211 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5212
5213         * math/libm-test.inc (ALL_RM_TEST): New macro.
5214         (ceil_test): Use ALL_RM_TEST.
5215         (cimag_test): Likewise.
5216         (conj_test): Likewise.
5217         (copysign_test): Likewise.
5218         (cproj_test): Likewise.
5219         (creal_test): Likewise.
5220         (fabs_test): Likewise.
5221         (floor_test): Likewise.
5222         (fmax_test): Likewise.
5223         (fmin_test): Likewise.
5224         (fmod_test): Likewise.
5225         (fpclassify_test): Likewise.
5226         (frexp_test): Likewise.
5227         (ilogb_test): Likewise.
5228         (isfinite_test): Likewise.
5229         (finite_test): Likewise.
5230         (isgreater_test): Likewise.
5231         (isgreaterequal_test): Likewise.
5232         (isinf_test): Likewise.
5233         (isless_test): Likewise.
5234         (islessequal_test): Likewise.
5235         (islessgreater_test): Likewise.
5236         (isnan_test): Likewise.
5237         (isnormal_test): Likewise.
5238         (issignaling_test): Likewise.
5239         (isunordered_test): Likewise.
5240         (logb_test): Likewise.
5241         (logb_downward_test_data): Remove.
5242         (logb_test_downward): Likewise.
5243         (lround_test): Use ALL_RM_TEST.
5244         (llround_test): Likewise.
5245         (modf_test): Likewise.
5246         (nexttoward_test): Likewise.
5247         (remainder_test): Likewise.
5248         (drem_test): Likewise.
5249         (remainder_tonearest_test_data): Likewise.
5250         (remainder_test_tonearest): Likewise.
5251         (drem_test_tonearest): Likewise.
5252         (remainder_towardzero_test_data): Likewise.
5253         (remainder_test_towardzero): Likewise.
5254         (drem_test_towardzero): Likewise.
5255         (remainder_downward_test_data): Likewise.
5256         (remainder_test_downward): Likewise.
5257         (drem_test_downward): Likewise.
5258         (remainder_upward_test_data): Likewise.
5259         (remainder_test_upward): Likewise.
5260         (drem_test_upward): Likewise.
5261         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5262         (round_test): Use ALL_RM_TEST.
5263         (signbit_test): Likewise.
5264         (trunc_test): Likewise.
5265         (significand_test): Likewise.
5266         (main): Don't call removed functions.
5267
5268 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5269
5270         [BZ #16674]
5271         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5272         || __USE_XOPEN2K8].
5273         (ILL_ILLOPN): Likewise.
5274         (ILL_ILLADR): Likewise.
5275         (ILL_ILLTRP): Likewise.
5276         (ILL_PRVOPC): Likewise.
5277         (ILL_PRVREG): Likewise.
5278         (ILL_COPROC): Likewise.
5279         (ILL_BADSTK): Likewise.
5280         (FPE_INTDIV): Likewise.
5281         (FPE_INTOVF): Likewise.
5282         (FPE_FLTDIV): Likewise.
5283         (FPE_FLTOVF): Likewise.
5284         (FPE_FLTUND): Likewise.
5285         (FPE_FLTRES): Likewise.
5286         (FPE_FLTINV): Likewise.
5287         (FPE_FLTSUB): Likewise.
5288         (SEGV_MAPERR): Likewise.
5289         (SEGV_ACCERR): Likewise.
5290         (BUS_ADRALN): Likewise.
5291         (BUS_ADRERR): Likewise.
5292         (BUS_OBJERR): Likewise.
5293         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5294         (TRAP_TRACE): Likewise.
5295         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5296         __USE_XOPEN2K8].
5297         (CLD_KILLED): Likewise.
5298         (CLD_DUMPED): Likewise.
5299         (CLD_TRAPPED): Likewise.
5300         (CLD_STOPPED): Likewise.
5301         (CLD_CONTINUED): Likewise.
5302         (POLL_IN): Likewise.
5303         (POLL_OUT): Likewise.
5304         (POLL_MSG): Likewise.
5305         (POLL_ERR): Likewise.
5306         (POLL_PRI): Likewise.
5307         (POLL_HUP): Likewise.
5308         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5309         Likewise.
5310         (ILL_ILLOPN): Likewise.
5311         (ILL_ILLADR): Likewise.
5312         (ILL_ILLTRP): Likewise.
5313         (ILL_PRVOPC): Likewise.
5314         (ILL_PRVREG): Likewise.
5315         (ILL_COPROC): Likewise.
5316         (ILL_BADSTK): Likewise.
5317         (FPE_INTDIV): Likewise.
5318         (FPE_INTOVF): Likewise.
5319         (FPE_FLTDIV): Likewise.
5320         (FPE_FLTOVF): Likewise.
5321         (FPE_FLTUND): Likewise.
5322         (FPE_FLTRES): Likewise.
5323         (FPE_FLTINV): Likewise.
5324         (FPE_FLTSUB): Likewise.
5325         (SEGV_MAPERR): Likewise.
5326         (SEGV_ACCERR): Likewise.
5327         (BUS_ADRALN): Likewise.
5328         (BUS_ADRERR): Likewise.
5329         (BUS_OBJERR): Likewise.
5330         (BUS_MCEERR_AR): Likewise.
5331         (BUS_MCEERR_AO): Likewise.
5332         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5333         (TRAP_TRACE): Likewise.
5334         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5335         __USE_XOPEN2K8].
5336         (CLD_KILLED): Likewise.
5337         (CLD_DUMPED): Likewise.
5338         (CLD_TRAPPED): Likewise.
5339         (CLD_STOPPED): Likewise.
5340         (CLD_CONTINUED): Likewise.
5341         (POLL_IN): Likewise.
5342         (POLL_OUT): Likewise.
5343         (POLL_MSG): Likewise.
5344         (POLL_ERR): Likewise.
5345         (POLL_PRI): Likewise.
5346         (POLL_HUP): Likewise.
5347         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5348         (ILL_ILLOPN): Likewise.
5349         (ILL_ILLADR): Likewise.
5350         (ILL_ILLTRP): Likewise.
5351         (ILL_PRVOPC): Likewise.
5352         (ILL_PRVREG): Likewise.
5353         (ILL_COPROC): Likewise.
5354         (ILL_BADSTK): Likewise.
5355         (FPE_INTDIV): Likewise.
5356         (FPE_INTOVF): Likewise.
5357         (FPE_FLTDIV): Likewise.
5358         (FPE_FLTOVF): Likewise.
5359         (FPE_FLTUND): Likewise.
5360         (FPE_FLTRES): Likewise.
5361         (FPE_FLTINV): Likewise.
5362         (FPE_FLTSUB): Likewise.
5363         (SEGV_MAPERR): Likewise.
5364         (SEGV_ACCERR): Likewise.
5365         (BUS_ADRALN): Likewise.
5366         (BUS_ADRERR): Likewise.
5367         (BUS_OBJERR): Likewise.
5368         (BUS_MCEERR_AR): Likewise.
5369         (BUS_MCEERR_AO): Likewise.
5370         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5371         (TRAP_TRACE): Likewise.
5372         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5373         __USE_XOPEN2K8].
5374         (CLD_KILLED): Likewise.
5375         (CLD_DUMPED): Likewise.
5376         (CLD_TRAPPED): Likewise.
5377         (CLD_STOPPED): Likewise.
5378         (CLD_CONTINUED): Likewise.
5379         (POLL_IN): Likewise.
5380         (POLL_OUT): Likewise.
5381         (POLL_MSG): Likewise.
5382         (POLL_ERR): Likewise.
5383         (POLL_PRI): Likewise.
5384         (POLL_HUP): Likewise.
5385         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5386         Likewise.
5387         (ILL_ILLOPN): Likewise.
5388         (ILL_ILLADR): Likewise.
5389         (ILL_ILLTRP): Likewise.
5390         (ILL_PRVOPC): Likewise.
5391         (ILL_PRVREG): Likewise.
5392         (ILL_COPROC): Likewise.
5393         (ILL_BADSTK): Likewise.
5394         (ILL_BADIADDR): Likewise.
5395         (ILL_BREAK): Likewise.
5396         (FPE_INTDIV): Likewise.
5397         (FPE_INTOVF): Likewise.
5398         (FPE_FLTDIV): Likewise.
5399         (FPE_FLTOVF): Likewise.
5400         (FPE_FLTUND): Likewise.
5401         (FPE_FLTRES): Likewise.
5402         (FPE_FLTINV): Likewise.
5403         (FPE_FLTSUB): Likewise.
5404         (FPE_DECOVF): Likewise.
5405         (FPE_DECDIV): Likewise.
5406         (FPE_DECERR): Likewise.
5407         (FPE_INVASC): Likewise.
5408         (FPE_INVDEC): Likewise.
5409         (SEGV_MAPERR): Likewise.
5410         (SEGV_ACCERR): Likewise.
5411         (SEGV_PSTKOVF): Likewise.
5412         (BUS_ADRALN): Likewise.
5413         (BUS_ADRERR): Likewise.
5414         (BUS_OBJERR): Likewise.
5415         (BUS_MCEERR_AR): Likewise.
5416         (BUS_MCEERR_AO): Likewise.
5417         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5418         (TRAP_TRACE): Likewise.
5419         (TRAP_BRANCH): Likewise.
5420         (TRAP_HWBKPT): Likewise.
5421         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5422         __USE_XOPEN2K8].
5423         (CLD_KILLED): Likewise.
5424         (CLD_DUMPED): Likewise.
5425         (CLD_TRAPPED): Likewise.
5426         (CLD_STOPPED): Likewise.
5427         (CLD_CONTINUED): Likewise.
5428         (POLL_IN): Likewise.
5429         (POLL_OUT): Likewise.
5430         (POLL_MSG): Likewise.
5431         (POLL_ERR): Likewise.
5432         (POLL_PRI): Likewise.
5433         (POLL_HUP): Likewise.
5434         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5435         (ILL_ILLOPN): Likewise.
5436         (ILL_ILLADR): Likewise.
5437         (ILL_ILLTRP): Likewise.
5438         (ILL_PRVOPC): Likewise.
5439         (ILL_PRVREG): Likewise.
5440         (ILL_COPROC): Likewise.
5441         (ILL_BADSTK): Likewise.
5442         (FPE_INTDIV): Likewise.
5443         (FPE_INTOVF): Likewise.
5444         (FPE_FLTDIV): Likewise.
5445         (FPE_FLTOVF): Likewise.
5446         (FPE_FLTUND): Likewise.
5447         (FPE_FLTRES): Likewise.
5448         (FPE_FLTINV): Likewise.
5449         (FPE_FLTSUB): Likewise.
5450         (SEGV_MAPERR): Likewise.
5451         (SEGV_ACCERR): Likewise.
5452         (BUS_ADRALN): Likewise.
5453         (BUS_ADRERR): Likewise.
5454         (BUS_OBJERR): Likewise.
5455         (BUS_MCEERR_AR): Likewise.
5456         (BUS_MCEERR_AO): Likewise.
5457         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5458         (TRAP_TRACE): Likewise.
5459         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5460         __USE_XOPEN2K8].
5461         (CLD_KILLED): Likewise.
5462         (CLD_DUMPED): Likewise.
5463         (CLD_TRAPPED): Likewise.
5464         (CLD_STOPPED): Likewise.
5465         (CLD_CONTINUED): Likewise.
5466         (POLL_IN): Likewise.
5467         (POLL_OUT): Likewise.
5468         (POLL_MSG): Likewise.
5469         (POLL_ERR): Likewise.
5470         (POLL_PRI): Likewise.
5471         (POLL_HUP): Likewise.
5472         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5473         (ILL_ILLOPN): Likewise.
5474         (ILL_ILLADR): Likewise.
5475         (ILL_ILLTRP): Likewise.
5476         (ILL_PRVOPC): Likewise.
5477         (ILL_PRVREG): Likewise.
5478         (ILL_COPROC): Likewise.
5479         (ILL_BADSTK): Likewise.
5480         (FPE_INTDIV): Likewise.
5481         (FPE_INTOVF): Likewise.
5482         (FPE_FLTDIV): Likewise.
5483         (FPE_FLTOVF): Likewise.
5484         (FPE_FLTUND): Likewise.
5485         (FPE_FLTRES): Likewise.
5486         (FPE_FLTINV): Likewise.
5487         (FPE_FLTSUB): Likewise.
5488         (SEGV_MAPERR): Likewise.
5489         (SEGV_ACCERR): Likewise.
5490         (BUS_ADRALN): Likewise.
5491         (BUS_ADRERR): Likewise.
5492         (BUS_OBJERR): Likewise.
5493         (BUS_MCEERR_AR): Likewise.
5494         (BUS_MCEERR_AO): Likewise.
5495         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5496         (TRAP_TRACE): Likewise.
5497         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5498         __USE_XOPEN2K8].
5499         (CLD_KILLED): Likewise.
5500         (CLD_DUMPED): Likewise.
5501         (CLD_TRAPPED): Likewise.
5502         (CLD_STOPPED): Likewise.
5503         (CLD_CONTINUED): Likewise.
5504         (POLL_IN): Likewise.
5505         (POLL_OUT): Likewise.
5506         (POLL_MSG): Likewise.
5507         (POLL_ERR): Likewise.
5508         (POLL_PRI): Likewise.
5509         (POLL_HUP): Likewise.
5510         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5511         (ILL_ILLOPN): Likewise.
5512         (ILL_ILLADR): Likewise.
5513         (ILL_ILLTRP): Likewise.
5514         (ILL_PRVOPC): Likewise.
5515         (ILL_PRVREG): Likewise.
5516         (ILL_COPROC): Likewise.
5517         (ILL_BADSTK): Likewise.
5518         (FPE_INTDIV): Likewise.
5519         (FPE_INTOVF): Likewise.
5520         (FPE_FLTDIV): Likewise.
5521         (FPE_FLTOVF): Likewise.
5522         (FPE_FLTUND): Likewise.
5523         (FPE_FLTRES): Likewise.
5524         (FPE_FLTINV): Likewise.
5525         (FPE_FLTSUB): Likewise.
5526         (SEGV_MAPERR): Likewise.
5527         (SEGV_ACCERR): Likewise.
5528         (BUS_ADRALN): Likewise.
5529         (BUS_ADRERR): Likewise.
5530         (BUS_OBJERR): Likewise.
5531         (BUS_MCEERR_AR): Likewise.
5532         (BUS_MCEERR_AO): Likewise.
5533         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5534         (TRAP_TRACE): Likewise.
5535         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5536         __USE_XOPEN2K8].
5537         (CLD_KILLED): Likewise.
5538         (CLD_DUMPED): Likewise.
5539         (CLD_TRAPPED): Likewise.
5540         (CLD_STOPPED): Likewise.
5541         (CLD_CONTINUED): Likewise.
5542         (POLL_IN): Likewise.
5543         (POLL_OUT): Likewise.
5544         (POLL_MSG): Likewise.
5545         (POLL_ERR): Likewise.
5546         (POLL_PRI): Likewise.
5547         (POLL_HUP): Likewise.
5548         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5549         (ILL_ILLOPN): Likewise.
5550         (ILL_ILLADR): Likewise.
5551         (ILL_ILLTRP): Likewise.
5552         (ILL_PRVOPC): Likewise.
5553         (ILL_PRVREG): Likewise.
5554         (ILL_COPROC): Likewise.
5555         (ILL_BADSTK): Likewise.
5556         (ILL_DBLFLT): Likewise.
5557         (ILL_HARDWALL): Likewise.
5558         (FPE_INTDIV): Likewise.
5559         (FPE_INTOVF): Likewise.
5560         (FPE_FLTDIV): Likewise.
5561         (FPE_FLTOVF): Likewise.
5562         (FPE_FLTUND): Likewise.
5563         (FPE_FLTRES): Likewise.
5564         (FPE_FLTINV): Likewise.
5565         (FPE_FLTSUB): Likewise.
5566         (SEGV_MAPERR): Likewise.
5567         (SEGV_ACCERR): Likewise.
5568         (BUS_ADRALN): Likewise.
5569         (BUS_ADRERR): Likewise.
5570         (BUS_OBJERR): Likewise.
5571         (BUS_MCEERR_AR): Likewise.
5572         (BUS_MCEERR_AO): Likewise.
5573         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5574         (TRAP_TRACE): Likewise.
5575         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5576         __USE_XOPEN2K8].
5577         (CLD_KILLED): Likewise.
5578         (CLD_DUMPED): Likewise.
5579         (CLD_TRAPPED): Likewise.
5580         (CLD_STOPPED): Likewise.
5581         (CLD_CONTINUED): Likewise.
5582         (POLL_IN): Likewise.
5583         (POLL_OUT): Likewise.
5584         (POLL_MSG): Likewise.
5585         (POLL_ERR): Likewise.
5586         (POLL_PRI): Likewise.
5587         (POLL_HUP): Likewise.
5588         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5589         (ILL_ILLOPN): Likewise.
5590         (ILL_ILLADR): Likewise.
5591         (ILL_ILLTRP): Likewise.
5592         (ILL_PRVOPC): Likewise.
5593         (ILL_PRVREG): Likewise.
5594         (ILL_COPROC): Likewise.
5595         (ILL_BADSTK): Likewise.
5596         (FPE_INTDIV): Likewise.
5597         (FPE_INTOVF): Likewise.
5598         (FPE_FLTDIV): Likewise.
5599         (FPE_FLTOVF): Likewise.
5600         (FPE_FLTUND): Likewise.
5601         (FPE_FLTRES): Likewise.
5602         (FPE_FLTINV): Likewise.
5603         (FPE_FLTSUB): Likewise.
5604         (SEGV_MAPERR): Likewise.
5605         (SEGV_ACCERR): Likewise.
5606         (BUS_ADRALN): Likewise.
5607         (BUS_ADRERR): Likewise.
5608         (BUS_OBJERR): Likewise.
5609         (BUS_MCEERR_AR): Likewise.
5610         (BUS_MCEERR_AO): Likewise.
5611         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5612         (TRAP_TRACE): Likewise.
5613         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5614         __USE_XOPEN2K8].
5615         (CLD_KILLED): Likewise.
5616         (CLD_DUMPED): Likewise.
5617         (CLD_TRAPPED): Likewise.
5618         (CLD_STOPPED): Likewise.
5619         (CLD_CONTINUED): Likewise.
5620         (POLL_IN): Likewise.
5621         (POLL_OUT): Likewise.
5622         (POLL_MSG): Likewise.
5623         (POLL_ERR): Likewise.
5624         (POLL_PRI): Likewise.
5625         (POLL_HUP): Likewise.
5626         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
5627         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5628
5629         [BZ #16670]
5630         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
5631         before #include of <time.h>.
5632         [!__USE_XOPEN2K] (__need_timespec): Likewise.
5633         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
5634         (test-xfail-UNIX98/sched.h/conform): Likewise.
5635
5636 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5637
5638         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
5639         error absence of trapping exception support.
5640         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
5641
5642 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5643
5644         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
5645         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
5646         * timezone/Makefile (testdata): Move definition above include of
5647         Rules.
5648         (test-zones): New variable.
5649         (tests-special): Add zone files.
5650         (build-testdata): Use $(evaluate-test).
5651
5652         * elf/Makefile (tests-special): Rename tests to end with .out.
5653         ($(objpfx)noload-mem): Likewise.
5654         ($(objpfx)tst-leaks1-mem): Likewise.
5655         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
5656         * iconv/Makefile (xtests-special): Change test-iconvconfig to
5657         $(objpfx)test-iconvconfig.out.
5658         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
5659         set -e inside subshell and redirect output to file.
5660         * iconvdata/Makefile (generated): Rename tests to end with .out.
5661         Correct type.
5662         (tests-special): Rename tests to end with .out.
5663         ($(objpfx)mtrace-tst-loading): Likewise.
5664         * intl/Makefile (generated): Likewise.
5665         (tests-special): Likewise.
5666         ($(objpfx)mtrace-tst-gettext): Likewise.
5667         * misc/Makefile (generated): Likewise.
5668         (tests-special): Likewise.
5669         ($(objpfx)tst-error1-mem): Likewise.
5670         * nptl/Makefile (tests-special): Likewise.
5671         ($(objpfx)tst-stack3-mem): Likewise.
5672         (generated): Likewise.
5673         * posix/Makefile (generated): Likewise.
5674         (tests-special): Likewise.
5675         (xtests-special): Likewise.
5676         ($(objpfx)tst-fnmatch-mem): Likewise.
5677         ($(objpfx)bug-regex2-mem): Likewise.
5678         ($(objpfx)bug-regex14-mem): Likewise.
5679         ($(objpfx)bug-regex21-mem): Likewise.
5680         ($(objpfx)bug-regex31-mem): Likewise.
5681         ($(objpfx)tst-vfork3-mem): Likewise.
5682         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
5683         ($(objpfx)tst-pcre-mem): Likewise.
5684         ($(objpfx)tst-boost-mem): Likewise.
5685         ($(objpfx)bug-ga2-mem): Likewise.
5686         ($(objpfx)bug-glob2-mem): Likewise.
5687         * resolv/Makefile (generate): Likewise.
5688         (tests-special): Likewise.
5689         (xtests-special): Likewise.
5690         (generated): Likewise.
5691         ($(objpfx)mtrace-tst-leaks): Likewise.
5692         ($(objpfx)mtrace-tst-leaks2): Likewise.
5693
5694         * scripts/merge-test-results.sh: New file.
5695         * Makefile (tests-special-notdir): New variable.
5696         (tests): Run merge-test-results.sh.
5697         (xtests): Likewise.
5698         * Rules (tests-special-notdir): New variable.
5699         (xtests-special-notdir): Likewise.
5700         (tests): Run merge-test-results.sh
5701         (xtests): Likewise.
5702
5703         * Makeconfig (test-xfail-name): New variable.
5704         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
5705         compute variable name for expected failures.
5706         * conform/Makefile (conformtest-headers-data): New variable.
5707         (conformtest-standards): Likewise.
5708         (conformtest-headers-ISO): Likewise.
5709         (conformtest-headers-ISO99): Likewise.
5710         (conformtest-headers-ISO11): Likewise.
5711         (conformtest-headers-POSIX): Likewise.
5712         (conformtest-headers-XPG3): Likewise.
5713         (conformtest-headers-XPG4): Likewise.
5714         (conformtest-headers-UNIX98): Likewise.
5715         (conformtest-headers-XOPEN2K): Likewise.
5716         (conformtest-headers-POSIX2008): Likewise.
5717         (conformtest-headers-XOPEN2K8): Likewise.
5718         (conformtest-header-list-base): Likewise.
5719         (conformtest-header-list-tests): Likewise.
5720         (conformtest-header-base): Likewise.
5721         (conformtest-header-tests): Likewise.
5722         (tests-special): Add $(conformtest-header-list-tests).  If
5723         [$(fast-check) && !$(cross-compiling)], add
5724         $(conformtest-header-tests) instead of
5725         $(objpfx)run-conformtest.out.
5726         (generated): Add $(conformtest-header-list-base).  If
5727         [$(fast-check) && !$(cross-compiling)], add
5728         $(conformtest-header-base).  Remove previous setting.
5729         ($(conformtest-header-list-tests)): New target.
5730         (test-xfail-run-conformtest): Remove variable.
5731         ($(objpfx)run-conformtest.out): Remove target.
5732         (test-xfail-ISO11/complex.h/conform): New variable.
5733         (test-xfail-ISO11/stdalign.h/conform): Likewise.
5734         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
5735         (test-xfail-XPG3/varargs.h/conform): Likewise.
5736         (test-xfail-XPG4/varargs.h/conform): Likewise.
5737         (test-xfail-UNIX98/varargs.h/conform): Likewise.
5738         (test-xfail-XPG4/ndbm.h/conform): Likewise.
5739         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
5740         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
5741         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
5742         (test-xfail-XPG3/fcntl.h/conform): Likewise.
5743         (test-xfail-XPG3/ftw.h/conform): Likewise.
5744         (test-xfail-XPG3/grp.h/conform): Likewise.
5745         (test-xfail-XPG3/langinfo.h/conform): Likewise.
5746         (test-xfail-XPG3/limits.h/conform): Likewise.
5747         (test-xfail-XPG3/pwd.h/conform): Likewise.
5748         (test-xfail-XPG3/search.h/conform): Likewise.
5749         (test-xfail-XPG3/signal.h/conform): Likewise.
5750         (test-xfail-XPG3/stdio.h/conform): Likewise.
5751         (test-xfail-XPG3/stdlib.h/conform): Likewise.
5752         (test-xfail-XPG3/string.h/conform): Likewise.
5753         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
5754         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
5755         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
5756         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
5757         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
5758         (test-xfail-XPG3/sys/types.h/conform): Likewise.
5759         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
5760         (test-xfail-XPG3/termios.h/conform): Likewise.
5761         (test-xfail-XPG3/time.h/conform): Likewise.
5762         (test-xfail-XPG3/unistd.h/conform): Likewise.
5763         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
5764         (test-xfail-XPG4/fcntl.h/conform): Likewise.
5765         (test-xfail-XPG4/langinfo.h/conform): Likewise.
5766         (test-xfail-XPG4/netdb.h/conform): Likewise.
5767         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
5768         (test-xfail-XPG4/signal.h/conform): Likewise.
5769         (test-xfail-XPG4/stdio.h/conform): Likewise.
5770         (test-xfail-XPG4/stdlib.h/conform): Likewise.
5771         (test-xfail-XPG4/stropts.h/conform): Likewise.
5772         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
5773         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
5774         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
5775         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
5776         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
5777         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
5778         (test-xfail-XPG4/sys/time.h/conform): Likewise.
5779         (test-xfail-XPG4/sys/types.h/conform): Likewise.
5780         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
5781         (test-xfail-XPG4/termios.h/conform): Likewise.
5782         (test-xfail-XPG4/ucontext.h/conform): Likewise.
5783         (test-xfail-XPG4/unistd.h/conform): Likewise.
5784         (test-xfail-XPG4/utmpx.h/conform): Likewise.
5785         (test-xfail-POSIX/sched.h/conform): Likewise.
5786         (test-xfail-POSIX/signal.h/conform): Likewise.
5787         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5788         (test-xfail-POSIX/tar.h/conform): Likewise.
5789         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
5790         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
5791         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
5792         (test-xfail-UNIX98/netdb.h/conform): Likewise.
5793         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
5794         (test-xfail-UNIX98/sched.h/conform): Likewise.
5795         (test-xfail-UNIX98/signal.h/conform): Likewise.
5796         (test-xfail-UNIX98/stdio.h/conform): Likewise.
5797         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5798         (test-xfail-UNIX98/stropts.h/conform): Likewise.
5799         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
5800         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
5801         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
5802         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
5803         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
5804         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
5805         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5806         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5807         (test-xfail-UNIX98/unistd.h/conform): Likewise.
5808         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
5809         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
5810         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
5811         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
5812         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
5813         (test-xfail-XOPEN2K/math.h/conform): Likewise.
5814         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
5815         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
5816         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
5817         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
5818         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5819         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
5820         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
5821         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
5822         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
5823         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
5824         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
5825         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
5826         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
5827         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5828         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
5829         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
5830         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5831         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
5832         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
5833         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
5834         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
5835         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
5836         (test-xfail-POSIX2008/signal.h/conform): Likewise.
5837         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
5838         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
5839         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5840         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
5841         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
5842         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
5843         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
5844         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
5845         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
5846         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5847         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
5848         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
5849         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
5850         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
5851         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
5852         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
5853         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
5854         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
5855         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
5856         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5857         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
5858         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
5859         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
5860         (conformtest-cc-flags): Likewise.
5861         ($(conformtest-header-tests): New target.
5862         * conform/check-header-lists.sh: New file.
5863         * conform/run-conformtest.sh: Remove.
5864
5865         * conform/conformtest.pl: Allow ' and \ in values given for
5866         constants.
5867         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
5868         inclusion.
5869         [POSIX] (sys/types.h): Likewise.
5870         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
5871         inclusion.
5872         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
5873         inclusion.
5874         * conform/data/signal.h-data (SIGIO): Remove expectation.
5875         [XPG3] (SIGBUS): Do not expect.
5876         [POSIX || XPG3] (SIGPOLL): Likewise.
5877         [POSIX || XPG3] (SIGPROF): Likewise.
5878         [POSIX || XPG3] (SIGSYS): Likewise.
5879         [XPG3] (SIGTRAP): Likewise.
5880         [POSIX || XPG3] (SIGURG): Likewise.
5881         [POSIX || XPG3] (SIGVTALRM): Likewise.
5882         [POSIX || XPG3] (SIGXCPU): Likewise.
5883         [POSIX || XPG3] (SIGXFSZ): Likewise.
5884         [POSIX] (SA_SIGINFO): Expect.
5885         [XPG3] (siginfo_t): Do not expect type or contents.
5886         [POSIX] (si_pid): Do not expect element.
5887         [POSIX] (si_uid): Likewise.
5888         [POSIX] (si_addr): Likewise.
5889         [POSIX] (si_status): Likewise.
5890         [POSIX] (si_band): Likewise.
5891         [XPG4] (si_value): Likewise.
5892         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
5893         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
5894         [POSIX || XPG3] (ILL_ILLADR): Likewise.
5895         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
5896         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
5897         [POSIX || XPG3] (ILL_PRVREG): Likewise.
5898         [POSIX || XPG3] (ILL_COPROC): Likewise.
5899         [POSIX || XPG3] (ILL_BADSTK): Likewise.
5900         [POSIX || XPG3] (FPE_INTDIV): Likewise.
5901         [POSIX || XPG3] (FPE_INTOVF): Likewise.
5902         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
5903         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
5904         [POSIX || XPG3] (FPE_FLTUND): Likewise.
5905         [POSIX || XPG3] (FPE_FLTRES): Likewise.
5906         [POSIX || XPG3] (FPE_FLTINV): Likewise.
5907         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
5908         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
5909         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
5910         [POSIX || XPG3] (BUS_ADRALN): Likewise.
5911         [POSIX || XPG3] (BUS_ADRERR): Likewise.
5912         [POSIX || XPG3] (BUS_OBJERR): Likewise.
5913         [POSIX || XPG3] (CLD_EXITED): Likewise.
5914         [POSIX || XPG3] (CLD_KILLED): Likewise.
5915         [POSIX || XPG3] (CLD_DUMPED): Likewise.
5916         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
5917         [POSIX || XPG3] (CLD_STOPPED): Likewise.
5918         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
5919         [POSIX || XPG3] (POLL_IN): Likewise.
5920         [POSIX || XPG3] (POLL_OUT): Likewise.
5921         [POSIX || XPG3] (POLL_MSG): Likewise.
5922         [POSIX || XPG3] (POLL_ERR): Likewise.
5923         [POSIX || XPG3] (POLL_PRI): Likewise.
5924         [POSIX || XPG3] (POLL_HUP): Likewise.
5925         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
5926         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
5927         (SIG*): Do not allow.
5928         [XPG3] (si_*): Likewise.
5929         [XPG3] (SI_*): Likewise.
5930         [XPG3 || XPG4] (sigev_*): Likewise.
5931         [XPG3 || XPG4] (SIGEV_*): Likewise.
5932         [XPG3 || XPG4] (sival_*): Likewise.
5933         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
5934         [POSIX || XPG3] (BUS_*): Likewise.
5935         [POSIX || XPG3] (CLD_*): Likewise.
5936         [POSIX || XPG3] (FPE_*): Likewise.
5937         [POSIX || XPG3] (ILL_*): Likewise.
5938         [POSIX || XPG3] (POLL_*): Likewise.
5939         [POSIX || XPG3] (SEGV_*): Likewise.
5940         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
5941         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
5942         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
5943         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
5944         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
5945         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
5946         Specify type and value.
5947         (TVERSLEN): Likewise.
5948         (REGTYPE): Likewise.
5949         (AREGTYPE): Likewise.
5950         (LNKTYPE): Likewise.
5951         (SYMTYPE): Likewise.
5952         (CHRTYPE): Likewise.
5953         (BLKTYPE): Likewise.
5954         (DIRTYPE): Likewise.
5955         (FIFOTYPE): Likewise.
5956         (CONTTYPE): Likewise.
5957         (TSUID): Likewise.
5958         (TSGID): Likewise.
5959         (TSVTX): Likewise.
5960         (TUREAD): Likewise.
5961         (TUWRITE): Likewise.
5962         (TUEXEC): Likewise.
5963         (TGREAD): Likewise.
5964         (TGWRITE): Likewise.
5965         (TGEXEC): Likewise.
5966         (TOREAD): Likewise.
5967         (TOWRITE): Likewise.
5968         (TOEXEC): Likewise.
5969         [POSIX] (TSVTX): Expect constant.
5970
5971 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
5972
5973         * Makefile (tests): Change dependencies to ....
5974         (tests-special): ... additions to this variable.
5975         (tests): Depend on $(tests-special).
5976         * Makerules (check-abi-list): New variable.
5977         (check-abi): Depend on $(check-abi-list).
5978         [$(subdir) = elf] (tests-special): Add
5979         $(objpfx)check-abi-libc.out.
5980         [$(build-shared) = yes && subdir] (tests-special): Add
5981         $(check-abi-list).
5982         [$(build-shared) = yes && subdir] (tests): Do not depend on
5983         check-abi.
5984         * Rules (tests): Depend on $(tests-special).
5985         (xtests): Depend on $(xtests-special).
5986         * catgets/Makefile (tests): Change dependencies to ....
5987         (tests-special): ... additions to this variable.
5988         * conform/Makefile (tests): Change dependencies to ....
5989         (tests-special): ... additions to this variable.
5990         * elf/Makefile (tests): Change dependencies to ....
5991         (tests-special): ... additions to this variable.
5992         * grp/Makefile (tests): Change dependencies to ....
5993         (tests-special): ... additions to this variable.
5994         * iconv/Makefile (xtests): Change dependencies to ....
5995         (xtests-special): ... additions to this variable.
5996         * iconvdata/Makefile (tests): Change dependencies to ....
5997         (tests-special): ... additions to this variable.
5998         * intl/Makefile (tests): Change dependencies to ....
5999         (tests-special): ... additions to this variable.  Also add
6000         $(objpfx)tst-gettext.out.
6001         * io/Makefile (tests): Change dependencies to ....
6002         (tests-special): ... additions to this variable.
6003         * libio/Makefile (tests): Change dependencies to ....
6004         (tests-special): ... additions to this variable.
6005         * malloc/Makefile (tests): Change dependencies to ....
6006         (tests-special): ... additions to this variable.
6007         * misc/Makefile (tests): Change dependencies to ....
6008         (tests-special): ... additions to this variable.
6009         * nptl/Makefile (tests): Change dependencies to ....
6010         (tests-special): ... additions to this variable.
6011         * nptl_db/Makefile (tests): Change dependencies to ....
6012         (tests-special): ... additions to this variable.
6013         * posix/Makefile (tests): Change dependencies to ....
6014         (tests-special): ... additions to this variable.
6015         (xtests): Change dependencies to ....
6016         (xtests-special): ... additions to this variable.
6017         * resolv/Makefile (tests): Change dependencies to ....
6018         (tests-special): ... additions to this variable.
6019         (xtests): Change dependencies to ....
6020         (xtests-special): ... additions to this variable.
6021         * stdio-common/Makefile (tests): Change dependencies to ....
6022         (tests-special): ... additions to this variable.
6023         (do-tst-unbputc): Remove target.
6024         (do-tst-printf): Likewise.
6025         * stdlib/Makefile (tests): Change dependencies to ....
6026         (tests-special): ... additions to this variable.
6027         * string/Makefile (tests): Change dependencies to ....
6028         (tests-special): ... additions to this variable.
6029         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6030         (tests-special): ... additions to this variable.
6031
6032         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6033         whole file.
6034         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6035         whole file.
6036         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6037         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6038
6039         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6040         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6041         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6042         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6043         * conform/data/libgen.h-data [XPG3]: Likewise.
6044         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6045         * conform/data/ndbm.h-data [XPG3]: Likewise.
6046         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6047         * conform/data/netdb.h-data [XPG3]: Likewise.
6048         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6049         * conform/data/poll.h-data [XPG3]: Likewise.
6050         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6051         * conform/data/strings.h-data [XPG3]: Likewise.
6052         * conform/data/stropts.h-data [XPG3]: Likewise.
6053         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6054         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6055         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6056         Likewise.
6057         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6058         * conform/data/sys/time.h-data [XPG3]: Likewise.
6059         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6060         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6061         * conform/data/sys/un.h-data [XPG3]: Likewise.
6062         * conform/data/syslog.h-data [XPG3]: Likewise.
6063         * conform/data/ucontext.h-data [XPG3]: Likewise.
6064         * conform/data/utmpx.h-data [XPG3]: Likewise.
6065         * conform/data/varargs.h-data [UNIX98]: Enable file.
6066
6067         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6068
6069         * math/libm-test.inc (struct test_f_f_data): Move expected results
6070         into structure for each rounding mode.
6071         (struct test_ff_f_data): Likewise.
6072         (struct test_ff_f_data_nexttoward): Likewise.
6073         (struct test_fi_f_data): Likewise.
6074         (struct test_fl_f_data): Likewise.
6075         (struct test_if_f_data): Likewise.
6076         (struct test_fff_f_data): Likewise.
6077         (struct test_c_f_data): Likewise.
6078         (struct test_f_f1_data): Likewise.
6079         (struct test_fF_f1_data): Likewise.
6080         (struct test_ffI_f1_data): Likewise.
6081         (struct test_c_c_data): Likewise.
6082         (struct test_cc_c_data): Likewise.
6083         (struct test_f_i_data): Likewise.
6084         (struct test_ff_i_data): Likewise.
6085         (struct test_f_l_data): Likewise.
6086         (struct test_f_L_data): Likewise.
6087         (struct test_fFF_11_data): Likewise.
6088         (RM_): New macro.
6089         (RM_FE_DOWNWARD): Likewise.
6090         (RM_FE_TONEAREST): Likewise.
6091         (RM_FE_TOWARDZERO): Likewise.
6092         (RM_FE_UPWARD): Likewise.
6093         (RUN_TEST_LOOP_f_f): Update references to expected results.
6094         (RUN_TEST_LOOP_2_f): Likewise.
6095         (RUN_TEST_LOOP_fff_f): Likewise.
6096         (RUN_TEST_LOOP_c_f): Likewise.
6097         (RUN_TEST_LOOP_f_f1): Likewise.
6098         (RUN_TEST_LOOP_fF_f1): Likewise.
6099         (RUN_TEST_LOOP_fI_f1): Likewise.
6100         (RUN_TEST_LOOP_ffI_f1): Likewise.
6101         (RUN_TEST_LOOP_c_c): Likewise.
6102         (RUN_TEST_LOOP_cc_c): Likewise.
6103         (RUN_TEST_LOOP_f_i): Likewise.
6104         (RUN_TEST_LOOP_f_i_tg): Likewise.
6105         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6106         (RUN_TEST_LOOP_f_b): Likewise.
6107         (RUN_TEST_LOOP_f_b_tg): Likewise.
6108         (RUN_TEST_LOOP_f_l): Likewise.
6109         (RUN_TEST_LOOP_f_L): Likewise.
6110         (RUN_TEST_LOOP_fFF_11): Likewise.
6111         * math/gen-libm-test.pl (parse_args): Output four copies of
6112         expected results for each test.
6113
6114         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6115         (__ASSUME_UTIMES): Remove.
6116         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6117         (__ASSUME_UTIMES): Likewise.
6118
6119         * math/gen-auto-libm-tests.c: Update comment on output format.
6120         (output_for_one_input_case): Generate before-rounding and
6121         after-rounding information as conditions on output flags not
6122         floating-point format.
6123         * math/auto-libm-test-out: Regenerated.
6124         * math/gen-libm-test.pl (cond_value): New function.
6125         (or_cond_value): Use cond_value.
6126         (generate_testfile): Handle conditional exceptions.
6127
6128 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6129
6130         * math/libm-test.inc (max_valid_error): New variable.
6131         (init_max_error): Take new argument specifying whether function
6132         results are exactly determined.  Set max_valid_error and bound
6133         other variables for errors based on this argument.
6134         (set_max_error): Do not record results above max_valid_error.
6135         (check_float_internal): Only accept errors of up to 0.5ulps if
6136         also at most max_valid_error.
6137         (START): Take new argument EXACT and pass it to init_max_error.
6138         (acos_test): Update call to START.
6139         (acos_test_tonearest): Likewise.
6140         (acos_test_towardzero): Likewise.
6141         (acos_test_downward): Likewise.
6142         (acos_test_upward): Likewise.
6143         (acosh_test): Likewise.
6144         (asin_test): Likewise.
6145         (asin_test_tonearest): Likewise.
6146         (asin_test_towardzero): Likewise.
6147         (asin_test_downward): Likewise.
6148         (asin_test_upward): Likewise.
6149         (asinh_test): Likewise.
6150         (atan_test): Likewise.
6151         (atanh_test): Likewise.
6152         (atan2_test): Likewise.
6153         (cabs_test): Likewise.
6154         (cacos_test): Likewise.
6155         (cacosh_test): Likewise.
6156         (carg_test): Likewise.
6157         (casin_test): Likewise.
6158         (casinh_test): Likewise.
6159         (catan_test): Likewise.
6160         (catanh_test): Likewise.
6161         (cbrt_test): Likewise.
6162         (ccos_test): Likewise.
6163         (ccosh_test): Likewise.
6164         (ceil_test): Likewise.
6165         (cexp_test): Likewise.
6166         (cimag_test): Likewise.
6167         (clog_test): Likewise.
6168         (clog10_test): Likewise.
6169         (conj_test): Likewise.
6170         (copysign_test): Likewise.
6171         (cos_test): Likewise.
6172         (cos_test_tonearest): Likewise.
6173         (cos_test_towardzero): Likewise.
6174         (cos_test_downward): Likewise.
6175         (cos_test_upward): Likewise.
6176         (cosh_test): Likewise.
6177         (cosh_test_tonearest): Likewise.
6178         (cosh_test_towardzero): Likewise.
6179         (cosh_test_downward): Likewise.
6180         (cosh_test_upward): Likewise.
6181         (cpow_test): Likewise.
6182         (cproj_test): Likewise.
6183         (creal_test): Likewise.
6184         (csin_test): Likewise.
6185         (csinh_test): Likewise.
6186         (csqrt_test): Likewise.
6187         (ctan_test): Likewise.
6188         (ctan_test_tonearest): Likewise.
6189         (ctan_test_towardzero): Likewise.
6190         (ctan_test_downward): Likewise.
6191         (ctan_test_upward): Likewise.
6192         (ctanh_test): Likewise.
6193         (ctanh_test_tonearest): Likewise.
6194         (ctanh_test_towardzero): Likewise.
6195         (ctanh_test_downward): Likewise.
6196         (ctanh_test_upward): Likewise.
6197         (erf_test): Likewise.
6198         (erfc_test): Likewise.
6199         (exp_test): Likewise.
6200         (exp_test_tonearest): Likewise.
6201         (exp_test_towardzero): Likewise.
6202         (exp_test_downward): Likewise.
6203         (exp_test_upward): Likewise.
6204         (exp10_test): Likewise.
6205         (exp10_test_tonearest): Likewise.
6206         (exp10_test_towardzero): Likewise.
6207         (exp10_test_downward): Likewise.
6208         (exp10_test_upward): Likewise.
6209         (pow10_test): Likewise.
6210         (exp2_test): Likewise.
6211         (expm1_test): Likewise.
6212         (expm1_test_tonearest): Likewise.
6213         (expm1_test_towardzero): Likewise.
6214         (expm1_test_downward): Likewise.
6215         (expm1_test_upward): Likewise.
6216         (fabs_test): Likewise.
6217         (fdim_test): Likewise.
6218         (floor_test): Likewise.
6219         (fma_test): Likewise.
6220         (fma_test_towardzero): Likewise.
6221         (fma_test_downward): Likewise.
6222         (fma_test_upward): Likewise.
6223         (fmax_test): Likewise.
6224         (fmin_test): Likewise.
6225         (fmod_test): Likewise.
6226         (fpclassify_test): Likewise.
6227         (frexp_test): Likewise.
6228         (hypot_test): Likewise.
6229         (ilogb_test): Likewise.
6230         (isfinite_test): Likewise.
6231         (finite_test): Likewise.
6232         (isgreater_test): Likewise.
6233         (isgreaterequal_test): Likewise.
6234         (isinf_test): Likewise.
6235         (isless_test): Likewise.
6236         (islessequal_test): Likewise.
6237         (islessgreater_test): Likewise.
6238         (isnan_test): Likewise.
6239         (isnormal_test): Likewise.
6240         (issignaling_test): Likewise.
6241         (isunordered_test): Likewise.
6242         (j0_test): Likewise.
6243         (j1_test): Likewise.
6244         (jn_test): Likewise.
6245         (ldexp_test): Likewise.
6246         (lgamma_test): Likewise.
6247         (gamma_test): Likewise.
6248         (lrint_test): Likewise.
6249         (lrint_test_tonearest): Likewise.
6250         (lrint_test_towardzero): Likewise.
6251         (lrint_test_downward): Likewise.
6252         (lrint_test_upward): Likewise.
6253         (llrint_test): Likewise.
6254         (llrint_test_tonearest): Likewise.
6255         (llrint_test_towardzero): Likewise.
6256         (llrint_test_downward): Likewise.
6257         (llrint_test_upward): Likewise.
6258         (log_test): Likewise.
6259         (log10_test): Likewise.
6260         (log1p_test): Likewise.
6261         (log2_test): Likewise.
6262         (logb_test): Likewise.
6263         (logb_test_downward): Likewise.
6264         (lround_test): Likewise.
6265         (llround_test): Likewise.
6266         (modf_test): Likewise.
6267         (nearbyint_test): Likewise.
6268         (nextafter_test): Likewise.
6269         (nexttoward_test): Likewise.
6270         (pow_test): Likewise.
6271         (pow_test_tonearest): Likewise.
6272         (pow_test_towardzero): Likewise.
6273         (pow_test_downward): Likewise.
6274         (pow_test_upward): Likewise.
6275         (remainder_test): Likewise.
6276         (drem_test): Likewise.
6277         (remainder_test_tonearest): Likewise.
6278         (drem_test_tonearest): Likewise.
6279         (remainder_test_towardzero): Likewise.
6280         (drem_test_towardzero): Likewise.
6281         (remainder_test_downward): Likewise.
6282         (drem_test_downward): Likewise.
6283         (remainder_test_upward): Likewise.
6284         (drem_test_upward): Likewise.
6285         (remquo_test): Likewise.
6286         (rint_test): Likewise.
6287         (rint_test_tonearest): Likewise.
6288         (rint_test_towardzero): Likewise.
6289         (rint_test_downward): Likewise.
6290         (rint_test_upward): Likewise.
6291         (round_test): Likewise.
6292         (scalb_test): Likewise.
6293         (scalbn_test): Likewise.
6294         (scalbln_test): Likewise.
6295         (signbit_test): Likewise.
6296         (sin_test): Likewise.
6297         (sin_test_tonearest): Likewise.
6298         (sin_test_towardzero): Likewise.
6299         (sin_test_downward): Likewise.
6300         (sin_test_upward): Likewise.
6301         (sincos_test): Likewise.
6302         (sinh_test): Likewise.
6303         (sinh_test_tonearest): Likewise.
6304         (sinh_test_towardzero): Likewise.
6305         (sinh_test_downward): Likewise.
6306         (sinh_test_upward): Likewise.
6307         (sqrt_test): Likewise.
6308         (sqrt_test_tonearest): Likewise.
6309         (sqrt_test_towardzero): Likewise.
6310         (sqrt_test_downward): Likewise.
6311         (sqrt_test_upward): Likewise.
6312         (tan_test): Likewise.
6313         (tan_test_tonearest): Likewise.
6314         (tan_test_towardzero): Likewise.
6315         (tan_test_downward): Likewise.
6316         (tan_test_upward): Likewise.
6317         (tanh_test): Likewise.
6318         (tgamma_test): Likewise.
6319         (trunc_test): Likewise.
6320         (y0_test): Likewise.
6321         (y1_test): Likewise.
6322         (yn_test): Likewise.
6323         (significand_test): Likewise.
6324
6325         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6326         individual tests in comment.
6327         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6328         (prev_max_error): New variable.
6329         (prev_real_max_error): Likewise.
6330         (prev_imag_max_error): Likewise.
6331         (compare_ulp_data): Don't refer to test names in comment.
6332         (find_test_ulps): Remove function.
6333         (find_function_ulps): Likewise.
6334         (find_complex_function_ulps): Likewise.
6335         (init_max_error): Take function name as argument.  Look up ulps
6336         for that function.
6337         (print_ulps): Remove function.
6338         (print_max_error): Use prev_max_error instead of calling
6339         find_function_ulps.
6340         (print_complex_max_error): Use prev_real_max_error and
6341         prev_imag_max_error instead of calling find_complex_function_ulps.
6342         (check_float_internal): Take max_ulp parameter instead of calling
6343         find_test_ulps.  Don't call print_ulps.
6344         (check_float): Update call to check_float_internal.
6345         (check_complex): Update calls to check_float_internal.
6346         (START): Pass argument to init_max_error.
6347         * math/gen-libm-test.pl (%results): Don't include "kind"
6348         information.
6349         (parse_ulps): Don't handle ulps of individual tests.
6350         (print_ulps_file): Likewise.
6351         (output_ulps): Likewise.
6352         * math/README.libm-test: Update.
6353         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6354         individual tests.
6355         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6356         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6357         * sysdeps/arm/libm-test-ulps: Likewise.
6358         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6359         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6360         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6361         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6362         * sysdeps/microblaze/libm-test-ulps: Likewise.
6363         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6364         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6365         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6366         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6367         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6368         * sysdeps/sh/libm-test-ulps: Likewise.
6369         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6370         * sysdeps/tile/libm-test-ulps: Likewise.
6371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6372
6373 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6374
6375         * math/libm-test.inc (print_complex_max_error): Check separately
6376         whether real and imaginary errors are within allowed range and
6377         pass 0 to print_complex_function_ulps instead of value within
6378         allowed range.
6379
6380 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6381
6382         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6383         formatting.
6384         (get_handles_fopen): Likewise.
6385         (do_write_test): Likewise.
6386
6387         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6388
6389         * libio/fileops.c (do_ftell): Use cached offset when
6390         available.
6391         * libio/iofwide.c (do_ftell_wide): Likewise.
6392         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6393         _IO_file_attach.
6394         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6395
6396         [BZ #16532]
6397         * libio/libioP.h (get_file_offset): New function.
6398         * libio/fileops.c (get_file_offset): Likewise.
6399         (do_ftell): Likewise.
6400         (_IO_new_file_seekoff): Split out ftell logic.
6401         * libio/wfileops.c (do_ftell_wide): Likewise.
6402         (_IO_wfile_seekoff): Split out ftell logic.
6403         * libio/tst-ftell-active-handler.c: New test case.
6404         * libio/Makefile (tests): Add it.
6405
6406 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6407
6408         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6409         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6410
6411 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6412
6413         [BZ #16639]
6414         * nscd/connections.c (nscd_init): Call do_exit.
6415         (start_threads): Call do_exit and notify_parent.
6416         (begin_drop_privileges): Call do_exit.
6417         (finish_drop_privileges): Likewise.
6418         * nscd/selinux.c (preserve_capabilities): Likewise.
6419         (install_real_capabilities): Likewise.
6420         (nscd_selinux_enabled): Likewise.
6421         (avc_create_thread): Likewise.
6422         (avc_alloc_lock): Likewise.
6423         (nscd_avc_init): Likewise.
6424         * nscd/nscd.c (parent_fd): New static variable.
6425         (main): Create a pipe between parent and child processes.
6426         Skip closing parent_fd.
6427         (monitor_child): New function.
6428         (do_exit): Likewise.
6429         (notify_parent): Likewise.
6430         * nscd/nscd.h (notify_parent): Likewise.
6431         (do_exit): Likewise.
6432
6433 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6434
6435         * malloc/malloc.c (__libc_calloc): Revert last change.
6436
6437 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6438
6439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6440
6441 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6442
6443         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6444         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6445         implementation.
6446         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6447         (__libc_ifunc_impl_list): Likewise.
6448         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6449         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6450         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6451         * string/strrchr.c: Define STRRCHR.
6452
6453 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6454
6455         * benchtest/bench-strtok.c (simple_strtok): Delete.
6456         (strtok_string): Use as benchmark.
6457         * string/strtok (STRTOK): New macro.
6458
6459 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6460
6461         * manual/threads.texi: Add header and standard comments to all
6462         functions.
6463
6464         * elf/dl-lookup.c (check_match): New function.
6465         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6466         (do_lookup_x): Remove nested function check_match. Use non-nested
6467         function check_match.
6468
6469 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6470
6471         * csu/Makefile (generated, before-compile): Use += rather than =.
6472         * catgets/Makefile (generated, generated-dirs): Likewise.
6473         * debug/Makefile (generated): Likewise.
6474         * dlfcn/Makefile (generated): Likewise.
6475         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6476         * iconvdata/Makefile (before-compile, generated): Likewise.
6477         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6478         * libio/Makefile (generated): Likewise.
6479         * malloc/Makefile (generated): Likewise.
6480         * manual/Makefile (generated, generated-dirs): Likewise.
6481         * misc/Makefile (generated): Likewise.
6482         * posix/Makefile (generated): Likewise.
6483         * resolv/Makefile (generated): Likewise.
6484         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6485         * timezone/Makefile (generated, generated-dirs): Likewise.
6486
6487         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6488
6489 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6490
6491         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6492         power8 implementation.
6493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6494         file: POWER8 llround ifunc implementation.
6495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6496         (__lllround): Add POWER8 implementation.
6497         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6498         POWER8 llround implementation.
6499
6500         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6501         power8 implementation.
6502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6503         file: POWER8 llrint ifunc implementation.
6504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6505         Add POWER8 implementation.
6506         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6507         POWER8 llrint implementation.
6508
6509         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6510         power8 implementation.
6511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6512         file: POWER8 finite ifunc implementation.
6513         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6514         Add POWER8 implementation.
6515         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6516         Likewise.
6517         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6518         POWER8 finite implementation.
6519         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6520
6521         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6522         power8 implementation.
6523         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6524         file: POWER8 isinf ifunc implementation.
6525         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6526         POWER8 implementation.
6527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6528         Likewise.
6529         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6530         isinf implementation.
6531         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6532
6533         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6534         (INIT_ARCH): Add hwcap2 initialization.
6535         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6536         power8 implementation.
6537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6538         file: POWER8 isnan ifunc implementation.
6539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6540         POWER8 implementation.
6541         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6542         Likewise.
6543         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6544         isnan implementation.
6545         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6546
6547 2014-02-27  Joey Ye  <joey.ye@arm.com>
6548
6549         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6550         (_FP_NANFRAC_Q): Set to zero.
6551
6552 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6553
6554         [BZ #16623]
6555         * math/auto-libm-test-in: New test inputs.
6556         * math/auto-libm-test-out: Regenerate.
6557         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6558         and DA.
6559         (__cos): Likewise.
6560         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6561
6562 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6563
6564         * scripts/evaluate-test.sh: Take new argument indicating whether
6565         failure is expected.
6566         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6567         indicating whether failure is expected.
6568         * conform/Makefile (test-xfail-run-conformtest): New variable.
6569         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6570         level.
6571         * posix/Makefile (test-xfail-annexc): New variable.
6572         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6573
6574 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6575
6576         * argp/Makefile: Include Makeconfig immediately after defining
6577         subdir.
6578         * assert/Makefile: Likewise.
6579         * benchtests/Makefile: Likewise.
6580         * catgets/Makefile: Likewise.
6581         * conform/Makefile: Likewise.
6582         * crypt/Makefile: Likewise.
6583         * csu/Makefile: Likewise.
6584         (all): Remove target.
6585         * ctype/Makefile: Include Makeconfig immediately after defining
6586         subdir.
6587         * debug/Makefile: Likewise.
6588         * dirent/Makefile: Likewise.
6589         * dlfcn/Makefile: Likewise.
6590         * gmon/Makefile: Likewise.
6591         * gnulib/Makefile: Likewise.
6592         * grp/Makefile: Likewise.
6593         * gshadow/Makefile: Likewise.
6594         * hesiod/Makefile: Likewise.
6595         * hurd/Makefile: Likewise.
6596         (all): Remove target.
6597         * iconvdata/Makefile: Include Makeconfig immediately after
6598         defining subdir.
6599         * inet/Makefile: Likewise.
6600         * intl/Makefile: Likewise.
6601         * io/Makefile: Likewise.
6602         * libio/Makefile: Likewise.
6603         (all): Remove target.
6604         * locale/Makefile: Include Makeconfig immediately after defining
6605         subdir.
6606         * login/Makefile: Likewise.
6607         * mach/Makefile: Likewise.
6608         (all): Remove target.
6609         * malloc/Makefile: Include Makeconfig immediately after defining
6610         subdir.
6611         (all): Remove target.
6612         * manual/Makefile: Include Makeconfig immediately after defining
6613         subdir.
6614         * math/Makefile: Likewise.
6615         * misc/Makefile: Likewise.
6616         * nis/Makefile: Likewise.
6617         * nss/Makefile: Likewise.
6618         * po/Makefile: Likewise.
6619         (all): Remove target.
6620         * posix/Makefile: Include Makeconfig immediately after defining
6621         subdir.
6622         * pwd/Makefile: Likewise.
6623         * resolv/Makefile: Likewise.
6624         * resource/Makefile: Likewise.
6625         * rt/Makefile: Likewise.
6626         * setjmp/Makefile: Likewise.
6627         * shadow/Makefile: Likewise.
6628         * signal/Makefile: Likewise.
6629         * socket/Makefile: Likewise.
6630         * soft-fp/Makefile: Likewise.
6631         * stdio-common/Makefile: Likewise.
6632         * stdlib/Makefile: Likewise.
6633         * streams/Makefile: Likewise.
6634         * string/Makefile: Likewise.
6635         * sunrpc/Makefile: Likewise.
6636         (all): Remove target.
6637         * sysvipc/Makefile: Include Makeconfig immediately after defining
6638         subdir.
6639         * termios/Makefile: Likewise.
6640         * time/Makefile: Likewise.
6641         * timezone/Makefile: Likewise.
6642         (all): Remove target.
6643         * wcsmbs/Makefile: Include Makeconfig immediately after defining
6644         subdir.
6645         * wctype/Makefile: Likewise.
6646
6647 2014-02-26  Steve Ellcey  <sellcey@mips.com>
6648
6649         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
6650         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
6651         (libc_feholdexcept_setround_mips): Ditto.
6652         (libc_feholdsetround): New.
6653         (libc_feholdsetroundf): New.
6654         (libc_feholdsetroundl): New.
6655         (libc_feupdateenv_test_mips): New.
6656         (libc_feupdateenv_test): New.
6657         (libc_feupdateenv_testf): New.
6658         (libc_feupdateenv_testl): New.
6659         (libc_feresetround): New.
6660         (libc_feresetroundf): New.
6661         (libc_feresetroundl): New.
6662         (libc_fetestexcept_mips): New.
6663         (libc_fetestexcept): New.
6664         (libc_fetestexceptf): New.
6665         (libc_fetestexceptl): New.
6666         (HAVE_RM_CTX): New.
6667         (libc_feholdexcept_setround_mips_ctx): New.
6668         (libc_feholdexcept_setround_ctx): New.
6669         (libc_feholdexcept_setroundf_ctx): New.
6670         (libc_feholdexcept_setroundl_ctx): New.
6671         (libc_fesetenv_mips_ctx): New.
6672         (libc_fesetenv_ctx): New.
6673         (libc_fesetenv_ctxf): New.
6674         (libc_fesetenv_ctxl): New.
6675         (libc_feupdateenv_mips_ctx): New.
6676         (libc_feupdateenv_ctx): New.
6677         (libc_feupdateenvf_ctx): New.
6678         (libc_feupdateenvl_ctx): New.
6679         (libc_feholdsetround_mips_ctx): New.
6680         (libc_feholdsetround_ctx): New.
6681         (libc_feholdsetroundf_ctx): New.
6682         (libc_feholdsetroundl_ctx): New.
6683         (libc_feresetround_mips_ctx): New.
6684         (libc_feresetround_ctx): New.
6685         (libc_feresetroundf_ctx): New.
6686         (libc_feresetroundl_ctx): New.
6687
6688 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
6689
6690         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
6691
6692         * manual/ipc.texi: New file.
6693         * manual/Makefile (chapters): Add ipc.
6694         * manual/job.texi: Add "Inter-Process Communication" to next.
6695         * manual/process.texi: Add "Inter-Process Communication" to prev.
6696
6697 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6698
6699         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6700
6701 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
6702
6703         * malloc/malloc.c (__libc_calloc): Simplify implementation.
6704
6705         * manual/arith.texi: Fix spaces after sentences.
6706         * manual/charset.texi: Likewise.
6707         * manual/errno.texi: Likewise.
6708         * manual/install.texi: Likewise.
6709         * manual/llio.texi: Likewise.
6710         * manual/locale.texi: Likewise.
6711         * manual/maint.texi: Likewise.
6712         * manual/math.texi: Likewise.
6713         * manual/memory.texi: Likewise.
6714         * manual/message.texi: Likewise.
6715         * manual/probes.texi: Likewise.
6716         * manual/resource.texi: Likewise.
6717         * manual/signal.texi: Likewise.
6718         * manual/socket.texi: Likewise.
6719         * manual/stdio.texi: Likewise.
6720         * manual/string.texi: Likewise.
6721         * manual/time.texi: Likewise.
6722         * manual/users.texi: Likewise.
6723
6724 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
6725
6726         [BZ #16632]
6727         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
6728         _DEFAULT_SOURCE is defined.
6729
6730 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
6731             Carlos O'Donell  <carlos@redhat.com>
6732
6733         [BZ #16613]
6734         * elf/dl-tls.c (_dl_count_modids): New function.
6735         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
6736         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
6737         audit library and increment generation counter.
6738         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
6739         * elf/tst-audit9.c: New file.
6740         * elf/tst-auditmod9a.c: New file.
6741         * elf/tst-auditmod9b.c: New file.
6742         * elf/Makefile: Add rules to build and run tst-audit9.
6743
6744 2014-02-25  Florian Weimer  <fweimer@redhat.com>
6745
6746         [BZ #15347]
6747         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
6748
6749 2014-02-25  Will Newton  <will.newton@linaro.org>
6750
6751         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
6752         (__longjmp): Restore sp and lr before restoring callee
6753         saved registers.  Add longjmp and longjmp_target
6754         SystemTap probe point.
6755         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
6756         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
6757         Define to zero to match jmpbuf layout.
6758         * sysdeps/arm/setjmp.S: Include stap-probe.h.
6759         (__sigsetjmp): Save sp and lr before saving callee
6760         saved registers.  Add setjmp SystemTap probe point.
6761
6762 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
6763
6764         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6765
6766 2014-02-24  Andreas Schwab  <schwab@suse.de>
6767
6768         [BZ #15804]
6769         * elf/pldd.c (wait_for_ptrace_stop): New function.
6770         (main): Call it after attaching.
6771
6772 2014-02-22  Roland McGrath  <roland@hack.frob.com>
6773
6774         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
6775         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
6776         Versions files is now verboten.
6777         * hurd/Versions (libc: GLIBC_2.0):
6778         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
6779         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
6780         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
6781         * mach/Versions: Likewise.
6782
6783         * csu/Versions: Remove unused %include.
6784         * resolv/Versions: Likewise.
6785
6786 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
6787
6788         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
6789         ($(objpfx)check-local-headers.out): Likewise.
6790         ($(objpfx)begin-end-check.out): Likewise.
6791         * Makerules (check-abi-%.out): Likewise.
6792         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
6793         ($(objpfx)test2.cat): Likewise.
6794         ($(objpfx)de/libc.cat): Likewise.
6795         ($(objpfx)test-gencat.out): Likewise.
6796         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
6797         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
6798         ($(objpfx)noload-mem): Likewise.
6799         ($(objpfx)tst-pathopt.out): Likewise.
6800         ($(objpfx)tst-rtld-load-self.out): Likewise.
6801         ($(objpfx)tst-array1-cmp.out): Likewise.
6802         ($(objpfx)tst-array1-static-cmp.out): Likewise.
6803         ($(objpfx)tst-array2-cmp.out): Likewise.
6804         ($(objpfx)tst-array3-cmp.out): Likewise.
6805         ($(objpfx)tst-array4-cmp.out): Likewise.
6806         ($(objpfx)tst-array5-cmp.out): Likewise.
6807         ($(objpfx)tst-array5-static-cmp.out): Likewise.
6808         ($(objpfx)check-textrel.out): Likewise.
6809         ($(objpfx)check-execstack.out): Likewise.
6810         ($(objpfx)check-localplt.out): Likewise.
6811         ($(objpfx)order2-cmp.out): Likewise.
6812         ($(objpfx)tst-leaks1-mem): Likewise.
6813         ($(objpfx)tst-leaks1-static-mem): Likewise.
6814         ($(objpfx)tst-initorder-cmp.out): Likewise.
6815         ($(objpfx)tst-initorder2-cmp.out): Likewise.
6816         ($(objpfx)tst-unused-dep.out): Likewise.
6817         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
6818         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6819         * iconv/Makefile (test-iconvconfig): Likewise.
6820         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
6821         ($(objpfx)iconv-test.out): Likewise.
6822         ($(objpfx)tst-tables.out): Likewise.
6823         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
6824         ($(objpfx)tst-gettext.out): Likewise.
6825         ($(objpfx)tst-translit.out): Likewise.
6826         ($(objpfx)tst-gettext2.out): Likewise.
6827         ($(objpfx)tst-gettext4.out): Likewise.
6828         ($(objpfx)tst-gettext6.out): Likewise.
6829         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
6830         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6831         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
6832         ($(objpfx)tst-fopenloc-mem.out): Likewise.
6833         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6834         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
6835         * posix/Makefile ($(objpfx)globtest.out): Likewise.
6836         ($(objpfx)wordexp-tst.out): Likewise.
6837         ($(objpfx)annexc.out): Likewise.
6838         ($(objpfx)tst-fnmatch-mem): Likewise.
6839         ($(objpfx)bug-regex2-mem): Likewise.
6840         ($(objpfx)bug-regex14-mem): Likewise.
6841         ($(objpfx)bug-regex21-mem): Likewise.
6842         ($(objpfx)bug-regex31-mem): Likewise.
6843         ($(objpfx)tst-vfork3-mem): Likewise.
6844         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6845         ($(objpfx)tst-pcre-mem): Likewise.
6846         ($(objpfx)tst-boost-mem): Likewise.
6847         ($(objpfx)tst-getconf.out): Likewise.
6848         ($(objpfx)bug-ga2-mem): Likewise.
6849         ($(objpfx)bug-glob2-mem): Likewise.
6850         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
6851         ($(objpfx)mtrace-tst-leaks2): Likewise.
6852         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
6853         ($(objpfx)tst-printf.out): Likewise.
6854         ($(objpfx)tst-setvbuf1.out): Likewise.
6855         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
6856         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
6857         ($(objpfx)tst-fmtmsg.out): Likewise.
6858         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
6859         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
6860
6861         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
6862         * bits/sigaction.h [__USE_MISC]: Likewise.
6863         * bits/waitstatus.h: Update #endif comments.
6864         * ctype/ctype.h: Likewise.
6865         * dirent/dirent.h: Likewise.
6866         [__USE_MISC]: Remove redundant conditionals.
6867         * grp/grp.h: Update #endif comments.
6868         [__USE_GNU]: Remove redundant conditionals.
6869         [__USE_MISC]: Likewise.
6870         * inet/netinet/in.h [__USE_GNU]: Likewise.
6871         * io/sys/stat.h [__USE_MISC]: Likewise.
6872         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
6873         * libio/bits/stdio.h: Update #endif comments.
6874         [__USE_MISC]: Remove redundant conditionals.
6875         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
6876         * libio/stdio.h: Update #endif comments.
6877         [__USE_MISC]: Remove redundant conditionals.
6878         * math/bits/math-finite.h [__USE_MISC]: Likewise.
6879         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
6880         * math/math.h: Update #else and #endif comments.
6881         [__USE_MISC]: Remove redundant conditionals.
6882         * misc/sys/uio.h: Update #endif comments.
6883         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
6884         * posix/glob.h [__USE_MISC]: Likewise.
6885         * posix/sys/types.h: Update #endif comments.
6886         [__USE_MISC]: Remove redundant conditionals.
6887         * posix/sys/wait.h: Update #endif comments.
6888         [__USE_MISC]: Remove redundant conditionals.
6889         * posix/unistd.h: Update #endif comments.
6890         [__USE_MISC]: Remove redundant conditionals.
6891         * pwd/pwd.h [__USE_GNU]: Likewise.
6892         [__USE_MISC]: Likewise.
6893         * resolv/netdb.h [__USE_GNU]: Likewise.
6894         * signal/signal.h: Update #endif comments.
6895         [__USE_MISC]: Remove redundant conditionals.
6896         * stdlib/stdlib.h: Update #else and #endif comments.
6897         [__USE_MISC]: Remove redundant conditionals.
6898         [__USE_GNU]: Likewise.
6899         * string/bits/string2.h [__USE_MISC]: Likewise.
6900         * string/string.h: Update #endif comments.
6901         [__USE_MISC]: Remove redundant conditionals.
6902         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
6903         Likewise.
6904         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
6905         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
6906         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
6907         Likewise.
6908         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
6909         Likewise.
6910         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
6911         comments.
6912         [__USE_MISC]: Remove redundant conditionals.
6913         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
6914         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
6915         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
6916         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
6917         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
6918         Likewise.
6919         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
6920         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
6921         Likewise.
6922         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
6923         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
6924         Likewise.
6925         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
6926         Likewise.
6927         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
6928         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
6929         Likewise.
6930         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
6931         Likewise.
6932         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
6933         * sysdeps/x86/bits/string.h: Update #endif comments.
6934         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
6935         conditionals.
6936         * time/sys/time.h: Update #endif comments.
6937         * time/time.h: Likewise.
6938         [__USE_MISC]: Remove redundant conditionals.
6939
6940 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
6941
6942         [BZ #16600]
6943         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
6944
6945 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
6946
6947         * Versions.def (librt): Add GLIBC_2.17.
6948
6949 2014-02-21  Adam Conrad  <adconrad@0c3.net>
6950
6951         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
6952         synonym for _SYS_AUXV_H to allow direct inclusion.
6953         * sysdeps/sparc/bits/hwcap.h: Likewise.
6954         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
6955         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
6956         * sysdeps/sparc/sysdep.h: Likewise.
6957
6958 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6959
6960         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
6961
6962 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6963
6964         * benchtests/bench-strrchr.c: Print length instead of position.
6965
6966 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
6967
6968         [BZ #16611]
6969         * sysdeps/unix/sysv/linux/kernel-features.h
6970         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
6971         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
6972         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
6973         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
6974         Likewise.
6975         [__i386__ || __powerpc__ || __sh__ || __sparc__]
6976         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6977         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
6978         (__ASSUME_SENDMMSG): Define instead of using previous
6979         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
6980         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6981         (__ASSUME_SENDMMSG_SYSCALL): Define.
6982         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6983         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
6984         Likewise.
6985         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6986         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6987         Likewise.
6988         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6989         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6990         Likewise.
6991         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
6992         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6993         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6994         [__ASSUME_SENDMMSG]: Change conditionals to
6995         [__ASSUME_SENDMMSG_SOCKETCALL].
6996         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6997         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
6998         Define.
6999         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7000         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7001         Likewise.
7002         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7003         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7004         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7005         [!__ASSUME_SENDMMSG]: Change conditional to
7006         [!__ASSUME_SENDMMSG_SOCKETCALL].
7007         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7008         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7009         Define.
7010
7011         [BZ #16610]
7012         * sysdeps/unix/sysv/linux/kernel-features.h
7013         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7014         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7015         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7016         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7017         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7018         [__i386__ || __sparc__]
7019         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7020         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7021         (__ASSUME_RECVMMSG): Define instead of using previous
7022         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7023         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7024         (__ASSUME_RECVMMSG_SYSCALL): Define.
7025         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7026         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7027         Likewise.
7028         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7029         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7030         Likewise.
7031         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7032         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7033         Likewise.
7034         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7035         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7036         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7037         [__ASSUME_RECVMMSG]: Change condition to
7038         [__ASSUME_RECVMMSG_SOCKETCALL].
7039         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7040         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7041         Define.
7042         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7043         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7044         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7045         Likewise.
7046         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7047         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7048         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7049         [!__ASSUME_RECVMMSG]: Change condition to
7050         [!__ASSUME_RECVMMSG_SOCKETCALL].
7051         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7052         (__ASSUME_RECVMMSG_SYSCALL): Define.
7053
7054         [BZ #16609]
7055         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7056         __powerpc__ || __s390__ || __sh__ || __sparc__]
7057         (__ASSUME_SOCKETCALL): Define.
7058         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7059         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7060         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7061         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7062         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7063         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7064         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7065         (__ASSUME_ACCEPT4): Define instead of using previous
7066         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7067         __powerpc__ || __sparc__ || __s390__)] condition.
7068         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7069         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7070         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7071         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7072         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7073         [!__ASSUME_ACCEPT4]: Change condition to
7074         [!__ASSUME_ACCEPT4_SOCKETCALL].
7075         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7076         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7077         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7078         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7079         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7080         __ASSUME_ACCEPT4_SYSCALL.
7081         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7082         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7083         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7084         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7085         __ASSUME_ACCEPT4_SYSCALL.
7086         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7087         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7088         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7089         [__ASSUME_ACCEPT4]: Change condition to
7090         [__ASSUME_ACCEPT4_SOCKETCALL].
7091         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7092         (__ASSUME_SOCKETCALL): Define.
7093         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7094         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7095         (__ASSUME_SOCKETCALL): Define.
7096         (__ASSUME_ACCEPT4): Remove.
7097         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7098         Define.
7099         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7100         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7101         Likewise.
7102         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7103         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7104
7105         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7106         macro.
7107         (HWCAP_ARM_LPAE): Likewise.
7108         (HWCAP_ARM_EVTSTRM): Likewise.
7109         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7110         Add vpfd32, lpae and evtstrm.
7111         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7112         Increase to 22.
7113
7114 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7115
7116         * math/auto-libm-test-in: Add tests of clog10.
7117         * math/auto-libm-test-out: Regenerated.
7118         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7119         * sysdeps/i386/fpu/libm-test-ulps: Update.
7120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7121
7122 2014-02-18  Andreas Schwab  <schwab@suse.de>
7123
7124         [BZ #16574]
7125         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7126         Store non-zero if the second buffer was newly allocated.
7127         (send_dg): Likewise.
7128         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7129         to send_vc and send_dg.
7130         (res_nsend): Pass NULL for ansp2_malloced.
7131         * resolv/res_query.c (__libc_res_nquery): Add parameter
7132         answerp2_malloced and pass it down to __libc_res_nsend.
7133         (res_nquery): Pass additional NULL to __libc_res_nquery.
7134         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7135         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7136         second answer buffer if answerp2_malloced was set.
7137         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7138         (__libc_res_nquerydomain): Add parameter
7139         answerp2_malloced and pass it down to __libc_res_nquery.
7140         (res_nquerydomain): Pass additional NULL to
7141         __libc_res_nquerydomain.
7142         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7143         additional NULL to __libc_res_nsend and __libc_res_nquery.
7144         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7145         additional NULL to __libc_res_nsearch.
7146         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7147         parameter of __libc_res_nsearch to check for separately allocated
7148         second buffer.
7149         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7150         __libc_res_nquery.
7151         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7152         additional NULL to __libc_res_nquery.
7153         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7154         __libc_res_nsearch.
7155         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7156         * include/resolv.h: Update prototypes of __libc_res_nquery,
7157         __libc_res_nsearch, __libc_res_nsend.
7158
7159 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7160
7161         * math/auto-libm-test-in: Add tests of fma.
7162         * math/auto-libm-test-out: Regenerated.
7163         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7164         (fma_towardzero_test_data): Likewise.
7165         (fma_downward_test_data): Likewise.
7166         (fma_upward_test_data): Likewise.
7167         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7168         mpc_mode.
7169         (rounding_modes): Add values for new field.
7170         (func_calc_method): Add value mpfr_fff_f.
7171         (func_calc_desc): Add mpfr_fff_f union field.
7172         (test_function): Add field exact_args.
7173         (FUNC): Add macro argument EXACT_ARGS.
7174         (FUNC_mpfr_f_f): Update call to FUNC.
7175         (FUNC_mpfr_f_f): Likewise.
7176         (FUNC_mpfr_ff_f): Likewise.
7177         (FUNC_mpfr_if_f): Likewise.
7178         (FUNC_mpc_c_f): Likewise.
7179         (FUNC_mpc_c_c): Likewise.
7180         (test_functions): Add fma.  Update calls to FUNC.
7181         (handle_input_arg): Add argument exact_args.
7182         (add_test): Update call to handle_input_arg.
7183         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7184         (output_for_one_input_case): Update call to calc_generic_results.
7185         Recalculate exact zero results in each rounding mode.
7186
7187         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7188         non-negative before setting low bit.
7189         * math/auto-libm-test-in: Mark one asin test possibly having
7190         spurious underflow.
7191         * math/auto-libm-test-out: Regenerated.
7192         * sysdeps/i386/fpu/libm-test-ulps: Update.
7193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7194
7195 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7196
7197         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7198         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7199         ports/sysdeps/unix/sysv/linux/microblaze.
7200         * README: Add missing listing for microblaze*-*-linux-gnu.
7201
7202 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7203
7204         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7205         * sysdeps/unix/sysv/linux/ia64: Move directory from
7206         ports/sysdeps/unix/sysv/linux/ia64.
7207         * README: Update listing for ia64-*-linux-gnu.
7208
7209 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7210             Joseph Myers  <joseph@codesourcery.com>
7211
7212         * Makeconfig (test-name): New variable.
7213         (evaluate-test): Likewise.
7214         * Makerules (do-test-clean): Remove .test-result files.
7215         (common-mostlyclean): Likewise.
7216         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7217         * scripts/evaluate-test.sh: New file.
7218
7219 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7220
7221         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7222         separate $(objpfx)tst-fopenloc-cmp.out and
7223         $(objpfx)tst-fopenloc-mem.out targets.
7224         (tests): Update dependencies.
7225         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7226         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7227         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7228         (tst-rxspencer-no-utf8-ARGS): New variable.
7229         (tst-rxspencer-no-utf8-ENV): Likewise.
7230         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7231         instead of $(objpfx)tst-rxspencer-mem.
7232         ($(objpfx)tst-rxspencer-mem): Change target to
7233         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7234         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7235         * posix/tst-rxspencer-no-utf8.c: New file.
7236
7237         * elf/Makefile ($(objpfx)order.out): Remove rule.
7238         [$(run-built-tests) = yes] (tests): Depend on
7239         $(objpfx)order-cmp.out.
7240         ($(objpfx)order-cmp.out): New rule.
7241         [$(run-built-tests) = yes] (tests): Depend on
7242         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7243         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7244         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7245         $(objpfx)tst-array5-static-cmp.out.
7246         ($(objpfx)tst-array1.out): Remove rule.
7247         ($(objpfx)tst-array1-cmp.out): New rule.
7248         ($(objpfx)tst-array1-static.out): Remove rule.
7249         ($(objpfx)tst-array1-static-cmp.out): New rule.
7250         ($(objpfx)tst-array2.out): Remove rule.
7251         ($(objpfx)tst-array2-cmp.out): New rule.
7252         ($(objpfx)tst-array3.out): Remove rule.
7253         ($(objpfx)tst-array3-cmp.out): New rule.
7254         ($(objpfx)tst-array4.out): Remove rule.
7255         ($(objpfx)tst-array4-cmp.out): New rule.
7256         ($(objpfx)tst-array5.out): Remove rule.
7257         ($(objpfx)tst-array5-cmp.out): New rule.
7258         ($(objpfx)tst-array5-static.out): Remove rule.
7259         ($(objpfx)tst-array5-static-cmp.out): New rule.
7260         [$(run-built-tests) = yes] (tests): Depend on
7261         $(objpfx)order2-cmp.out.
7262         ($(objpfx)order2.out): Remove rule.
7263         ($(objpfx)order2-cmp.out): New rule.
7264         ($(objpfx)tst-initorder.out): Remove rule.
7265         [$(run-built-tests) = yes] (tests): Depend on
7266         $(objpfx)tst-initorder-cmp.out.
7267         ($(objpfx)tst-initorder-cmp.out): New rule.
7268         ($(objpfx)tst-initorder2.out): Remove rule.
7269         [$(run-built-tests) = yes] (tests): Depend on
7270         $(objpfx)tst-initorder2-cmp.out.
7271         ($(objpfx)tst-initorder2-cmp.out): New rule.
7272         [$(run-built-tests) = yes] (tests): Depend on
7273         $(objpfx)tst-unused-dep-cmp.out.
7274         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7275         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7276         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7277         on $(objpfx)tst-setvbuf1-cmp.out.
7278         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7279         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7280         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7281         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7282         ($(objpfx)tst-svc.out): Remove rule.
7283         ($(objpfx)tst-svc-cmp.out): New rule.
7284
7285 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7286
7287         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7288         * ctype/ctype.h [__USE_MISC]: Likewise.
7289         * dirent/dirent.h [__USE_MISC]: Likewise.
7290         * grp/grp.h [__USE_MISC]: Likewise.
7291         * io/fcntl.h [__USE_MISC]: Likewise.
7292         * io/sys/stat.h [__USE_MISC]: Likewise.
7293         * libio/stdio.h [__USE_MISC]: Likewise.
7294         * posix/unistd.h [__USE_MISC]: Likewise.
7295         * pwd/pwd.h [__USE_MISC]: Likewise.
7296         * stdlib.h [__USE_MISC]: Likewise.
7297         * string/bits/string2.h [__USE_MISC]: Likewise.
7298         * string/string.h [__USE_MISC]: Likewise.
7299         * time/time.h [__USE_MISC]: Likewise.
7300
7301 2014-02-13  Andreas Schwab  <schwab@suse.de>
7302
7303         [BZ #16574]
7304         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7305         second answer buffer if it was separately allocated.
7306
7307 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7308
7309         * sysdeps/mips/math-tests.h: Include <features.h>.
7310         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7311         (ROUNDING_TESTS_long_double): Do not define.
7312         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7313         (EXCEPTION_TESTS_long_double): Likewise.
7314         * sysdeps/mips/mips64/libm-test-ulps: Update.
7315
7316         * include/features.h (__USE_BSD): Remove macro definitions.
7317         (__USE_SVID): Likewise.
7318         (_BSD_SOURCE): Likewise.
7319         (_SVID_SOURCE): Likewise.
7320         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7321         from definition of _DEFAULT_SOURCE.
7322         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7323         [_DEFAULT_SOURCE].
7324         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7325         * bits/mman.h [__USE_BSD]: Likewise.
7326         * bits/termios.h [__USE_BSD]: Likewise.
7327         * bits/waitstatus.h [__USE_BSD]: Likewise.
7328         * ctype/ctype.h [__USE_SVID]: Likewise.
7329         * dirent/dirent.h [__USE_BSD]: Likewise.
7330         * grp/grp.h [__USE_SVID]: Likewise.
7331         [__USE_BSD]: Likewise.
7332         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7333         * io/fcntl.h [__USE_BSD]: Likewise.
7334         * io/ftw.h [__USE_BSD]: Likewise.
7335         * io/sys/stat.h [__USE_BSD]: Likewise.
7336         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7337         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7338         * libio/stdio.h [__USE_SVID]: Likewise.
7339         [__USE_BSD]: Likewise.
7340         * math/math.h [__USE_SVID]: Likewise.
7341         [__USE_BSD]: Likewise.
7342         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7343         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7344         * misc/search.h [__USE_SVID]: Likewise.
7345         * misc/sys/mman.h [__USE_BSD]: Likewise.
7346         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7347         * misc/sys/uio.h [__USE_BSD]: Likewise.
7348         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7349         * posix/glob.h [__USE_BSD]: Likewise.
7350         * posix/regex.h [__USE_BSD]: Likewise.
7351         * posix/sys/types.h [__USE_BSD]: Likewise.
7352         [__USE_SVID]: Likewise.
7353         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7354         * posix/sys/wait.h [__USE_BSD]: Likewise.
7355         [__USE_SVID]: Likewise.
7356         * posix/unistd.h [__USE_BSD]: Likewise.
7357         [__USE_SVID]: Likewise.
7358         * pwd/pwd.h [__USE_SVID]: Likewise.
7359         * resolv/netdb.h [__USE_BSD]: Likewise.
7360         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7361         * signal/signal.h [__USE_BSD]: Likewise.
7362         [__USE_SVID]: Likewise.
7363         * socket/sys/socket.h [__USE_BSD]: Likewise.
7364         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7365         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7366         [__USE_SVID]: Likewise.
7367         * string/bits/string2.h [__USE_BSD]: Likewise.
7368         [__USE_SVID]: Likewise.
7369         * string/bits/string3.h [__USE_BSD]: Likewise.
7370         * string/endian.h [__USE_BSD]: Likewise.
7371         * string/string.h [__USE_SVID]: Likewise.
7372         [__USE_BSD]: Likewise.
7373         * string/strings.h [__USE_BSD]: Likewise.
7374         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7375         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7376         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7377         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7378         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7379         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7380         Likewise.
7381         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7382         Likewise.
7383         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7384         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7385         Likewise.
7386         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7387         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7388         Likewise.
7389         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7390         Likewise.
7391         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7392         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7393         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7394         Likewise.
7395         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7396         Likewise.
7397         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7398         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7399         * termios/termios.h [__USE_BSD]: Likewise.
7400         * time/sys/time.h [__USE_BSD]: Likewise.
7401         * time/time.h [__USE_BSD]: Likewise.
7402         [__USE_SVID]: Likewise.
7403
7404         * Makefile (subdir_targets): Remove subdir_lint.out.
7405
7406         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7407         (do-tst-printf): Likewise.
7408         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7409         $(objpfx)tst-printf.out.
7410
7411         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7412
7413         * Makerules (check-abi-%): Change target to
7414         $(objpfx)check-abi-%.out.
7415         (check-abi target): Update dependencies.
7416         (check-abi-pattern variable): Redirect output of diff to $@.
7417         (check-abi variable): Likewise.
7418         * elf/Makefile (check-abi): Update dependencies.
7419
7420         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7421         unused.
7422         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7423         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7424         subnormal range.
7425         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7426         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7427         value has largest subnormal exponent.
7428         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7429         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7430         * sysdeps/aarch64/soft-fp/sfp-machine.h
7431         (_FP_TININESS_AFTER_ROUNDING): New macro.
7432         * sysdeps/alpha/soft-fp/sfp-machine.h
7433         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7434         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7435         Likewise.
7436         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7437         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7438         * sysdeps/mips/soft-fp/sfp-machine.h
7439         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7440         * sysdeps/powerpc/soft-fp/sfp-machine.h
7441         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7442         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7443         Likewise.
7444         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7445         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7446         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7447         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7448         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7449         Likewise.
7450
7451 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7452
7453         [BZ #16545]
7454         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7455         model 1.
7456
7457 2014-02-12  Richard Henderson  <rth@redhat.com>
7458
7459         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7460         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7461         * sysdeps/unix/sysv/linux/alpha: Move directory from
7462         ports/sysdeps/unix/sysv/linux/alpha.
7463         * README: Update listing for alpha-*-linux-gnu.
7464
7465 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7466
7467         * include/features.h: Update comment documenting feature test
7468         macros.
7469         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7470         _DEFAULT_SOURCE.
7471         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7472         (_SVID_SOURCE): Likewise.
7473         (_DEFAULT_SOURCE): Update description of default features.
7474         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7475         with _GNU_SOURCE.
7476         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7477         (S_ISVTX): Likewise.
7478         * manual/math.texi (Mathematical Constants): Likewise.
7479         * manual/signal.texi (Interrupted Primitives): Likewise.
7480         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7481         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7482         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7483         Don't refer to _SVID_SOURCE in warning text.
7484
7485         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7486
7487         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7488         already defined.
7489         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7490         * sysdeps/mips/dl-lookup.c: Remove.
7491         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7492
7493 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7494
7495         [BZ #16447]
7496         * math/auto-libm-test-in: Add testcase for expl.
7497         * math/auto-libm-test-out: Regenerate.
7498         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7499         calculation of unsafe.
7500         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7501
7502 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7503
7504         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7505         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7506         ports/sysdeps/unix/sysv/linux/aarch64.
7507         * README: Update listing for aarch64*-*-linux-gnu.
7508
7509 2014-02-11  Will Newton  <will.newton@linaro.org>
7510
7511         * manual/probes.texi (Mathematical Function Probes): Use
7512         "triggered" instead of "hit".
7513
7514         * manual/probes.texi (Internal Probes): Add documentation
7515         of setjmp, longjmp and longjmp_target probes.
7516
7517         * include/stap-probe.h: Add comment about probe argument
7518         format.
7519
7520         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7521         definition.  (tr_where, tr_freehook, tr_mallochook,
7522         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7523
7524 2014-02-11  David S. Miller  <davem@davemloft.net>
7525
7526         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7527         processing int_tests.
7528
7529 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7530
7531         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7532         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7533         * sysdeps/unix/sysv/linux/mips: Move directory from
7534         ports/sysdeps/unix/sysv/linux/mips.
7535         * README: Update listing for mips-*-linux-gnu and
7536         mips64-*-linux-gnu.
7537
7538 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7539
7540         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7541         * sysdeps/unix/sysv/linux/m68k: Move directory from
7542         ports/sysdeps/unix/sysv/linux/m68k.
7543         * README: Update listing for m68k-*-linux-gnu.
7544
7545 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7546
7547         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7548         * sysdeps/unix/sysv/linux/generic: Move directory from
7549         ports/sysdeps/unix/sysv/linux/generic.
7550         * sysdeps/unix/sysv/linux/tile: Move directory from
7551         ports/sysdeps/unix/sysv/linux/tile.
7552         * README: Update listing for tile*-*-linux-gnu.
7553
7554 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7555
7556         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7557         __builtin_expect.
7558         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7559         * catgets/open_catalog.c (__open_catalog): Likewise.
7560         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7561         * debug/confstr_chk.c: Likewise.
7562         * debug/fread_chk.c (__fread_chk): Likewise.
7563         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7564         * debug/getgroups_chk.c: Likewise.
7565         * debug/mbsnrtowcs_chk.c: Likewise.
7566         * debug/mbsrtowcs_chk.c: Likewise.
7567         * debug/mbstowcs_chk.c: Likewise.
7568         * debug/memcpy_chk.c: Likewise.
7569         * debug/memmove_chk.c: Likewise.
7570         * debug/mempcpy_chk.c: Likewise.
7571         * debug/memset_chk.c: Likewise.
7572         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7573         * debug/strcat_chk.c (__strcat_chk): Likewise.
7574         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7575         * debug/strncat_chk.c (__strncat_chk): Likewise.
7576         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7577         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7578         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7579         * debug/wcpncpy_chk.c: Likewise.
7580         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7581         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7582         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7583         * debug/wcsncpy_chk.c: Likewise.
7584         * debug/wcsnrtombs_chk.c: Likewise.
7585         * debug/wcsrtombs_chk.c: Likewise.
7586         * debug/wcstombs_chk.c: Likewise.
7587         * debug/wmemcpy_chk.c: Likewise.
7588         * debug/wmemmove_chk.c: Likewise.
7589         * debug/wmempcpy_chk.c: Likewise.
7590         * debug/wmemset_chk.c: Likewise.
7591         * dirent/scandirat.c (SCANDIRAT): Likewise.
7592         * dlfcn/dladdr1.c (dladdr1): Likewise.
7593         * dlfcn/dladdr.c (dladdr): Likewise.
7594         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7595         * dlfcn/dlerror.c (__dlerror): Likewise.
7596         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7597         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7598         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7599         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7600         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7601         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7602         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7603         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7604         Likewise.
7605         * elf/dl-conflict.c: Likewise.
7606         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7607         * elf/dl-dst.h: Likewise.
7608         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
7609         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
7610         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7611         * elf/dl-init.c (call_init, _dl_init): Likewise.
7612         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
7613         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
7614         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
7615         Likewise.
7616         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
7617         Likewise.
7618         * elf/dl-minimal.c (__libc_memalign): Likewise.
7619         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
7620         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7621         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7622         * elf/dl-sym.c (do_sym): Likewise.
7623         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
7624         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
7625         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
7626         * elf/dl-writev.h (_dl_writev): Likewise.
7627         * elf/ldconfig.c (search_dir): Likewise.
7628         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
7629         (dl_main): Likewise.
7630         * elf/setup-vdso.h (setup_vdso): Likewise.
7631         * grp/compat-initgroups.c (compat_call): Likewise.
7632         * grp/fgetgrent.c (fgetgrent): Likewise.
7633         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
7634         * grp/putgrent.c (putgrent): Likewise.
7635         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7636         Likewise.
7637         * hurd/hurdinit.c: Likewise.
7638         * iconvdata/8bit-gap.c (struct): Likewise.
7639         * iconvdata/ansi_x3.110.c : Likewise.
7640         * iconvdata/big5.c : Likewise.
7641         * iconvdata/big5hkscs.c : Likewise.
7642         * iconvdata/cp1255.c: Likewise.
7643         * iconvdata/cp1258.c : Likewise.
7644         * iconvdata/cp932.c : Likewise.
7645         * iconvdata/euc-cn.c: Likewise.
7646         * iconvdata/euc-jisx0213.c : Likewise.
7647         * iconvdata/euc-jp.c: Likewise.
7648         * iconvdata/euc-jp-ms.c : Likewise.
7649         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
7650         * iconvdata/gb18030.c : Likewise.
7651         * iconvdata/gbbig5.c (const): Likewise.
7652         * iconvdata/gbgbk.c: Likewise.
7653         * iconvdata/gbk.c : Likewise.
7654         * iconvdata/ibm1364.c : Likewise.
7655         * iconvdata/ibm930.c : Likewise.
7656         * iconvdata/ibm932.c: Likewise.
7657         * iconvdata/ibm933.c : Likewise.
7658         * iconvdata/ibm935.c : Likewise.
7659         * iconvdata/ibm937.c : Likewise.
7660         * iconvdata/ibm939.c : Likewise.
7661         * iconvdata/ibm943.c: Likewise.
7662         * iconvdata/iso_11548-1.c: Likewise.
7663         * iconvdata/iso-2022-cn.c : Likewise.
7664         * iconvdata/iso-2022-cn-ext.c : Likewise.
7665         * iconvdata/iso-2022-jp-3.c: Likewise.
7666         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
7667         * iconvdata/iso-2022-kr.c : Likewise.
7668         * iconvdata/iso646.c (gconv_end): Likewise.
7669         * iconvdata/iso_6937-2.c : Likewise.
7670         * iconvdata/iso_6937.c : Likewise.
7671         * iconvdata/iso8859-1.c: Likewise.
7672         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
7673         * iconvdata/shift_jisx0213.c : Likewise.
7674         * iconvdata/sjis.c : Likewise.
7675         * iconvdata/t.61.c : Likewise.
7676         * iconvdata/tcvn5712-1.c : Likewise.
7677         * iconvdata/tscii.c: Likewise.
7678         * iconvdata/uhc.c : Likewise.
7679         * iconvdata/unicode.c (gconv_end): Likewise.
7680         * iconvdata/utf-16.c (gconv_end): Likewise.
7681         * iconvdata/utf-32.c (gconv_end): Likewise.
7682         * iconvdata/utf-7.c (base64): Likewise.
7683         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7684         * iconv/gconv_close.c (__gconv_close): Likewise.
7685         * iconv/gconv_open.c (__gconv_open): Likewise.
7686         * iconv/gconv_simple.c (internal_ucs4_loop_single)
7687         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
7688         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
7689         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
7690         (ucs4le_internal_loop_single): Likewise.
7691         * iconv/iconv.c (iconv): Likewise.
7692         * iconv/iconv_close.c: Likewise.
7693         * iconv/loop.c (SINGLE): Likewise.
7694         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
7695         * include/atomic.h: Likewise.
7696         * inet/inet6_option.c (option_alloc): Likewise.
7697         * intl/bindtextdom.c (set_binding_values): Likewise.
7698         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
7699         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7700         * intl/localealias.c (read_alias_file): Likewise.
7701         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
7702         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
7703         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
7704         * libio/fmemopen.c (fmemopen): Likewise.
7705         * libio/iofgets.c (_IO_fgets): Likewise.
7706         * libio/iofgets_u.c (fgets_unlocked): Likewise.
7707         * libio/iofgetws.c (fgetws): Likewise.
7708         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
7709         * libio/iogetdelim.c (_IO_getdelim): Likewise.
7710         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
7711         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
7712         * locale/findlocale.c (_nl_find_locale): Likewise.
7713         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7714         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
7715         Likewise.
7716         * locale/setlocale.c (setlocale): Likewise.
7717         * login/programs/pt_chown.c (main): Likewise.
7718         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
7719         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
7720         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
7721         (mmap, mmap64, mremap, munmap): Likewise.
7722         * math/e_exp2l.c: Likewise.
7723         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
7724         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
7725         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
7726         * math/s_catan.c (__catan): Likewise.
7727         * math/s_catanf.c (__catanf): Likewise.
7728         * math/s_catanh.c (__catanh): Likewise.
7729         * math/s_catanhf.c (__catanhf): Likewise.
7730         * math/s_catanhl.c (__catanhl): Likewise.
7731         * math/s_catanl.c (__catanl): Likewise.
7732         * math/s_ccosh.c (__ccosh): Likewise.
7733         * math/s_ccoshf.c (__ccoshf): Likewise.
7734         * math/s_ccoshl.c (__ccoshl): Likewise.
7735         * math/s_cexp.c (__cexp): Likewise.
7736         * math/s_cexpf.c (__cexpf): Likewise.
7737         * math/s_cexpl.c (__cexpl): Likewise.
7738         * math/s_clog10.c (__clog10): Likewise.
7739         * math/s_clog10f.c (__clog10f): Likewise.
7740         * math/s_clog10l.c (__clog10l): Likewise.
7741         * math/s_clog.c (__clog): Likewise.
7742         * math/s_clogf.c (__clogf): Likewise.
7743         * math/s_clogl.c (__clogl): Likewise.
7744         * math/s_csin.c (__csin): Likewise.
7745         * math/s_csinf.c (__csinf): Likewise.
7746         * math/s_csinh.c (__csinh): Likewise.
7747         * math/s_csinhf.c (__csinhf): Likewise.
7748         * math/s_csinhl.c (__csinhl): Likewise.
7749         * math/s_csinl.c (__csinl): Likewise.
7750         * math/s_csqrt.c (__csqrt): Likewise.
7751         * math/s_csqrtf.c (__csqrtf): Likewise.
7752         * math/s_csqrtl.c (__csqrtl): Likewise.
7753         * math/s_ctan.c (__ctan): Likewise.
7754         * math/s_ctanf.c (__ctanf): Likewise.
7755         * math/s_ctanh.c (__ctanh): Likewise.
7756         * math/s_ctanhf.c (__ctanhf): Likewise.
7757         * math/s_ctanhl.c (__ctanhl): Likewise.
7758         * math/s_ctanl.c (__ctanl): Likewise.
7759         * math/w_pow.c: Likewise.
7760         * math/w_powf.c: Likewise.
7761         * math/w_powl.c: Likewise.
7762         * math/w_scalb.c (sysv_scalb): Likewise.
7763         * math/w_scalbf.c (sysv_scalbf): Likewise.
7764         * math/w_scalbl.c (sysv_scalbl): Likewise.
7765         * misc/error.c (error_tail): Likewise.
7766         * misc/pselect.c (__pselect): Likewise.
7767         * nis/nis_callback.c (__nis_create_callback): Likewise.
7768         * nis/nis_call.c (__nisfind_server): Likewise.
7769         * nis/nis_creategroup.c (nis_creategroup): Likewise.
7770         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
7771         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
7772         * nis/nis_getservlist.c (nis_getservlist): Likewise.
7773         * nis/nis_lookup.c (nis_lookup): Likewise.
7774         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
7775         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
7776         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
7777         * nis/nis_xdr.c (xdr_endpoint): Likewise.
7778         * nis/nss_compat/compat-grp.c (getgrent_next_file)
7779         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
7780         * nis/nss_compat/compat-initgroups.c (add_group)
7781         (internal_getgrent_r): Likewise.
7782         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
7783         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
7784         * nis/nss_compat/compat-spwd.c (getspent_next_file)
7785         (internal_getspnam_r): Likewise.
7786         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
7787         (_nss_nis_getaliasbyname_r): Likewise.
7788         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
7789         (_nss_nis_getntohost_r): Likewise.
7790         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
7791         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
7792         (_nss_nis_getgrgid_r): Likewise.
7793         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
7794         (internal_nis_gethostent_r, internal_gethostbyname2_r)
7795         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
7796         (_nss_nis_gethostbyname4_r): Likewise.
7797         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
7798         (initgroups_netid): Likewise.
7799         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
7800         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
7801         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
7802         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
7803         (_nss_nis_getprotobynumber_r): Likewise.
7804         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
7805         (_nss_nis_getsecretkey): Likewise.
7806         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
7807         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
7808         (_nss_nis_getpwuid_r): Likewise.
7809         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
7810         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
7811         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
7812         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
7813         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
7814         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
7815         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7816         Likewise.
7817         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
7818         (_nss_nisplus_getntohost_r): Likewise.
7819         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
7820         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7821         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
7822         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
7823         Likewise.
7824         * nis/nss_nisplus/nisplus-initgroups.c
7825         (_nss_nisplus_initgroups_dyn): Likewise.
7826         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
7827         (_nss_nisplus_getnetbyaddr_r): Likewise.
7828         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
7829         (_nss_nisplus_getprotobynumber_r): Likewise.
7830         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
7831         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
7832         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
7833         Likewise.
7834         * nis/nss_nisplus/nisplus-service.c
7835         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
7836         (_nss_nisplus_getservbyport_r): Likewise.
7837         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
7838         (_nss_nisplus_getspnam_r): Likewise.
7839         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
7840         Likewise.
7841         * nscd/aicache.c (addhstaiX): Likewise.
7842         * nscd/cache.c (cache_search, prune_cache): Likewise.
7843         * nscd/connections.c (register_traced_file, send_ro_fd)
7844         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
7845         (main_loop_epoll): Likewise.
7846         * nscd/grpcache.c (addgrbyX): Likewise.
7847         * nscd/hstcache.c (addhstbyX): Likewise.
7848         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7849         * nscd/mem.c (gc, mempool_alloc): Likewise.
7850         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
7851         (addinnetgrX): Likewise.
7852         * nscd/nscd-client.h (__nscd_acquire_maplock)
7853         (__nscd_drop_map_ref): Likewise.
7854         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7855         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7856         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
7857         Likewise.
7858         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7859         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7860         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
7861         (__nscd_get_map_ref): Likewise.
7862         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7863         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
7864         Likewise.
7865         * nscd/pwdcache.c (addpwbyX): Likewise.
7866         * nscd/selinux.c (preserve_capabilities): Likewise.
7867         * nscd/servicescache.c (addservbyX): Likewise.
7868         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
7869         * posix/fnmatch.c (fnmatch): Likewise.
7870         * posix/getopt.c (_getopt_internal_r): Likewise.
7871         * posix/glob.c (glob, glob_in_dir): Likewise.
7872         * posix/wordexp.c (exec_comm_child): Likewise.
7873         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
7874         (getanswer_r, gaih_getanswer_slice): Likewise.
7875         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
7876         * resolv/res_init.c: Likewise.
7877         * resolv/res_mkquery.c (res_nmkquery): Likewise.
7878         * resolv/res_query.c (__libc_res_nquery): Likewise.
7879         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
7880         Likewise.
7881         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
7882         * stdio-common/perror.c (perror): Likewise.
7883         * stdio-common/printf_fp.c (___printf_fp): Likewise.
7884         * stdio-common/tmpnam.c (tmpnam): Likewise.
7885         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7886         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
7887         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
7888         Likewise.
7889         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7890         * stdlib/putenv.c (putenv): Likewise.
7891         * stdlib/setenv.c (__add_to_environ): Likewise.
7892         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7893         * stdlib/strtol_l.c (INTERNAL): Likewise.
7894         * string/memmem.c (memmem): Likewise.
7895         * string/strerror.c (strerror): Likewise.
7896         * string/strnlen.c (__strnlen): Likewise.
7897         * string/test-memmem.c (simple_memmem): Likewise.
7898         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
7899         * sunrpc/pm_getport.c (__get_socket): Likewise.
7900         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
7901         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7902         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
7903         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
7904         Likewise.
7905         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7906         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
7907         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
7908         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
7909         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7910         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
7911         Likewise.
7912         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
7913         Likewise.
7914         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7915         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7916         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7917         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
7918         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7919         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
7920         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
7921         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
7922         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
7923         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7924         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7925         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7926         Likewise.
7927         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
7928         Likewise.
7929         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
7930         Likewise.
7931         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
7932         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7933         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
7934         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
7935         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7936         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
7937         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7938         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
7939         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
7940         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
7941         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
7942         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7943         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
7944         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
7945         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7946         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7947         Likewise.
7948         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
7949         Likewise.
7950         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
7951         Likewise.
7952         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
7953         Likewise.
7954         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7955         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7956         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
7957         Likewise.
7958         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
7959         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
7960         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7961         * sysdeps/posix/sleep.c: Likewise.
7962         * sysdeps/posix/tempname.c: Likewise.
7963         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
7964         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
7965         Likewise.
7966         * sysdeps/powerpc/powerpc32/dl-machine.h
7967         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
7968         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
7969         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7970         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
7971         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
7972         Likewise.
7973         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
7974         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
7975         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7976         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
7977         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7978         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
7979         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
7980         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
7981         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7982         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
7983         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
7984         (elf_machine_lazy_rel): Likewise.
7985         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
7986         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
7987         (elf_machine_lazy_rel): Likewise.
7988         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
7989         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
7990         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
7991         * sysdeps/unix/grantpt.c (grantpt): Likewise.
7992         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
7993         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
7994         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7995         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7996         Likewise.
7997         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
7998         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
7999         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8000         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8001         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8002         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8003         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8004         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8005         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8006         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8007         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8008         Likewise.
8009         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8010         (__posix_fallocate64_l64): Likewise.
8011         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8012         (posix_fallocate): Likewise.
8013         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8014         Likewise.
8015         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8016         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8017         (getifaddrs_internal): Likewise.
8018         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8019         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8020         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8021         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8022         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8023         (__posix_fallocate64_l64): Likewise.
8024         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8025         Likewise.
8026         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8027         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8028         (__get_clockfreq): Likewise.
8029         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8030         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8031         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8032         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8033         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8034         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8035         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8036         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8037         Likewise.
8038         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8039         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8040         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8041         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8042         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8043         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8044         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8045         Likewise.
8046         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8047         (posix_fallocate): Likewise.
8048         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8049         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8050         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8051         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8052         (elf_machine_rela, elf_machine_rela_relative)
8053         (elf_machine_lazy_rel): Likewise.
8054         * time/asctime.c (asctime_internal): Likewise.
8055         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8056         * time/tzset.c (__tzset_parse_tz): Likewise.
8057         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8058         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8059         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8060         * wcsmbs/wcsmbsload.h: Likewise.
8061
8062         [BZ #15894]
8063         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8064
8065         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8066         (arena_get2): Remove THREAD_STATS conditionals.
8067         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8068         (__malloc_stats, int): Likewise.
8069
8070 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8071
8072         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8073         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8074
8075         * manual/setjmp.texi: Fix typos/grammar errors.
8076
8077         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8078         Only return early when n is <= 0.  Delete unused return statement.
8079
8080         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8081         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8082         * debug/tst-longjmp_chk3.c: New file.
8083
8084         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8085         (test_main): Replace code with set_fortify_handler call.
8086         * debug/test-strcpy_chk.c: Likewise.
8087         * debug/tst-chk1.c: Likewise.
8088         * debug/tst-longjmp_chk.c: Likewise.
8089         * test-skeleton.c: Include fcntl.h & paths.h
8090         (set_fortify_handler): Define.
8091
8092         * debug/tst-longjmp_chk.c: Add header comment and include
8093         ../test-skeleton.c.
8094         (do_test): Mark static.
8095         (TEST_FUNCTION): Define.
8096
8097         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8098         (IP_PMTUDISC_INTERFACE): Likewise.
8099         (IP_MULTICAST_IF): Likewise.
8100         (IP_MULTICAST_TTL): Likewise.
8101         (IP_MULTICAST_LOOP): Likewise.
8102         (IP_ADD_MEMBERSHIP): Likewise.
8103         (IP_DROP_MEMBERSHIP): Likewise.
8104         (IP_UNBLOCK_SOURCE): Likewise.
8105         (IP_BLOCK_SOURCE): Likewise.
8106         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8107         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8108         (IP_MSFILTER): Likewise.
8109         (MCAST_JOIN_GROUP): Likewise.
8110         (MCAST_BLOCK_SOURCE): Likewise.
8111         (MCAST_UNBLOCK_SOURCE): Likewise.
8112         (MCAST_LEAVE_GROUP): Likewise.
8113         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8114         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8115         (MCAST_MSFILTER): Likewise.
8116         (IP_MULTICAST_ALL): Likewise.
8117         (IP_UNICAST_IF): Likewise.
8118
8119         * timezone/Makefile: Delete $(have-ksh) check.
8120         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8121         * timezone/tzselect.ksh: Add +x mode bits.
8122
8123         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8124         (ANON_INODE_FS_MAGIC): Likewise.
8125         (BDEVFS_MAGIC): Likewise.
8126         (BINFMTFS_MAGIC): Likewise.
8127         (BTRFS_TEST_MAGIC): Likewise.
8128         (CRAMFS_MAGIC_WEND): Likewise.
8129         (DEBUGFS_MAGIC): Likewise.
8130         (ECRYPTFS_SUPER_MAGIC): Likewise.
8131         (EXT3_SUPER_MAGIC): Likewise.
8132         (EXT4_SUPER_MAGIC): Likewise.
8133         (FUTEXFS_SUPER_MAGIC): Likewise.
8134         (HOSTFS_SUPER_MAGIC): Likewise.
8135         (HUGETLBFS_MAGIC): Likewise.
8136         (MINIX3_SUPER_MAGIC): Likewise.
8137         (MTD_INODE_FS_MAGIC): Likewise.
8138         (NILFS_SUPER_MAGIC): Likewise.
8139         (OPENPROM_SUPER_MAGIC): Likewise.
8140         (PIPEFS_MAGIC): Likewise.
8141         (PSTOREFS_MAGIC): Likewise.
8142         (QNX6_SUPER_MAGIC): Likewise.
8143         (RAMFS_MAGIC): Likewise.
8144         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8145         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8146         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8147         (SECURITYFS_MAGIC): Likewise.
8148         (SELINUX_MAGIC): Likewise.
8149         (SMACK_MAGIC): Likewise.
8150         (SOCKFS_MAGIC): Likewise.
8151         (SQUASHFS_MAGIC): Likewise.
8152         (STACK_END_MAGIC): Likewise.
8153         (TMPFS_MAGIC): Likewise.
8154         (USBDEVICE_SUPER_MAGIC): Likewise.
8155         (V9FS_MAGIC): Likewise.
8156         (XENFS_SUPER_MAGIC): Likewise.
8157         (CRAMFS_MAGIC): Fix typo in comment.
8158         (EXT2_SUPER_MAGIC): Update comment.
8159         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8160
8161 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8162
8163         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8164         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8165         * sysdeps/unix/sysv/linux/arm: Move directory from
8166         ports/sysdeps/unix/sysv/linux/arm.
8167         * README: Update listing for arm-*-linux-gnueabi.
8168
8169         * README: Remove mention of am33.
8170
8171 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8172
8173         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8174         than the comma operator, to avoid "rhs of comma has no effect"
8175         compiler warnings.
8176         (__sigfillset, __sigandset, __sigorset): Likewise.
8177         * include/signal.h (__sigemptyset): Likewise.
8178         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8179
8180 2014-02-07  Allan McRae  <allan@archlinux.org>
8181
8182         * version.h (RELEASE): Set to "development".
8183         (VERSION): Set to "2.19.90"
8184         * NEWS: Add 2.20 section.
8185
8186 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8187
8188         [BZ #16529]
8189         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8190
8191 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8192
8193         * manual/contrib.texi: Update entry for Carlos O'Donell,
8194         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8195
8196 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8197
8198         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8199
8200         * sysdeps/unix/sysv/linux/kernel-features.h
8201         [__LINUX_KERNEL_VERSION >= 0x020621]
8202         (__ASSUME_PROC_PID_TASK_COMM): Define.
8203
8204 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8205
8206         [BZ #16398]
8207         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8208         conversion when destination buffer does not have enough space.
8209         * libio/tst-ftell-partial-wide.c: New test case.
8210         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8211
8212         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8213         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8214         Leonard and Allan McRae.
8215
8216 2014-02-04  David S. Miller  <davem@davemloft.net>
8217
8218         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8219         32-bit.
8220
8221 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8222
8223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8224         New file
8225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8226         New file
8227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8228         New file.
8229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8230         New file.
8231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8232         New file.
8233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8234         New file.
8235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8236         New file.
8237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8238         New file.
8239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8240         New file.
8241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8242         New file.
8243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8244         New file.
8245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8246         New file.
8247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8248         New file.
8249
8250 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8251
8252         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8253         * shlib-versions: Likewise.
8254
8255 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8256             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8257
8258         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8259         (abilist-pattern): New variable, set to %-le.abilist.
8260
8261         * Makerules (abilist-pattern): New variable.
8262         (vpath): Use $(abilist-pattern) in place of %.abilist.
8263         (check-abi-% pattern rule): Likewise.
8264         (check-abi, update-abi): Likewise.
8265
8266 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8267
8268         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8269
8270 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8271
8272         * manual/startup.texi: Add next, previous, and top entries for
8273         the `Program Arguments' and `Environment Variables' nodes.
8274
8275 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8276
8277         * manual/macros.texi: Add comments before MTASC-safety macros.
8278
8279         * manual/users.texi: Document MTASC-safety properties.
8280
8281         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8282         (pthread_getspecific, pthread_setspecific): Format with
8283         @deftypefun, and add @safety note.
8284         * manual/signal.texi: Move comments that analyze the above
8285         functions to their home place.
8286
8287 2014-02-03  Allan McRae  <allan@archlinux.org>
8288
8289         * po/sl.po: Update Slovenian translation from translation project.
8290
8291 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8292
8293         * manual/time.texi (timegm): Add missing blank after @c.
8294         Reported by Joseph Myers <joseph@codesourcery.com>.
8295
8296 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8297
8298         * manual/check-safety.sh: New.
8299         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8300
8301         * manual/terminal.texi: Document MTASC-safety properties.
8302
8303         * manual/filesys.texi: Document MTASC-safety properties.
8304
8305         * manual/errno.texi: Document MTASC-safety properties.
8306
8307         * manual/intro.texi: Document safety identifiers and
8308         conditionals.
8309
8310         * manual/string.texi (wcstok): Fix prototype.
8311         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8312
8313         * manual/time.texi: Document MTASC-safety properties.
8314
8315         * manual/string.texi: Document MTASC-safety properties.
8316
8317         * manual/threads.texi: Document MTASC-safety properties.
8318
8319         * manual/stdio.texi: Document MTASC-safety properties.
8320
8321         * manual/syslog.texi: Document MTASC-safety properties.
8322
8323         * manual/sysinfo.texi: Document MTASC-safety properties.
8324
8325         * manual/startup.texi: Document MTASC-safety properties.
8326
8327         * manual/socket.texi: Document MTASC-safety properties.
8328
8329         * manual/signal.texi: Document MTASC-safety properties.
8330
8331 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8332
8333         * manual/setjmp.texi: Document MTASC-safety properties.
8334
8335         * manual/search.texi: Document MTASC-safety properties.
8336
8337         * manual/resource.texi: Document MTASC-safety properties.
8338
8339         * manual/process.texi: Document MTASC-safety properties.
8340
8341         * manual/platform.texi: Document MTASC-safety properties.
8342
8343         * manual/pipe.texi: Document MTASC-safety properties.
8344
8345         * manual/pattern.texi: Document MTASC-safety properties.
8346
8347         * manual/message.texi: Document MTASC-safety properties.
8348
8349         [BZ #12751]
8350         * manual/memory.texi: Document MTASC-safety properties.
8351
8352         * manual/math.texi: Document MTASC-safety properties.
8353
8354         * manual/locale.texi: Document MTASC-safety properties.
8355
8356         * manual/llio.texi: Document MTASC-safety properties.
8357
8358         * manual/libdl.texi: New.
8359
8360         * manual/lang.texi: Document MTASC-safety properties.
8361
8362         * manual/job.texi: Document MTASC-safety properties.
8363
8364         * manual/getopt.texi: Document MTASC-safety properties.
8365
8366         * manual/ctype.texi: Document MTASC-safety properties.
8367
8368 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8369
8370         [BZ #16046]
8371         * csu/libc-tls.c (static_map): Remove variable.
8372         (__libc_setup_tls): Use main executable's link map for TLS data.
8373         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8374         casing for LM_ID_BASE and GL(dl_nns).
8375         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8376         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8377         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8378         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8379         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8380         member.
8381         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8382         l_phnum members.
8383
8384 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8385
8386         * manual/debug.texi: Document MTASC-safety properties.
8387
8388 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8389
8390         [BZ #16510]
8391         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8392         of __x86_64__ when disabling x87 inline functions.
8393
8394 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8395
8396         * manual/charset.texi: Document MTASC-safety properties.
8397
8398         * manual/crypt.texi: Document MTASC-safety properties.
8399
8400         * manual/conf.texi: Document MTASC-safety properties.
8401
8402         * manual/arith.texi: Document MTASC-safety properties.
8403
8404         * manual/argp.texi: Document MTASC-safety properties.
8405
8406         * manual/macros.texi: Introduce macros to document multi
8407         thread, asynchronous signal and asynchronous cancellation
8408         safety properties.
8409         * manual/intro.texi: Introduce the properties themselves.
8410
8411 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8412
8413         * sysdeps/sh/sh4/Makefile: New file.
8414
8415 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8416
8417         * math/gen-libm-test.pl ($srcdir): New variable.
8418         ($auto_input): Use it.
8419
8420 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8421
8422         [BZ #16506]
8423         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8424         access beyond array bounds when parsing netgroups file.
8425
8426         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8427         the old buffer before realloc.
8428
8429 2014-01-27  Allan McRae  <allan@archlinux.org>
8430
8431         * po/fr.po: Update French translation from translation project.
8432
8433 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8434
8435         * sysdeps/sh/libm-test-ulps: Regenerate.
8436
8437 2014-01-24  David S. Miller  <davem@davemloft.net>
8438
8439         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8440
8441 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8442
8443         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8444         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8445
8446 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8447
8448         [BZ #16474]
8449         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8450         string pointers after reallocation.
8451
8452 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8453
8454         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8455         __SH4A__ instead of __SH_FPU_ANY__.
8456
8457 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8458
8459         * sysdeps/sh/fpu_control.h: New file.
8460         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8461         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8462         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8463         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8464         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8465         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8466         * sysdeps/sh/sys/ucontext.h: Remove.
8467         * sysdeps/sh/sys: Remove directory.
8468
8469 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8470
8471         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8472         s390/sys/ucontext.h.
8473         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8474         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8475
8476 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8477
8478         [BZ #15605]
8479         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8480
8481 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8482
8483         [BZ#16431]
8484         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8485         Adjust the vDSO correctly for internal calls.
8486         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8487
8488 2014-01-20  Allan McRae  <allan@archlinux.org>
8489
8490         * po/ca.po: Update Catalan translation from translation project.
8491
8492 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8493
8494         * sysdeps/s390/sotruss-lib.c: New file.
8495
8496 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8497
8498         [BZ#16430]
8499         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8500         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8501         local calls issues by not having a PLT stub required for IFUNC calls.
8502         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8503
8504 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8505
8506         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8507         * math/test-fpucw-static.c: Likewise.
8508
8509 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8510
8511         [BZ #16453]
8512         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8513
8514 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8515
8516         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8517         implementation for powerpc.
8518
8519 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8520
8521         [BZ #14782]
8522         * sysdeps/posix/system.c (__libc_system): Do not enable
8523         asynchronous cancellation.
8524
8525 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8526
8527         [BZ #16427]
8528         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8529         handling only for numbers special also in the IEEE case.
8530
8531 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8532
8533         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8534
8535 2014-01-11  Allan McRae  <allan@archlinux.org>
8536
8537         * po/bg.po: Update Bulgarian translation from translation project.
8538
8539         * po/de.po: Update German translation from translation project.
8540
8541 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8542
8543         * sysdeps/generic/gcc-compat.h: New file.
8544
8545 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8546
8547         * benchtests/asin-inputs: Correct slow inputs.
8548         * benchtests/acos-inputs: Likewise.
8549
8550 2014-01-10  Allan McRae  <allan@archlinux.org>
8551
8552         * po:sv.po: Update Swedish translation from translation project.
8553
8554         * po/vi.po: Update Vietnamese translation from translation project.
8555
8556         * po/eo.po: Update Esperanto translation from translation project.
8557
8558         * po/cs.po: Update Czech translation from translation project.
8559
8560         * po/nl.po: Update Dutch translation from translation project.
8561
8562         * po/pl.po: Update Polish translation from translation project.
8563
8564         * po/ru.po: Update Russian translation from translation project.
8565
8566         * po/uk.po: Update Ukrainian translation from translation project.
8567
8568 2014-01-08  Brooks Moses  <bmoses@google.com>
8569
8570         * elf/dl-load.c: Fix comment typo.
8571
8572 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8573
8574         * po/header.pot: Rename to...
8575         * po/pot.header: ... this.
8576         * po/Makefile: Use pot.header.
8577
8578 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8579             Maxim Kuvyrkov  <maxim@kugelworks.com>
8580
8581         [BZ #16394]
8582         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8583         SRC and DEST against LEN.
8584
8585 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8586
8587         [BZ #16414]
8588         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8589         implementation.
8590         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8591
8592 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8593
8594         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8595
8596 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8597
8598         [BZ #16408]
8599         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8600         for large positive arguments.
8601
8602 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8603
8604         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8605
8606         * math/auto-libm-test-in: Mark various tests with
8607         xfail-rounding:ldbl-128ibm.
8608         * math/auto-libm-test-out: Regenerated.
8609
8610         [BZ #16407]
8611         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
8612         Increase overflow threshold.
8613
8614 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
8615
8616         [BZ #14286]
8617         * stdio-common/vfprintf.c: Check for integer overflow.
8618
8619 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8620
8621         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
8622         the first argument and return value of __tls_get_addr_internal.
8623
8624 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8625
8626         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
8627         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
8628
8629 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8630
8631         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
8632         * sysdeps/s390/rtld-global-offsets.sym: New file.
8633         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
8634         GLIBC_2.19 symbol.
8635         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
8636         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
8637         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
8638         ... this.
8639         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
8640         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
8641         ... this.
8642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8643         Regenerate.
8644         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8645         Regenerate.
8646         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
8647         halfs of GPRs for high_gprs contexts.
8648         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
8649         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
8650         field.
8651         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
8652         uc_flags field.
8653         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
8654         64 bit versions:
8655         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
8656         for high GPRs (uc_high_gprs) and for future extensions
8657         (__reserved).
8658         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
8659         for future extensions (__reserved).
8660         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
8661         64 bit versions:
8662         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
8663         SC_HIGHGPRS offset definition.
8664         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
8665         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
8666
8667         * Versions.def: Add GLIBC_2.19 for libpthread.
8668         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
8669         siglongjmp for libpthread with GLIBC_2.19 symver.
8670         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
8671         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
8672         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
8673         * sysdeps/s390/__longjmp.c: New file.
8674         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
8675         * sysdeps/s390/longjmp.c: New file.
8676         * sysdeps/s390/setjmp.S: New file.
8677         * sysdeps/s390/sigjmp.S: New file.
8678         * sysdeps/s390/v1-longjmp.c: New file.
8679         * sysdeps/s390/v1-setjmp.h: New file.
8680         * sysdeps/s390/v1-sigjmp.c: New file.
8681         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
8682         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
8683         GLIBC_2.19 version.
8684         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
8685         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
8686         versioned symbols for ____longjmp_chk.
8687         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
8688         Likewise.
8689         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8690         Regenerate.
8691         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8692         Regenerate.
8693         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8694         Regenerate.
8695         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8696         Regenerate.
8697         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
8698         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
8699         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
8700         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
8701         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
8702         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
8703         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
8704         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
8705         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
8706         * sysdeps/s390/rtld-__longjmp.c: New file.
8707         * sysdeps/s390/rtld-setjmp.S: New file.
8708
8709 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
8710
8711         [BZ #16400]
8712         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8713         Return -__logl (x) for small positive arguments without evaluating
8714         a polynomial.
8715
8716 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
8717
8718         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
8719         Rename to ...
8720         (__ptrace_peeksiginfo_args): ... this.
8721         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8722         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8723         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8724
8725 2014-01-06  Allan McRae  <allan@archlinux.org>
8726
8727         * inet/netinet/in.h: Fix typo in comment.
8728
8729 2014-01-05  Andreas Jaeger  <aj@suse.de>
8730
8731         * sysdeps/i386/fpu/libm-test-ulps: Update.
8732
8733 2014-01-05  Allan McRae  <allan@archlinux.org>
8734
8735         * po/libc.pot: Regenerated.
8736
8737         * malloc/memusagestat.c: Fix gettext call formatting.
8738
8739 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
8740
8741         * nscd/nscd.c: Improve usage() output.
8742
8743 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
8744
8745         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
8746         * sysdeps/unix/sysv/linux/configure: Regenerated.
8747         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
8748         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
8749
8750 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8751
8752         [BZ #16390]
8753         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
8754         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
8755
8756 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8757
8758         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
8759         extra tokens at end of #undef directive.
8760         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
8761         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
8762         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
8763
8764 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8765
8766         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8767
8768         * math/auto-libm-test-in: Mark various tests with
8769         xfail-rounding:ldbl-128ibm.
8770         * math/auto-libm-test-out: Regenerated.
8771
8772 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
8773
8774         [BZ #16386]
8775         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
8776         numbers with subnormal high part when calculating exponent.
8777
8778         [BZ #16385]
8779         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
8780         fabs.
8781
8782         [BZ #16384]
8783         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
8784         M_LN2l.
8785         (__ieee754_acoshl): Use __log1pl not __log1p.
8786
8787 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
8788
8789         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
8790         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
8791         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
8792         (grow_heap, heap_trim, _int_new_arena, get_free_list)
8793         (reused_arena, arena_get2): Convert to GNU style.
8794         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
8795         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
8796         (memalign_check, __malloc_set_state): Likewise.
8797         * malloc/mallocbug.c (main): Likewise.
8798         * malloc/malloc.c (__malloc_assert, malloc_init_state)
8799         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
8800         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
8801         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
8802         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
8803         (__posix_memalign, malloc_info): Likewise.
8804         * malloc/malloc.h: Likewise.
8805         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
8806         (mallochook, memalignhook, reallochook, mabort): Likewise.
8807         * malloc/mcheck.h: Likewise.
8808         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
8809         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
8810         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
8811         * malloc/morecore.c (__default_morecore): Likewise.
8812         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
8813         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
8814         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
8815         (print_and_abort): Likewise.
8816         * malloc/obstack.h: Likewise.
8817         * malloc/set-freeres.c (__libc_freeres): Likewise.
8818         * malloc/tst-mallocstate.c (main): Likewise.
8819         * malloc/tst-mtrace.c (main): Likewise.
8820         * malloc/tst-realloc.c (do_test): Likewise.
8821
8822 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8823
8824         [BZ #16366]
8825         * nscd/netgroupcache.c (do_notfound): New function.
8826         (addgetnetgrentX): Use it.
8827
8828         [BZ # 16365]
8829         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
8830         NSS_STATUS_NOTFOUND.
8831
8832 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
8833
8834         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
8835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8836
8837 2014-01-01  Allan McRae  <allan@archlinux.org>
8838
8839         * scripts/update-copyrights: Update configure input file suffix.
8840
8841         * NEWS: Update copyright year.
8842         * catgets/gencat.c: Likewise.
8843         * csu/version.c: Likewise.
8844         * debug/catchsegv.sh: Likewise.
8845         * debug/pcprofiledump.c: Likewise.
8846         * debug/xtrace.sh: Likewise.
8847         * elf/ldconfig.c: Likewise.
8848         * elf/ldd.bash.in: Likewise.
8849         * elf/pldd.c: Likewise.
8850         * elf/sotruss.ksh: Likewise.
8851         * elf/sprof.c: Likewise.
8852         * iconv/iconv_prog.c: Likewise.
8853         * iconv/iconvconfig.c: Likewise.
8854         * locale/programs/locale.c: Likewise.
8855         * locale/programs/localedef.c: Likewise.
8856         * login/programs/pt_chown.c: Likewise.
8857         * malloc/memusage.sh: Likewise.
8858         * malloc/memusagestat.c: Likewise.
8859         * malloc/mtrace.pl: Likewise.
8860         * manual/libc.texinfo: Likewise.
8861         * nscd/nscd.c: Likewise.
8862         * nss/getent.c: Likewise.
8863         * nss/makedb.c: Likewise.
8864         * posix/getconf.c: Likewise.
8865         * scripts/test-installation.pl: Likewise.
8866
8867         * All files with FSF copyright notices: Update copyright dates
8868         using scripts/update-copyrights.
8869         * intl/plural.c: Regenerated.
8870         * locale/programs/charmap-kw.h: Likewise.
8871         * locale/programs/locfile-kw.h: Likewise.
8872
8873 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
8874
8875         * sysdeps/unix/sysv/linux/configure: Regenerated.
8876         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
8877         the linux/fanotify.h header.
8878         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
8879         HAVE_LINUX_FANOTIFY_H is defined.
8880
8881 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8882
8883         * benchtests/cos-inputs: New inputs.
8884         * benchtests/sin-inputs: Likewise.
8885
8886         * benchtests/atan-inputs: New inputs. Fix name of multiple
8887         precision fallback inputs.
8888
8889         * benchtests/atanh-inputs: New inputs.
8890         * benchtests/tanh-inputs: Likewise.
8891
8892         * benchtests/acosh-inputs: New inputs.
8893         * benchtests/asinh-inputs: Likewise.
8894
8895         * benchtests/cosh-inputs: New inputs.
8896         * benchtests/sinh-inputs: Likewise.
8897
8898         * benchtests/acos-inputs: Add more inputs.
8899         * benchtests/asin-inputs: Likewise.
8900
8901 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
8902
8903         [BZ #16375]
8904         * manual/arith.texi: Fix spelling.
8905         * manual/charset.texi: Likewise.
8906         * manual/errno.texi: Likewise.
8907         * manual/filesys.texi: Likewise.
8908         * manual/lang.texi: Likewise.
8909         * manual/llio.texi: Likewise.
8910         * manual/locale.texi: Likewise.
8911         * manual/message.texi: Likewise.
8912         * manual/resource.texi: Likewise.
8913         * manual/search.texi: Likewise.
8914         * manual/setjmp.texi: Likewise.
8915         * manual/stdio.texi: Likewise.
8916         * manual/string.texi: Likewise.
8917         * manual/sysinfo.texi: Likewise.
8918         * manual/time.texi: Likewise.
8919
8920 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
8921
8922         * po/sl.po: New file.
8923
8924 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
8925
8926         * .gitignore: Add core/.gdbinit/.gdb_history.
8927
8928 2013-12-27  Allan McRae  <allan@archlinux.org>
8929
8930         [BZ #16369]
8931         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
8932         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
8933
8934 2013-12-24  Brooks Moses  <bmoses@google.com>
8935
8936         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
8937         all compilers that claim C++98 compliance, not just GCC.
8938         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
8939         Likewise.
8940
8941 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8942
8943         * NEWS: Restore accidentally deleted bug-fix entries.
8944
8945 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8946             Ondřej Bílka  <neleai@seznam.cz>
8947
8948         [BZ #15073]
8949         * malloc/malloc.c (_int_free): Perform sanity check only if we
8950         have_lock.
8951
8952 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
8953
8954         [BZ #12986]
8955         * manual/stdio.texi (String Input Conversions): Clarify that character
8956         classes are not supported.
8957
8958 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8959
8960         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8961
8962 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
8963
8964         [BZ #16337]
8965         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8966         Calculate results for small negative arguments directly rather
8967         than using reflection formula with special underflow handling.
8968
8969         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
8970         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
8971         sysdeps/unix/bsd/bsd4.4/syscalls.list.
8972         (fchflags): Likewise.
8973         (revoke): Likewise.
8974         (setlogin): Likewise.
8975         (sigaltstack): Likewise.
8976         (wait4): Likewise.
8977         (sigblock): Remove.
8978         (sigsetmask): Likewise.
8979         (wait3): Likewise.
8980         (waitpid): Likewise.
8981         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
8982         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
8983         file.
8984         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
8985         * sysdeps/unix/bsd/Makefile: ... here.
8986         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
8987         * sysdeps/unix/bsd/Versions: ... here.
8988         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
8989         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
8990         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
8991         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
8992         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
8993         * sysdeps/unix/bsd/sigblock.c: ... here.
8994         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
8995         * sysdeps/unix/bsd/sigsetmask.c: ... here.
8996         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
8997         * sysdeps/unix/bsd/sigvec.c: ... here.
8998         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
8999         * sysdeps/unix/bsd/tcdrain.c: ... here.
9000         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9001         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9002         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9003         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9004         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9005         * sysdeps/unix/bsd/wait.c: ... here.
9006         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9007         * sysdeps/unix/bsd/wait3.c: ... here.
9008         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9009         * sysdeps/unix/bsd/waitpid.c: ... here.
9010
9011 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9012
9013         [BZ #16356]
9014         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9015         round-to-nearest for [!USE_AS_EXPM1L].
9016         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9017         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9018         more tests of exp and exp10.  Expect some exp10 tests to miss
9019         exceptions or fail in directed rounding modes.
9020         * math/auto-libm-test-out: Regenerated.
9021         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9022         (exp10_test_tonearest): New function.
9023         (exp10_towardzero_test_data): New array.
9024         (exp10_test_towardzero): New function.
9025         (exp10_downward_test_data): New array.
9026         (exp10_test_downward): New function.
9027         (exp10_upward_test_data): New array.
9028         (exp10_test_upward): New function.
9029         (main): Call the new functions.
9030         * sysdeps/i386/fpu/libm-test-ulps: Update.
9031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9032
9033 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9034
9035         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9036         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9037         * math/auto-libm-test-out: Regenerated.
9038         * math/libm-test.inc (acosh_test_data): Add more tests.
9039         (atanh_test_data): Likewise.
9040         (ceil_test_data): Likewise.
9041         (copysign_test_data): Likewise.
9042         * sysdeps/i386/fpu/libm-test-ulps: Update.
9043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9044
9045         * timezone/checktab.awk: Update from tzcode 2013i.
9046         * timezone/private.h: Likewise.
9047         * timezone/scheck.c: Likewise.
9048         * timezone/tzfile.h: Likewise.
9049         * timezone/tzselect.ksh: Likewise.
9050         * timezone/zdump.c: Likewise.
9051         * timezone/zic.c: Likewise.
9052
9053         * math/auto-libm-test-in: Add tests of cpow.
9054         * math/auto-libm-test-out: Regenerated.
9055         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9056         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9057         mpc_cc_c.
9058         (func_calc_desc): Add mpc_cc_c union field.
9059         (test_functions): Add cpow.
9060         (special_fill_2pi): New function.
9061         (special_real_inputs): Add 2pi.
9062         (calc_generic_results): Handle mpc_cc_c.
9063         * sysdeps/i386/fpu/libm-test-ulps: Update.
9064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9065
9066         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9067         csqrt, ctan and ctanh.
9068         * math/auto-libm-test-out: Regenerated.
9069         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9070         (TEST_COND_x86): Likewise.
9071         (ccos_test_data): Use AUTO_TESTS_c_c.
9072         (ccosh_test_data): Likewise.
9073         (cexp_test_data): Likewise.
9074         (clog_test_data): Likewise.
9075         (csqrt_test_data): Likewise.
9076         (ctan_test_data): Likewise.
9077         (ctan_tonearest_test_data): Likewise.
9078         (ctan_towardzero_test_data): Likewise.
9079         (ctan_downward_test_data): Likewise.
9080         (ctan_upward_test_data): Likewise.
9081         (ctanh_test_data): Likewise.
9082         (ctanh_tonearest_test_data): Likewise.
9083         (ctanh_towardzero_test_data): Likewise.
9084         (ctanh_downward_test_data): Likewise.
9085         (ctanh_upward_test_data): Likewise.
9086         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9087         mpc_c_c.
9088         (func_calc_desc): Add mpc_c_c union field.
9089         (FUNC_mpc_c_c): New macro.
9090         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9091         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9092         ctanh.
9093         (special_fill_min_subnorm_p120): New function.
9094         (special_real_inputs): Add min_subnorm_p120.
9095         (calc_generic_results): Handle mpc_c_c.
9096         * sysdeps/i386/fpu/libm-test-ulps: Update.
9097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9098
9099 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9100
9101         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9102         (do_sin_slow): New functions.
9103         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9104         (cslow2, csloww1, csloww2): Use the new functions.
9105
9106         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9107         Use M to change sign of result instead of X.  Assume X is
9108         positive.
9109         (csloww1): Likewise.
9110         (__sin): Adjust.
9111         (__cos): Adjust.
9112
9113         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9114         arguments A and DA.
9115         (__sin): Adjust.
9116         (__cos): Likewise.
9117
9118         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9119         (__cos): Likewise.
9120         (sloww1): Don't adjust sign of DX.
9121         (csloww1): Likewise.
9122         (sloww2): Use X directly and don't adjust sign of DX.
9123         (csloww2): Likewise.
9124
9125 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9126
9127         * math/auto-libm-test-in: Add tests of cabs and carg.
9128         * math/auto-libm-test-out: Regenerated.
9129         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9130         (carg_test_data): Likewise.
9131         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9132         mpc_c_f.
9133         (func_calc_desc): Add mpc_c_f union field.
9134         (test_functions): Add cabs and carg.
9135         (calc_generic_results): Handle mpc_c_f.
9136
9137         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9138         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9139         as a macro and a compat symbol.
9140         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9141         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9142         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9143         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9144         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9145         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9146         not use .hidden.
9147         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9148         Likewise.
9149         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9150         Likewise.
9151         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9152         Likewise.
9153         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9154         Likewise.
9155         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9156         Likewise.
9157         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9158         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9159         from GLIBC_2.3.2.
9160
9161 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9162
9163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9164
9165 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9166
9167         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9168         trailing whitespace removed.
9169         * scripts/config.guess: Update to version 2013-11-29.
9170         * scripts/config.sub: Update to version 2013-10-01.
9171
9172         * math/auto-libm-test-in: Add tests of sincos.
9173         * math/auto-libm-test-out: Regenerated.
9174         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9175         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9176         mpfr_f_11.
9177         (func_calc_desc): Add mpfr_f_11 union field.
9178         (test_functions): Add sincos.
9179         (calc_generic_results): Handle mpfr_f_11.
9180         * sysdeps/i386/fpu/libm-test-ulps: Update.
9181         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9182
9183 2013-12-19  Andreas Schwab  <schwab@suse.de>
9184
9185         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9186         CALL_MCOUNT.
9187         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9188         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9189         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9190
9191 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9194         * sysdeps/i386/fpu/libm-test-ulps: Update.
9195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9196
9197         [BZ #16293]
9198         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9199         round-to-nearest mode when using frndint.
9200         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9201         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9202         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9203         Likewise.
9204         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9205         sinh test to fail.
9206         * math/auto-libm-test-out: Regenerated.
9207         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9208         (TEST_COND_x86): Likewise.
9209         (expm1_tonearest_test_data): New array.
9210         (expm1_test_tonearest): New function.
9211         (expm1_towardzero_test_data): New array.
9212         (expm1_test_towardzero): New function.
9213         (expm1_downward_test_data): New array.
9214         (expm1_test_downward): New function.
9215         (expm1_upward_test_data): New array.
9216         (expm1_test_upward): New function.
9217         (main): Run the new test functions.
9218         * sysdeps/i386/fpu/libm-test-ulps: Update.
9219         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9220
9221         * include/features.h: Update comment documenting feature test
9222         macros.  Mention _DEFAULT_SOURCE in comment.
9223         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9224         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9225         _BSD_SOURCE and _SVID_SOURCE.
9226         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9227         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9228         !_SVID_SOURCE]: Likewise.
9229         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9230         (__USE_POSIX_IMPLICITLY): Define.
9231         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9232         (_POSIX_SOURCE): Undefine and redefine.
9233         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9234         (_POSIX_C_SOURCE): Likewise.
9235         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9236         (Feature Test Macros): Update documentation of default features.
9237
9238 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9239
9240         * benchtests/Makefile: Add bench-strtok.
9241         * benchtests/bench-strtok.c: New file: strtok benchtest.
9242
9243 2013-12-19  Allan McRae  <allan@archlinux.org>
9244
9245         * manual/install.texi: Suppress menu for plain text output.
9246         * INSTALL: Regenerated.
9247
9248 2013-12-18  Brooks Moses  <bmoses@google.com>
9249
9250         [BZ #15846]
9251         * misc/getauxval.c: Include errno.h.
9252         (__getauxval): Set errno to ENOENT if the requested type is not
9253         found.
9254         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9255         don't declare with __attribute_const__.
9256         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9257         * manual/startup.texi: Document that getauxval sets errno.
9258
9259 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9260
9261         * math/auto-libm-test-in: Add tests of jn and yn.
9262         * math/auto-libm-test-out: Regenerated.
9263         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9264         (yn_test_data): Likewise.
9265         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9266         mpfr_if_f.
9267         (func_calc_desc): Add mpfr_if_f union field.
9268         (FUNC_mpfr_if_f): New macro.
9269         (test_functions): Add jn and yn.
9270         (calc_generic_results): Assert type of second input for
9271         mpfr_ff_f.  Handle mpfr_if_f.
9272         (output_for_one_input_case): Disable all checking for arguments
9273         fitting floating-point types in case of an integer argument.
9274         * sysdeps/i386/fpu/libm-test-ulps: Update.
9275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9276
9277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9278         Don't expect fegetround reference in libm.so.
9279
9280 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9281
9282         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9283         $(config-cflags-nofma).
9284
9285 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9286
9287         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9288         * math/auto-libm-test-out: Regenerated.
9289
9290         [BZ #16338]
9291         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9292         to determine exponent and adjust argument to have exponent of -1.
9293         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9294         log2.
9295         * math/auto-libm-test-out: Regenerated.
9296         * sysdeps/i386/fpu/libm-test-ulps: Update.
9297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9298
9299 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9300
9301         * manual/probes.texi: Remove cases when per-thread arenas are
9302         disabled.
9303
9304 2013-12-18  Andreas Schwab  <schwab@suse.de>
9305
9306         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9307         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9308         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9309         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9310         * sysdeps/i386/i686/multiarch/Makefile: Update.
9311         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9312
9313 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9314
9315         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9316         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9317
9318 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9319
9320         [BZ #15968]
9321         Support TZ transition times < 00:00:00.
9322         This is needed for version-3 tz-format files; it supports time
9323         stamps past 2037 for America/Godthab (the only entry in the tz
9324         database for which this change is relevant).
9325         * manual/time.texi (TZ Variable): Document transition times
9326         from -167:59:59 through -00:00:01.
9327         * time/tzset.c (tz_rule): Time of day is now signed.
9328         (__tzset_parse_tz): Parse negative time of day.
9329
9330         Document TZ transition times >= 25:00:00.
9331         * manual/time.texi (TZ Variable): Document transition times from
9332         25:00:00 through 167:59:59.  These are already supported, and this
9333         support will help with version-3 tz-format files.
9334
9335         * manual/time.texi (TZ Variable): Modernize North America example
9336         to reflect current (i.e., 2007-and-later) daylight saving rules.
9337
9338         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9339
9340 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9341
9342         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9343         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9344         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9345         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9346         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9347         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9348         * sysdeps/unix/bsd/clock.c: Likewise.
9349         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9350         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9351         * sysdeps/unix/bsd/init-posix.c: Likewise.
9352         * sysdeps/unix/bsd/poll.c: Likewise.
9353         * sysdeps/unix/bsd/ptsname.c: Likewise.
9354         * sysdeps/unix/bsd/seekdir.c: Likewise.
9355         * sysdeps/unix/bsd/setegid.c: Likewise.
9356         * sysdeps/unix/bsd/seteuid.c: Likewise.
9357         * sysdeps/unix/bsd/setgid.c: Likewise.
9358         * sysdeps/unix/bsd/setrgid.c: Likewise.
9359         * sysdeps/unix/bsd/setruid.c: Likewise.
9360         * sysdeps/unix/bsd/setsid.c: Likewise.
9361         * sysdeps/unix/bsd/setuid.c: Likewise.
9362         * sysdeps/unix/bsd/sigaction.c: Likewise.
9363         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9364         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9365         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9366         * sysdeps/unix/bsd/telldir.c: Likewise.
9367         * sysdeps/unix/bsd/times.c: Likewise.
9368         * sysdeps/unix/bsd/usleep.c: Likewise.
9369
9370         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9371         ($(objpfx)libbsd-compat.a): Remove rule.
9372
9373         * include/features.h (__FAVOR_BSD): Do not define.
9374         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9375         features conflicting with POSIX.
9376         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9377         (_BSD_SOURCE): Remove description of not being a subset of other
9378         feature test macros.
9379         * manual/job.texi (getpgrp): Do not document BSD version.
9380         (getpgid): Do not document by reference to BSD getpgrp.
9381         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9382         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9383         * signal/signal.h [__FAVOR_BSD]: Likewise.
9384         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9385         instead of making contents conditional on [__FAVOR_BSD].
9386         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9387
9388 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9389
9390         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9391
9392 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9393
9394         [BZ #16314]
9395         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9396         values below 2**-450, not 2**-500.
9397         * math/auto-libm-test-in: Don't allow spurious underflow from
9398         hypot.
9399         * math/auto-libm-test-out: Regenerated.
9400
9401         [BZ #16316]
9402         [BZ #16330]
9403         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9404         values of ha and hb and sort them after adjusting subnormal
9405         arguments.
9406         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9407         Likewise.
9408         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9409         values of ea and eb and sort them after adjusting subnormal
9410         arguments.
9411         * math/auto-libm-test-in: Do not expect some hypot tests of
9412         subnormals to fail.  Add more hypot tests.
9413         * math/auto-libm-test-out: Regenerated.
9414
9415 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9416
9417         [BZ #13304]
9418         * sysdeps/sh/s_fma.c: New file.
9419         * sysdeps/sh/s_fmaf.c: New file.
9420         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9421         version.
9422         * sysdeps/sh/Implies: Add sh/soft-fp.
9423
9424 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9425
9426         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9427         level of indirection to members `objname', `errstring', `malloced'.
9428         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9429         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9430         it as the __longjmp argument (just pass 1 instead).
9431         (_dl_catch_error): Initialize C with argument pointers and address of
9432         volatile local ERRCODE rather than copying values out of C at return.
9433
9434 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9435
9436         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9437         * math/auto-libm-test-out: Regenerated.
9438         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9439         (hypot_test_data): Likewise.
9440         (pow_test_data): Likewise.
9441         (pow_tonearest_test_data): Likewise.
9442         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9443         mpfr_ff_f.
9444         (func_calc_desc): Add mpfr_ff_f union field.
9445         (FUNC_mpfr_ff_f): New macro.
9446         (test_functions): Add atan2, hypot and pow.
9447         (special_fill_min): New function.
9448         (special_fill_minus_min): Likewise.
9449         (special_fill_min_subnorm): Likewise.
9450         (special_fill_minus_min_subnorm): Likewise.
9451         (special_real_inputs): Add min, -min, min_subnorm and
9452         -min_subnorm.
9453         (calc_generic_results): Handle mpfr_ff_f.
9454         * sysdeps/i386/fpu/libm-test-ulps: Update.
9455         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9456
9457 2013-12-16  Will Newton  <will.newton@linaro.org>
9458
9459         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9460         (Aligned Memory Blocks): Add documentation for aligned_alloc
9461         and suggest it as an alternative to posix_memalign.
9462         (Hooks for Malloc): Document __memalign_hook is also called
9463         for aligned_alloc.  (Summary of Malloc): Add summary for
9464         aligned alloc.  Document __memalign_hook is also called
9465         for aligned_alloc.
9466
9467 2013-12-16  Will Newton  <will.newton@linaro.org>
9468
9469         * manual/memory.texi (Malloc Examples): Clarify default
9470         alignment documentation.  Suggest posix_memalign rather
9471         than memalign or valloc.
9472         (Aligned Memory Blocks): Remove suggestion to use memalign
9473         or valloc.  Remove obsolete comment about BSD.
9474         Document memalign errno values and mark the function obsolete.
9475         Document posix_memalign returned error codes.  Mark valloc
9476         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9477         called for posix_memalign and valloc.
9478         (Summary of Malloc): Add posix_memalign to function summary.
9479         __memalign_hook is also called for posix_memalign and valloc.
9480
9481 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9482
9483         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9484         TAYLOR_SIN.
9485         (__sin): Adjust.
9486         (__cos): Likewise.
9487         (sloww): Use mynumber union.  Expand ternary operator into
9488         if-else statements.
9489         (cslow): use mynumber union.
9490
9491 2013-12-16  Allan McRae  <allan@archlinux.org>
9492
9493         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9494         * configure: Regenerated.
9495
9496         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9497
9498         [BZ #14120]
9499         * configure.ac: Added --enable-maintainer-mode. Check for
9500         autoconf when enabled.
9501         * configure: Regenerated.
9502
9503         * nscd/nscd.service: New file.
9504         * nscd/nscd.tmpfiles: New file.
9505
9506 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9507
9508         [BZ #12100]
9509         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9510         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9511         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9512         (strstr): Add __strstr_sse2_unaligned ifunc.
9513         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9514         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9515         (strcasestr): Remove __strcasestr_sse42 ifunc.
9516         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9517         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9518         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9519
9520 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9521
9522         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9523         * sysdeps/sh/bits/fenv.h: ... here.
9524         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9525
9526 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9527
9528         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9529
9530         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9531         hypotf multiarch implementations.
9532         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9533         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9534         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9535         multiarch hypot for PPC64.
9536         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9537         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9538         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9539         multiarch hypotf for PPC64.
9540
9541         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9542         modff multiarch implementations.
9543         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9544         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9546         multiarch modf for PPC64.
9547         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9549         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9550         multiarch modff for PPC64.
9551
9552         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9553         and logl multiarch implementations.
9554         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9555         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9556         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9557         multiarch logb for PPC64.
9558         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9559         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9560         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9561         multiarch logb for PPC64.
9562         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9563         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9564         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9565         multiarch logb for PPC64.
9566
9567         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9568         isinff multiarch implementation.
9569         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9570         file.
9571         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9572         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9573         multiarch isinf for PPC64.
9574         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9575         file.
9576         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9577         multiarch isinff for PPC64.
9578
9579         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9580         finitef multiarch implementation.
9581         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9582         file.
9583         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9584         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9585         multiarch finite for PPC64.
9586         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9587         file.
9588         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9589         multiarch finitef for PPC64.
9590
9591         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9592         lrint multiarch implementation.
9593         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9594         file.
9595         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9596         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9597         multiarch llrint for PPC64.
9598         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9599         multiarch lrint for PPC64.
9600
9601         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9602         copysignf multiarch implementation.
9603         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9604         file.
9605         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9606         file.
9607         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
9608         multiarch copysign for PPC64.
9609         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
9610         multiarch copysignf for PPC64.
9611
9612         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
9613         multiarch implementation.
9614         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
9615         file.
9616         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
9617         file.
9618         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
9619         file.
9620         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
9621         file.
9622         multiarch llround for PPC64.
9623         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
9624         multiarch trunc for PPC64.
9625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
9626         multiarch truncf for PPC64.
9627
9628         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
9629         multiarch implementation.
9630         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
9631         file.
9632         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
9633         file.
9634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
9635         file.
9636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
9637         file.
9638         multiarch llround for PPC64.
9639         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
9640         multiarch round for PPC64.
9641         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
9642         multiarch roundf for PPC64.
9643
9644         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
9645         multiarch implementation.
9646         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
9647         file.
9648         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
9649         file.
9650         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
9651         file.
9652         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
9653         file.
9654         multiarch llround for PPC64.
9655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
9656         multiarch floor for PPC64.
9657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
9658         multiarch floorf for PPC64.
9659
9660         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
9661         multiarch implementation.
9662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
9663         file.
9664         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
9665         file.
9666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
9667         file.
9668         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
9669         file.
9670         multiarch llround for PPC64.
9671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
9672         multiarch ceil for PPC64.
9673         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
9674         multiarch ceilf for PPC64.
9675
9676         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
9677         multiarch implementation.
9678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
9679         file.
9680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
9681         file.
9682         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
9683         file.
9684         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
9685         multiarch llround for PPC64.
9686         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
9687         multiarch lround for PPC64.
9688
9689         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
9690         multiarch implementation.
9691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
9692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
9693         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
9694         file.
9695         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
9696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
9697         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
9698         multiarch isnan for PPC64.
9699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
9700         multiarch isnanf for PPC64.
9701
9702         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
9703         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
9704         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
9705         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
9706         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
9707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
9708
9709         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
9710         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9711         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9712         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9713
9714         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
9715         multiarch implementations.
9716         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9717         (__libc_ifunc_impl_list): Likewise.
9718         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
9719         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
9720         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
9721         multiarch stpcpy for PPC64.
9722
9723         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
9724         multiarch implementations.
9725         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9726         (__libc_ifunc_impl_list): Likewise.
9727         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
9728         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
9729         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
9730         multiarch strcpy for PPC64.
9731
9732         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
9733         redefine function name.
9734         (_wordcopy_fwd_dest_aligned): Likewise.
9735         (_wordcopy_bwd_aligned): Likewise.
9736         (_wordcopy_bwd_dest_aligned): Likewise.
9737         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
9738         multiarch implementations.
9739         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9740         (__libc_ifunc_impl_list): Likewise.
9741         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
9742         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
9743         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
9744         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
9745         multiarch wcscpy for PPC64.
9746
9747         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
9748         multiarch implementations.
9749         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9750         (__libc_ifunc_impl_list): Likewise.
9751         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
9752         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
9753         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
9754         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
9755         multiarch wcscpy for PPC64.
9756
9757         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
9758         multiarch implementations.
9759         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9760         (__libc_ifunc_impl_list): Likewise.
9761         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
9762         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
9763         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
9764         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
9765         multiarch wcsrchr for PPC64.
9766
9767         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
9768         multiarch implementations.
9769         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9770         (__libc_ifunc_impl_list): Likewise.
9771         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
9772         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
9773         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
9774         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
9775         multiarch wcschr for PPC64.
9776
9777         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
9778         multiarch implementations.
9779         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9780         (__libc_ifunc_impl_list): Likewise.
9781         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
9782         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
9783         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
9784         multiarch strchrnul for PPC64.
9785
9786         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
9787         implementations.
9788         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9789         (__libc_ifunc_impl_list): Likewise.
9790         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
9791         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
9792         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
9793         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
9794         strchr for PPC64.
9795
9796         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
9797         implementations.
9798         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9799         (__libc_ifunc_impl_list): Likewise.
9800         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
9801         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
9802         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
9803         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
9804         strncmp for PPC64.
9805
9806         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
9807         multiarch implementations.
9808         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9809         (__libc_ifunc_impl_list): Likewise.
9810         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
9811         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
9812         strncasecmp for PPC64.
9813         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
9814         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
9815         multiarch strncasecmp_l for PPC64.
9816
9817         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
9818         multiarch implementations.
9819         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9820         (__libc_ifunc_impl_list): Likewise.
9821         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
9822         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
9823         multiarch strcasecmp for PPC64.
9824         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
9825         file.
9826         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
9827         multiarch strcasecmp_l for PPC64.
9828
9829         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
9830         implementations.
9831         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9832         (__libc_ifunc_impl_list): Likewise.
9833         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
9834         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
9835         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
9836         strnlen for PPC64.
9837
9838         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
9839         implementations.
9840         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9841         (__libc_ifunc_impl_list): Likewise.
9842         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
9843         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
9844         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
9845         strlen for PPC64.
9846
9847         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
9848         implementations.
9849         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9850         (__libc_ifunc_impl_list): Likewise.
9851         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
9852         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
9853         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
9854         rawmemrchr for PPC64.
9855
9856         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
9857         implementation.
9858         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9859         (__libc_ifunc_impl_list): Likewise.
9860         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
9861         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
9862         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
9863         memrchr for PPC64.
9864
9865         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
9866         implementation.
9867         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9868         (__libc_ifunc_impl_list): Likewise.
9869         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
9870         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
9871         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
9872         memchr for PPC64.
9873
9874         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
9875         implementation.
9876         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9877         (__libc_ifunc_impl_list): Likewise.
9878         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
9879         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
9880         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
9881         mempcpy for PPC64.
9882
9883         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
9884         avoid cretion of __bzero symbol.
9885         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
9886         Likewise.
9887         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
9888         Likewise.
9889         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
9890         Likewise.
9891         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
9892         multiarch implementations.
9893         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9894         (__libc_ifunc_impl_list): Likewise.
9895         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
9896         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
9897         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
9898         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
9899         bzero for PPC32.
9900         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
9901         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
9902         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
9903         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
9904         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
9905         memset for PPC64.
9906         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
9907
9908         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
9909         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
9910         implementations.
9911         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9912         (__libc_ifunc_impl_list): Likewise.
9913         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
9914         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
9915         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
9916         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
9917         memcmp for PPC64.
9918
9919         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
9920         multiarch for POWER/PPC64.
9921         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
9922         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
9923         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
9924         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
9925         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
9926         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
9927         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
9928         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
9929         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
9930         memcpy for PPC64.
9931
9932         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
9933         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
9934         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
9935         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
9936         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
9937         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
9938         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
9939         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
9940         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
9941         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
9942         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
9943         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
9944         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
9945         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
9946         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
9947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
9948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
9949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
9950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
9951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
9952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
9953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
9954
9955 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9956
9957         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
9958
9959 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9960
9961         * benchtests/Makefile (bench): Add exp2 and log2.
9962         (LDLIBS-bench-exp2): Add -lm.
9963         (LDLIBS-bench-log2): Likewise.
9964         * benchtests/exp2-inputs: New inputs file.
9965         * benchtests/log2-inputs: New inputs file.
9966         * benchtests/log-inputs: Add new inputs.
9967         * benchtests/tan-inputs: Likewise.
9968
9969 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9970
9971         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
9972         definition...
9973         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
9974         (csloww2): ... from here.
9975
9976         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
9977         instead of structures.
9978         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
9979         (POLYNOMIAL): Likewise.
9980         (TAYLOR_SLOW): Likewise.
9981         (__sin): Likewise.
9982         (__cos): Likewise.
9983         (slow1): Likewise.
9984         (slow2): Likewise.
9985         (sloww): Likewise.
9986         (sloww1); Likewise.
9987         (sloww2): Likewise.
9988         (bsloww1): Likewise.
9989         (bsloww2): Likewise.
9990         (cslow2): Likewise.
9991         (csloww): Likewise.
9992         (csloww1): Likewise.
9993         (csloww2): Likewise.
9994
9995 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
9996
9997         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
9998         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
9999         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10000         * malloc/hooks.c (realloc_check): Likewise.
10001
10002         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10003         * malloc/arena.c: Remove PER_THREAD conditional.
10004         [!PER_THREAD]: Remove code.
10005         (ptmalloc_unlock_all2): Likewise.
10006         (ptmalloc_init): Likewise.
10007         (_int_new_arena): Likewise.
10008         (arena_get2): Likewise.
10009         * malloc/hooks.c (__malloc_get_state): Likewise.
10010         (__malloc_set_state): Likewise.
10011         * malloc/malloc.c: Likewise.
10012         (struct malloc_state): Likewise.
10013         (struct malloc_par): Likewise.
10014         (__libc_realloc): Likewise.
10015         (__libc_mallopt): Likewise.
10016
10017 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10018
10019         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10020
10021 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10022
10023         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10024         macro to a function.  Check for zero perturb_byte.
10025         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10026
10027         * malloc/malloc.c: (force_reg): Remove.
10028         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10029         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10030         force_reg by atomic_forced_read.
10031         * malloc/arena.c (ptmalloc_init): Likewise.
10032         * malloc/hooks.c (top_check): Likewise.
10033
10034 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10035
10036         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10037
10038 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10039
10040         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10041
10042 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10043
10044         * math/auto-libm-test-in: Add tests of lgamma.
10045         * math/auto-libm-test-out: Regenerated.
10046         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10047         (M_LOG_2_SQRT_PIl): Likewise.
10048         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10049         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10050         mpfr_f_f1.
10051         (func_calc_desc): Add mpfr_f_f1 union field.
10052         (ARGS1): New macro.
10053         (ARGS2): Likewise.
10054         (ARGS3): Likewise.
10055         (ARGS4): Likewise.
10056         (RET1): Likewise.
10057         (RET2): Likewise.
10058         (CALC): Likewise.
10059         (FUNC): Likewise.
10060         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10061         (test_functions): Add lgamma.
10062         (calc_generic_results): Handle mpfr_f_f1.
10063         * sysdeps/i386/fpu/libm-test-ulps: Update.
10064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10065
10066 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10067
10068         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10069         __mpn_add_n for PowerPC64/POWER7.
10070         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10071         __mpn_sub_n for PowerPC64/POWER7.
10072
10073         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10074         __mpn_addmul_1 for PowerPC64.
10075         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10076         __mpn_submul_1 for PowerPC64.
10077         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10078         for PowerPC64.
10079         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10080         for PowerPC64.
10081
10082 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10083
10084         [BZ #15089]
10085         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10086
10087 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10088
10089         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10090
10091         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10092         add multiarch folders.
10093         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10094         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10095         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10096         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10097         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10098         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10099         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10100         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10101         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10102         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10103         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10110
10111         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10112         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10113         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10114         New file.
10115         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10116         New file.
10117         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10118         multiarch __ieee754_hypot for PowerPC32.
10119         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10120         New file.
10121         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10122         New file.
10123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10124         multiarch __ieee754_hypotf for PowerPC32.
10125
10126         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10127         long_double_symbol only if __logbl is defined.
10128         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10129         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10130         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10131         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10132         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10133         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10134         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10135         path for implementation.
10136         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10137         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10139         logb, and logbl multiarch implementations for PowerPC32.
10140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10141         file.
10142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10143         file.
10144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10145         multiarch logb for PowerPC32.
10146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10147         file.
10148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10149         file.
10150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10151         multiarch logbf for PowerPC32.
10152         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10153         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10154         file.
10155         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10156         multiarch logbl implementation for PowerPC32.
10157
10158         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10159         and modff multiarch implementations.
10160         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10161         New file.
10162         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10163         New file.
10164         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10165         multiarch modf for PowerPC32.
10166         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10167         New file.
10168         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10169         New file.
10170         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10171         multiarch modff for PowerPC32.
10172
10173         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10174         and lrintf multiarch implementations.
10175         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10176         New file.
10177         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10178         New file.
10179         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10180         multiarch lrint for PowerPC32.
10181         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10182         file: multiarch lrintf for PowerPC32.
10183
10184         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10185         and lroundf multiarch implementations.
10186         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10187         New file.
10188         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10189         New file.
10190         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10191         New file.
10192         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10193         multiarch lround for PowerPC32.
10194         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10195         file: multiarch lroundf for PowerPC32.
10196
10197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10198         copysign and copysignf multiarch implementations.
10199         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10200         New file.
10201         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10202         New file.
10203         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10204         file: multiarch copysign for PowerPC32.
10205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10206         file: multiarch copysignf for PowerPC32.
10207
10208         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10209         and truncf multiarch implementations.
10210         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10211         New file.
10212         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10213         file.
10214         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10215         multiarch trunc for PowerPC32.
10216         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10217         New file.
10218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10219         New file.
10220         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10221         multiarch truncf for PowerPC32.
10222
10223         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10224         and roundf multiarch implementations.
10225         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10226         New file.
10227         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10228         file.
10229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10230         multiarch round for PowerPC32.
10231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10232         New file.
10233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10234         New file.
10235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10236         multiarch roundf for PowerPC32.
10237
10238         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10239         and floorf multiarch implementations.
10240         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10241         New file.
10242         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10243         file.
10244         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10245         multiarch floor for PowerPC32.
10246         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10247         New file.
10248         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10249         New file.
10250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10251         multiarch floorf for PowerPC32.
10252
10253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10254         and ceilf multiarch implementations.
10255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10256         New file.
10257         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10258         file.
10259         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10260         multiarch ceil for PowerPC32.
10261         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10262         New file.
10263         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10264         file.
10265         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10266         multiarch ceilf for PowerPC32.
10267
10268         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10269         is defined.
10270         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10271         FINITEF is defined.
10272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10273         and finitef multiarch implementations.
10274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10275         New file.
10276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10277         file.
10278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10279         multiarch finite for PowerPC32.
10280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10281         New file.
10282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10283         file: multiarch finitef for PowerPC32.
10284
10285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10286         and isinff multiarch implementations.
10287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10288         file.
10289         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10290         file.
10291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10292         multiarch isinf for PowerPC32.
10293         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10294         New file.
10295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10296         multiarch isinff for PowerPC32.
10297
10298         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10299         alias when __isnan is defined.
10300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10301         and isnanf multiarch implementations.
10302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10303         file.
10304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10305         file.
10306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10307         file.
10308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10309         file.
10310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10311         multiarch isnan for PowerPC32.
10312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10313         New file.
10314         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10315         New file.
10316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10317         multiarch isnanf for PowerPC32.
10318
10319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10320         and sqrtf multiarch implementations.
10321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10322         file.
10323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10324         file.
10325         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10326         multiarch sqrt for PowerPC32.
10327         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10328         file.
10329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10330         file.
10331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10332         multiarch sqrtf for PowerPC32.
10333
10334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10335         and llroundf multiarch implementations.
10336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10337         New file.
10338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10339         New file.
10340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10341         New file.
10342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10343         file: multiarch llround for PowerPC32.
10344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10345         file: multiarch llroundf for PowerPC32.
10346
10347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10348         multiarch PowerPC32 fpu implementations.
10349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10350         New file.
10351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10352         New file.
10353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10354         multiarch llrint for PowerPC32.
10355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10356         New file.
10357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10358         New file.
10359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10360         file.
10361
10362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10363
10364         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10365         file.
10366         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10367         file.
10368         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10369         file.
10370         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10371         multiarch wordcopy for PPC32.
10372         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10373         wordcopy objects.
10374         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10375         (__libc_ifunc_impl_list): Likewise.
10376         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10377         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10378         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10379         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10380         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10381         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10382
10383         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10384         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10385         file.
10386         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10387         file.
10388         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10389         file.
10390         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10391         multiarch wcscpy for PPC32.
10392         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10393         multiarch objects.
10394         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10395         (__libc_ifunc_impl_list): Likewise.
10396         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10397         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10398         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10399         sysdeps/powerpc/power6/wcscpy.c.
10400
10401         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10402         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10403         file.
10404         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10405         file.
10406         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10407         file.
10408         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10409         multiarch wcsrchr for PPC32.
10410         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10411         multiarch objects.
10412         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10413         (__libc_ifunc_impl_list): Likewise.
10414         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10415         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10416         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10417         sysdeps/powerpc/power6/wcsrchr.c.
10418
10419         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10420         file.
10421         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10422         file.
10423         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10424         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10425         multiarch wcschr for PPc32.
10426         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10427         multiarch objects.
10428         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10429         (__libc_ifunc_impl_list): Likewise.
10430         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10431         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10432         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10433         sysdeps/powerpc/power6/wcschr.c.
10434
10435         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10436         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10437         file.
10438         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10439         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10440         file: multiarch strchr for PPC32.
10441         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10442         multiarch objects.
10443         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10444         (__libc_ifunc_impl_list): Likewise.
10445
10446         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10447         name.
10448         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10449         file.
10450         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10451         file.
10452         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10453         multiarch strchrnul for PPC32.
10454         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10455         multiarch objects.
10456         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10457         (__libc_ifunc_impl_list): Likewise.
10458
10459         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10460         file.
10461         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10462         multiarch strncasecmp for PPC32.
10463         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10464         file.
10465         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10466         multiarch strncasecmp_l for PPC32.
10467         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10468         strncasecmp multiarch objects.
10469         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10470         (__libc_ifunc_impl_list): Likewise.
10471
10472         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10473         file.
10474         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10475         multiarch strncasecmp for PPC32.
10476         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10477         New file.
10478         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10479         multiarch strcasecmp_l for PPC32.
10480         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10481         multiarch objects.
10482         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10483         (__libc_ifunc_impl_list): Likewise.
10484
10485         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10486         file.
10487         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10488         file.
10489         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10490         multiarch strncmp for PPC32.
10491         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10492         multiarch objects.
10493         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10494         (__libc_ifunc_impl_list): Likewise.
10495
10496         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10497         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10498         file.
10499         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10500         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10501         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10502         multiarch objects.
10503         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10504         (__libc_ifunc_impl_list): Likewise.
10505
10506         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10507         file.
10508         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10509         file.
10510         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10511         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10512         multiarch objects.
10513         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10514         (__libc_ifunc_impl_list): Likewise.
10515
10516         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10517         file.
10518         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10519         file.
10520         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10521         multiarch rawmemchr for PPC32.
10522         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10523         multiarch objects.
10524         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10525         (__libc_ifunc_impl_list): Likewise.
10526
10527         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10528         file.
10529         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10530         file.
10531         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10532         file: memrchr multiarch for PPC32.
10533         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10534         multiarch objects.
10535         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10536         (__libc_ifunc_impl_list): Likewise.
10537
10538         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10539         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10540         file.
10541         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10542         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10543         multiarch memchr for PPC32.
10544         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10545         multiarch objects.
10546         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10547         (__libc_ifunc_impl_list): Likewise.
10548
10549         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10550         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10551         file.
10552         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10553         file.
10554         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10555         file: multiarch mempcpy for PPC32.
10556         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10557         multiarch objects.
10558         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10559         (__libc_ifunc_impl_list): Likewise.
10560
10561         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10562         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10563         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10564         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10565         multiarch bzero for PPC32.
10566         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10567         file.
10568         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10569         file.
10570         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10571         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10572         file: multiarch memset for PPC32.
10573         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10574         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10575         memset multiarch objects.
10576         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10577         (__libc_ifunc_impl_list): Likewise.
10578
10579         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10580         file.
10581         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10582         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10583         memcmp for PPC32.
10584         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10585         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10586         multiarch objects.
10587         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10588         (__libc_ifunc_impl_list): Likewise.
10589
10590         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10591         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10592         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10593         file.
10594         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10595         file.
10596         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10597         file.
10598         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10599         multiarch memcpy for PPC32.
10600         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10601         multiarch objects.
10602         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10603         (__libc_ifunc_impl_list): Likewise.
10604
10605         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10606         support multiarch for POWER/PPC32.
10607         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
10608         Likewise.
10609         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
10610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
10611         Implies file to make multiarch folder appers before the fpu and
10612         default folder for power4 configuration.
10613
10614 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10615
10616         * scripts/bench.pl: Append volatile keyword to type.
10617
10618 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10619
10620         * sysdeps/sh/sotruss-lib.c: New file.
10621         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
10622
10623 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10624
10625         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10626
10627 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
10628
10629         [BZ #6810]
10630         * math/w_tgamma.c: Include <errno.h>.
10631         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
10632         * math/w_tgammaf.c: Include <errno.h>.
10633         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
10634         * math/w_tgammal.c: Include <errno.h>.
10635         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
10636         * math/auto-libm-test-in: Do not allow missing errno on tgamma
10637         underflow.  Add more tgamma tests.
10638         * math/auto-libm-test-out: Regenerated.
10639         * sysdeps/i386/fpu/libm-test-ulps: Update.
10640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10641
10642         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
10643         sin, sinh, tan, tanh, tgamma, y0 and y1.
10644         * math/auto-libm-test-out: Regenerated.
10645         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10646         (TEST_COND_x86): Likewise.
10647         (M_E2l): Remove macro.
10648         (M_E3l): Likewise.
10649         (M_2_SQRT_PIl): Likewise.
10650         (M_SQRT_PIl): Likewise.
10651         (M_1_DIV_El): Likewise.
10652         (log_test_data): Use AUTO_TESTS_f_f.
10653         (log10_test_data): Likewise.
10654         (log1p_test_data): Likewise.
10655         (log2_test_data): Likewise.
10656         (sin_test_data): Likewise.
10657         (sin_tonearest_test_data): Likewise.
10658         (sin_towardzero_test_data): Likewise.
10659         (sin_downward_test_data): Likewise.
10660         (sin_upward_test_data): Likewise.
10661         (sinh_test_data): Likewise.
10662         (sinh_tonearest_test_data): Likewise.
10663         (sinh_towardzero_test_data): Likewise.
10664         (sinh_downward_test_data): Likewise.
10665         (sinh_upward_test_data): Likewise.
10666         (tan_test_data): Likewise.
10667         (tan_tonearest_test_data): Likewise.
10668         (tan_towardzero_test_data): Likewise.
10669         (tan_downward_test_data): Likewise.
10670         (tan_upward_test_data): Likewise.
10671         (tanh_test_data): Likewise.
10672         (tgamma_test_data): Likewise.
10673         (y0_test_data): Likewise.
10674         (y1_test_data): Likewise.
10675         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
10676         (special_real_inputs): Add pi/4.
10677         * sysdeps/i386/fpu/libm-test-ulps: Update.
10678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10679
10680 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10681
10682         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
10683         "longjmp_target" static probes.
10684         (__longjmp): Rename to __longjmp_symbol.
10685         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10686         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
10687         on which longjmp to generate.
10688         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10689         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
10690         probe.
10691         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10692         (__sigjmp_save): Rename to __sigjmp_save_symbol.
10693         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
10694         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
10695         and __sigjmp_save_symbol based on which sigsetjmp to generated.
10696         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
10697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
10698         __longjmp_symbol based on which __longjmp to generate.
10699         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
10700         probe.
10701         (setjmp): Rename to setjmp_symbol.
10702         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10703         (_setjmp): Rename to _setjmp_symbol.
10704         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10705         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
10706         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
10707         which setjmp to generate.
10708         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
10709         "longjmp_target" static probes.
10710
10711 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10712
10713         * benchtests/README: Add note about output arguments.
10714         * benchtests/bench-sincos.c: Remove file.
10715         * benchtests/sincos-inputs: New file.
10716         * scripts/bench.pl: Identify output arguments and define
10717         static variables for them.
10718
10719         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
10720
10721         [BZ #15941]
10722         * Makefile (INSTALL): Add install-plain.texi as the primary
10723         dependency.
10724         * manual/install-plain.texi: New file.
10725         * manual/install.texi: Include node directive only for
10726         non-plaintext output.
10727
10728 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
10729
10730         * stdlib/longlong.h: Update from GCC.
10731
10732         [BZ #6807]
10733         [BZ #15901]
10734         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
10735         * math/w_j0f.c (y0f): Likewise.
10736         * math/w_j0l.c (__y0l): Likewise.
10737         * math/w_j1.c (y1): Likewise.
10738         * math/w_j1f.c (y1f): Likewise.
10739         * math/w_j1l.c (__y1l): Likewise
10740         * math/w_jn.c (yn): Likewise.
10741         * math/w_jnf.c (ynf): Likewise.
10742         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
10743         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
10744         value for Bessel function domain errors outside _SVID_ mode.
10745         Adjust sign of return value for yn (negative integer, 0).
10746         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
10747         by zero in return for negative x and set sign appropriately for
10748         negative n.
10749         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
10750         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10751         * math/libm-test.inc (y0_test_data): Add more tests and adjust
10752         expectations in error cases.
10753         (y1_test_data): Likewise.
10754         (yn_test_data): Likewise.
10755         * sysdeps/i386/fpu/libm-test-ulps: Update.
10756         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10757
10758 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10759
10760         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
10761         "64" to "64-v1".  Add "64-v2".
10762         (abi-64-options): Rename to ...
10763         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
10764         (abi-64-condition): Rename to ...
10765         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
10766         (abi-64-ld-soname): Rename to ...
10767         (abi-64-v1-ld-soname): ... this.
10768         (abi-64-v2-options): Define.
10769         (abi-64-v2-condition): Likewise.
10770         (abi-64-v2-ld-soname): Likewise.
10771         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
10772         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
10773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
10774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
10775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
10776
10777 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10778             Alan Modra  <amodra@gmail.com>
10779
10780         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
10781         New versions for use with the ELFv2 ABI.
10782         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
10783         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
10784         declaration.
10785         (struct La_ppc64v2_retval): Likewise.
10786         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
10787         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
10788         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
10789         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
10790         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
10791         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
10792         Do not save or restore CR.
10793         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
10794         (_dl_profile_resolve): Do no save or restore CR.  Support extended
10795         return values for ELFv2 ABI.  Fix location of FPR return registers.
10796         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
10797         updated values for _CALL_ELF == 2.
10798         (La_regs, La_retval, int_retval): Likewise.
10799
10800 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10801
10802         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
10803         (FRAME_MIN_SIZE_PARM): Likewise.
10804         (FRAME_BACKCHAIN): Likewise.
10805         (FRAME_CR_SAVE): Likewise.
10806         (FRAME_LR_SAVE): Likewise.
10807         (FRAME_TOC_SAVE): Likewise.
10808         (FRAME_PARM_SAVE): Likewise.
10809         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
10810         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
10811         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10812         (call_mcount_parm_offset): New macro.
10813         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
10814         (PROF): Use symbolic stack frame offsets.
10815         (TAIL_CALL_SYSCALL_ERROR): Likewise.
10816         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
10817         Redefine in terms of FRAME_MIN_SIZE.
10818         (_dl_runtime_resolve): Use symbolic stack frame offsets.
10819         (_dl_profile_resolve): Likewise.  Update comment.
10820         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
10821         symbols stack frame offsets.
10822         (__sigsetjmp): Likewise.
10823         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10824         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
10825         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
10826         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
10827
10828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
10829         (FRAME_BACKCHAIN): Remove.
10830         (FRAME_CR_SAVE): Likewise.
10831         (FRAME_LR_SAVE): Likewise.
10832         (FRAME_COMPILER_DW): Likewise.
10833         (FRAME_LINKER_DW): Likewise.
10834         (FRAME_TOC_SAVE): Likewise.
10835         (FRAME_PARM_SAVE): Likewise.
10836         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
10837         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
10838         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
10840         (CHECK_SP): Use symbolic stack frame offsets.
10841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
10842         zone" instead of caller's parameter save area for temp storage.
10843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10844         Likewise.  Also, use symbolic stack frame offsets.
10845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
10846         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
10847         our own stack frame instead of the caller's.
10848         (__socket): Use symbolic stack frame offsets.
10849
10850 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10851             Alan Modra  <amodra@gmail.com>
10852
10853         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
10854         Define.
10855         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
10856         (PPC64_LOCAL_ENTRY_OFFSET): Define.
10857         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
10858         New function.
10859         (elf_machine_fixup_plt): Call it.
10860         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
10861         reloc arguments.
10862         (elf_machine_rela): Update call to elf_machine_plt_conflict.
10863         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10864         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
10865         r2 before calling target.
10866
10867 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10868             Alan Modra  <amodra@gmail.com>
10869
10870         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
10871         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
10872         versions of macros to support ELFv2 ABI.
10873         (LOCALENTRY): New macro.
10874         (ENTRY, EALIGN): Use it.
10875         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
10876         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
10877         fall through into ENTRY entry point.
10878         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
10879         Only define if _CALL_ELF != 2.
10880
10881         (elf_machine_matches_host): Verify ABI version matches.
10882         (RTLD_START): Use LOCALENTRY.
10883         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
10884         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
10885         (PLT_ENTRY_WORDS): New macro.
10886         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
10887         (elf_machine_runtime_setup): Support ELFv2 ABI.
10888         (elf_machine_fixup_plt): Likewise.
10889         (elf_machine_plt_conflict): Likewise.
10890         (resolve_ifunc): Likewise.
10891         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
10892         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
10893         Likewise.
10894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10895         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
10896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10897         (makecontext): Support ELFv2 ABI.
10898         * elf/elf.h (EF_PPC64_ABI): Define.
10899
10900 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10901
10902         * sysdeps/powerpc/powerpc64/sysdep.h
10903         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
10904         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
10905         (ENTRY) [ASSEMBLER]: ... but instead here ...
10906         (EALIGN) [ASSEMBLER]: ... and here.
10907         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
10908         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
10909         (ENTRY_2) [!ASSEMBLER]: Use it.
10910         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
10911         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
10912         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10913         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
10914         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
10915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
10916         Use PPC64_LOAD_FUNCPTR.
10917
10918         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
10919
10920 2013-12-04  Alan Modra  <amodra@gmail.com>
10921
10922         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
10923         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
10924         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
10925         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
10926
10927         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
10928         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
10929         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
10930         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
10931         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
10932         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
10933
10934 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10935
10936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10937         (__makecontext): Fix incorrect CFI when backtracing out of
10938         context created via makecontext.
10939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
10940         (__setcontext): Fix incorrect CFI during switch to new context.
10941         (__novec_setcontext): Likewise.
10942
10943 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10944
10945         [BZ #4772]
10946         * time/strptime_l.c (__strptime_internal): Allow modifiers
10947         in strptime.
10948         * time/tst-strptime.c (day_tests): Add testcase.
10949
10950 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10951
10952         * scripts/bench.pl: Skip over blank lines.
10953
10954 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
10955
10956         [BZ #926]
10957         * manual/time.texi (Calendar Time): Clarify what timezone functions
10958         use.
10959
10960 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10961
10962         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10963
10964 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10965
10966         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
10967         implementation.
10968         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
10969         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
10970         * debug/memset_chk.c (__memset_chk): Likewise.
10971         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
10972         * debug/strncpy_chk.c: Likewise.
10973
10974 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10975
10976         [BZ #15268]
10977         [BZ #15425]
10978         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
10979         (__ieee754_exp): For possibly underflowing results, check size of
10980         result and force underflow exception if required.
10981         * math/auto-libm-test-in: Add more tests of exp.
10982         * math/auto-libm-test-out: Regenerated.
10983         * sysdeps/i386/fpu/libm-test-ulps: Update.
10984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10985
10986         [BZ #16283]
10987         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
10988         * math/w_exp2f.c (__exp2f): Likewise.
10989         * math/w_exp2l.c (__exp2l): Likewise.
10990         * math/auto-libm-test-in: Do not allow missing errno on exp2
10991         underflow.
10992         * math/auto-libm-test-out: Regenerated.
10993
10994 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
10995
10996         [BZ #16274]
10997         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
10998         handle filename validation.
10999         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11000         (do_open): Delete.
11001
11002 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11003
11004         [BZ #6786]
11005         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11006         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11007         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11008         <float.h>.
11009         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11010         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11011         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11012         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11013         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11014         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11015         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11016         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11017         Add more erfc tests.
11018         * math/auto-libm-test-out: Regenerated.
11019         * sysdeps/i386/fpu/libm-test-ulps: Update.
11020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11021
11022         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11023         exp2, expm1, j0 and j1.
11024         * math/auto-libm-test-out: Regenerated.
11025         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11026         (erfc_test_data): Likewise.
11027         (exp_test_data): Likewise.
11028         (exp_tonearest_test_data): Likewise.
11029         (exp_towardzero_test_data): Likewise.
11030         (exp_downward_test_data): Likewise.
11031         (exp_upward_test_data): Likewise.
11032         (exp10_test_data): Likewise.
11033         (exp2_test_data): Likewise.
11034         (expm1_test_data): Likewise.
11035         (j0_test_data): Likewise.
11036         (j1_test_data): Likewise.
11037         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11038         (input_flag_type): Add flag_xfail_rounding.
11039         (input_flags): Add xfail-rounding.
11040         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11041         (output_for_one_input_case): Handle flag_xfail_rounding.
11042         * sysdeps/i386/fpu/libm-test-ulps: Update.
11043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11044
11045 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11046
11047         [BZ #16289]
11048         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11049         division by 0.
11050
11051 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11052
11053         [BZ #16195]
11054         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11055         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11056         (STAP_PROBE0): New macro.
11057         (STAP_PROBE1): Likewise.
11058         (STAP_PROBE2): Likewise.
11059         (STAP_PROBE3): Likewise.
11060         (STAP_PROBE4): Likewise.
11061
11062 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11063
11064         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11065
11066 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11067
11068         * benchtests/Makefile (bench): Add sqrt.
11069         (LDLIBS-bench-sqrt): New.
11070         * benchtests/sqrt-input: New.
11071
11072 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11073
11074         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11075         (GAIH_EAI): Likewise.
11076         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11077         (gaih_inet): Likewise.
11078         (getaddrinfo): Don't use GAIH_EAI.
11079
11080         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11081         (struct gaih): Remove definition.
11082
11083 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11084
11085         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11086         Use HERRNOP directly.
11087
11088 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11089
11090         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11091
11092 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11093
11094         * math/gen-auto-libm-tests.c (test_functions): Add more
11095         single-argument functions.
11096         (special_fill_pi_2): New function.
11097         (special_fill_minus_pi_2): Likewise.
11098         (special_fill_pi_6): Likewise.
11099         (special_fill_minus_pi_6): Likewise.
11100         (special_fill_pi_3): Likewise.
11101         (special_fill_2pi_3): Likewise.
11102         (special_fill_e): Likewise.
11103         (special_fill_1_e): Likewise.
11104         (special_fill_e_minus_1): Likewise.
11105         (special_real_inputs): Add more special inputs.
11106         (output_for_one_input_case): Do not require ERANGE on underflow to
11107         zero if round-to-nearest result does not underflow to zero, unless
11108         exact results required.
11109         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11110         atan, atanh, cbrt, cos and cosh.
11111         * math/auto-libm-test-out: Regenerated.
11112         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11113         (acos_tonearest_test_data): Likewise.
11114         (acos_towardzero_test_data): Likewise.
11115         (acos_downward_test_data): Likewise.
11116         (acos_upward_test_data): Likewise.
11117         (acosh_test_data): Likewise.
11118         (asin_test_data): Likewise.
11119         (asin_tonearest_test_data): Likewise.
11120         (asin_towardzero_test_data): Likewise.
11121         (asin_upward_test_data): Likewise.
11122         (asinh_test_data): Likewise.
11123         (atan_test_data): Likewise.
11124         (atanh_test_data): Likewise.
11125         (cbrt_test_data): Likewise.
11126         (cos_test_data): Likewise.
11127         (cos_tonearest_test_data): Likewise.
11128         (cos_towardzero_test_data): Likewise.
11129         (cos_downward_test_data): Likewise.
11130         (cos_upward_test_data): Likewise.
11131         (cosh_test_data): Likewise.
11132         (cosh_tonearest_test_data): Likewise.
11133         (cosh_towardzero_test_data): Likewise.
11134         (cosh_downward_test_data): Likewise.
11135         (cosh_upward_test_data): Likewise.
11136         * sysdeps/i386/fpu/libm-test-ulps: Update.
11137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11138
11139 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11140
11141         [BZ #6787]
11142         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11143         * math/w_exp10f.c (__exp10f): Likewise.
11144         * math/w_exp10l.c (__exp10l): Likewise.
11145         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11146         errno settings in existing tests.
11147
11148         [BZ #14032]
11149         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11150         precision control set to double precision.
11151         * sysdeps/i386/fpu/w_sqrt.c: New file.
11152         * math/auto-libm-test-in: Add more tests.
11153         * math/auto-libm-test-out: Update.
11154
11155         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11156         (sqrt_test_tonearest): New function.
11157         (sqrt_towardzero_test_data): New variable.
11158         (sqrt_test_towardzero): New function.
11159         (sqrt_downward_test_data): New variable.
11160         (sqrt_test_downward): New function.
11161         (sqrt_upward_test_data): New variable.
11162         (sqrt_test_upward): New function.
11163         (main): Call the new functions.
11164
11165         * math/gen-auto-libm-tests.c: New file.
11166         * math/auto-libm-test-in: Likewise.
11167         * math/auto-libm-test-out: New generated file.
11168         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11169         variables.
11170         (%beautify): Add generated representations of zero.
11171         (top level): Set $auto_input and call parse_auto_input.
11172         (beautify): Remove trailing "f" from hex float constants.
11173         (parse_args): Handle XFAIL_TEST.
11174         (convert_condition): New function.
11175         (or_value): Likewise.
11176         (or_cond_value): Likewise.
11177         (generate_testfile): Handle AUTO_TESTS_* lines.
11178         (parse_auto_input): New function.
11179         * math/libm-test.inc (XFAIL_TEST): New macro.
11180         (ERRNO_UNCHANGED): Update value.
11181         (ERRNO_EDOM): Likewise.
11182         (ERRNO_ERANGE): Likewise.
11183         (IGNORE_RESULT): Likewise.
11184         (TEST_COND_flt_32): New macro.
11185         (TEST_COND_dbl_64): Likewise.
11186         (TEST_COND_ldbl_96_intel): Likewise.
11187         (TEST_COND_ldbl_96_m68k): Likewise.
11188         (TEST_COND_ldbl_128): Likewise.
11189         (TEST_COND_ldbl_128ibm): Likewise.
11190         (TEST_COND_long32): Likewise.
11191         (TEST_COND_long64): Likewise.
11192         (TEST_COND_before_rounding): Likewise.
11193         (TEST_COND_after_rounding): Likewise.
11194         (enable_test): Handle XFAIL_TEST flag.
11195         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11196         with finite results.
11197         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11198         auto-libm-test-out.
11199
11200 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11201             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11202
11203         [BZ #16214]
11204         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11205         __tls_get_addr_internal instead of __tls_get_offset in order to
11206         avoid GOT pointer dependency.  Make rtld export
11207         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11208         __tls_get_addr since we are a __tls_get_offset platform.
11209         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11210         GOT pointer being set up before.
11211         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11212
11213 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11214
11215         * manual/math.texi (Errors in Math Functions): Document accuracy
11216         goals.
11217
11218         [BZ #15004]
11219         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11220         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11221         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11222         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11223         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11224         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11225         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11226         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11227         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11228         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11229         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11230         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11231         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11232         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11233         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11234         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11235
11236         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11237         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11238         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11239         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11240         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11241         Likewise.
11242         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11243         Likewise.
11244         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11245         Likewise.
11246         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11247         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11248         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11249         atomic-feupdateenv and flt-rounds.
11250         * sysdeps/powerpc/nofpu/Versions (libc): Add
11251         __atomic_feholdexcept, __atomic_feclearexcept,
11252         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11253         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11254         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11255         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11256         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11257         here.
11258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11259         Update.
11260
11261         * manual/arith.texi (FP Exceptions): Document that exceptions may
11262         not be raised when matherr is used.
11263         (Math Error Reporting): Document overflow in directed rounding
11264         modes.  Document that errno may not be set when finite values are
11265         returned on overflow.  Document intent to set errno on underflow
11266         only for underflow to zero.
11267
11268         [BZ #16271]
11269         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11270         round-to-nearest then adjust result for other rounding modes.
11271         * include/fenv.h (fegetround): Use libm_hidden_proto.
11272         * math/fegetround.c (fegetround): Use libm_hidden_def.
11273         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11274         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11275         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11276         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11277         Likewise.
11278         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11279         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11280         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11281         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11282
11283 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11284
11285         [BZ #16077]
11286         * nss/Versions (libnss_files): Add
11287         _nss_files_gethostbyname3_r.
11288         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11289         New function.
11290         (HOST_DB_LOOKUP): Remove macro.
11291         (_nss_files_gethostbyname_r): Implement function without the
11292         HOST_DB_LOOKUP macro.
11293         (_nss_files_gethostbyname2_r): Likewise.
11294
11295 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11296
11297         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11298
11299 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11300
11301         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11302         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11303         warning.
11304
11305 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11306
11307         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11308         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11309         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11310         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11311         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11312         __fe_nomask_env_priv and attribute_hidden.
11313         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11314         (libc_feupdateenv_test_ppc): Likewise.
11315         (libc_feresetround_ppc): Likewise.
11316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11317         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11318         compat_symbol macro.
11319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11320         (__fe_nomask_env): Likewise.
11321         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11322
11323 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11324
11325         * string/Makefile: Remove ifunc tests.
11326         * string/test-string.h: Define TEST_IFUNC.
11327         * string/test-bcopy-ifunc.c: Remove.
11328         * string/test-bzero-ifunc.c: Likewise.
11329         * string/test-memccpy-ifunc.c: Likewise.
11330         * string/test-memchr-ifunc.c: Likewise.
11331         * string/test-memcmp-ifunc.c: Likewise.
11332         * string/test-memcpy-ifunc.c: Likewise.
11333         * string/test-memmem-ifunc.c: Likewise.
11334         * string/test-memmove-ifunc.c: Likewise.
11335         * string/test-mempcpy-ifunc.c: Likewise.
11336         * string/test-memrchr-ifunc.c: Likewise.
11337         * string/test-memset-ifunc.c: Likewise.
11338         * string/test-rawmemchr-ifunc.c: Likewise.
11339         * string/test-stpcpy-ifunc.c: Likewise.
11340         * string/test-stpncpy-ifunc.c: Likewise.
11341         * string/test-strcasecmp-ifunc.c: Likewise.
11342         * string/test-strcasestr-ifunc.c: Likewise.
11343         * string/test-strcat-ifunc.c: Likewise.
11344         * string/test-strchr-ifunc.c: Likewise.
11345         * string/test-strchrnul-ifunc.c: Likewise.
11346         * string/test-strcmp-ifunc.c: Likewise.
11347         * string/test-strcpy-ifunc.c: Likewise.
11348         * string/test-strcspn-ifunc.c: Likewise.
11349         * string/test-strlen-ifunc.c: Likewise.
11350         * string/test-strncasecmp-ifunc.c: Likewise.
11351         * string/test-strncat-ifunc.c: Likewise.
11352         * string/test-strncmp-ifunc.c: Likewise.
11353         * string/test-strncpy-ifunc.c: Likewise.
11354         * string/test-strnlen-ifunc.c: Likewise.
11355         * string/test-strpbrk-ifunc.c: Likewise.
11356         * string/test-strrchr-ifunc.c: Likewise.
11357         * string/test-strspn-ifunc.c: Likewise.
11358         * string/test-strstr-ifunc.c: Likewise.
11359
11360 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11361
11362         * benchtests/Makefile: Remove ifunc tests.
11363         * benchtests/bench-string.h: Define TEST_IFUNC.
11364         * benchtests/bench-bcopy-ifunc.c: Remove.
11365         * benchtests/bench-bzero-ifunc.c: Likewise.
11366         * benchtests/bench-memccpy-ifunc.c: Likewise.
11367         * benchtests/bench-memchr-ifunc.c: Likewise.
11368         * benchtests/bench-memcmp-ifunc.c: Likewise.
11369         * benchtests/bench-memcpy-ifunc.c: Likewise.
11370         * benchtests/bench-memmem-ifunc.c: Likewise.
11371         * benchtests/bench-memmove-ifunc.c: Likewise.
11372         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11373         * benchtests/bench-memrchr-ifunc.c: Likewise.
11374         * benchtests/bench-memset-ifunc.c: Likewise.
11375         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11376         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11377         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11378         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11379         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11380         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11381         * benchtests/bench-strcat-ifunc.c: Likewise.
11382         * benchtests/bench-strchr-ifunc.c: Likewise.
11383         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11384         * benchtests/bench-strcmp-ifunc.c: Likewise.
11385         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11386         * benchtests/bench-strcpy-ifunc.c: Likewise.
11387         * benchtests/bench-strcspn-ifunc.c: Likewise.
11388         * benchtests/bench-strlen-ifunc.c: Likewise.
11389         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11390         * benchtests/bench-strncat-ifunc.c: Likewise.
11391         * benchtests/bench-strncmp-ifunc.c: Likewise.
11392         * benchtests/bench-strncpy-ifunc.c: Likewise.
11393         * benchtests/bench-strnlen-ifunc.c: Likewise.
11394         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11395         * benchtests/bench-strrchr-ifunc.c: Likewise.
11396         * benchtests/bench-strsep-ifunc.c: Likewise.
11397         * benchtests/bench-strspn-ifunc.c: Likewise.
11398         * benchtests/bench-strstr-ifunc.c: Likewise.
11399
11400 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11401
11402         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11403
11404 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11405
11406         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11407         * rt/aio.h: Likewise.
11408         * sysdeps/gnu/bits/utmp.h: Likewise.
11409         * sysdeps/gnu/bits/utmpx.h: Likewise.
11410         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11411         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11412         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11413         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11414         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11415         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11416         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11417         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11418         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11419         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11420         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11421         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11422         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11424         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11425         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11426         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11427         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11428         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11429         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11430         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11431         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11432         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11433         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11434         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11435         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11436         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11437         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11438         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11439         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11440         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11441         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11442         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11443         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11444         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11445         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11446         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11447         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11448         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11449         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11450         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11451         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11452
11453 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11454
11455         [BZ #16245]
11456         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11457         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11458
11459 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11460
11461         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11462         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11463         Likewise.
11464
11465 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11466
11467         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11468         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11469         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11470         (__fesetround): Remove define.
11471         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11472         rounding and exceptions handling.
11473         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11474         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11475         (__fe_nomask_env): Likewise.
11476         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11477         __fegetround instead of fegetround.
11478         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11480
11481 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11482
11483         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11484         it's there.
11485
11486         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11487
11488 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11489
11490         [BZ #11157]
11491         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11492         (encrypt_r): Likewise.
11493         * malloc/obstack.h (obstack_free): Likewise.
11494         * posix/unistd.h (encrypt): Likewise.
11495
11496 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11497
11498         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11499         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11500         DL_CALL_DT_FINI() that call the functions directly.
11501         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11502         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11503         * elf/dl-fini.c: Likewise.
11504
11505 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11506
11507         * malloc/hooks.c (memalign_check): Add alignment rounding.
11508         * malloc/malloc.c (_mid_memalign): New function.
11509         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11510         Implement by calling _mid_memalign.
11511         * manual/probes.texi (Memory Allocation Probes): Remove
11512         memory_valloc_retry and memory_pvalloc_retry.
11513
11514 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11515
11516         * locale/programs/locarchive.c (open_archive): Add const
11517         qualifier to ARCHIVEFNAME and copy default fname to
11518         DEFAULT_FNAME.
11519
11520         [BZ #15601]
11521         * libio/tst-widetext.input: Rename Oriya to Odia.
11522         * locale/iso-639.def: Likewise.
11523
11524         * manual/probes.texi (Mathematical Function Probes): Add
11525         documentation for sin, cos, asin and acos probes.
11526         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11527         (__sin32): Add slowasin probe.
11528         (__cos32): Add slowacos probe.
11529         (__mpsin): Add slowsin probe.
11530         (__mpcos): Add slowcos probe.
11531
11532 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11533
11534         [BZ #15483]
11535         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11536         thread-local __sim_exceptions_thread and global
11537         __sim_exceptions_global.
11538         (__sim_disabled_exceptions): Change to thread-local
11539         __sim_disabled_exceptions_thread and global
11540         __sim_disabled_exceptions_global.
11541         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11542         and global __sim_round_mode_global.
11543         (__simulate_exceptions): Use thread-local floating-point state and
11544         set global state from it as needed.
11545         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11546         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11547         __sim_round_mode_thread.
11548         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11549         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11550         and global __sim_exceptions_global.
11551         (__sim_disabled_exceptions): Change to thread-local
11552         __sim_disabled_exceptions_thread and global
11553         __sim_disabled_exceptions_global.
11554         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11555         and global __sim_round_mode_global.
11556         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11557         (SIM_SET_GLOBAL): Likewise.
11558         * sysdeps/powerpc/soft-fp/sfp-machine.h
11559         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11560         __sim_round_mode_thread.
11561         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11562         __sim_disabled_exceptions_thread.
11563         (__sim_exceptions): Change to __sim_exceptions_thread.
11564         (__sim_disabled_exceptions): Change to
11565         __sim_disabled_exceptions_thread.
11566         (__sim_round_mode): Change to __sim_round_mode_thread.
11567         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11568         thread-local floating-point state and set global state from it as
11569         needed.
11570         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11571         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11572         (__sim_disabled_exceptions): Remove extern declaration.
11573         (feenableexcept): Use thread-local floating-point state and set
11574         global state from it as needed.
11575         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11576         extern declaration.
11577         (__sim_disabled_exceptions): Likewise.
11578         (__sim_round_mode): Likewise.
11579         (__fegetenv): Use thread-local floating-point state.
11580         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11581         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11582         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11583         floating-point state and set global state from it as needed.
11584         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11585         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11586         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11587         Likewise.
11588         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11589         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11590         Likewise.
11591         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11592         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11593         Use __sim_round_mode_thread.
11594         * math/test-fenv-tls.c: New file.
11595         * math/Makefile (tests): Add test-fenv-tls.
11596         ($(objpfx)test-fenv-tls): Depend on
11597         $(common-objpfx)nptl/libpthread.so.
11598
11599 2013-11-19  Andreas Schwab  <schwab@suse.de>
11600
11601         * locale/programs/locale.c (show_info): Decode wordarray elements.
11602         * locale/categories.def (LC_MONETARY): Add element for
11603         _NL_MONETARY_CRNCYSTR.
11604         * locale/C-monetary.c (conversion_rate): New variable.
11605         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11606         element.
11607
11608 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
11609
11610         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
11611         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
11612
11613 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11614
11615         * elf/Makefile (tst-auxv): New test.
11616         * elf/tst-auxv.c: New
11617         * elf/rtld.c (dl_main): Adjust AT_EXECFN
11618
11619 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
11620
11621         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
11622         (hidden_proto): Caller changed.
11623         (hidden_tls_proto): New macro.
11624         (libc_hidden_tls_proto): Likewise.
11625         (rtld_hidden_tls_proto): Likewise.
11626         (libm_hidden_tls_proto): Likewise.
11627         (libresolv_hidden_tls_proto): Likewise.
11628         (librt_hidden_tls_proto): Likewise.
11629         (libdl_hidden_tls_proto): Likewise.
11630         (libnss_files_hidden_tls_proto): Likewise.
11631         (libnsl_hidden_tls_proto): Likewise.
11632         (libnss_nisplus_hidden_tls_proto): Likewise.
11633         (libutil_hidden_tls_proto): Likewise.
11634
11635 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
11636
11637         [BZ #10253]
11638         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
11639         (decompose_rpath): Defer expansion to fillin_rpath.
11640         (_dl_init_paths): Pass linkmap to fillin_rpath.
11641
11642 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11643
11644         * benchtests/Makefile: Add strsep.
11645         * benchtests/bench-strsep.c: New file: strsep benchtest.
11646         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
11647
11648 2013-11-18  Andreas Schwab  <schwab@suse.de>
11649
11650         * locale/programs/locale.c (show_info) [case byte]: Check for
11651         '\377' instead of '\177'.
11652         * locale/C-monetary.c (not_available): Always use "\377".
11653         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
11654         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
11655         detect unavailable sign_posn locale elements.
11656         * locale/localeconv.c (__localeconv): For grouping and
11657         mon_grouping handle "\177" and "\377" like no grouping.
11658         (INT_ELEM): New macro.  Use it to set all numeric members.
11659         * locale/programs/ld-monetary.c (monetary_read)
11660         <tok_mon_grouping>: Normalize single -1 to the empty string.
11661         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
11662         Likewise.
11663
11664 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11665
11666         [BZ #16055]
11667         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
11668         when we match (nil).
11669         * stdio-common/tst-sscanf.c (struct test): Add testcase.
11670
11671 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
11672
11673         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
11674         (NO_TEST_INLINE): Update value.
11675         (ERRNO_UNCHANGED): Likewise.
11676         (ERRNO_EDOM): Likewise.
11677         (ERRNO_ERANGE): Likewise.
11678         (IGNORE_RESULT): Likewise.
11679         (check_float_internal): Check signs of NaN results if
11680         TEST_NAN_SIGN used.
11681         (check_complex): Pass TEST_NAN_SIGN flag through to second
11682         check_float_internal call.
11683         (copysign_test_data): Add tests with quiet NaNs as second
11684         argument.  Use TEST_NAN_SIGN.
11685         (fabs_test_data): Add test of negative quiet NaN argument.  Use
11686         TEST_NAN_SIGN.
11687         (signbit_test_data): Add tests of quiet NaN argument.
11688         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
11689
11690         * math/gen-libm-test.pl (show_exceptions): Take extra argument
11691         $ignore_result.
11692         (parse_args): Handle function results specified as IGNORE.
11693         * math/libm-test.inc (IGNORE_RESULT): New macro.
11694         (check_float_internal): Do not check numerical result if flag
11695         IGNORE_RESULT set.
11696         (check_complex): Pass through IGNORE_RESULT to second
11697         check_float_internal call.
11698         (check_int): Do not check numerical result if flag IGNORE_RESULT
11699         set.
11700         (check_long): Likewise.
11701         (check_bool): Likewise.
11702         (check_longlong): Likewise.
11703         (lrint_test_data): Add tests of infinite and NaN arguments.
11704         (lrint_tonearest_test_data): Likewise.
11705         (lrint_towardzero_test_data): Likewise.
11706         (lrint_downward_test_data): Likewise.
11707         (lrint_upward_test_data): Likewise.
11708         (llrint_test_data): Likewise.
11709         (llrint_tonearest_test_data): Likewise.
11710         (llrint_towardzero_test_data): Likewise.
11711         (llrint_downward_test_data): Likewise.
11712         (llrint_upward_test_data): Likewise.
11713         (lround_test_data): Likewise.
11714         (llround_test_data): Likewise.
11715
11716         * math/libm-test.inc (NO_TEST_INLINE): New macro.
11717         (ERRNO_UNCHANGED): Update value.
11718         (ERRNO_EDOM): Likewise.
11719         (ERRNO_ERANGE): Likewise.
11720         (NO_TEST_INLINE_FLOAT): New macro.
11721         (NO_TEST_INLINE_DOUBLE): Likewise.
11722         (enable_test): New function.
11723         (RUN_TEST_f_f): Check enable_test before running test.
11724         (RUN_TEST_2_f): Likewise.
11725         (RUN_TEST_fff_f): Likewise.
11726         (RUN_TEST_c_f): Likewise.
11727         (RUN_TEST_f_f1): Likewise.
11728         (RUN_TEST_fF_f1): Likewise.
11729         (RUN_TEST_fI_f1): Likewise.
11730         (RUN_TEST_ffI_f1): Likewise.
11731         (RUN_TEST_c_c): Likewise.
11732         (RUN_TEST_cc_c): Likewise.
11733         (RUN_TEST_f_i): Likewise.
11734         (RUN_TEST_f_i_tg): Likewise.
11735         (RUN_TEST_ff_i_tg): Likewise.
11736         (RUN_TEST_f_b): Likewise.
11737         (RUN_TEST_f_b_tg): Likewise.
11738         (RUN_TEST_f_l): Likewise.
11739         (RUN_TEST_f_L): Likewise.
11740         (RUN_TEST_fFF_11): Likewise.
11741         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
11742         conditionals.
11743         (cosh_test_data): Likewise.
11744         (exp_test_data): Likewise.
11745         (expm1_test_data): Likewise.
11746         (hypot_test_data): Likewise.
11747         (pow_test_data): Likewise.
11748         (sinh_test_data): Likewise.
11749         (tanh_test_data): Likewise.
11750         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
11751         flags argument.
11752
11753         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
11754         tests with quiet NaN input and output.
11755         (acosh_test_data): Likewise.
11756         (asin_test_data): Likewise.
11757         (asinh_test_data): Likewise.
11758         (atan_test_data): Likewise.
11759         (atanh_test_data): Likewise.
11760         (atan2_test_data): Likewise.
11761         (cbrt_test_data): Likewise.
11762         (cos_test_data): Likewise.
11763         (cosh_test_data): Likewise.
11764         (erf_test_data): Likewise.
11765         (erfc_test_data): Likewise.
11766         (exp_test_data): Likewise.
11767         (exp10_test_data): Likewise.
11768         (exp2_test_data): Likewise.
11769         (expm1_test_data): Likewise.
11770         (hypot_test_data): Likewise.
11771         (j0_test_data): Likewise.
11772         (j1_test_data): Likewise.
11773         (jn_test_data): Likewise.
11774         (lgamma_test_data): Likewise.
11775         (log_test_data): Likewise.
11776         (log10_test_data): Likewise.
11777         (log1p_test_data): Likewise.
11778         (log2_test_data): Likewise.
11779         (pow_test_data): Likewise.
11780         (scalb_test_data): Likewise.
11781         (sin_test_data): Likewise.
11782         (sincos_test_data): Likewise.
11783         (sinh_test_data): Likewise.
11784         (tan_test_data): Likewise.
11785         (tanh_test_data): Likewise.
11786         (tgamma_test_data): Likewise.
11787         (y0_test_data): Likewise.
11788         (y1_test_data): Likewise.
11789         (yn_test_data): Likewise.
11790
11791         [BZ #16167]
11792         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
11793         argument being NaN and avoid computations with second argument in
11794         that case.
11795         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11796         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11797         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11798
11799 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
11800
11801         * locale/iso-639.def: Add Chitwani Tharu (the).
11802
11803 2013-11-14  Andreas Schwab  <schwab@suse.de>
11804
11805         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
11806         word instead of empty string.
11807
11808 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11809
11810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11811         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
11812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11813         (__fe_nomask_env): Likewise.
11814
11815 2013-11-13  Steve Ellcey  <sellcey@mips.com>
11816
11817         * benchtests/bench-timing.h: Include time.h.
11818
11819 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
11820
11821         [BZ #15997]
11822         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
11823         to 3.4.0 for x32.
11824         * sysdeps/unix/sysv/linux/configure: Regenerated.
11825
11826 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11827
11828         [BZ #16151]
11829         * stdlib/strtod_l.c (round_and_return): Do not consider
11830         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
11831         exponent one less than half the least subnormal exponent.
11832         * stdlib/test-strtod-round-data: Add more tests.
11833         * stdlib/tst-strtod-round.c (tests): Regenerated.
11834
11835 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11836
11837         [BZ #14143]
11838         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
11839         (__fe_mask_env): Likewise.
11840         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
11841         libm_hidden_proto and add function prototype.
11842         (__fe_mask_env): Add function prototype.
11843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11844         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
11845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11846         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
11847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11848         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
11849
11850 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11851
11852         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
11853         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
11854
11855 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11856
11857         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
11858         of htab_find_slot().
11859
11860 2013-11-11  David S. Miller  <davem@davemloft.net>
11861
11862         [BZ #16150]
11863         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
11864         symbol in the non-vis3 case in static builds.
11865         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
11866         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
11867         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
11868         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
11869
11870 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11871
11872         [BZ #387]
11873         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
11874         it is empty.
11875
11876 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11877
11878         * benchtests/Makefile: Add bench-strtod.
11879         * benchtests/bench-strtod.c: New file: strtod benchtest
11880
11881 2013-11-11  Andreas Schwab  <schwab@suse.de>
11882
11883         [BZ #16153]
11884         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
11885         terminating NUL in key length.
11886
11887 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11888
11889         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11890         Add artificial ODP entry for vDSO symbol for PPC64.
11891         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
11892         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
11893
11894 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11895
11896         [BZ #15374]
11897         * nss/getent.c (services_keys): Recognize services starting with digit.
11898
11899 2013-11-06  David S. Miller  <davem@davemloft.net>
11900
11901         [BZ #15985]
11902         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
11903         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
11904
11905 2013-11-06  Will Newton  <will.newton@linaro.org>
11906
11907         * manual/memory.texi (Malloc Examples): Remove register
11908         keyword from examples.
11909
11910 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
11911
11912         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
11913
11914 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11915
11916         [BZ #6981]
11917         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
11918         depending on [__GCC_IEC_559 > 0].
11919         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
11920         depending on [__GCC_IEC_559_COMPLEX > 0].
11921
11922 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
11923
11924         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
11925         to iso-639.def.
11926
11927 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
11928
11929         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
11930
11931 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
11932
11933         [BZ #16112]
11934         * malloc/malloc (malloc_info): Do not handle first bin as
11935         special case.
11936
11937 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
11938
11939         * locale/iso-639.def: Add Central Nahuatl (nhn).
11940
11941 2013-11-01  Bruno Haible  <bruno@clisp.org>
11942
11943         [BZ #7003]
11944         * manual/math.texi (BSD Random): Specify range upper bound as
11945         in POSIX.
11946
11947 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
11948
11949         * locale/iso-639.def: Add Meadow Mari (mhr).
11950
11951 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
11952
11953         [BZ #14752], [BZ #15763]
11954         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
11955         Validate name.
11956         * rt/tst_shm.c: Add test for escaping directory.
11957
11958 2013-10-31  Andreas Schwab  <schwab@suse.de>
11959
11960         [BZ #15917]
11961         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
11962         followed by 'x' as part of digit sequence.
11963         * stdio-common/tst-sscanf.c (double_tests2): New tests.
11964
11965 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11966
11967         [BZ #16037]
11968         * configure.ac: allow GNU Make 4.0 and greater.
11969         * configure: Regenerated.
11970
11971 2013-10-30  Will Newton  <will.newton@linaro.org>
11972
11973         [BZ #16038]
11974         * malloc/hooks.c (memalign_check): Limit alignment to the
11975         maximum representable power of two.
11976         * malloc/malloc.c (__libc_memalign): Likewise.
11977         * malloc/tst-memalign.c (do_test): Add test for very
11978         large alignment values.
11979         * malloc/tst-posix_memalign.c (do_test): Likewise.
11980
11981 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11982
11983         [BZ #11087]
11984         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
11985         (munmap_chunk): Likewise.
11986         (mremap_chunk): Likewise.
11987
11988 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11989
11990         [BZ #15799]
11991         * stdlib/div.c (div): Remove obsolete code.
11992         * stdlib/ldiv.c (ldiv): Likewise.
11993         * stdlib/lldiv.c (lldiv): Likewise.
11994
11995 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11996
11997         [BZ #16071]
11998         * nss/nss_files/files-XXX.c (get_contents_ret): New
11999         enumerator.
12000         (get_contents): New function.
12001         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12002
12003 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12004
12005         * configure.in: Moved to ...
12006         * configure.ac: ... here. Change reference to configure.in
12007         to configure.ac.
12008         * sysdeps/arm/preconfigure.ac: ... here.
12009         configure.in to configure.ac.
12010         * sysdeps/gnu/configure.in: Moved to ...
12011         * sysdeps/gnu/configure.ac: ... here.
12012         * sysdeps/i386/configure.in: Moved to ...
12013         * sysdeps/i386/configure.ac: ... here.
12014         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12015         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12016         * sysdeps/mach/configure.in: Moved to ...
12017         * sysdeps/mach/configure.ac: ... here.
12018         * sysdeps/mach/hurd/configure.in: Moved to ...
12019         * sysdeps/mach/hurd/configure.ac: ... here.
12020         * sysdeps/powerpc/configure.in: Moved to ...
12021         * sysdeps/powerpc/configure.ac: ... here.
12022         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12023         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12024         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12025         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12026         * sysdeps/s390/s390-32/configure.in: Moved to ...
12027         * sysdeps/s390/s390-32/configure.ac: ... here.
12028         * sysdeps/s390/s390-64/configure.in: Moved to ...
12029         * sysdeps/s390/s390-64/configure.ac: ... here.
12030         * sysdeps/sh/configure.in: Moved to ...
12031         * sysdeps/sh/configure.ac: ... here.
12032         * sysdeps/sparc/configure.in: Moved to ...
12033         * sysdeps/sparc/configure.ac: ... here.
12034         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12035         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12036         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12037         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12038         * sysdeps/x86_64/configure.in: Moved to ...
12039         * sysdeps/x86_64/configure.ac: ... here.
12040         * sysdeps/x86_64/preconfigure.in: Moved to ...
12041         * sysdeps/x86_64/preconfigure.ac: ... here.
12042         * aclocal.m4: Change reference to configure.in to configure.ac.
12043         * config.h.in: Likewise.
12044         * manual/install.texi: Likewise.
12045         * manual/maint.texi: Likewise.
12046         * Makefile: Likewise.
12047         * malloc/Makefile: Likewise.
12048         * nscd/Makefile: Likewise.
12049         * Makeconfig: Change reference to configure.in and
12050         preconfigure.in to configure.ac and preconfigure.ac
12051         respectively.
12052         * INSTALL: Regenerated.
12053         * configure: Likewise.
12054         * sysdeps/gnu/configure: Likewise.
12055         * sysdeps/i386/configure: Likewise.
12056         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12057         * sysdeps/mach/configure: Likewise.
12058         * sysdeps/mach/hurd/configure: Likewise.
12059         * sysdeps/powerpc/configure: Likewise.
12060         * sysdeps/powerpc/powerpc32/configure: Likewise.
12061         * sysdeps/powerpc/powerpc64/configure: Likewise.
12062         * sysdeps/s390/s390-32/configure: Likewise.
12063         * sysdeps/s390/s390-64/configure: Likewise.
12064         * sysdeps/sh/configure: Likewise.
12065         * sysdeps/sparc/configure: Likewise.
12066         * sysdeps/unix/sysv/linux/configure: Likewise.
12067         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12068         * sysdeps/x86_64/configure: Likewise.
12069         * sysdeps/x86_64/preconfigure: Likewise.
12070
12071 2013-10-29  Andreas Schwab  <schwab@suse.de>
12072
12073         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12074
12075 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12076
12077         * benchtests/pow-inputs: Add new inputs.
12078
12079         * benchtests/exp-inputs: Add new inputs.
12080
12081         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12082         conditional check for return value.
12083         (__cos32): Likewise.
12084
12085 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12086
12087         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12088         to provide a boost for large inputs with word alignment.
12089         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12090         implementation based on optimized PPC64 strcpy.
12091         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12092         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12093         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12094         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12095
12096 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12097
12098         [BZ #2801]
12099         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12100
12101 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12102
12103         [BZ #14876]
12104         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12105         * time/tst-strptime.c (day_tests): Add testcase.
12106
12107 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12108
12109         [BZ #14029]
12110         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12111
12112 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12113
12114         [BZ #16074]
12115         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12116         MAP_FAILED on error.
12117
12118 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12119
12120         [BZ #16072]
12121         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12122         heap for large requests.
12123
12124 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12125
12126         [BZ #9954]
12127         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12128         result if the result has no associated interface.
12129         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12130         interface for all 127.X.Y.Z addresses.
12131
12132 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12133
12134         * locale/iso-639.def: Add Ligurian (lij)
12135
12136 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12137
12138         [BZ #15825]
12139         * sunrpc/rpc_main.c: Document rpcgen -5.
12140
12141 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12142
12143         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12144
12145 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12146
12147         [BZ #10278]
12148         * posix/glob.c: Match only directories when trailing slash is present.
12149         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12150         (main): Add testcase.
12151
12152 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12153
12154         [BZ #15670]
12155         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12156
12157 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12158
12159         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12160         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12161         AUTH_DES and cindex for FIPS 140-2.
12162         (DES Encryption): Add cindex FIPS 46-3.
12163
12164         * locale/locarchive.h (struct locarhandle): Add fname.
12165         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12166         if an optional argument was specified to --list-archive,
12167         otherwise NULL.
12168         * locale/programs/locarchive.c (show_archive_content): Take new
12169         argument fname and pass it via ah.fname to open_archive.
12170         * locale/programs/localedef.h: Update decl.
12171         (open_archive): If AH->fname is non-null, open that file
12172         rather than the default file name, and don't ignore ENOENT.
12173         (create_archive): Set AH.fname to NULL.
12174         (delete_locales_from_archive): Likewise.
12175         (add_locales_to_archive): Likewise.
12176         * locale/programs/locfile.c (write_all_categories): Likewise.
12177
12178 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12179             Aldy Hernandez  <aldyh@redhat.com>
12180
12181         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12182         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12183         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12184         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12185         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12186         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12187         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12188         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12189         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12190         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12191         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12192         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12193         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12194         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12195         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12196         Likewise.
12197         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12198         Likewise.
12199         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12200         Likewise.
12201         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12202         Likewise.
12203         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12204         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12205         Likewise.
12206         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12207         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12208         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12209         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12210         Likewise.
12211         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12212         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12213         * sysdeps/powerpc/preconfigure: Likewise.
12214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12215         Likewise.
12216         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12217         Replace contents of file by #include of <fenv_libc.h>.
12218         * sysdeps/powerpc/soft-fp/sfp-machine.h
12219         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12220         and <sys/prctl.h>.
12221         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12222         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12223         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12224         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12225         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12226         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12227         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12228         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12229         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12230         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12231         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12232         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12234         Allow copysignl PLT reference to be missing.
12235
12236 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12237             Joseph Myers  <joseph@codesourcery.com
12238
12239         [BZ #15948]
12240         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12241         single character.
12242         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12243
12244 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12245
12246         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12247         * elf/tst-tls1.c: Likewise.
12248         * elf/tst-tls10.h: Likewise.
12249         * elf/tst-tls14.c: Likewise.
12250         * elf/tst-tls2.c: Likewise.
12251         * elf/tst-tls3.c: Likewise.
12252         * elf/tst-tls4.c: Likewise.
12253         * elf/tst-tls5.c: Likewise.
12254         * elf/tst-tls6.c: Likewise.
12255         * elf/tst-tls7.c: Likewise.
12256         * elf/tst-tls8.c: Likewise.
12257         * elf/tst-tls9.c: Likewise.
12258         * elf/tst-tlsmod1.c: Likewise.
12259         * elf/tst-tlsmod13.c: Likewise.
12260         * elf/tst-tlsmod13a.c: Likewise.
12261         * elf/tst-tlsmod14a.c: Likewise.
12262         * elf/tst-tlsmod16a.c: Likewise.
12263         * elf/tst-tlsmod16b.c: Likewise.
12264         * elf/tst-tlsmod2.c: Likewise.
12265         * elf/tst-tlsmod3.c: Likewise.
12266         * elf/tst-tlsmod4.c: Likewise.
12267         * elf/tst-tlsmod5.c: Likewise.
12268         * elf/tst-tlsmod6.c: Likewise.
12269
12270 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12271
12272         [BZ #12486]
12273         * malloc/malloc.c: remove checks for statistics.
12274
12275 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12276
12277         [BZ #15277]
12278         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12279         * inet/tst-network.c: Add testcase.
12280
12281 2013-10-17  Andreas Schwab  <schwab@suse.de>
12282
12283         [BZ #15218]
12284         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12285         to determine canonical name.
12286
12287 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12288
12289         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12290         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12291         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12292         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12293         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12294         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12295         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12296         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12297         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12298         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12299         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12300         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12301         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12302         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12303         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12304         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12305         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12306         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12307         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12308         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12309         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12310         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12311         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12312         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12313         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12314         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12315         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12316         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12317         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12318         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12319         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12320         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12321         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12322         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12323         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12324         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12325         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12326         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12327         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12328         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12329         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12330         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12331         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12332         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12333         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12334         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12335         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12336         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12337         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12338         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12339         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12340         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12341         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12342         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12343         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12344         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12345         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12346         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12347
12348 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12349
12350         [BZ #16041]
12351         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12352         make result into a quiet NaN.
12353
12354 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12355
12356         * soft-fp/adddf3.c: Fix horizontal whitespace.
12357         * soft-fp/addsf3.c: Likewise.
12358         * soft-fp/addtf3.c: Likewise.
12359         * soft-fp/divdf3.c: Likewise.
12360         * soft-fp/divsf3.c: Likewise.
12361         * soft-fp/divtf3.c: Likewise.
12362         * soft-fp/double.h: Likewise.
12363         * soft-fp/eqdf2.c: Likewise.
12364         * soft-fp/eqsf2.c: Likewise.
12365         * soft-fp/eqtf2.c: Likewise.
12366         * soft-fp/extenddftf2.c: Likewise.
12367         * soft-fp/extended.h: Likewise.
12368         * soft-fp/extendsfdf2.c: Likewise.
12369         * soft-fp/extendsftf2.c: Likewise.
12370         * soft-fp/extendxftf2.c: Likewise.
12371         * soft-fp/fixdfdi.c: Likewise.
12372         * soft-fp/fixdfsi.c: Likewise.
12373         * soft-fp/fixdfti.c: Likewise.
12374         * soft-fp/fixsfdi.c: Likewise.
12375         * soft-fp/fixsfsi.c: Likewise.
12376         * soft-fp/fixsfti.c: Likewise.
12377         * soft-fp/fixtfdi.c: Likewise.
12378         * soft-fp/fixtfsi.c: Likewise.
12379         * soft-fp/fixtfti.c: Likewise.
12380         * soft-fp/fixunsdfdi.c: Likewise.
12381         * soft-fp/fixunsdfsi.c: Likewise.
12382         * soft-fp/fixunsdfti.c: Likewise.
12383         * soft-fp/fixunssfdi.c: Likewise.
12384         * soft-fp/fixunssfsi.c: Likewise.
12385         * soft-fp/fixunssfti.c: Likewise.
12386         * soft-fp/fixunstfdi.c: Likewise.
12387         * soft-fp/fixunstfsi.c: Likewise.
12388         * soft-fp/fixunstfti.c: Likewise.
12389         * soft-fp/floatdidf.c: Likewise.
12390         * soft-fp/floatdisf.c: Likewise.
12391         * soft-fp/floatditf.c: Likewise.
12392         * soft-fp/floatsidf.c: Likewise.
12393         * soft-fp/floatsisf.c: Likewise.
12394         * soft-fp/floatsitf.c: Likewise.
12395         * soft-fp/floattidf.c: Likewise.
12396         * soft-fp/floattisf.c: Likewise.
12397         * soft-fp/floattitf.c: Likewise.
12398         * soft-fp/floatundidf.c: Likewise.
12399         * soft-fp/floatundisf.c: Likewise.
12400         * soft-fp/floatunditf.c: Likewise.
12401         * soft-fp/floatunsidf.c: Likewise.
12402         * soft-fp/floatunsisf.c: Likewise.
12403         * soft-fp/floatunsitf.c: Likewise.
12404         * soft-fp/floatuntidf.c: Likewise.
12405         * soft-fp/floatuntisf.c: Likewise.
12406         * soft-fp/floatuntitf.c: Likewise.
12407         * soft-fp/fmadf4.c: Likewise.
12408         * soft-fp/fmasf4.c: Likewise.
12409         * soft-fp/fmatf4.c: Likewise.
12410         * soft-fp/gedf2.c: Likewise.
12411         * soft-fp/gesf2.c: Likewise.
12412         * soft-fp/getf2.c: Likewise.
12413         * soft-fp/ledf2.c: Likewise.
12414         * soft-fp/lesf2.c: Likewise.
12415         * soft-fp/letf2.c: Likewise.
12416         * soft-fp/muldf3.c: Likewise.
12417         * soft-fp/mulsf3.c: Likewise.
12418         * soft-fp/multf3.c: Likewise.
12419         * soft-fp/negdf2.c: Likewise.
12420         * soft-fp/negsf2.c: Likewise.
12421         * soft-fp/negtf2.c: Likewise.
12422         * soft-fp/op-1.h: Likewise.
12423         * soft-fp/op-2.h: Likewise.
12424         * soft-fp/op-4.h: Likewise.
12425         * soft-fp/op-8.h: Likewise.
12426         * soft-fp/op-common.h: Likewise.
12427         * soft-fp/quad.h: Likewise.
12428         * soft-fp/single.h: Likewise.
12429         * soft-fp/soft-fp.h: Likewise.
12430         * soft-fp/sqrtdf2.c: Likewise.
12431         * soft-fp/sqrtsf2.c: Likewise.
12432         * soft-fp/sqrttf2.c: Likewise.
12433         * soft-fp/subdf3.c: Likewise.
12434         * soft-fp/subsf3.c: Likewise.
12435         * soft-fp/subtf3.c: Likewise.
12436         * soft-fp/truncdfsf2.c: Likewise.
12437         * soft-fp/trunctfdf2.c: Likewise.
12438         * soft-fp/trunctfsf2.c: Likewise.
12439         * soft-fp/trunctfxf2.c: Likewise.
12440         * soft-fp/unorddf2.c: Likewise.
12441         * soft-fp/unordsf2.c: Likewise.
12442         * soft-fp/unordtf2.c: Likewise.
12443
12444 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12445
12446         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12447         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12448
12449 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12450
12451         * elf/dl-libc.c: Clear initfini list after freeing.
12452
12453 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12454
12455         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12456         * soft-fp/addsf3.c: Likewise.
12457         * soft-fp/addtf3.c: Likewise.
12458         * soft-fp/divdf3.c: Likewise.
12459         * soft-fp/divsf3.c: Likewise.
12460         * soft-fp/divtf3.c: Likewise.
12461         * soft-fp/double.h: Likewise.
12462         * soft-fp/eqdf2.c: Likewise.
12463         * soft-fp/eqsf2.c: Likewise.
12464         * soft-fp/eqtf2.c: Likewise.
12465         * soft-fp/extenddftf2.c: Likewise.
12466         * soft-fp/extended.h: Likewise.
12467         * soft-fp/extendsfdf2.c: Likewise.
12468         * soft-fp/extendsftf2.c: Likewise.
12469         * soft-fp/extendxftf2.c: Likewise.
12470         * soft-fp/fixdfdi.c: Likewise.
12471         * soft-fp/fixdfsi.c: Likewise.
12472         * soft-fp/fixdfti.c: Likewise.
12473         * soft-fp/fixsfdi.c: Likewise.
12474         * soft-fp/fixsfsi.c: Likewise.
12475         * soft-fp/fixsfti.c: Likewise.
12476         * soft-fp/fixtfdi.c: Likewise.
12477         * soft-fp/fixtfsi.c: Likewise.
12478         * soft-fp/fixtfti.c: Likewise.
12479         * soft-fp/fixunsdfdi.c: Likewise.
12480         * soft-fp/fixunsdfsi.c: Likewise.
12481         * soft-fp/fixunsdfti.c: Likewise.
12482         * soft-fp/fixunssfdi.c: Likewise.
12483         * soft-fp/fixunssfsi.c: Likewise.
12484         * soft-fp/fixunssfti.c: Likewise.
12485         * soft-fp/fixunstfdi.c: Likewise.
12486         * soft-fp/fixunstfsi.c: Likewise.
12487         * soft-fp/fixunstfti.c: Likewise.
12488         * soft-fp/floatdidf.c: Likewise.
12489         * soft-fp/floatdisf.c: Likewise.
12490         * soft-fp/floatditf.c: Likewise.
12491         * soft-fp/floatsidf.c: Likewise.
12492         * soft-fp/floatsisf.c: Likewise.
12493         * soft-fp/floatsitf.c: Likewise.
12494         * soft-fp/floattidf.c: Likewise.
12495         * soft-fp/floattisf.c: Likewise.
12496         * soft-fp/floattitf.c: Likewise.
12497         * soft-fp/floatundidf.c: Likewise.
12498         * soft-fp/floatundisf.c: Likewise.
12499         * soft-fp/floatunsidf.c: Likewise.
12500         * soft-fp/floatunsisf.c: Likewise.
12501         * soft-fp/floatuntidf.c: Likewise.
12502         * soft-fp/floatuntisf.c: Likewise.
12503         * soft-fp/floatuntitf.c: Likewise.
12504         * soft-fp/fmadf4.c: Likewise.
12505         * soft-fp/fmasf4.c: Likewise.
12506         * soft-fp/fmatf4.c: Likewise.
12507         * soft-fp/gedf2.c: Likewise.
12508         * soft-fp/gesf2.c: Likewise.
12509         * soft-fp/getf2.c: Likewise.
12510         * soft-fp/ledf2.c: Likewise.
12511         * soft-fp/lesf2.c: Likewise.
12512         * soft-fp/letf2.c: Likewise.
12513         * soft-fp/muldf3.c: Likewise.
12514         * soft-fp/mulsf3.c: Likewise.
12515         * soft-fp/multf3.c: Likewise.
12516         * soft-fp/negdf2.c: Likewise.
12517         * soft-fp/negsf2.c: Likewise.
12518         * soft-fp/negtf2.c: Likewise.
12519         * soft-fp/op-1.h: Likewise.
12520         * soft-fp/op-2.h: Likewise.
12521         * soft-fp/op-4.h: Likewise.
12522         * soft-fp/op-8.h: Likewise.
12523         * soft-fp/op-common.h: Likewise.
12524         * soft-fp/quad.h: Likewise.
12525         * soft-fp/single.h: Likewise.
12526         * soft-fp/soft-fp.h: Likewise.
12527         * soft-fp/sqrtdf2.c: Likewise.
12528         * soft-fp/sqrtsf2.c: Likewise.
12529         * soft-fp/sqrttf2.c: Likewise.
12530         * soft-fp/subdf3.c: Likewise.
12531         * soft-fp/subsf3.c: Likewise.
12532         * soft-fp/subtf3.c: Likewise.
12533         * soft-fp/truncdfsf2.c: Likewise.
12534         * soft-fp/trunctfdf2.c: Likewise.
12535         * soft-fp/trunctfsf2.c: Likewise.
12536         * soft-fp/trunctfxf2.c: Likewise.
12537         * soft-fp/unorddf2.c: Likewise.
12538         * soft-fp/unordsf2.c: Likewise.
12539         * soft-fp/unordtf2.c: Likewise.
12540
12541 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12542
12543         [BZ #15672]
12544         * misc/error.c (error_tail): Fix possible buffer overflow.
12545
12546 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12547
12548         [BZ #13028]
12549         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12550         address.
12551
12552 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12553
12554         [BZ #832]
12555         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12556         testing pipefail option.
12557
12558 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12559
12560         * soft-fp/double.h: Indent preprocessor directives inside #if.
12561         * soft-fp/extended.h: Likewise.
12562         * soft-fp/op-2.h: Likewise.
12563         * soft-fp/op-4.h: Likewise.
12564         * soft-fp/op-common.h: Likewise.
12565         * soft-fp/quad.h: Likewise.
12566         * soft-fp/single.h: Likewise.
12567         * soft-fp/soft-fp.h: Likewise.
12568
12569 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12570
12571         * iconv/iconv_prog.c: Fix typos.
12572         * stdio-common/psiginfo-data.h: Likewise.
12573
12574 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12575
12576         [BZ #15764]
12577         * locale/setlocale.c: Fix typo.
12578
12579 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12580
12581         [BZ #16036]
12582         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12583         signaling NaN arguments.
12584         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12585         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12586
12587         [BZ #14910]
12588         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12589         unordered operands.
12590         * soft-fp/gesf2.c (__gesf2): Likewise.
12591         * soft-fp/getf2.c (__getf2): Likewise.
12592         * soft-fp/ledf2.c (__ledf2): Likewise.
12593         * soft-fp/lesf2.c (__lesf2): Likewise.
12594         * soft-fp/letf2.c (__letf2): Likewise.
12595
12596         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12597         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12598         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12599         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12600         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12601         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12602         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12603         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12604         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12605         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12606         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12607         * soft-fp/fixtfti.c (__fixtfti): Likewise.
12608         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
12609         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
12610         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
12611         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
12612         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
12613         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
12614         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
12615         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
12616         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
12617         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
12618         * soft-fp/floatdisf.c (__floatdisf): Likewise.
12619         * soft-fp/floatsisf.c (__floatsisf): Likewise.
12620         * soft-fp/floattidf.c (__floattidf): Likewise.
12621         * soft-fp/floattisf.c (__floattisf): Likewise.
12622         * soft-fp/floattitf.c (__floattitf): Likewise.
12623         * soft-fp/floatundidf.c (__floatundidf): Likewise.
12624         * soft-fp/floatundisf.c (__floatundisf): Likewise.
12625         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
12626         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
12627         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
12628         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
12629         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
12630         * soft-fp/gesf2.c (__gesf2): Likewise.
12631         * soft-fp/getf2.c (__getf2): Likewise.
12632         * soft-fp/ledf2.c (__ledf2): Likewise.
12633         * soft-fp/lesf2.c (__lesf2): Likewise.
12634         * soft-fp/letf2.c (__letf2): Likewise.
12635
12636         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
12637         Undefine and redefine.
12638         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
12639         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
12640         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
12641         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
12642         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12643         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
12644         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12645         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
12646         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12647         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
12648         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12649         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
12650         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12651         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
12652         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12653
12654         [BZ #16032]
12655         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
12656         without decrementing exponent if mantissa >= that for the
12657         denominator, not >.
12658         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
12659         denominator, not >.  Decrement exponent in < case instead of
12660         incrementing in >= case.
12661         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
12662         without decrementing exponent if mantissa >= that for the
12663         denominator, not >.
12664
12665         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
12666         computing saturated result for unsigned overflow.
12667
12668 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
12669             Jeff Law  <law@redhat.com>
12670
12671         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
12672         (atan2Mp): Add systemtap probe marker.
12673         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
12674         (__ieee754_log): Add systemtap probe marker.
12675         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
12676         (atanMp): Add systemtap probe marker.
12677         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
12678         (tanMp): Add systemtap probe marker.
12679         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
12680         (__slowexp): Add systemtap probe marker.
12681         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
12682         (__slowpow): Add systemtap probe marker.
12683         * manual/probes.texi: Document probes.
12684
12685 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
12686
12687         [BZ #15362]
12688         * libio/fileops.c (_IO_new_file_write): Return count of bytes
12689         written.
12690         (_IO_new_file_xsputn): Don't return EOF if nothing has been
12691         written.
12692         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
12693         written to buffer but not flushed.
12694         * libio/iofwrite_u.c:  Likewise.
12695         * libio/iopadn.c:  Return bytes returned even if EOF was
12696         encountered.
12697         * libio/iowpadn.c:  Likewise.
12698         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
12699         if _IO_padn does not write the whole buffer.
12700         [!COMPILE_WPRINTF] (PAD): Likewise.
12701
12702 2013-10-10  David S. Miller  <davem@davemloft.net>
12703
12704         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
12705         directory block.
12706
12707 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12708
12709         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
12710         instead of FSF address.
12711         * soft-fp/fixdfti.c: Likewise.
12712         * soft-fp/fixsfti.c: Likewise.
12713         * soft-fp/fixtfti.c: Likewise.
12714         * soft-fp/fixunsdfti.c: Likewise.
12715         * soft-fp/fixunssfti.c: Likewise.
12716         * soft-fp/fixunstfti.c: Likewise.
12717         * soft-fp/floattidf.c: Likewise.
12718         * soft-fp/floattisf.c: Likewise.
12719         * soft-fp/floattitf.c: Likewise.
12720         * soft-fp/floatuntidf.c: Likewise.
12721         * soft-fp/floatuntisf.c: Likewise.
12722         * soft-fp/floatuntitf.c: Likewise.
12723         * soft-fp/trunctfxf2.c: Likewise.
12724
12725         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
12726         * soft-fp/fixdfti.c: Likewise.
12727         * soft-fp/fixsfti.c: Likewise.
12728         * soft-fp/fixtfti.c: Likewise.
12729         * soft-fp/fixunsdfti.c: Likewise.
12730         * soft-fp/fixunssfti.c: Likewise.
12731         * soft-fp/fixunstfti.c: Likewise.
12732         * soft-fp/floattidf.c: Likewise.
12733         * soft-fp/floattisf.c: Likewise.
12734         * soft-fp/floattitf.c: Likewise.
12735         * soft-fp/floatuntidf.c: Likewise.
12736         * soft-fp/floatuntisf.c: Likewise.
12737         * soft-fp/floatuntitf.c: Likewise.
12738         * soft-fp/trunctfxf2.c: Likewise.
12739
12740 2013-10-10  David S. Miller  <davem@davemloft.net>
12741
12742         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12743
12744 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
12745
12746         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12747         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
12748         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
12749         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
12750         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
12751         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
12752         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
12753
12754         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
12755         for NaNs before doing comparisons on argument.
12756         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
12757         Likewise.
12758
12759 2013-10-10  Will Newton  <will.newton@linaro.org>
12760
12761         * malloc/hooks.c (memalign_check): Ensure the value of bytes
12762         passed to _int_memalign does not overflow.
12763
12764 2013-10-10  Torvald Riegel  <triegel@redhat.com>
12765
12766         * scripts/bench.pl: Add include-sources directive.
12767         * benchtests/README: Update documentation.
12768
12769 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12770
12771         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
12772         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
12773         instead of FP_INIT_ROUNDMODE.
12774         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
12775         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
12776
12777         [BZ #16034]
12778         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
12779         copy class of input value.
12780         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
12781         not handle exceptions.
12782         * soft-fp/negsf2.c (__negsf2): Likewise.
12783         * soft-fp/negtf2.c (__negtf2): Likewise.
12784         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
12785
12786 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
12787
12788         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
12789         semicolon.  From Linux kernel.
12790
12791 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
12792
12793         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
12794
12795 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
12796
12797         [BZ #156]
12798         * manual/socket.texi: Added statement about buffer
12799         for gethostbyname2_r.
12800
12801 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
12802
12803         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
12804         Use .p2align directive instead, throughout.
12805         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
12806         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
12807         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
12808         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12809         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12810         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
12811         * sysdeps/x86_64/strchr.S: Likewise.
12812         * sysdeps/x86_64/strrchr.S: Likewise.
12813
12814 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12815
12816         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
12817
12818         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
12819
12820         * sysdeps/generic/math_private.h (__mpsin1): Remove
12821         declaration.
12822         (__mpcos1): Likewise.
12823         (__mpsin): New argument __range_reduce.
12824         (__mpcos): Likewise.
12825         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12826         (slow): Use __mpsin and __mpcos.
12827         (slow1): Likewise.
12828         (slow2): Likewise.
12829         (sloww): Likewise.
12830         (sloww1): Likewise.
12831         (sloww2): Likewise.
12832         (bsloww): Likewise.
12833         (bsloww1): Likewise.
12834         (bsloww2): Likewise.
12835         (cslow2): Likewise.
12836         (csloww): Likewise.
12837         (csloww1): Likewise.
12838         (csloww2): Likewise.
12839         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
12840         range_reduce.  Merge in __mpsin1.
12841         (__mpcos): Likewise.
12842         (__mpsin1): Remove.
12843         (__mpcos1): Likewise.
12844
12845 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
12846
12847         * locale/loadlocale.c (_nl_intern_locale_data): Use
12848         LOCFILE_ALIGNED_P.
12849         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
12850         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
12851         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
12852         obstack data is appropriately aligned.
12853         (obstack_int32_grow_fast): Likewise.
12854         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
12855         * locale/programs/locfile.c (add_locale_uint32): Likewise.
12856         (add_locale_uint32_array): Likewise.
12857
12858 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12859
12860         * benchtests/Makefile: Remove ARGLIST and RET variables.
12861         ($(objpfx)bench-%.c): Pass only function name to the script.
12862         * benchtests/README: Update documentation.
12863         * benchtests/acos-inputs: Add new directives.
12864         * benchtests/acosh-inputs: Likewise.
12865         * benchtests/asin-inputs: Likewise.
12866         * benchtests/asinh-inputs: Likewise.
12867         * benchtests/atan-inputs: Likewise.
12868         * benchtests/atanh-inputs: Likewise.
12869         * benchtests/cos-inputs: Likewise.
12870         * benchtests/cosh-inputs: Likewise.
12871         * benchtests/exp-inputs: Likewise.
12872         * benchtests/log-inputs: Likewise.
12873         * benchtests/pow-inputs: Likewise.
12874         * benchtests/rint-inputs: Likewise.
12875         * benchtests/sin-inputs: Likewise.
12876         * benchtests/sinh-inputs: Likewise.
12877         * benchtests/tan-inputs: Likewise.
12878         * benchtests/tanh-inputs: Likewise.
12879         * scripts/bench.pl: Add support for new directives.
12880
12881 2013-10-07  Alan Modra  <amodra@gmail.com>
12882
12883         * README: Fix careless merge.
12884
12885 2013-10-05  Alan Modra  <amodra@gmail.com>
12886
12887         * NEWS: Mention powerpc64le support and bugs fixed.
12888         * README: Both big-endian and little-endian powerpc64 supported.
12889
12890 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12891
12892         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
12893         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
12894         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
12895         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
12896
12897 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
12898
12899         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
12900         match prototype.
12901
12902 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
12903
12904         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
12905         Move -mhard-float appending from
12906         ports/sysdeps/powerpc/powerpc32/Makefile.
12907         [$(with-fp) = yes] (ASFLAGS): Likewise.
12908         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
12909         * sysdeps/powerpc/nofpu: Move directory from
12910         ports/sysdeps/powerpc/nofpu.
12911         * sysdeps/powerpc/soft-fp: Move directory from
12912         ports/sysdeps/powerpc/soft-fp.
12913         * sysdeps/powerpc/powerpc32/405: Move directory from
12914         ports/sysdeps/powerpc/powerpc32/405.
12915         * sysdeps/powerpc/powerpc32/440: Move directory from
12916         ports/sysdeps/powerpc/powerpc32/440.
12917         * sysdeps/powerpc/powerpc32/464: Move directory from
12918         ports/sysdeps/powerpc/powerpc32/464.
12919         * sysdeps/powerpc/powerpc32/476: Move directory from
12920         ports/sysdeps/powerpc/powerpc32/476.
12921         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
12922         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
12923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
12924         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
12925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
12926         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
12927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
12928         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
12929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
12930         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
12931         * README: Update for powerpc-*-linux-gnu software floating point
12932         support in libc.
12933
12934         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
12935         case to powerpc/powerpc32*.
12936         * sysdeps/unix/sysv/linux/configure: Regenerated.
12937
12938         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
12939         (_FPU_MASK_OM): Define as 0x04.
12940         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
12941         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
12942         0x00c10080.
12943         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
12944         0x0000003c.
12945         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
12946
12947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
12948         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12949         getcontext_e500.
12950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
12951         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12952         setcontext_e500.
12953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
12954         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
12955         and setcontext_e500.
12956
12957 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
12958
12959         * locale/iso-3166.def: Update iso-1366.def and related occurrences
12960
12961 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12962
12963         * manual/threads.texi (Default Thread Attributes): Fix typo.
12964
12965 2013-10-04  Will Newton  <will.newton@linaro.org>
12966
12967         * malloc/Makefile: Add tst-memalign.
12968         * malloc/tst-memalign.c: New file.
12969
12970         * malloc/tst-posix_memalign.c: Add comments.
12971         (do_test): Add comments and call free on all potentially
12972         allocated pointers. Add space after cast.
12973
12974         * malloc/tst-pvalloc.c: Add comments.
12975         (do_test): Add comments and call free on all potentially
12976         allocated pointers. Remove duplicate check for NULL pointer.
12977         Add space after cast.
12978
12979         * malloc/tst-valloc.c: Add comments.
12980         (do_test): Add comments and call free on all potentially
12981         allocated pointers. Remove duplicate check for NULL pointer.
12982         Add space after cast.
12983
12984 2013-10-04  Alan Modra  <amodra@gmail.com>
12985
12986         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12987         Use stdint types in rather than __attribute__((mode())).
12988         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12989
12990 2013-10-04  Alan Modra  <amodra@gmail.com>
12991
12992         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12993         Correct handling of unaligned relocs for little-endian.
12994         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12995
12996 2013-10-04  Alan Modra  <amodra@gmail.com>
12997
12998         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
12999         * configure: Regenerate.
13000         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13001         * shlib-versions: Likewise.
13002
13003 2013-10-04  Alan Modra  <amodra@gmail.com>
13004
13005         * string/tester.c (test_memrchr): Increment reported test cycle.
13006
13007 2013-10-04  Alan Modra  <amodra@gmail.com>
13008
13009         * string/test-memcpy.c (do_one_test): When reporting errors, print
13010         string address and don't overrun end of string.
13011
13012 2013-10-04  Alan Modra  <amodra@gmail.com>
13013
13014         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13015         insrdi.  Make better use of reg selection to speed exit slightly.
13016         Schedule entry path a little better.  Remove useless "are we done"
13017         checks on entry to main loop.  Handle wrapping around zero address.
13018         Correct main loop count.  Handle single left-over word from main
13019         loop inline rather than by using loop_small.  Remove extra word
13020         case in loop_small caused by wrong loop count.  Add little-endian
13021         support.
13022         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13023         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13024         cache hint.
13025         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13026         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13027         support.  Avoid rlwimi.
13028         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13029
13030 2013-10-04  Alan Modra  <amodra@gmail.com>
13031
13032         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13033         insrdi.  Formatting.
13034         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13035         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13036         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13037         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13038         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13039         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13040
13041 2013-10-04  Alan Modra  <amodra@gmail.com>
13042
13043         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13044         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13045         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13046         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13047         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13048         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13049         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13050         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13051         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13052         use of regs.  Use power7 mtocrf.  Tidy function tails.
13053
13054 2013-10-04  Alan Modra  <amodra@gmail.com>
13055
13056         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13057         Formatting.  Consistently use rXXX register defines or rN defines.
13058         Use early exit labels that avoid restoring unused non-volatile regs.
13059         Make cr field use more consistent with rWORDn compares.  Rename
13060         regs used as shift registers for unaligned loop, using rN defines
13061         for short lifetime/multiple use regs.
13062         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13063         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13064         addi 1,1,64 to pop stack frame.  Simplify return value code.
13065         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13066
13067 2013-10-04  Alan Modra  <amodra@gmail.com>
13068
13069         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13070         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13071         rather than rlwimi.
13072         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13073         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13074         little-endian support.  Correct typos.
13075         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13076         rather than rlwimi.
13077         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13078         in loop and entry code to keep "and." results.
13079         (strchr): Add little-endian support.  Comment.  Move cntlzd
13080         earlier in tail.
13081         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13082
13083 2013-10-04  Alan Modra  <amodra@gmail.com>
13084
13085         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13086         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13087         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13088         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13089
13090 2013-10-04  Alan Modra  <amodra@gmail.com>
13091
13092         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13093         (rTMP): Define as r11.
13094         (strcmp): Add little-endian support.  Optimise tail.
13095         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13096         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13097         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13098         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13099         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13100         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13101         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13102
13103 2013-10-04  Alan Modra  <amodra@gmail.com>
13104
13105         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13106         little-endian support.  Remove unnecessary "are we done" tests.
13107         Handle "s" wrapping around zero and extremely large "size".
13108         Correct main loop count.  Handle single left-over word from main
13109         loop inline rather than by using small_loop.  Correct comments.
13110         Delete "zero" tail, use "end_max" instead.
13111         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13112
13113 2013-10-04  Alan Modra  <amodra@gmail.com>
13114
13115         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13116         support.  Don't branch over align.
13117         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13118         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13119         support.  Rearrange tmp reg use to suit.  Comment.
13120         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13121
13122 2013-10-04  Alan Modra  <amodra@gmail.com>
13123
13124         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13125
13126 2013-10-04  Alan Modra  <amodra@gmail.com>
13127
13128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13129         conditional form of branch and link when obtaining pc.
13130         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13131
13132 2013-10-04  Alan Modra  <amodra@gmail.com>
13133
13134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13135         HIWORD/LOWORD.
13136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13138
13139 2013-10-04  Alan Modra  <amodra@gmail.com>
13140
13141         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13142         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13143         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13144         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13145         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13146         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13147         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13148         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13149         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13150         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13151
13152 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13153             Alistair Popple <alistair@ozlabs.au.ibm.com>
13154             Alan Modra <amodra@gmail.com>
13155
13156         [BZ #15723]
13157         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13158         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13159         _dl_hwcap access for little-endian.
13160         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13161         destroy vmx regs when saving unaligned.
13162         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13163         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13164         destroy vmx regs when saving unaligned.
13165
13166 2013-10-04  Alan Modra  <amodra@gmail.com>
13167
13168         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13169         Don't use a union to pack hi/low value.
13170
13171 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13172
13173         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13174         for little-endian.
13175         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13176         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13177         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13178         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13179         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13180
13181 2013-10-04  Alan Modra  <amodra@gmail.com>
13182
13183         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13184         constants to usual value for .cst8 section, and remove redundant
13185         high address load.
13186         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13187         constant for 0x1p52.  Load little-endian words of double from
13188         correct stack offsets.
13189
13190 2013-10-04  Alan Modra  <amodra@gmail.com>
13191
13192         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13193         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13194         words of double from correct stack offsets.
13195         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13196         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13197         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13198         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13199         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13200         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13201         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13202         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13203         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13204         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13205         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13206         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13207         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13208         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13209         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13210         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13211         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13212
13213 2013-10-04  Alan Modra  <amodra@gmail.com>
13214
13215         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13216         64-bit int/double union.
13217         (_FPU_SETCW): Likewise.
13218         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13219         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13220
13221 2013-10-04  Alan Modra  <amodra@gmail.com>
13222
13223         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13224         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13225
13226 2013-10-04  Alan Modra  <amodra@gmail.com>
13227
13228         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13229         use vector int constants.
13230         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13231
13232 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13233
13234         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13235         array with long long.
13236         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13237         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13238         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13239         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13240         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13241         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13242         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13243         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13244         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13245         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13246         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13247         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13248         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13249
13250 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13251
13252         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13253         (__signbit): Likewise.  Correct for little-endian.
13254         (__signbitl): Call __signbit.
13255         (lrint): Correct for little-endian.
13256         (lrintf): Call lrint.
13257
13258 2013-10-04  Alan Modra  <amodra@gmail.com>
13259
13260         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13261         union 32-bit int array member with 64-bit int array.
13262         (t515, tm256): Double rather than long double.
13263         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13264
13265 2013-10-04  Alan Modra  <amodra@gmail.com>
13266
13267         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13268         Delete.
13269         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13270         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13271         version of math_ldbl.h.
13272
13273 2013-10-04  Alan Modra  <amodra@gmail.com>
13274
13275         [BZ #15734], [BZ #15735]
13276         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13277         all uses of ieee875 long double macros and unions.  Simplify test
13278         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13279         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13280         normalize after ldbl_extract_mantissa, and don't add hidden bit
13281         already handled.  Don't treat low word of ieee854 mantissa like
13282         low word of IBM long double and mask off bit when testing for
13283         zero.
13284         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13285         all uses of ieee875 long double macros and unions.  Simplify tests
13286         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13287         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13288         two1022, instead use their values.  Recognise that tests for large
13289         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13290         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13291         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13292         test for 0.0L and nan.  Correct negation.
13293         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13294         ieee875 long double macros and unions.  Correct output for large
13295         magnitude x.  Correct absolute value calculation.
13296         (__erfcl): Likewise.
13297         * math/libm-test.inc: Add tests for errors discovered in IBM long
13298         double versions of fmodl, remainderl, erfl and erfcl.
13299
13300 2013-10-04  Alan Modra  <amodra@gmail.com>
13301
13302         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13303         all uses of ieee854 long double macros and unions.  Simplify tests
13304         for long doubles that are fully specified by the high double.
13305         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13306         Likewise.
13307         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13308         Remove dead code too.
13309         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13310         (__ieee754_ynl): Likewise.
13311         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13312         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13313         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13314         Remove dead code too.
13315         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13316         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13317         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13318         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13319         Simplify.
13320         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13321         Simplify.
13322         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13323         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13324         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13325         Comment on variable precision.
13326         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13327         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13328         Likewise.
13329         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13330         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13331         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13332         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13333         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13334
13335 2013-10-04  Alan Modra  <amodra@gmail.com>
13336
13337         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13338         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13339         all uses of ieee854 long double macros and unions.
13340         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13341         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13342         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13343         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13344         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13345         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13346         Likewise.
13347         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13348         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13349         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13350         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13351         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13352         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13353         Simplify sign and nan test too.
13354         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13355         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13356         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13357         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13358         Likewise.
13359         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13360         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13361         Likewise.
13362         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13363         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13364         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13365         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13366         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13367         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13368
13369 2013-10-04  Alan Modra  <amodra@gmail.com>
13370
13371         * stdio-common/printf_size.c (__printf_size): Don't use
13372         union ieee854_long_double in fpnum union.
13373         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13374         signbit macro to retrieve sign from long double.
13375         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13376         retrieve sign from long double.
13377         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13378         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13379         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13380         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13381         * math/test-misc.c (main): Don't use union ieee854_long_double.
13382
13383 2013-10-04  Alan Modra  <amodra@gmail.com>
13384
13385         [BZ #15680]
13386         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13387         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13388         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13389         calculation.  Remove unnecessary test for denormal exponent.
13390         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13391         Correct handling of denormals.  Avoid undefined shift behaviour.
13392         Correct normalisation of low mantissa when low double is denormal.
13393         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13394         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13395         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13396         Correct normalisation of low mantissa.  Test for overflow of high
13397         mantissa and normalise.
13398         (ldbl_nearbyint): Use more readable constant for two52.
13399         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13400         (__mpn_construct_long_double): Fix test for overflow of high
13401         mantissa and correct normalisation.  Avoid undefined shift.
13402
13403 2013-10-04  Alan Modra  <amodra@gmail.com>
13404
13405         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13406         (union ibm_extended_long_double): Define as an array of ieee754_double.
13407         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13408         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13409         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13410         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13411         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13412         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13413         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13414         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13415         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13416         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13417         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13418
13419 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13420
13421         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13422         page size instead of calling getpagesize.
13423
13424         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13425         (LOCFILE_ALIGN_MASK): Likewise.
13426         (LOCFILE_ALIGN_UP): Likewise.
13427         (LOCFILE_ALIGNED_P): Likewise.
13428         * locale/programs/ld-collate.c (collate_output): Use the new
13429         macros instead of __alignof__ (int32_t).
13430         * locale/weight.h (findidx): Likewise.
13431
13432 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13433
13434         [BZ #431]
13435         * manual/string.texi: Fix strncat and wcsncat.
13436
13437 2013-10-03  Brooks Moses  <bmoses@google.com>
13438
13439         [BZ #15915]
13440         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13441         * Makerules: ...here, and adjust associated comments.
13442
13443 2013-10-02  Will Newton  <will.newton@linaro.org>
13444
13445         * malloc/Makefile: Add tst-pvalloc.
13446         * malloc/tst-pvalloc.c: New file.
13447
13448 2013-10-02  Will Newton  <will.newton@linaro.org>
13449
13450         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13451         improve test coverage.
13452
13453 2013-10-02  Will Newton  <will.newton@linaro.org>
13454
13455         * malloc/Makefile: Add tst-posix_memalign.
13456         * malloc/tst-posix_memalign.c: New file.
13457
13458 2013-10-01  Eric Blake  <eblake@redhat.com>
13459
13460         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13461         Use __THROWNL rather than __THROW on static functions.
13462
13463 2013-09-30  Petr Machata  <pmachata@redhat.com>
13464
13465         * elf/elf.h (R_AARCH64_ABS16): New macro.
13466         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13467         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13468         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13469         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13470         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13471         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13472         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13473         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13474         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13475         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13476         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13477         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13478         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13479         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13480         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13481         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13482         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13483         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13484         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13485         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13486         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13487         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13488         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13489         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13490         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13491         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13492         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13493         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13494         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13495         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13496         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13497         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13498         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13499         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13500         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13501         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13502         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13503         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13504         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13505         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13506         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13507         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13508         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13509         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13510         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13511         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13512         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13513         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13514         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13515         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13516         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13517         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13518         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13519         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13520         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13521         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13522         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13523         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13524         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13525         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13526         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13527         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13528         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13529         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13530         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13531         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13532         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13533         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13534         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13535         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13536         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13537         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13538         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13539         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13540         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13541         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13542         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13543         (R_AARCH64_TLSDESC_LDR): Likewise.
13544         (R_AARCH64_TLSDESC_ADD): Likewise.
13545         (R_AARCH64_TLSDESC_CALL): Likewise.
13546
13547 2013-09-30  Andreas Schwab  <schwab@suse.de>
13548
13549         [BZ #15048]
13550         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13551         the nss database lookup.
13552         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13553         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13554
13555 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13556
13557         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13558
13559 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13560
13561         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13562         ${Bash-specific parameter/pattern/string} parameter expansion.
13563         * sysdeps/unix/make-syscalls.sh: Likewise.
13564
13565 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13566
13567         * sysdeps/sh/stackguard-macros.h: New file.
13568
13569 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13570
13571         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13572         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13573         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13574         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13575         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13576         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13577
13578 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13579
13580         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13581         Fix thread ID register.
13582
13583 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13584
13585         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13586         [POSIX || UNIX98]: Require rather than permitting all symbols from
13587         <time.h>.
13588         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13589         element of struct sched_param.
13590         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13591         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13592         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13593         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13594         constant.
13595
13596 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13597
13598         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13599         argument calculation.
13600
13601 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13602
13603         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13604         Expect macro.
13605         [POSIX] (pthread_attr_t): Do not require type.
13606         [POSIX] (pthread_cond_t): Likewise.
13607         [POSIX] (pthread_condattr_t): Likewise.
13608         [POSIX] (pthread_key_t): Likewise.
13609         [POSIX] (pthread_mutex_t): Likewise.
13610         [POSIX] (pthread_mutexattr_t): Likewise.
13611         [POSIX] (pthread_once_t): Likewise.
13612         [POSIX] (pthread_t): Likewise.
13613         [POSIX-based standards] (pthread_atfork): Expect function.
13614
13615 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13616             Richard Sandiford  <richard@codesourcery.com>
13617
13618         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
13619         (swap_endianness_p): New extern variable.
13620         (set_big_endian): New inline function.
13621         (maybe_swap_uint32): Likewise.
13622         (maybe_swap_uint32_array): Likewise.
13623         (maybe_swap_uint32_obstack): Likewise.
13624         * locale/programs/locfile.c: Include <stdbool.h>.
13625         (swap_endianness_p): New variable.
13626         (add_locale_uint32): Call maybe_swap_uint32.
13627         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
13628         (write_locale_data): Call maybe_swap_uint32_array.
13629         * locale/programs/ld-collate.c (obstack_int32_grow): Call
13630         maybe_swap_uint32.
13631         (obstack_int32_grow_fast): Likewise.
13632         (output_weightwc): Call maybe_swap_uint32_obstack.
13633         (collate_output): Likewise.
13634         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
13635         (OPT_LITTLE_ENDIAN): Likewise.
13636         (options): Add --little-endian and --big-endian options.
13637         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
13638         * locale/programs/locarchive.c: Include "locfile.h".
13639         (GET): New macro.
13640         (SET): Likewise.
13641         (INC): Likewise.
13642         (create_archive): Use the new macros to access fields of
13643         structures directly mapped from or written to locale archives.
13644         (oldlocrecentcmp): Likewise.
13645         (enlarge_archive): Likewise.
13646         (insert_name): Likewise.
13647         (add_alias): Likewise.
13648         (add_locale): Likewise.
13649         (delete_locales_from_archive): Likewise.
13650         (show_archive_content): Likewise.
13651         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
13652         locale data.
13653
13654 2013-09-24  Roland McGrath  <roland@hack.frob.com>
13655
13656         * manual/freemanuals.texi: Updated from (newly) canonical copy at
13657         http://www.gnu.org/doc/freemanuals.texi.
13658         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
13659
13660 2013-09-24  Will Newton  <will.newton@linaro.org>
13661
13662         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
13663         macro.
13664
13665 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
13666
13667         * locale/hashval.h (compute_hashval): Interpret bytes of key as
13668         unsigned char.
13669
13670 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
13671
13672         * manual/threads.texi (POSIX Threads): Fix a typo.
13673
13674 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
13675
13676         [BZ #14547]
13677         * string/tst-strcoll-overflow.c: New test case.
13678         * string/Makefile (xtests): Add tst-strcoll-overflow.
13679         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
13680         cache if string sizes may cause integer overflow.
13681
13682         [BZ #14547]
13683         * string/strcoll_l.c (coll_seq): New members rule, idx,
13684         save_idx and back_us.
13685         (get_next_seq_nocache): New function.
13686         (do_compare_nocache): New function.
13687         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
13688         when malloc fails.
13689
13690 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
13691
13692         [BZ #15754]
13693         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
13694         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
13695         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
13696
13697         [BZ #15754]
13698         * elf/Makefile (tests): Add tst-ptrguard1.
13699         (tests-static): Add tst-ptrguard1-static.
13700         (tst-ptrguard1-ARGS): Define.
13701         (tst-ptrguard1-static-ARGS): Define.
13702         * elf/tst-ptrguard1.c: New file.
13703         * elf/tst-ptrguard1-static.c: New file.
13704         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
13705         * sysdeps/i386/stackguard-macros.h: Likewise.
13706         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13707         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13708         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13709         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13710         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13711         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13712
13713 2013-09-23  Hector Marco  <hecmargi@upv.es>
13714             Ismael Ripoll  <iripoll@disca.upv.es>
13715             Carlos O'Donell  <carlos@redhat.com>
13716
13717         [BZ #15754]
13718         * sysdeps/generic/stackguard-macros.h: Define
13719         __pointer_chk_guard_local and POINTER_CHK_GUARD.
13720         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
13721         Define __pointer_chk_guard_local.
13722         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
13723         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
13724
13725 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
13726
13727         [BZ #15859]
13728         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
13729
13730 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
13731
13732         * include/string.h (__ffs): Declare as hidden.
13733         * string/ffs.c (__ffs): Define as hidden.
13734         * sysdeps/i386/ffs.c (__ffs): Likewise.
13735         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
13736         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
13737         * sysdeps/s390/ffs.c (__ffs): Likewise.
13738         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
13739
13740 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
13741
13742         * NEWS: Mention malloc probes.
13743
13744         * malloc/arena.c (new_heap): New memory_heap_new probe.
13745         (grow_heap): New memory_heap_more probe.
13746         (shrink_heap): New memory_heap_less probe.
13747         (heap_trim): New memory_heap_free probe.
13748         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
13749         (systrim): New memory_sbrk_less probe.
13750         * manual/probes.texi: Document them.
13751
13752         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
13753         * manual/probes.texi: Document it.
13754
13755         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
13756         (__libc_realloc): Add memory_realloc_retry probe.
13757         (__libc_memalign): Add memory_memalign_retry probe.
13758         (__libc_valloc): Add memory_valloc_retry probe.
13759         (__libc_pvalloc): Add memory_pvalloc_retry probe.
13760         (__libc_calloc): Add memory_calloc_retry probe.
13761         * manual/probes.texi: Document them.
13762
13763         * malloc/arena.c (get_free_list): Add probe
13764         memory_arena_reuse_free_list.
13765         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
13766         and memory_arena_reuse.
13767         (arena_get2) [!PER_THREAD]: Likewise.
13768         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
13769         memory_arena_reuse_realloc.
13770         * manual/probes.texi: Document them.
13771
13772         * malloc/malloc.c (__libc_free): Add
13773         memory_mallopt_free_dyn_thresholds probe.
13774         (__libc_mallopt): Add multiple memory_mallopt probes.
13775         * manual/probes.texi: Document them.
13776
13777         * malloc/malloc.c: Include stap-probe.h.
13778         (__libc_mallopt): Add memory_mallopt probe.
13779         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
13780         * manual/probes.texi: New.
13781         * manual/Makefile (chapters): Add probes.
13782         * manual/threads.texi: Set next node.
13783
13784 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
13785
13786         [BZ #15963, #13985]
13787         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
13788         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
13789         Add `Chinese' to `nan' entry name.
13790
13791 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13792
13793         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
13794         (POLYNOMIAL): Likewise.
13795         (TAYLOR_SINCOS): Likewise.
13796         (TAYLOR_SLOW): Likewise.
13797         (__sin): Use TAYLOR_SINCOS.
13798         (__cos): Likewise.
13799         (slow): Use TAYLOR_SLOW.
13800         (sloww): Likewise.
13801         (bsloww): Likewise.
13802         (csloww): Likewise.
13803
13804 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13805
13806         * stdlib/strtod_l.c: Fix buffer overrun.
13807
13808 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13809
13810         * benchtests/Makefile (bench): Add sincos.
13811         * benchtests/bench-sincos.c: New file.
13812
13813         * math/libm-test.inc (cos_test_data): New test inputs.
13814         (sin_test_data): Likewise.
13815
13816         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
13817         macro.
13818         (__sin): Use it.
13819         (__cos): Likewise.
13820         (slow1): Likewise.
13821         (slow2): Likewise.
13822         (sloww1): Likewise.
13823         (sloww2): Likewise.
13824         (bsloww1): Likewise.
13825         (bsloww2): Likewise.
13826         (cslow2): Likewise.
13827         (csloww1): Likewise.
13828         (csloww2): Likewise.
13829
13830         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
13831         function.
13832         (__sin): Use it.
13833         (__cos): Likewise.
13834
13835         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
13836         gotos.
13837         (__cos): Likewise.
13838
13839 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
13840
13841         * config.h.in (HAVE_MIPS_NAN2008): New macro.
13842         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
13843         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
13844         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
13845         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
13846         * elf/cache.c (print_entry): Handle the new cache flags.
13847
13848 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13849             Aldy Hernandez  <aldyh@redhat.com>
13850
13851         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
13852         Change condition to [_SOFT_FLOAT].
13853         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
13854         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
13855         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
13856         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
13857         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
13858         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
13859         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
13860         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
13861         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
13862         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
13863         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
13864         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
13865         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
13866         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
13867         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
13868         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
13869         declaration.
13870
13871 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13872
13873         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
13874         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13875         (__longjmp): Use LOAD_GP to load saved GPRs.
13876         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
13877         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13878         (__sigsetjmp): Use SAVE_GP to save GPRs.
13879
13880         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
13881         Do not append -msoft-float.
13882         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
13883
13884 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13885
13886         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
13887
13888 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
13889
13890         [BZ #15966]
13891         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
13892         (_FPU_GETCW): Use initial "__" on variable and field names but not
13893         on macro parameter name.
13894         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
13895         parentheses around reference to macro parameter.
13896
13897 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
13898
13899         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
13900         prototype.
13901         (ctype_startup): Use uint32_t in cast and sizeof for
13902         ctype->charnames.
13903
13904 2013-09-11  Jia Liu  <proljc@gmail.com>
13905
13906         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
13907         __daddr_t_defined.
13908         [__FreeBSD__]: Likewise.
13909
13910 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
13911
13912         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13913         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
13914         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
13915         (strchr): Remove __strchr_sse42 ifunc selection.
13916         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
13917         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
13918
13919 2013-09-11  Will Newton  <will.newton@linaro.org>
13920
13921         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
13922         parameter to RES. Remove hardcoded 1000 value.
13923         * benchtests/bench-skeleton.c (main): Pass RES parameter
13924         to TIMING_INIT and multiply result by 1000.
13925
13926 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13927
13928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13929
13930 2013-09-11  Andreas Schwab  <schwab@suse.de>
13931
13932         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
13933         if not defined.
13934         (O_TMPFILE) [__USE_GNU]: Define.
13935         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
13936         Define.
13937
13938 2013-09-11  Will Newton  <will.newton@linaro.org>
13939
13940         [BZ #15857]
13941         * malloc/malloc.c (__libc_memalign): Check the value of bytes
13942         does not overflow.
13943
13944 2013-09-11  Will Newton  <will.newton@linaro.org>
13945
13946         [BZ #15856]
13947         * malloc/malloc.c (__libc_valloc): Check the value of bytes
13948         does not overflow.
13949
13950 2013-09-11  Will Newton  <will.newton@linaro.org>
13951
13952         [BZ #15855]
13953         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
13954         does not overflow.
13955
13956 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
13957
13958         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
13959         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13960         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13961         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13962         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13963
13964 2013-09-10  Allan McRae  <allan@archlinux.org>
13965
13966         [BZ #15748]
13967         * manual/arith.texi (Parsing of Floats): Clarify
13968         cross-reference.
13969
13970         [BZ #15849]
13971         * manual/install.texi (Running make install): Mention
13972         --enable-pt-chown.
13973         * INSTALL: Regenerated.
13974
13975 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
13976
13977         * csu/init-first.c (_init): Remove the !SHARED condition around
13978         FPU control word initialization.
13979         * elf/dl-support.c (_dl_fpu_control): New variable.
13980         (_dl_aux_init) <AT_FPUCW>: Initialize it.
13981         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
13982         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
13983         * math/test-fpucw-static.c: New file.
13984         * math/test-fpucw-ieee.c: New file.
13985         * math/test-fpucw-ieee-static.c: New file.
13986         * math/Makefile (tests): Add `test-fpucw-ieee' and
13987         `$(tests-static)'.
13988         (tests-static): New variable.
13989         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
13990         dependency to...
13991         [($(build-shared),yes)]
13992         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
13993         ... this.
13994         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
13995         New dependency.
13996
13997 2013-09-09  Allan McRae  <allan@archlinux.org>
13998
13999         [BZ #15939]
14000         * manual/string.texi (Collation Functions): Fix typo in
14001         strcoll example.
14002         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14003
14004         [BZ #15893]
14005         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14006
14007         [BZ #15892]
14008         * libio/memstream.c (open_memstream): Fix memory leak.
14009         * libio/wmemstream.c (open_wmemstream): Likewise.
14010
14011         [BZ #15895]
14012         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14013
14014 2013-09-09  Will Newton  <will.newton@linaro.org>
14015
14016         * malloc/Makefile: Add tst-realloc to tests.
14017         * malloc/tst-realloc.c: New file.
14018
14019 2013-09-09  Allan McRae  <allan@archlinux.org>
14020
14021         [BZ #15844]
14022         * COPYING: Update from GNU website to fix FSF address.
14023         * COPYING.LIB: Likewise.
14024
14025 2013-09-06  David S. Miller  <davem@davemloft.net>
14026
14027         * po/zh_TW.po: Update Chinese (traditional) translation from
14028         translation project.
14029
14030 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14031             Joseph Myers  <joseph@codesourcery.com>
14032
14033         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14034         "localeinfo.h".
14035         (obstack_chunk_alloc): New macro.
14036         (obstack_chunk_free): Likewise.
14037         (record_offset): New function.
14038         (init_locale_data): Likewise.
14039         (align_locale_data): Likewise.
14040         (add_locale_empty): Likewise.
14041         (add_locale_raw_data): Likewise.
14042         (add_locale_raw_obstack): Likewise.
14043         (add_locale_string): Likewise.
14044         (add_locale_wstring): Likewise.
14045         (add_locale_uint32): Likewise.
14046         (add_locale_uint32_array): Likewise.
14047         (add_locale_char): Likewise.
14048         (start_locale_structure): Likewise.
14049         (end_locale_structure): Likewise.
14050         (start_locale_prelude): Likewise.
14051         (end_locale_prelude): Likewise.
14052         (write_locale_data): Take locale_file structure rather than an
14053         iovec.
14054         * locale/programs/locfile.h: Include "obstack.h".
14055         (struct locale_file): Change to store locale file contents instead
14056         of header.
14057         (init_locale_data): New prototype.
14058         (align_locale_data): Likewise.
14059         (add_locale_empty): Likewise.
14060         (add_locale_raw_data): Likewise.
14061         (add_locale_raw_obstack): Likewise.
14062         (add_locale_string): Likewise.
14063         (add_locale_wstring): Likewise.
14064         (add_locale_uint32): Likewise.
14065         (add_locale_uint32_array): Likewise.
14066         (add_locale_char): Likewise.
14067         (start_locale_structure): Likewise.
14068         (end_locale_structure): Likewise.
14069         (start_locale_prelude): Likewise.
14070         (end_locale_prelude): Likewise.
14071         (write_locale_data): Update prototype.
14072         * locale/programs/3level.h (struct TABLE): Remove result field.
14073         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14074         Use new locale_file interface.
14075         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14076         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14077         * locale/programs/ld-address.c (address_output): Use new
14078         locale_file interface.
14079         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14080         NO_ADD_LOCALE.
14081         (collate_finish): Don't call collseq_table_finalize.
14082         (collate_output): Use new locale_file interface.
14083         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14084         in file.
14085         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14086         (TABLE): Move defines earlier in file.
14087         (ELEMENT): Likewise.
14088         (DEFAULT): Likewise.
14089         (wctrans_table_add): Move macro and inline function earlier in
14090         file.
14091         (struct wctype_table): Move type earlier in file.
14092         (add_locale_wctype_table): New static prototype.
14093         (struct locale_ctype_t): Use logical types instead of struct iovec
14094         pointers for members.
14095         (ctype_output): Use new locale_file interface.
14096         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14097         new locale_file interface.
14098         (allocate_arrays): Update for use of new locale_file interface.
14099         * locale/programs/ld-identification.c (identification_output): Use
14100         new locale_file interface.
14101         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14102         * locale/programs/ld-messages.c (messages_output): Likewise.
14103         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14104         * locale/programs/ld-name.c (name_output): Likewise.
14105         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14106         * locale/programs/ld-paper.c (paper_output): Likewise.
14107         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14108         * locale/programs/ld-time.c (time_output): Likewise.
14109
14110 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14111
14112         * benchtests/Makefile: Add memrchr benchmark.
14113         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14114         benchmark as memrchr.
14115         * benchtests/bench-memrchr-ifunc.c: New file.
14116         * benchtests/bench-memrchr.c: New file.
14117
14118 2013-09-06   Will Newton  <will.newton@linaro.org>
14119
14120         * benchtests/Makefile (string-bench): Add memcpy.
14121
14122 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14123             Cong Wang  <amwang@redhat.com>
14124
14125         [BZ #15850]
14126         * sysdeps/unix/sysv/linux/bits/in.h
14127         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14128         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14129         before __USE_KERNEL_IPV6_DEFS uses.
14130         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14131         IPPROTO_BEETPH.
14132         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14133         sockaddr_in6, or ipv6_mreq.
14134
14135 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14136
14137         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14138         memory access for final bytes in some large inputs.
14139         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14140
14141 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14142
14143         * string/test-memrchr.c: New file.
14144         * string/test-memrchr-ifunc.c: New file.
14145         * string/Makefile: Add new memrchr testcase.
14146
14147 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14148
14149         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14150         fanotify_init returns EPERM.
14151
14152 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14153
14154         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14155         errors.
14156         (top level): Treat second token from macro or constant entries for
14157         allowed headers as allowed.
14158         * include/complex.h: Condition internal declarations on
14159         [!_ISOMAC].
14160         * include/fenv.h: Condition include of <stdbool.h> and internal
14161         declarations on [!_ISOMAC].
14162
14163 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14164
14165         [BZ #15923]
14166         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14167
14168 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14169
14170         * configure.in (--enable-versioning): Remove configure option.
14171         (libc_cv_asm_symver_directive): Remove configure test.
14172         (libc_cv_ld_version_script_option): Likewise.
14173         (VERSIONING): Remove variable and AC_SUBST.
14174         (DO_VERSIONING): Remove AC_DEFINE.
14175         * configure: Regenerated.
14176         * config.h.in (DO_VERSIONING): Remove macro.
14177         * Makerules [$(versioning) = yes]: Change conditionals to
14178         [$(build-shared) = yes].
14179         * config.make.in (versioning): Remove variable.
14180         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14181         [$(build-shared) = yes].
14182         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14183         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14184         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14185         [$(build-shared) = yes].
14186         * extra-lib.mk [$(versioning) = yes]: Likewise.
14187         * hurd/Makefile [$(versioning) = yes]: Likewise.
14188         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14189         [SHARED].
14190         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14191         [SHARED].
14192         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14193         [SHARED && !NO_HIDDEN].
14194         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14195         [SHARED].
14196         [SHARED && DO_VERSIONING]: Likewise..
14197         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14198         [$(build-shared) = yes].
14199         * manual/install.texi (--disable-versioning): Remove
14200         documentation.
14201         * INSTALL: Regenerated.
14202         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14203         to [SHARED].
14204         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14205         [$(build-shared) = yes].
14206         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14207         * sysdeps/i386/i686/multiarch/strstr-c.c
14208         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14209         [SHARED && !NO_HIDDEN].
14210         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14211         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14212         * sysdeps/powerpc/powerpc32/dl-machine.c
14213         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14214         * sysdeps/powerpc/powerpc32/sysdep.h
14215         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14216         to [SHARED && PIC && !NO_HIDDEN].
14217         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14218         conditional to [SHARED].
14219
14220 2013-09-04   Will Newton  <will.newton@linaro.org>
14221
14222         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14223         * benchtests/bench-string.h: Include bench-timing.h instead
14224         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14225         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14226         call to HP_TIMING_DIFF_INIT.
14227         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14228         instead of hp-timing.h macros.
14229         * benchtests/bench-memchr.c: Likewise.
14230         * benchtests/bench-memcmp.c: Likewise.
14231         * benchtests/bench-memcpy.c: Likewise.
14232         * benchtests/bench-memmem.c: Likewise.
14233         * benchtests/bench-memmove.c: Likewise.
14234         * benchtests/bench-memset.c: Likewise.
14235         * benchtests/bench-rawmemchr.c: Likewise.
14236         * benchtests/bench-strcasecmp.c: Likewise.
14237         * benchtests/bench-strcasestr.c: Likewise.
14238         * benchtests/bench-strcat.c: Likewise.
14239         * benchtests/bench-strchr.c: Likewise.
14240         * benchtests/bench-strcmp.c: Likewise.
14241         * benchtests/bench-strcpy.c: Likewise.
14242         * benchtests/bench-strcpy_chk.c: Likewise.
14243         * benchtests/bench-strlen.c: Likewise.
14244         * benchtests/bench-strncasecmp.c: Likewise.
14245         * benchtests/bench-strncat.c: Likewise.
14246         * benchtests/bench-strncmp.c: Likewise.
14247         * benchtests/bench-strncpy.c: Likewise.
14248         * benchtests/bench-strnlen.c: Likewise.
14249         * benchtests/bench-strpbrk.c: Likewise.
14250         * benchtests/bench-strrchr.c: Likewise.
14251         * benchtests/bench-strspn.c: Likewise.
14252         * benchtests/bench-strstr.c: Likewise.
14253
14254 2013-09-04  Will Newton  <will.newton@linaro.org>
14255
14256         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14257
14258 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14259
14260         [BZ #15427]
14261         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14262         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14263         * math/libm-test.inc (lgamma_test_data): Add more tests.
14264         * sysdeps/i386/fpu/libm-test-ulps: Update.
14265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14266
14267 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14268
14269         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14270         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14271         Add ifunc.
14272         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14273         Add strcmp-sse2-unaligned
14274         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14275
14276 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14277
14278         * Versions.def (libc): Add GLIBC_2.19.
14279
14280 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14281
14282         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14283         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14284
14285 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14286
14287         [BZ #14155]
14288         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14289         intermediate calculations in recurrence.
14290         (__ieee754_ynf): Likewise.
14291         * math/libm-test.inc (jn_test_data): Do not allow spurious
14292         underflow exception.  Add more tests.
14293         (yn_test_data): Add more tests.
14294         * sysdeps/i386/fpu/libm-test-ulps: Update.
14295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14296
14297 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14298
14299         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14300
14301 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14302
14303         * csu/init-first.c: Fix then/than typos.
14304         * locale/programs/ld-collate.c: Likewise.
14305         * locale/programs/linereader.h: Likewise.
14306         * manual/charset.texi: Likewise.
14307         * manual/filesys.texi: Likewise.
14308         * manual/stdio.texi: Likewise.
14309         * manual/string.texi: Likewise.
14310         * stdlib/fmtmsg.c: Likewise.
14311         * sysdeps/i386/stpncpy.S: Likewise.
14312         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14313         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14314         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14315         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14316
14317 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14318
14319         * elf/dl-open.c: Fix typos.
14320         * iconvdata/gbbig5.c: Likewise.
14321         * iconvdata/iso-2022-jp.c: Likewise.
14322         * iconv/gconv_int.h: Likewise.
14323         * iconv/loop.c: Likewise.
14324         * nis/rpcsvc/nis.h: Likewise.
14325         * resolv/ns_name.c: Likewise.
14326         * stdio-common/vfscanf.c: Likewise.
14327         * streams/stropts.h: Likewise.
14328         * sunrpc/rpc_thread.c: Likewise.
14329         * sysdeps/i386/strpbrk.S: Likewise.
14330         * sysdeps/ieee754/k_standard.c: Likewise.
14331         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14332         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14333         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14334         * sysdeps/mach/hurd/profil.c: Likewise.
14335         * sysdeps/s390/dl-procinfo.h: Likewise.
14336         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14337         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14338         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14339         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14340         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14341
14342 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14343
14344         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14345         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14346
14347 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14348
14349         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14350         aix specific files.
14351         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14352         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14353         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14354         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14355         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14356         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14357         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14358         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14359
14360 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14361             Roland McGrath  <roland@hack.frob.com>
14362
14363         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14364         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14365
14366 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14367
14368         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14369         __executable_start symbol instead of _start.
14370
14371 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14372
14373         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14374         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14375         Move macros to...
14376         * sysdeps/gnu/ldsodefs.h: ... this new file.
14377
14378         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14379         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14380         instead of ELFOSABI_LINUX.
14381
14382         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14383         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14384         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14385         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14386         Likewise.
14387         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14388         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14389         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14390         Likewise.
14391         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14392         (ibm_extended_long_double): Add ieee_nan member.
14393         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14394         (do_test): New function.
14395
14396         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14397         TEST_TRUNC.
14398         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14399         functions, renamed from truncdfsf_test, trunctfsf_test,
14400         trunctfdf_test.
14401         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14402         functions.
14403         (do_test): Run all these.
14404
14405 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14406
14407         * argp/argp-help.c: Fix typos.
14408         * argp/argp-parse.c: Likewise.
14409         * debug/backtracesyms.c: Likewise.
14410         * elf/elf.h: Likewise.
14411         * malloc/malloc.c: Likewise.
14412         * nis/nis_print.c: Likewise.
14413         * resolv/res_comp.c: Likewise.
14414         * stdlib/stdlib.h: Likewise.
14415         * sunrpc/clnt_tcp.c: Likewise.
14416         * sunrpc/clnt_udp.c: Likewise.
14417         * sunrpc/clnt_unix.c: Likewise.
14418         * sysdeps/unix/bsd/ptsname.c: Likewise.
14419         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14420         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14422         Likewise.
14423         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14424         Likewise.
14425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14426         Likewise.
14427         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14428
14429 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14430
14431         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14432         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14433
14434 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14435
14436         [BZ #15897]
14437         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14438         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14439         ($(objpfx)bug-dl-leaf): New rule.
14440         ($(objpfx)bug-dl-leaf.so): Likewise.
14441         ($(objpfx)bug-dl-leaf.out): Likewise.
14442         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14443         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14444         * dlfcn/bug-dl-leaf.c: New test.
14445         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14446         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14447         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14448         (dlclose): Likewise.
14449         (dlmopen): Likewise.
14450
14451 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14452
14453         * include/netdb.h [!_ISOMAC]:
14454         Don't include <tls.h>.
14455         (h_errno, __libc_h_errno): Move declaration and macros out of
14456         [_LIBC_REENTRANT].
14457
14458         * include/resolv.h [_RESOLV_H_]:
14459         Don't include <tls.h>.
14460         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14461         * resolv/res_libc.c: Don't include <tls.h>.
14462         (_res): Use __attribute__ ((nocommon)) in place of
14463         __attribute__ ((section (".bss"))).
14464
14465         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14466         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14467
14468         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14469
14470         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14471         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14472
14473         * resolv/res_mkquery.c: Include <sys/time.h>.
14474
14475         * inet/ifreq.c: Moved to ...
14476         * sysdeps/unix/ifreq.c: ... here.
14477         * inet/ifreq.c: New file, true stub version.
14478
14479         * socket/sa_len.c: New file.
14480         * socket/Makefile (aux): Add it.
14481         * sysdeps/unix/sysv/linux/Makefile
14482         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14483         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14484         and #include <socket/sa_len.c>.
14485         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14486         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14487
14488         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14489         * bits/socket.h: ... here.
14490
14491         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14492         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14493         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14494
14495 2013-08-27  Andreas Schwab  <schwab@suse.de>
14496
14497         [BZ #15736]
14498         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14499         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14500         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14501         * string/test-strcasecmp.c (test_main): Run tests in several
14502         locales.
14503         * string/test-strncasecmp.c (test_main): Likewise.
14504
14505         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14506         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14507         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14508         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14509         (__strncasecmp_ssse3) [PIC]: Likewise.
14510
14511 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14512
14513         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14514
14515         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14516         instead of explicitly declaring xdecrypt.
14517         * nis/nss_nis/nis-publickey.c: Likewise.
14518
14519 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14520
14521         [BZ #15890]
14522         * nscd/aicache.c: Include res_hconf.h.
14523         (addhstaiX): Initialize res_hconf.
14524
14525 2013-08-26  Andreas Schwab  <schwab@suse.de>
14526
14527         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14528         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14529
14530 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14531
14532         * nscd/aicache.c (addhstaiX): Fix indentation.
14533
14534 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14535
14536         * configure.ac: Quote $build_pt_chown test.
14537         * configure: Regenerated.
14538
14539 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14540
14541         [BZ #15532]
14542         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14543         * math/s_cexpf.c (__cexpf): Likewise.
14544         * math/s_cexpl.c (__cexpl): Likewise.
14545         * math/libm-test.inc (cexp_test_data): Correct expected return
14546         value for NaN + i0.  Add another test.
14547
14548 2013-08-22  David S. Miller  <davem@davemloft.net>
14549
14550         * po/ca.po: Update Catalan translation from translation project.
14551         * po/uk.po: Add Ukrainian translations from translation project.
14552
14553 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14554
14555         [BZ #15797]
14556         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14557         is infinite, not alongside NaN test.
14558         * math/s_fdimf.c (__fdimf): Likewise.
14559         * math/s_fdiml.c (__fdiml): Likewise.
14560         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14561         errno is unchanged.
14562
14563 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14564
14565         * argp/argp-help.c: Fix typos.
14566         * crypt/speeds.c: Likewise.
14567         * csu/check_fds.c: Likewise.
14568         * elf/dl-load.c: Likewise.
14569         * elf/dl-open.c: Likewise.
14570         * elf/reldep3.c: Likewise.
14571         * elf/reldep.c: Likewise.
14572         * elf/sprof.c: Likewise.
14573         * iconv/iconv_charmap.c: Likewise.
14574         * iconv/skeleton.c: Likewise.
14575         * iconv/strtab.c: Likewise.
14576         * io/lockf64.c: Likewise.
14577         * libio/libioP.h: Likewise.
14578         * resolv/gai_notify.c: Likewise.
14579         * resolv/ns_name.c: Likewise.
14580         * resolv/ns_samedomain.c: Likewise.
14581         * resolv/res_send.c: Likewise.
14582         * stdlib/random.c: Likewise.
14583         * sunrpc/rpc/xdr.h: Likewise.
14584         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14585         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14586         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14587         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14588         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14589         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14590         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14591         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14592         * sysdeps/mach/hurd/check_fds.c: Likewise.
14593         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14594         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14595         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14596         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14597         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14598         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14599         * sysdeps/pthread/aio_notify.c: Likewise.
14600         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14601         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14602         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14603         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14604         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14605
14606 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14607
14608         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
14609         version if bit_Slow_SSE4_2 is set.
14610         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14611         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14612
14613 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14614
14615         [BZ #15867]
14616         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
14617         trampoline stack frame information.
14618         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
14619         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
14620         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
14621         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
14622         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
14623         * sysdeps/unix/sysv/linux/powerpc/init-first.c
14624         (_libc_vdso_platform_setup): Initialize the signal trampolines.
14625         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
14626         sa_flags value.
14627         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
14628         interrupting a syscall and set with option SA_SIGINFO.
14629
14630 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14631
14632         [BZ #15531]
14633         * math/s_cproj.c (__cproj): Only return an infinity if one part of
14634         argument is infinite.
14635         * math/s_cprojf.c (__cprojf): Likewise.
14636         * math/s_cprojl.c (__cprojl): Likewise.
14637         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
14638         * math/libm-test.inc (cproj_test_data): Add more tests.
14639
14640         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
14641
14642         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
14643         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
14644         size.  Use __ffs to determine corresponding shift.
14645
14646 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14647             Roland McGrath  <roland@hack.frob.com>
14648
14649         * Makefile (INSTALL): Remove trailing blank lines from output of
14650         makeinfo.
14651
14652 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14653
14654         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
14655         Align 32 bit compat elf_greg to 8 bytes.
14656
14657 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14658
14659         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
14660
14661 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14662
14663         * string/strcoll_l.c (coll_seq): New structure.
14664         (get_next_seq_cached): New function.
14665         (get_next_seq): New function.
14666         (do_compare): New function.
14667         (STRCOLL): Use GNU style definition.  Simplify implementation
14668         by using get_next_seq, get_next_seq_cached and do_compare.
14669
14670 2013-08-16  Florian Weimer  <fweimer@redhat.com>
14671
14672         [BZ #14699]
14673         CVE-2013-4237
14674         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
14675         member.
14676         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
14677         member.
14678         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
14679         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
14680         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
14681         conditional.
14682         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
14683         GETDENTS_64BIT_ALIGNED.
14684         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14685         * manual/filesys.texi (Reading/Closing Directory): Document
14686         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
14687         strongly.
14688         * manual/conf.texi (Limits for Files): Add portability note to
14689         NAME_MAX, PATH_MAX.
14690         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
14691
14692 2013-08-13  Andreas Schwab  <schwab@suse.de>
14693
14694         [BZ #15749]
14695         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
14696         of fabs.
14697         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
14698         LDBL_MAX_EXP >= 16384]: Add tests for it.
14699
14700 2013-08-12  David S. Miller  <davem@davemloft.net>
14701
14702         * version.h (RELEASE): Set to "development".
14703         (VERSION): Set to "2.18.90".
14704         * NEWS: Add 2.19 section.
14705
14706 2013-08-03  David S. Miller  <davem@davemloft.net>
14707
14708         * po/ko.po: Update Korean translation from translation project.
14709
14710 2013-08-01  David S. Miller  <davem@davemloft.net>
14711
14712         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
14713         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
14714         Bilka.
14715
14716 2013-07-30  David S. Miller  <davem@davemloft.net>
14717
14718         * po/fr.po: Update French translation from translation project.
14719
14720 2013-07-28  David S. Miller  <davem@davemloft.net>
14721
14722         * po/cs.po: Update Czech translation from translation project.
14723
14724         * po/sv.po: Update Swedish translation from translation project.
14725
14726 2013-07-27  David S. Miller  <davem@davemloft.net>
14727
14728         * po/eo.po: Update Esperanto translation from translation project.
14729
14730         * po/vi.po: Update Vietnamese translation from translation project.
14731
14732         * po/de.po: Update German translation from translation project.
14733
14734 2013-07-26  David S. Miller  <davem@davemloft.net>
14735
14736         * po/bg.po: Update Bulgarian translation from translation project.
14737
14738         * po/nl.po: Update Dutch translation from translation project.
14739         * po/pl.po: Update Polish translation from translation project.
14740         * po/ru.po: Update Russian translation from translation project.
14741
14742 2013-07-24  David S. Miller  <davem@davemloft.net>
14743
14744         * po/libc.pot: Update.
14745
14746 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14747
14748         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
14749         variable page size.
14750         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
14751         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
14752         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
14753
14754 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14755
14756         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
14757
14758 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14759             Andreas Schwab  <schwab@suse.de>
14760             Roland McGrath  <roland@hack.frob.com>
14761             Joseph Myers  <joseph@codesourcery.com>
14762             Carlos O'Donell  <carlos@redhat.com>
14763
14764         [BZ #15755]
14765         * config.h.in: Define HAVE_PT_CHOWN.
14766         * config.make.in (build-pt-chown): New variable.
14767         * configure.in (--enable-pt_chown): New configure option.
14768         * configure: Regenerate.
14769         * login/Makefile: Include Makeconfig.  Build pt_chown only if
14770         build-pt-chown is enabled.
14771         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
14772         pt_chown to fix pty ownership.
14773         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
14774         CLOSE_ALL_FDS.
14775         * manual/install.texi (Configuring and compiling): Mention
14776         --enable-pt_chown. Add @findex for grantpt.
14777         * INSTALL: Regenerate.
14778
14779 2013-07-20  David S. Miller  <davem@davemloft.net>
14780
14781         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
14782         difference between 32-bit and 64-bit.
14783
14784 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
14785
14786         [BZ #15711]
14787         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
14788         Avoid system header dependency with -ffreestanding.
14789         ($(objpfx)bits/syscall%d): Likewise.
14790
14791 2013-07-13  David S. Miller  <davem@davemloft.net>
14792
14793         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
14794         underflows from atanl/atan2l due to bug 15319.
14795         (casinh_test_data): Likewise.
14796
14797 2013-07-07  David S. Miller  <davem@davemloft.net>
14798
14799         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
14800
14801 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
14802
14803         * sysdeps/i386/fpu/libm-test-ulps: Update.
14804         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14805
14806 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14807
14808         * configure.in (--enable-lock-elision): Fix message text.
14809         * INSTALL: Regenerate.
14810         * configure: Regenerate.
14811
14812 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14813
14814         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14815
14816 2013-07-03  Andreas Jaeger  <aj@suse.de>
14817
14818         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
14819         define.
14820         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
14821         (ptrace_peeksiginfo_args): Add.
14822         (__ptrace_peeksiginfo_flags): Add.
14823         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14824         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14825         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14826
14827 2013-07-03  Allan McRae  <allan@archlinux.org>
14828
14829         * sysdeps/i386/fpu/libm-test-ulps: Update.
14830
14831 2013-07-02  David S. Miller  <davem@davemloft.net>
14832
14833         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14834
14835 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
14836
14837         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14838
14839 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14840
14841         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
14842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14843
14844 2013-07-02  Andi Kleen <ak@linux.intel.com>
14845
14846         * config.h.in (ENABLE_LOCK_ELISION): Add.
14847         * configure.in (--enable-lock-elision): Add option.
14848         * manual/install.texi: Document --enable lock elision.
14849         * configure: Regenerate
14850         * INSTALL: Regenerate.
14851
14852 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14853
14854         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
14855         SSE4.2 strcasecmp for libc.a.
14856         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
14857
14858 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14859
14860         [BZ #13304]
14861         * soft-fp/op-common.h (_FP_FMA): New macro.
14862         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
14863         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
14864         (_FP_MUL_MEAT_1_imm): ... here.
14865         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
14866         (_FP_MUL_MEAT_1_wide): ... here.
14867         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
14868         (_FP_MUL_MEAT_1_hard): ... here.
14869         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
14870         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
14871         (_FP_MUL_MEAT_2_wide): ... here.
14872         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
14873         (_FP_MUL_MEAT_2_wide_3mul): ... here.
14874         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
14875         (_FP_MUL_MEAT_2_gmp): ... here.
14876         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
14877         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
14878         (_FP_MUL_MEAT_4_wide): ... here.
14879         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
14880         (_FP_MUL_MEAT_4_gmp): ... here.
14881         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
14882         (_FP_WFRACBITS_DW_S): Likewise.
14883         (_FP_WFRACXBITS_DW_S): Likewise.
14884         (_FP_HIGHBIT_DW_S): Likewise.
14885         (FP_FMA_S): Likewise.
14886         (_FP_FRAC_HIGH_DW_S): Likewise.
14887         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
14888         (_FP_WFRACBITS_DW_D): Likewise.
14889         (_FP_WFRACXBITS_DW_D): Likewise.
14890         (_FP_HIGHBIT_DW_D): Likewise.
14891         (FP_FMA_D): Likewise.
14892         (_FP_FRAC_HIGH_DW_D): Likewise.
14893         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
14894         (_FP_WFRACBITS_DW_E): Likewise.
14895         (_FP_WFRACXBITS_DW_E): Likewise.
14896         (_FP_HIGHBIT_DW_E): Likewise.
14897         (FP_FMA_E): Likewise.
14898         (_FP_FRAC_HIGH_DW_E): Likewise.
14899         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
14900         (_FP_WFRACBITS_DW_Q): Likewise.
14901         (_FP_WFRACXBITS_DW_Q): Likewise.
14902         (_FP_HIGHBIT_DW_Q): Likewise.
14903         (FP_FMA_Q): Likewise.
14904         (_FP_FRAC_HIGH_DW_Q): Likewise.
14905         * soft-fp/fmasf4.c: New file.
14906         * soft-fp/fmadf4.c: Likewise.
14907         * soft-fp/fmatf4.c: Likewise.
14908
14909 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14910
14911         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14912         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
14913         Silvermont.
14914         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
14915         macro.
14916         (index_Slow_SSE4_2): Likewise.
14917         (index_Prefer_PMINUB_for_stringop): Likewise.
14918         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
14919         bit_Slow_SSE4_2 is set.
14920         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14921         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14922
14923 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14924
14925         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
14926         rtld_global._dl_hwcap2.
14927         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
14928         POWER8.
14929         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
14930         POWER8 feature descriptions defined in _dl_hwcap2.
14931         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
14932         string handling for POWER8 feature bits.
14933         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
14934         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
14935         _dl_powerpc_cap_flags.
14936         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
14937         * sysdeps/powerpc/rtld-global-offsets.sym
14938         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
14939         _dl_hwcap2 in the rtld_global_ro structure.
14940
14941 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14942
14943         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
14944         hardware capabilities in support of AT_HWCAP2.
14945         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
14946         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
14947         GLRO(dl_hwcap2).
14948         (_dl_show_auxv): Add support for calling _dl_procinfo to display
14949         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
14950         explicitly the unknown a_type display mechanism is used.
14951         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
14952         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
14953         struct member.
14954         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
14955         to macro prototype for AT_HWCAP2 support.
14956         * sysdeps/i386/dl-procinfo.h: Likewise.
14957         * sysdeps/s390/dl-procinfo.h: Likewise.
14958         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
14959         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
14960         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
14961         return -1 for unknown a_type display fallback.
14962         * sysdeps/sparc/dl-procinfo.h: Likewise.
14963         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
14964         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
14965
14966 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
14967
14968         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
14969         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
14970
14971 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
14972
14973         [BZ #12492]
14974         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
14975         mprotect making __stack_prot writable.
14976
14977 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
14978             Joseph Myers  <joseph@codesourcery.com>
14979
14980         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
14981         as being properly aligned.
14982
14983 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
14984
14985         * dlfcn/modstatic5.c: New file.
14986         * dlfcn/tststatic5.c: New file.
14987         * dlfcn/Makefile (tests): Add tststatic5.
14988         (tests-static): Likewise.
14989         (modules-names): Add modstatic5.
14990         (tststatic5-ENV): New variable.
14991         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
14992
14993         [BZ #15022]
14994         * elf/dl-support.c (_dl_main_map): New variable.
14995         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
14996         (_dl_nns, _dl_load_adds): Set to 1.
14997         (_dl_initial_searchlist): Refer to _dl_main_map.
14998         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
14999         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15000         call to _dl_get_origin.
15001         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15002         around call_map.
15003         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15004         * dlfcn/modstatic3.c: New file.
15005         * dlfcn/tststatic3.c: New file.
15006         * dlfcn/tststatic4.c: New file.
15007         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15008         (tests-static): Likewise.
15009         (modules-names): Add modstatic3.
15010         (tststatic3-ENV, tststatic4-ENV): New variables.
15011         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15012         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15013
15014 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15015
15016         * configure.in (CC): Require GCC version 4.4 or later.
15017         * configure: Regenerated.
15018         * manual/install.texi (Tools for Compilation): Update GCC version
15019         requirement.
15020         * INSTALL: Regenerated.
15021
15022 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15023
15024         [BZ #15674]
15025         * string/test-memcmp.c (check2): New.
15026         (main): Call check2.
15027
15028         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15029
15030 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15031
15032         [BZ #15022]
15033         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15034         over to...
15035         (dl_open_worker) [!SHARED]: ... here.
15036
15037 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15038
15039         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15040
15041 2013-06-25  Richard Henderson  <rth@redhat.com>
15042
15043         * locale/programs/locarchive.c: Include <libc-internal.h>
15044
15045 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15046
15047         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15048         trailing whitespace removed.
15049
15050 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15051
15052         [BZ #10283]
15053         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15054         * locale/programs/locarchive.c: Include libc-mmap.h.
15055         (prepare_address_space): Take two new outputs (the mmap base and len).
15056         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15057         values.
15058         (create_archive): Declare new mmap base and len values for
15059         prepare_address_space, and store the result in ah.
15060         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15061         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15062         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15063         Declare new mmap base and len values for
15064         prepare_address_space, and store the result in new_ah.
15065         (open_archive): Declare new mmap base and len values for
15066         prepare_address_space, and store the result in ah.
15067         (close_archive): If ah->mmap_base is not NULL, use that and
15068         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15069         * sysdeps/generic/libc-mmap.h: New file.
15070
15071 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15072
15073         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15074         (ALIGN_UP): Likewise.
15075         (PTR_ALIGN_DOWN): Likewise.
15076         (PTR_ALIGN_UP): Likewise.
15077
15078 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15079
15080         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15081         entry mapped to PPC_PLATFORM_POWER8.
15082         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15083         POWER8.
15084         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15085         (_dl_string_platform): Add case for exporting platform position for
15086         POWER8.
15087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15088         search path to sysdeps/powerpc/powerpc32/power8 directory.
15089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15090         search path to sysdeps/powerpc/powerpc64/power8 directory.
15091         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15092         power7 directories.
15093         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15094         power7 directories.
15095
15096 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15097
15098         * INSTALL: Regenerate.
15099
15100         * nscd/connections.c (nscd_init): Fix comment.
15101
15102 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15103
15104         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15105
15106         [BZ #15667]
15107         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15108         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15109
15110 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15111
15112         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15113         DL_DST_REQ_STATIC.
15114         (DL_DST_REQ_STATIC): Remove macro.
15115
15116 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15117
15118         [BZ #7006]
15119         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15120         with a shift of 0 bits.
15121
15122 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15123
15124         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15125         $(tststatic-ENV).
15126
15127 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15128
15129         [BZ #15655]
15130         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15131
15132 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15133
15134         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15135         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15136         accepts -fno-tree-loop-distribute-patterns.
15137         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15138         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15139         recursive call.
15140         * string/memset.c (memset): Likewise.
15141         * string/test-memmove.c (simple_memmove): Disable loop transformation
15142         to library calls.
15143         * string/test-memset.c (simple_memset): Likewise.
15144         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15145         * benchtests/bench-memset.c (simple_memset): Likewise.
15146         * configure: Regenerated.
15147
15148 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15149
15150         * math/test-misc.c (main): Ignore fesetround failure when failures
15151         of subsequent rounding tests would be ignored.
15152
15153         [BZ #15654]
15154         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15155         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15156         * math/fegetenv.c (__fegetenv): Return 0.
15157         * math/fegetexcept.c (fegetexcept): Return 0.
15158         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15159         FE_TONEAREST.
15160         * math/feholdexcpt.c (feholdexcept): Return 0.
15161         * math/fesetenv.c (__fesetenv): Return 0.
15162         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15163         argument FE_TONEAREST.
15164         * math/feupdateenv.c (__feupdateenv): Return 0.
15165         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15166
15167 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15168
15169         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15170         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15171         ($(objpfx)rtld-%.os rules): Use them.
15172
15173 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15174
15175         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15176         fields.
15177
15178 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15179
15180         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15181         length of target pattern, then descending length of dependency pattern.
15182         * configure.in (AWK): Require gawk 3.1.2 or newer.
15183         * manual/install.texi (Tools for Compilation): Say that we do.
15184         * configure: Regenerated.
15185
15186         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15187         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15188         * scripts/sysd-rules.awk: ... this new script.
15189         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15190         than a glob-style pattern.
15191
15192 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15193
15194         * math/test-misc.c (main): Do not treat incorrectly rounded
15195         conversions as failure unless ROUNDING_TESTS passes.
15196
15197 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15198
15199         [BZ #15631]
15200         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15201         restore exception state around main square root computation, then
15202         check for inexactness explicitly.
15203
15204         * math/libm-test.inc (fma_test_data): Add another test.
15205
15206 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15207
15208         * manual/threads.texi (Non-POSIX Extensions): New document
15209         node.  Document pthread_getattr_default_np and
15210         pthread_setattr_default_np.
15211
15212         * Versions.def (libpthread): Add GLIBC_2.18.
15213         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15215         Likewise.
15216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15217         Likewise.
15218         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15219         Likewise.
15220         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15221         Likewise.
15222         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15223         Likewise.
15224         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15225         Likewise.
15226         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15227         Likewise.
15228         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15229         Likewise.
15230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15231         Likewise.
15232
15233 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15234
15235         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15236         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15237
15238 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15239             H.J. Lu  <hjl.tools@gmail.com>
15240
15241         [BZ #15627]
15242         * sysdeps/x86_64/rtld-memset.c: Remove file.
15243         * sysdeps/x86_64/rtld-memset.S: New file.
15244
15245 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15246
15247         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15248         (test_in_one_mode): Take arguments for whether the rounding mode
15249         is supported for each floating-point type.
15250         (do_test): Pass new arguments to test_in_one_mode using
15251         ROUNDING_TESTS.
15252
15253 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15254
15255         * posix/tst-waitid.c (do_test): Distinguish different instances of
15256         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15257         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15258         before entering the kernel for waitpid.
15259
15260 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15261
15262         * NEWS: Fix note on clock function precision.  Text by Roland
15263         McGrath.
15264
15265 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15266
15267         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15268         it into place only when and if the sanity check passes.
15269
15270 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15271
15272         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15273         output for whether conversion result is exact.  Take argument
15274         indicating whether type is IBM long double.
15275         (round_for_all): Change need_exact field to ibm_ld.
15276         * stdlib/tst-strtod-round.c (struct exactness): New type.
15277         (struct test): Change bool ld_ok field to struct exactness exact.
15278         (TEST): Update all definitions for change to field.
15279         (tests): Regenerate array contents.
15280         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15281         field value.  Check for IBM long double here.
15282         (do_test): Update calls to test_in_one_mode.
15283
15284 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15285
15286         [BZ #12515]
15287         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15288         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15289
15290 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15291
15292         [BZ #15605]
15293         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15294         generated by the compiler on loop optimizations.
15295         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15296         general definitions.
15297
15298 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15299
15300         * math/bug-nextafter.c: Include <math-tests.h>.
15301         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15302         the relevant type.
15303         * math/bug-nexttoward.c: Include <math-tests.h>.
15304         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15305         the relevant type.
15306         * math/test-misc.c: Include <math-tests.h>.
15307         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15308         the relevant type.
15309
15310 2013-06-12  Andreas Jaeger  <aj@suse.de>
15311
15312         * po/ia.po: Update Interlingua translation from translation
15313         project.
15314
15315 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15316
15317         * include/fenv.h: Include stdbool.h.
15318         (struct rm_ctx): New structure.
15319         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15320         Define macro.
15321         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15322         (SET_RESTORE_ROUNDF): Likewise.
15323         (SET_RESTORE_ROUNDL): Likewise.
15324         (SET_RESTORE_ROUND_NOEX): Likewise.
15325         (SET_RESTORE_ROUND_NOEXF): Likewise.
15326         (SET_RESTORE_ROUND_NOEXL): Likewise.
15327         (SET_RESTORE_ROUND_53BIT): Likewise.
15328         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15329         (libc_feresetround_noexf_ctx): Likewise.
15330         (libc_feresetround_noexl_ctx): Likewise.
15331         (libc_feholdsetround_53bit_ctx): Likewise.
15332         (libc_feresetround_53bit_ctx): Likewise.
15333         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15334         (libc_feholdexcept_setround_sse_ctx): New function.
15335         (libc_fesetenv_sse_ctx): Likewise.
15336         (libc_feupdateenv_sse_ctx): Likewise.
15337         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15338         (libc_feholdexcept_setround_387_ctx): Likewise.
15339         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15340         (libc_feholdsetround_387_prec_ctx): Likewise.
15341         (libc_feholdsetround_387_ctx): Likewise.
15342         (libc_feholdsetround_387_53bit_ctx): Likewise.
15343         (libc_feholdsetround_sse_ctx): Likewise.
15344         (libc_feresetround_sse_ctx): Likewise.
15345         (libc_feresetround_387_ctx): Likewise.
15346         (libc_feupdateenv_387_ctx): Likewise.
15347         (libc_feholdexcept_setroundf_ctx): Define macro.
15348         (libc_fesetenvf_ctx): Likewise.
15349         (libc_feupdateenvf_ctx): Likewise.
15350         (libc_feholdsetroundf_ctx): Likewise.
15351         (libc_feresetroundf_ctx): Likewise.
15352         (libc_feholdexcept_setround_ctx): Likewise.
15353         (libc_fesetenv_ctx): Likewise.
15354         (libc_feupdateenv_ctx): Likewise.
15355         (libc_feholdsetround_ctx): Likewise.
15356         (libc_feresetround_ctx): Likewise.
15357         (libc_feholdexcept_setroundl_ctx): Likewise.
15358         (libc_feupdateenvl_ctx): Likewise.
15359         (libc_feholdsetroundl_ctx): Likewise.
15360         (libc_feresetroundl_ctx): Likewise.
15361         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15362         (libc_feresetround_53bit_ctx): Likewise.
15363
15364 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15365
15366         * locale/iso-639.def: Convert to UTF-8.
15367
15368 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15369
15370         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15371         (EXCEPTION_TESTS_double): Likewise.
15372         (EXCEPTION_TESTS_long_double): Likewise.
15373         (EXCEPTION_TESTS): Likewise.
15374         * math/libm-test.inc (test_exceptions): Only test exceptions if
15375         EXCEPTION_TESTS (FLOAT).
15376
15377 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15378
15379         * benchtests/Makefile (string-bench): Add strcpy_chk and
15380         stpcpy_chk.
15381         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15382         * benchtests/bench-stpcpy_chk.c: New file.
15383         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15384         * benchtests/bench-strcpy_chk.c: New file.
15385         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15386         code.
15387         (do_test): Likewise.
15388
15389 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15390
15391         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15392         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15393         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15394         with tabs where appropriate.
15395         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15396         dl-procinfo.h.
15397         [PPC_PLATFORM_PPC440]: Likewise.
15398         [PPC_PLATFORM_PPC464]: Likewise.
15399         [PPC_PLATFORM_PPC476]: Likewise.
15400         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15401         ppc464, and ppc476 platform strings merging from ports/
15402         dl-procinfo.h.
15403
15404 2013-06-11  Andreas Schwab  <schwab@suse.de>
15405
15406         [BZ #14991]
15407         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15408         (from_ucs4_idx): Regenerate.
15409         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15410         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15411         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15412         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15413         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15414         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15415         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15416         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15417         from FROM_LOOP and TO_LOOP specific macros.
15418         (BODY): Handle combining characters.
15419         * iconvdata/BIG5HKSCS.irreversible: Update.
15420         * iconvdata/BIG5HKSCS.precomposed: New file.
15421         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15422         characters.
15423         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15424
15425 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15426
15427         * include/sys/time.h: Fix indentation and add copyright header.
15428
15429         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15430         (do_test): Likewise.
15431         * string/test-memchr.c (do_one_test): Likewise.
15432         (do_test): Likewise.
15433         * string/test-memcmp.c (do_one_test): Likewise.
15434         (do_test): Likewise.
15435         * string/test-memcpy.c (do_one_test): Likewise.
15436         (do_test): Likewise.
15437         * string/test-memmem.c (do_one_test): Likewise.
15438         (do_test): Likewise.
15439         (do_random_tests): Likewise.
15440         * string/test-memmove.c (do_one_test): Likewise.
15441         (do_test): Likewise.
15442         * string/test-memset.c (do_one_test): Likewise.
15443         (do_test): Likewise.
15444         * string/test-rawmemchr.c (do_one_test): Likewise.
15445         (do_test): Likewise.
15446         * string/test-strcasecmp.c (do_one_test): Likewise.
15447         (do_test): Likewise.
15448         * string/test-strcasestr.c (do_one_test): Likewise.
15449         (do_test): Likewise.
15450         * string/test-strcat.c (do_one_test): Likewise.
15451         (do_test): Likewise.
15452         * string/test-strchr.c (do_one_test): Likewise.
15453         (do_test): Likewise.
15454         * string/test-strcmp.c (do_one_test): Likewise.
15455         (do_test): Likewise.
15456         * string/test-strcpy.c (do_one_test): Likewise.
15457         (do_test): Likewise.
15458         * string/test-string.h: Likewise.
15459         (test_init): Likewise.
15460         * string/test-strlen.c (do_one_test): Likewise.
15461         (do_test): Likewise.
15462         * string/test-strncasecmp.c (do_one_test): Likewise.
15463         (do_test): Likewise.
15464         * string/test-strncat.c (do_one_test): Likewise.
15465         (do_test): Likewise.
15466         * string/test-strncmp.c (do_one_test): Likewise.
15467         (do_test_limit): Likewise.
15468         (do_test): Likewise.
15469         * string/test-strncpy.c (do_one_test): Likewise.
15470         (do_test): Likewise.
15471         * string/test-strnlen.c (do_one_test): Likewise.
15472         (do_test): Likewise.
15473         * string/test-strpbrk.c (do_one_test): Likewise.
15474         (do_test): Likewise.
15475         * string/test-strrchr.c (do_one_test): Likewise.
15476         (do_test): Likewise.
15477         * string/test-strspn.c (do_one_test): Likewise.
15478         (do_test): Likewise.
15479         * string/test-strstr.c (do_one_test): Likewise.
15480         (do_test): Likewise.
15481
15482         * benchtests/Makefile (string-bench): Add string benchmarks.
15483         * benchtests/bench-bcopy-ifunc.c: New file.
15484         * benchtests/bench-bcopy.c: New file.
15485         * benchtests/bench-bzero-ifunc.c: New file.
15486         * benchtests/bench-bzero.c: New file.
15487         * benchtests/bench-memccpy-ifunc.c: New file.
15488         * benchtests/bench-memccpy.c: New file.
15489         * benchtests/bench-memchr-ifunc.c: New file.
15490         * benchtests/bench-memchr.c: New file.
15491         * benchtests/bench-memcmp-ifunc.c: New file.
15492         * benchtests/bench-memcmp.c: New file.
15493         * benchtests/bench-memmem-ifunc.c: New file.
15494         * benchtests/bench-memmem.c: New file.
15495         * benchtests/bench-memmove-ifunc.c: New file.
15496         * benchtests/bench-memmove.c: New file.
15497         * benchtests/bench-mempcpy-ifunc.c: New file.
15498         * benchtests/bench-mempcpy.c: New file.
15499         * benchtests/bench-memset-ifunc.c: New file.
15500         * benchtests/bench-memset.c: New file.
15501         * benchtests/bench-rawmemchr-ifunc.c: New file.
15502         * benchtests/bench-rawmemchr.c: New file.
15503         * benchtests/bench-stpcpy-ifunc.c: New file.
15504         * benchtests/bench-stpcpy.c: New file.
15505         * benchtests/bench-stpncpy-ifunc.c: New file.
15506         * benchtests/bench-stpncpy.c: New file.
15507         * benchtests/bench-strcasecmp-ifunc.c: New file.
15508         * benchtests/bench-strcasecmp.c: New file.
15509         * benchtests/bench-strcasestr-ifunc.c: New file.
15510         * benchtests/bench-strcasestr.c: New file.
15511         * benchtests/bench-strcat-ifunc.c: New file.
15512         * benchtests/bench-strcat.c: New file.
15513         * benchtests/bench-strchr-ifunc.c: New file.
15514         * benchtests/bench-strchr.c: New file.
15515         * benchtests/bench-strchrnul-ifunc.c: New file.
15516         * benchtests/bench-strchrnul.c: New file.
15517         * benchtests/bench-strcmp-ifunc.c: New file.
15518         * benchtests/bench-strcmp.c: New file.
15519         * benchtests/bench-strcpy-ifunc.c: New file.
15520         * benchtests/bench-strcpy.c: New file.
15521         * benchtests/bench-strcspn-ifunc.c: New file.
15522         * benchtests/bench-strcspn.c: New file.
15523         * benchtests/bench-strlen-ifunc.c: New file.
15524         * benchtests/bench-strlen.c: New file.
15525         * benchtests/bench-strncasecmp-ifunc.c: New file.
15526         * benchtests/bench-strncasecmp.c: New file.
15527         * benchtests/bench-strncat-ifunc.c: New file.
15528         * benchtests/bench-strncat.c: New file.
15529         * benchtests/bench-strncmp-ifunc.c: New file.
15530         * benchtests/bench-strncmp.c: New file.
15531         * benchtests/bench-strncpy-ifunc.c: New file.
15532         * benchtests/bench-strncpy.c: New file.
15533         * benchtests/bench-strnlen-ifunc.c: New file.
15534         * benchtests/bench-strnlen.c: New file.
15535         * benchtests/bench-strpbrk-ifunc.c: New file.
15536         * benchtests/bench-strpbrk.c: New file.
15537         * benchtests/bench-strrchr-ifunc.c: New file.
15538         * benchtests/bench-strrchr.c: New file.
15539         * benchtests/bench-strspn-ifunc.c: New file.
15540         * benchtests/bench-strspn.c: New file.
15541         * benchtests/bench-strstr-ifunc.c: New file.
15542         * benchtests/bench-strstr.c: New file.
15543
15544         * benchtests/Makefile: Disable parallel execution of targets.
15545         (string-bench): Add memcpy.
15546         (benchset): New variable to store a list of benchmark sets.
15547         (bench-func): Renamed from bench.
15548         (bench-set): New target.
15549         (bench): Depend on bench-func and bench-set.
15550         * benchtests/README: Add section on benchmark sets.
15551         * benchtests/bench-memcpy-ifunc.c: New file.
15552         * benchtests/bench-memcpy.c: New file.
15553         * benchtests/bench-string.h: New file.
15554
15555 2013-06-11  Andreas Schwab  <schwab@suse.de>
15556
15557         [BZ #15577]
15558         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15559         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15560         values in the triple.
15561         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15562         terminator in the group key.
15563
15564 2013-06-11  Andreas Jaeger  <aj@suse.de>
15565
15566         * po/zh_TW.po: Update Chinese (traditional) translation from
15567         translation project.
15568
15569 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15570
15571         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15572         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15573         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15574         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15575         (clock_getcpuclockid): Likewise.
15576         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15577         Add weak_alias and libc_hidden_def.
15578         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15579         * rt/clock_gettime.c (clock_gettime): Rename to
15580         __clock_gettime.  Add weak_alias and libc_hidden_def.
15581         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15582         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15583         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15584         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15585         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15586         Likewise.
15587         * rt/clock_settime.c (clock_settime): Rename to
15588         __clock_settime.  Add weak_alias and libc_hidden_def.
15589         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15590
15591 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15592
15593         * mach/err_boot.sub: Remove trailing whitespace.
15594         * mach/err_ipc.sub: Likewise.
15595         * mach/err_mach.sub: Likewise.
15596
15597         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15598         (ROUNDING_TESTS_double): Likewise.
15599         (ROUNDING_TESTS_long_double): Likewise.
15600         (ROUNDING_TESTS): Likewise.
15601         * math/libm-test.inc: Include <math-tests.h>.
15602         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15603         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15604         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15605         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15606
15607 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15608
15609         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
15610         of assigning.
15611
15612 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
15613
15614         * sysdeps/gnu/errlist.awk: Do not generate space at end of
15615         otherwise empty TRANS lines.
15616         * sysdeps/gnu/errlist.c: Regenerated.
15617
15618         * catgets/gencat.c (error_print): Use (void) in function
15619         definition.
15620         * crypt/crypt_util.c (__init_des): Likewise.
15621         * crypt/speeds.c (Stop): Likewise.
15622         (main): Likewise.
15623         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
15624         * inet/ruserpass.c (token): Likewise.
15625         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
15626         * intl/localealias.c (extend_alias_table): Likewise.
15627         * intl/plural-exp.c (init_germanic_plural): Likewise.
15628         * libio/fcloseall.c (__fcloseall): Likewise.
15629         * libio/genops.c (_IO_flush_all): Likewise.
15630         (_IO_flush_all_linebuffered): Likewise.
15631         (_IO_cleanup): Likewise.
15632         (_IO_iter_begin): Likewise.
15633         (_IO_iter_end): Likewise.
15634         (_IO_list_lock): Likewise.
15635         (_IO_list_unlock): Likewise.
15636         (_IO_list_resetlock): Likewise.
15637         * libio/getchar.c (getchar): Likewise.
15638         * libio/getchar_u.c (getchar_unlocked): Likewise.
15639         * libio/getwchar.c (getwchar): Likewise.
15640         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
15641         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
15642         * login/getpt.c (__getpt): Likewise.
15643         * login/tst-utmp.c (main): Likewise.
15644         * malloc/hooks.c (__malloc_check_init): Likewise.
15645         * malloc/malloc.c (__malloc_stats): Likewise.
15646         * malloc/mtrace.c (tr_break): Likewise.
15647         (mtrace): Likewise.
15648         (muntrace): Likewise.
15649         * misc/fstab.c (endfsent): Likewise.
15650         * misc/getclktck.c (__getclktck): Likewise.
15651         * misc/getdtsz.c (__getdtablesize): Likewise.
15652         * misc/gethostid.c (gethostid): Likewise.
15653         * misc/getpagesize.c (__getpagesize): Likewise.
15654         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
15655         (__get_nprocs): Likewise.
15656         (__get_phys_pages): Likewise.
15657         (__get_avphys_pages): Likewise.
15658         * misc/getttyent.c (getttyent): Likewise.
15659         (setttyent): Likewise.
15660         (endttyent): Likewise.
15661         * misc/getusershell.c (getusershell): Likewise.
15662         (endusershell): Likewise.
15663         (setusershell): Likewise.
15664         (initshells): Likewise.
15665         * misc/hsearch.c (__hdestroy): Likewise.
15666         * misc/sync.c (sync): Likewise.
15667         * misc/syslog.c (closelog_internal): Likewise.
15668         (closelog): Likewise.
15669         * misc/ttyslot.c (ttyslot): Likewise.
15670         * misc/vhangup.c (vhangup): Likewise.
15671         * posix/fork.c (__fork): Likewise.
15672         * posix/getegid.c (__getegid): Likewise.
15673         * posix/geteuid.c (__geteuid): Likewise.
15674         * posix/getgid.c (__getgid): Likewise.
15675         * posix/getpid.c (__getpid): Likewise.
15676         * posix/getppid.c (__getppid): Likewise.
15677         * posix/getuid.c (__getuid): Likewise.
15678         * posix/pause.c (pause): Likewise.
15679         * posix/setpgrp.c (setpgrp): Likewise.
15680         * posix/setsid.c (__setsid): Likewise.
15681         * posix/test-vfork.c (noop): Likewise.
15682         * resolv/gethnamaddr.c (_endhtent): Likewise.
15683         (_gethtent): Likewise.
15684         (ht_endhostent): Likewise.
15685         (gethostent): Likewise.
15686         (dns_service): Likewise.
15687         * stdlib/drand48.c (drand48): Likewise.
15688         * stdlib/lrand48.c (lrand48): Likewise.
15689         * stdlib/mrand48.c (mrand48): Likewise.
15690         * stdlib/rand.c (rand): Likewise.
15691         * stdlib/random.c (__random): Likewise.
15692         * stdlib/setenv.c (clearenv): Likewise.
15693         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
15694         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
15695         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
15696         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
15697         (__get_nprocs): Likewise.
15698         (__get_phys_pages): Likewise.
15699         (__get_avphys_pages): Likewise.
15700         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
15701         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
15702         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
15703         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
15704         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
15705         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
15706         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
15707         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
15708         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
15709         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
15710         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
15711         * sysdeps/mach/hurd/sync.c (sync): Likewise.
15712         * sysdeps/posix/clock.c (clock): Likewise.
15713         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
15714         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
15715         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
15716         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
15717         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
15718         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
15719         (__get_nprocs_conf): Likewise.
15720         (__get_phys_pages): Likewise.
15721         (__get_avphys_pages): Likewise.
15722         * time/clock.c (clock): Likewise.
15723         * time/tzset.c (__tzname_max): Likewise.
15724
15725 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
15726
15727         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
15728         (__bswap_32): Do not use "register".
15729         * crypt/crypt.c (_ufc_doit_r): Likewise.
15730         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
15731         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
15732         * gmon/gmon.c (__monstartup): Likewise.
15733         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
15734         * hurd/hurdmalloc.c (more_memory): Likewise.
15735         (malloc): Likewise.
15736         (free): Likewise.
15737         (realloc): Likewise.
15738         (malloc_fork_prepare): Likewise.
15739         (malloc_fork_parent): Likewise.
15740         (malloc_fork_child): Likewise.
15741         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
15742         (_svcauth_des): Likewise.
15743         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15744         * inet/inet_net.c (inet_network): Likewise.
15745         * inet/inet_netof.c (inet_netof): Likewise.
15746         * inet/rcmd.c (__validuser2_sa): Likewise.
15747         * io/fts.c (fts_open): Likewise.
15748         (fts_load): Likewise.
15749         (fts_close): Likewise.
15750         (fts_read): Likewise.
15751         (fts_children): Likewise.
15752         (fts_build): Likewise.
15753         (fts_stat): Likewise.
15754         (fts_sort): Likewise.
15755         (fts_alloc): Likewise.
15756         (fts_lfree): Likewise.
15757         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
15758         (_IO_file_xsgetn): Likewise.
15759         (_IO_file_xsgetn_mmap): Likewise.
15760         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15761         (_IO_cookie_write): Likewise.
15762         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
15763         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
15764         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
15765         * malloc/obstack.c (_obstack_begin): Likewise.
15766         (_obstack_begin_1): Likewise.
15767         (_obstack_newchunk): Likewise.
15768         (_obstack_allocated_p): Likewise.
15769         (obstack_free): Likewise.
15770         (_obstack_memory_used): Likewise.
15771         * misc/getttyent.c (getttynam): Likewise.
15772         (getttyent): Likewise.
15773         (skip): Likewise.
15774         (value): Likewise.
15775         * misc/getusershell.c (initshells): Likewise.
15776         * misc/syslog.c (__vsyslog_chk): Likewise.
15777         * misc/ttyslot.c (ttyslot): Likewise.
15778         * nis/nis_hash.c (__nis_hash): Likewise.
15779         * posix/fnmatch_loop.c (FCT): Likewise.
15780         * posix/getconf.c (print_all): Likewise.
15781         (main): Likewise.
15782         * posix/getopt.c (exchange): Likewise.
15783         * posix/glob.c (globfree): Likewise.
15784         (prefix_array): Likewise.
15785         (__glob_pattern_type): Likewise.
15786         * resolv/arpa/nameser.h (NS_GET16): Likewise.
15787         (NS_GET32): Likewise.
15788         (NS_PUT16): Likewise.
15789         (NS_PUT32): Likewise.
15790         * resolv/gethnamaddr.c (getanswer): Likewise.
15791         (gethostbyname2): Likewise.
15792         (gethostbyaddr): Likewise.
15793         (_gethtent): Likewise.
15794         (_gethtbyname2): Likewise.
15795         (_gethtbyaddr): Likewise.
15796         * resolv/ns_print.c (dst_s_get_int16): Likewise.
15797         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
15798         * resolv/res_init.c (__res_vinit): Likewise.
15799         (net_mask): Likewise.
15800         * resolv/res_mkquery.c (outchar): Likewise.
15801         (PRINT): Likewise.
15802         * stdio-common/printf_fp.c (outchar): Likewise.
15803         (PRINT): Likewise.
15804         * stdio-common/printf_fphex.c (outchar): Likewise.
15805         (PRINT): Likewise.
15806         * stdio-common/printf_size.c (outchar): Likewise.
15807         (PRINT): Likewise.
15808         * stdio-common/test_rdwr.c (main): Likewise.
15809         * stdio-common/tfformat.c (matches): Likewise.
15810         * stdio-common/vfprintf.c (outchar): Likewise.
15811         (printf_unknown): Likewise.
15812         (buffered_vfprintf): Likewise.
15813         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
15814         * stdio-common/xbug.c (AppendToBuffer): Likewise.
15815         (ReadFile): Likewise.
15816         * stdlib/qsort.c (SWAP): Likewise.
15817         (_quicksort): Likewise.
15818         * stdlib/setenv.c (__add_to_environ): Likewise.
15819         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15820         * stdlib/strtol_l.c (__strtol_l): Likewise.
15821         * stdlib/tst-strtod.c (main): Likewise.
15822         * stdlib/tst-strtol.c (main): Likewise.
15823         * stdlib/tst-strtoll.c (main): Likewise.
15824         * string/bits/string2.h (__strcmp_cc): Likewise.
15825         (__strcmp_cg): Likewise.
15826         (__strcspn_c1): Likewise.
15827         (__strcspn_c2): Likewise.
15828         (__strcspn_c3): Likewise.
15829         (__strspn_c1): Likewise.
15830         (__strspn_c2): Likewise.
15831         (__strspn_c3): Likewise.
15832         (__strsep_1c): Likewise.
15833         (__strsep_2c): Likewise.
15834         (__strsep_3c): Likewise.
15835         * string/memccpy.c (__memccpy): Likewise.
15836         * string/stpcpy.c (__stpcpy): Likewise.
15837         * string/strcmp.c (strcmp): Likewise.
15838         * string/strrchr.c (strrchr): Likewise.
15839         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
15840         Likewise.
15841         * sysdeps/mach/hurd/getcwd.c
15842         (_hurd_canonicalize_directory_name_internal): Likewise.
15843         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
15844         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
15845         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
15846         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
15847         Likewise, in both definitions.
15848         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
15849         definitions.
15850         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
15851         64] (__bswap_64): Likewise.
15852         * time/test_time.c (main): Likewise.
15853         * time/tzfile.c (__tzfile_read): Likewise.
15854         (__tzfile_compute): Likewise.
15855         * time/tzset.c (__tzset_parse_tz): Likewise.
15856         (tzset_internal): Likewise.
15857         (compute_change): Likewise.
15858         * wcsmbs/wcscat.c (__wcscat): Likewise.
15859         * wcsmbs/wcschr.c (wcschr): Likewise.
15860         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15861         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15862         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15863         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
15864         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15865         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15866         * wcsmbs/wmemchr.c (wmemchr): Likewise.
15867         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15868         * wcsmbs/wmemset.c (wmemset): Likewise.
15869
15870 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
15871
15872         * scripts/config.guess: Update to version 2013-05-16.
15873         * scripts/config.sub: Update to version 2013-04-24.
15874         * scripts/install-sh: Update to version 2011-11-20.07.
15875         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
15876         * scripts/move-if-change: Update to version 2012-01-06 07:23.
15877
15878 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
15879
15880         * debug/fgetws_u_chk.c: Fix leading whitespaces.
15881         * elf/sln.c: Likewise.
15882         * hurd/hurd/ioctl.h: Likewise.
15883         * hurd/hurdmalloc.c: Likewise.
15884         * hurd/xattr.c: Likewise.
15885         * include/shlib-compat.h: Likewise.
15886         * inet/ruserpass.c: Likewise.
15887         * libio/iofgets_u.c: Likewise.
15888         * libio/iofgetws_u.c: Likewise.
15889         * locale/programs/ld-identification.c: Likewise.
15890         * locale/programs/ld-time.c: Likewise.
15891         * mach/msg-destroy.c: Likewise.
15892         * nss/nss_files/files-netgrp.c: Likewise.
15893         * resolv/res_data.c: Likewise.
15894         * soft-fp/op-1.h: Likewise.
15895         * soft-fp/op-2.h: Likewise.
15896         * soft-fp/op-4.h: Likewise.
15897         * soft-fp/op-common.h: Likewise.
15898         * stdio-common/printf_fphex.c: Likewise.
15899         * stdlib/strtod_l.c: Likewise.
15900         * sunrpc/rpc/clnt.h: Likewise.
15901         * sysdeps/generic/framestate.c: Likewise.
15902         * sysdeps/i386/bsd-_setjmp.S: Likewise.
15903         * sysdeps/i386/bsd-setjmp.S: Likewise.
15904         * sysdeps/i386/__longjmp.S: Likewise.
15905         * sysdeps/i386/setjmp.S: Likewise.
15906         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15907         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15908         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15909         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15910         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15911         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
15912         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15913         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15914         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15915         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15916         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15917         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15920         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15921         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15922         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15923         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
15924         * sysdeps/ieee754/support.c: Likewise.
15925         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15926         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
15927         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
15928         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
15929         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
15930         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
15931         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
15932         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
15933         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
15934         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
15935         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
15936         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
15937         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
15938         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
15939         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
15940         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
15941         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
15942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
15943
15944 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
15945
15946         * posix/transbug.c: Remove executable mode.
15947
15948 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
15949
15950         * crypt/speeds.c: Remove trailing whitespace.
15951         * dlfcn/default.c: Likewise.
15952         * elf/ifuncdep2.c: Likewise.
15953         * elf/ifuncmain1.c: Likewise.
15954         * elf/ifuncmain1vis.c: Likewise.
15955         * elf/testobj.h: Likewise.
15956         * elf/tst-stackguard1.c: Likewise.
15957         * gmon/sys/gmon.h: Likewise.
15958         * hurd/hurdmsg.c: Likewise.
15959         * hurd/new-fd.c: Likewise.
15960         * hurd/ports-get.c: Likewise.
15961         * iconvdata/ibm1008_420.c: Likewise.
15962         * inet/tst-getni1.c: Likewise.
15963         * inet/tst-getni2.c: Likewise.
15964         * libio/ioungetc.c: Likewise.
15965         * libio/wfiledoalloc.c: Likewise.
15966         * manual/libm-err-tab.pl: Likewise.
15967         * math/w_dremf.c: Likewise.
15968         * misc/ftruncate.c: Likewise.
15969         * posix/bug-glob2.c: Likewise.
15970         * posix/tst-pcre.c: Likewise.
15971         * posix/wait4.c: Likewise.
15972         * resolv/README: Likewise.
15973         * resolv/res_debug.h: Likewise.
15974         * resolv/tst-inet_ntop.c: Likewise.
15975         * setjmp/bug269-setjmp.c: Likewise.
15976         * soft-fp/extended.h: Likewise.
15977         * soft-fp/op-1.h: Likewise.
15978         * soft-fp/op-2.h: Likewise.
15979         * soft-fp/op-4.h: Likewise.
15980         * soft-fp/op-8.h: Likewise.
15981         * soft-fp/testit.c: Likewise.
15982         * stdio-common/bug16.c: Likewise.
15983         * stdlib/random.c: Likewise.
15984         * sunrpc/rpcsvc/rquota.x: Likewise.
15985         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
15986         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15987         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15988         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15989         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15990         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15991         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15992         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15993         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15994         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15995         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15996         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15997         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15998         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15999         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16000         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16001         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16002         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16003         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16004         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16005         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16006         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16007         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16008         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16009         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16010         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16011         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16012         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16013         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16014         * sysdeps/ieee754/s_lib_version.c: Likewise.
16015         * sysdeps/mach/hurd/check_fds.c: Likewise.
16016         * sysdeps/mach/hurd/getsockname.c: Likewise.
16017         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16018         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16019         * sysdeps/powerpc/bits/link.h: Likewise.
16020         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16021         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16022         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16023         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16024         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16025         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16026         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16027         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16028         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16029         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16030         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16031         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16032         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16033         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16034         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16035         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16036         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16037         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16038         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16039         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16040         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16041         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16042         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16043         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16044         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16045         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16046         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16047         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16048         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16049         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16050         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16051         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16052         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16053         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16054         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16055         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16056         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16057         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16058         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16059         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16060         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16061         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16062         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16063         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16064         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16065         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16066         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16067         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16068         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16069         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16070         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16071         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16072         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16073         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16074         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16075         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16076         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16077         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16078         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16079         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16080         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16081         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16082         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16083         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16084         * sysdeps/powerpc/sysdep.h: Likewise.
16085         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16086         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16087         * sysdeps/sh/dl-trampoline.S: Likewise.
16088         * sysdeps/sh/memset.S: Likewise.
16089         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16090         * sysdeps/sh/strlen.S: Likewise.
16091         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16092         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16093         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16094         * sysdeps/sparc/sparc32/rem.S: Likewise.
16095         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16096         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16097         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16098         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16099         * sysdeps/sparc/sparc32/urem.S: Likewise.
16100         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16101         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16102         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16103         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16104         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16105         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16106         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16107         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16108         * sysdeps/unix/bsd/times.c: Likewise.
16109         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16110         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16114         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16115         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16116         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16117         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16118         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16119         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16120         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16121         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16122         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16123         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16124         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16125         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16126         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16127         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16128         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16129         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16130         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16131         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16132         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16133         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16134         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16135         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16136         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16137         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16138         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16139         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16140         * sysdeps/x86_64/strcspn.S: Likewise.
16141
16142 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16143
16144         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16145         generated file.  Regenerate properly from gen-translit.pl.
16146         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16147         locale/C-translit.h.
16148
16149 2013-06-05  Andreas Schwab  <schwab@suse.de>
16150
16151         [BZ #15100]
16152         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16153         week as 6 instead of -1.
16154         * time/tst-strptime.c (day_tests): Add test case.
16155
16156 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16157
16158         * sysdeps/generic/math_private.h
16159         (libc_feholdexcept_setround_53bit): Replace with
16160         libc_feholdsetround_53bit.
16161         (libc_feupdateenv_53bit): Replace with
16162         libc_feresetround_53bit.
16163         (SET_RESTORE_ROUND_53BIT): Adjust.
16164
16165 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16166
16167         * string/test-strchrnul.c: Add copyright header.
16168
16169         * posix/tst-getaddrinfo4.c: Increase test timeout.
16170
16171 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16172
16173         [BZ #15536]
16174         * math/libm-test.inc (MAX_EXP): Remove
16175         (MIN_EXP): Define.
16176         (ulp): Use MIN_EXP - MANT_DIG.
16177         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16178
16179 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16180
16181         * po/be.po: Revert last change.
16182         * po/zh_CN.po: Likewise.
16183         * po/header.pot: Likewise.
16184
16185 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16186
16187         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16188         link-libc-deps to empty as target-specific variable.
16189         * Makerules (link-libc-args): New variable.
16190         (libc-for-link): Likewise.
16191         (link-libc-deps): Likewise.
16192         (lib%.so): Depend on $(link-libc-deps).  Link with
16193         $(link-libc-args).
16194         (build-module): Link with $(link-libc-args).
16195         (build-module-asneeded): Likewise.
16196         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16197         list of objects.
16198         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16199         target-specific variable.
16200         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16201         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16202         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16203         libc.
16204         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16205         libc and ld.so.
16206         ($(objpfx)libpcprofile.so): Likewise.
16207         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16208         libc_nonshared.a.
16209         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16210         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16211         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16212         $(link-libc-deps).
16213         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16214         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16215         * login/Makefile ($(objpfx)libutil.so): Likewise.
16216         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16217         * math/Makefile ($(objpfx)libm.so): Likewise.
16218         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16219         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16220         variable instead of depending directly on libc.
16221         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16222         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16223         $(link-libc-deps).
16224         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16225         libc.
16226         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16227         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16228         ($(objpfx)libanl.so): Likewise.
16229         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16230         ld.so.
16231         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16232         $(link-libc-deps).
16233         * sysdeps/i386/fpu/Makefile: Remove file.
16234         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16235         ($(objpfx)libm.so): Remove dependency on ld.so.
16236
16237 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16238
16239         [BZ # 15553]
16240         * nis/yp_xdr.c (XDRMAXNAME): Define.
16241         (XDRMAXRECORD): Define.
16242         (xdr_domainname): Use XDRMAXNAME.
16243         (xdr_mapname): Likewise.
16244         (xdr_peername): Likewise.
16245         (xdr_keydat): Use XDRMAXRECORD.
16246         (xdr_valdat): Likewise.
16247
16248 2013-05-30  Jeff Law  <law@redhat.com>
16249
16250         [BZ #14256]
16251         * manual/errno.texi (ESTALE): Update to account for more than
16252         just NFS file systems.
16253         * sysdeps/gnu/errlist.c: Regenerated.
16254
16255 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16256
16257         [BZ #15465]
16258         * elf/Makefile (tests): Add tst-null-argv.
16259         (modules-names):  Add tst-null-argv-lib.
16260         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16261         (tst-null-argv-ENV): Set environment for tst-null-argv.
16262         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16263         (RTLD_PROGNAME): New macro.
16264         * elf/tst-null-argv.c: New test case.
16265         * elf/tst-null-argv-lib.c: Library for test case.
16266         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16267         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16268         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16269         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16270         * elf/dl-init.c (call_init): Likewise.
16271         (_dl_init): Likewise.
16272         * elf/dl-load.c (print_search_path): Likewise.
16273         (_dl_map_object): Likewise.
16274         * elf/dl-lookup.c (do_lookup_x): Likewise.
16275         (add_dependency): Likewise.
16276         (_dl_lookup_symbol_x): Likewise.
16277         (_dl_debug_bindings): Likewise.
16278         * elf/dl-open.c (_dl_show_scope): Likewise.
16279         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16280         * elf/dl-version.c (match_symbol): Likewise.
16281         (_dl_check_map_versions): Likewise.
16282         * elf/rtld.c (dl_main): Likewise.
16283         (print_unresolved): Use RTLD_PROGNAME.
16284         (print_missing_version): Likewise.
16285         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16286         (elf_machine_rela): Likewise.
16287         * sysdeps/powerpc/powerpc32/dl-machine.c
16288         (__process_machine_rela): Likewise.
16289         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16290         Likewise.
16291         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16292         Likewise.
16293         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16294         Likewise.
16295         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16296         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16297         Likewise.
16298         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16299         Likewise.
16300         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16301
16302 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16303
16304         * po/be.po: Add descriptive title.
16305         * po/zh_CN.po: Likewise.
16306         * po/header.pot: Likewise.
16307
16308 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16309
16310         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16311         error message.
16312         (enlarge_archive): Likewise.
16313
16314 2013-05-28  Ben North  <ben@redfrontdoor.org>
16315
16316         * manual/arith.texi (frexp): It is the magnitude of the return
16317         value which lies in [0.5, 1), not the return value itself.
16318
16319 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16320
16321         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16322
16323 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16324
16325         * stdio-common/bug26.c (main): Correct fscanf template.
16326
16327         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16328         declare _dl_skip_args.
16329
16330         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16331         Don't declare.
16332
16333         * manual/platform.texi: Add missing @end deftypefun.
16334
16335 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16336
16337         [BZ #15529]
16338         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16339         bit of mantissa of 2^16382.
16340         * math/libm-test.inc (hypot_test_data): Add more tests.
16341
16342         * math/libm-test.inc: Add drem and pow10 to list of tested
16343         functions.
16344         (pow10_test): New function.
16345         (drem_test): Likewise.
16346         (drem_test_tonearest): Likewise.
16347         (drem_test_towardzero): Likewise.
16348         (drem_test_downward): Likewise.
16349         (drem_test_upward): Likewise.
16350         (main): Call the new functions.
16351
16352         * math/libm-test.inc (finite_test_data): Remove.
16353         (finite_test): Run tests from isfinite_test_data.
16354         (gamma_test_data): Remove.
16355         (gamma_test): Run tests from lgamma_test_data.
16356         * sysdeps/i386/fpu/libm-test-ulps: Update.
16357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16358
16359 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16360
16361         * manual/platform.texi: Add PowerPC PPR function set documentation.
16362         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16363         implementation.
16364
16365 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16366
16367         * math/libm-test.inc (MAX_EXP): Define.
16368         (ULPDIFF): Define.
16369         (ulp): New function.
16370         (check_float_internal): Use ULPDIFF.
16371         (cpow_test): Disable failing test.
16372         (check_ulp): Test ulp() implemetnation.
16373         (main): Call check_ulp before starting tests.
16374
16375 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16376
16377         * math/gen-libm-test.pl (generate_testfile): Do not handle
16378         START_DATA and END_DATA.
16379         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16380         END_DATA.
16381         (acos_tonearest_test_data): Likewise.
16382         (acos_towardzero_test_data): Likewise.
16383         (acos_downward_test_data): Likewise.
16384         (acos_upward_test_data): Likewise.
16385         (acosh_test_data): Likewise.
16386         (asin_test_data): Likewise.
16387         (asin_tonearest_test_data): Likewise.
16388         (asin_towardzero_test_data): Likewise.
16389         (asin_downward_test_data): Likewise.
16390         (asin_upward_test_data): Likewise.
16391         (asinh_test_data): Likewise.
16392         (atan_test_data): Likewise.
16393         (atanh_test_data): Likewise.
16394         (atan2_test_data): Likewise.
16395         (cabs_test_data): Likewise.
16396         (cacos_test_data): Likewise.
16397         (cacosh_test_data): Likewise.
16398         (carg_test_data): Likewise.
16399         (casin_test_data): Likewise.
16400         (casinh_test_data): Likewise.
16401         (catan_test_data): Likewise.
16402         (catanh_test_data): Likewise.
16403         (cbrt_test_data): Likewise.
16404         (ccos_test_data): Likewise.
16405         (ccosh_test_data): Likewise.
16406         (ceil_test_data): Likewise.
16407         (cexp_test_data): Likewise.
16408         (cimag_test_data): Likewise.
16409         (clog_test_data): Likewise.
16410         (clog10_test_data): Likewise.
16411         (conj_test_data): Likewise.
16412         (copysign_test_data): Likewise.
16413         (cos_test_data): Likewise.
16414         (cos_tonearest_test_data): Likewise.
16415         (cos_towardzero_test_data): Likewise.
16416         (cos_downward_test_data): Likewise.
16417         (cos_upward_test_data): Likewise.
16418         (cosh_test_data): Likewise.
16419         (cosh_tonearest_test_data): Likewise.
16420         (cosh_towardzero_test_data): Likewise.
16421         (cosh_downward_test_data): Likewise.
16422         (cosh_upward_test_data): Likewise.
16423         (cpow_test_data): Likewise.
16424         (cproj_test_data): Likewise.
16425         (creal_test_data): Likewise.
16426         (csin_test_data): Likewise.
16427         (csinh_test_data): Likewise.
16428         (csqrt_test_data): Likewise.
16429         (ctan_test_data): Likewise.
16430         (ctan_tonearest_test_data): Likewise.
16431         (ctan_towardzero_test_data): Likewise.
16432         (ctan_downward_test_data): Likewise.
16433         (ctan_upward_test_data): Likewise.
16434         (ctanh_test_data): Likewise.
16435         (ctanh_tonearest_test_data): Likewise.
16436         (ctanh_towardzero_test_data): Likewise.
16437         (ctanh_downward_test_data): Likewise.
16438         (ctanh_upward_test_data): Likewise.
16439         (erf_test_data): Likewise.
16440         (erfc_test_data): Likewise.
16441         (exp_test_data): Likewise.
16442         (exp_tonearest_test_data): Likewise.
16443         (exp_towardzero_test_data): Likewise.
16444         (exp_downward_test_data): Likewise.
16445         (exp_upward_test_data): Likewise.
16446         (exp10_test_data): Likewise.
16447         (exp2_test_data): Likewise.
16448         (expm1_test_data): Likewise.
16449         (fabs_test_data): Likewise.
16450         (fdim_test_data): Likewise.
16451         (finite_test_data): Likewise.
16452         (floor_test_data): Likewise.
16453         (fma_test_data): Likewise.
16454         (fma_towardzero_test_data): Likewise.
16455         (fma_downward_test_data): Likewise.
16456         (fma_upward_test_data): Likewise.
16457         (fmax_test_data): Likewise.
16458         (fmin_test_data): Likewise.
16459         (fmod_test_data): Likewise.
16460         (fpclassify_test_data): Likewise.
16461         (frexp_test_data): Likewise.
16462         (gamma_test_data): Likewise.
16463         (hypot_test_data): Likewise.
16464         (ilogb_test_data): Likewise.
16465         (isfinite_test_data): Likewise.
16466         (isgreater_test_data): Likewise.
16467         (isgreaterequal_test_data): Likewise.
16468         (isinf_test_data): Likewise.
16469         (isless_test_data): Likewise.
16470         (islessequal_test_data): Likewise.
16471         (islessgreater_test_data): Likewise.
16472         (isnan_test_data): Likewise.
16473         (isnormal_test_data): Likewise.
16474         (issignaling_test_data): Likewise.
16475         (isunordered_test_data): Likewise.
16476         (j0_test_data): Likewise.
16477         (j1_test_data): Likewise.
16478         (jn_test_data): Likewise.
16479         (ldexp_test_data): Likewise.
16480         (lgamma_test_data): Likewise.
16481         (lrint_test_data): Likewise.
16482         (lrint_tonearest_test_data): Likewise.
16483         (lrint_towardzero_test_data): Likewise.
16484         (lrint_downward_test_data): Likewise.
16485         (lrint_upward_test_data): Likewise.
16486         (llrint_test_data): Likewise.
16487         (llrint_tonearest_test_data): Likewise.
16488         (llrint_towardzero_test_data): Likewise.
16489         (llrint_downward_test_data): Likewise.
16490         (llrint_upward_test_data): Likewise.
16491         (log_test_data): Likewise.
16492         (log10_test_data): Likewise.
16493         (log1p_test_data): Likewise.
16494         (log2_test_data): Likewise.
16495         (logb_test_data): Likewise.
16496         (logb_downward_test_data): Likewise.
16497         (lround_test_data): Likewise.
16498         (llround_test_data): Likewise.
16499         (modf_test_data): Likewise.
16500         (nearbyint_test_data): Likewise.
16501         (nextafter_test_data): Likewise.
16502         (nexttoward_test_data): Likewise.
16503         (pow_test_data): Likewise.
16504         (pow_tonearest_test_data): Likewise.
16505         (pow_towardzero_test_data): Likewise.
16506         (pow_downward_test_data): Likewise.
16507         (pow_upward_test_data): Likewise.
16508         (remainder_test_data): Likewise.
16509         (remainder_tonearest_test_data): Likewise.
16510         (remainder_towardzero_test_data): Likewise.
16511         (remainder_downward_test_data): Likewise.
16512         (remainder_upward_test_data): Likewise.
16513         (remquo_test_data): Likewise.
16514         (rint_test_data): Likewise.
16515         (rint_tonearest_test_data): Likewise.
16516         (rint_towardzero_test_data): Likewise.
16517         (rint_downward_test_data): Likewise.
16518         (rint_upward_test_data): Likewise.
16519         (round_test_data): Likewise.
16520         (scalb_test_data): Likewise.
16521         (scalbn_test_data): Likewise.
16522         (scalbln_test_data): Likewise.
16523         (signbit_test_data): Likewise.
16524         (sin_test_data): Likewise.
16525         (sin_tonearest_test_data): Likewise.
16526         (sin_towardzero_test_data): Likewise.
16527         (sin_downward_test_data): Likewise.
16528         (sin_upward_test_data): Likewise.
16529         (sincos_test_data): Likewise.
16530         (sinh_test_data): Likewise.
16531         (sinh_tonearest_test_data): Likewise.
16532         (sinh_towardzero_test_data): Likewise.
16533         (sinh_downward_test_data): Likewise.
16534         (sinh_upward_test_data): Likewise.
16535         (sqrt_test_data): Likewise.
16536         (tan_test_data): Likewise.
16537         (tan_tonearest_test_data): Likewise.
16538         (tan_towardzero_test_data): Likewise.
16539         (tan_downward_test_data): Likewise.
16540         (tan_upward_test_data): Likewise.
16541         (tanh_test_data): Likewise.
16542         (tgamma_test_data): Likewise.
16543         (trunc_test_data): Likewise.
16544         (y0_test_data): Likewise.
16545         (y1_test_data): Likewise.
16546         (yn_test_data): Likewise.
16547         (significand_test_data): Likewise.
16548
16549         * math/gen-libm-test.pl (@functions): Remove variable.
16550         (generate_testfile): Don't handle START and END lines.
16551         * math/libm-test.inc (START): New macro.
16552         (END): Likewise.
16553         (END_COMPLEX): Likewise.
16554         (acos_test): Use END macro without arguments.
16555         (acos_test_tonearest): Likewise.
16556         (acos_test_towardzero): Likewise.
16557         (acos_test_downward): Likewise.
16558         (acos_test_upward): Likewise.
16559         (acosh_test): Likewise.
16560         (asin_test): Likewise.
16561         (asin_test_tonearest): Likewise.
16562         (asin_test_towardzero): Likewise.
16563         (asin_test_downward): Likewise.
16564         (asin_test_upward): Likewise.
16565         (asinh_test): Likewise.
16566         (atan_test): Likewise.
16567         (atanh_test): Likewise.
16568         (atan2_test): Likewise.
16569         (cabs_test): Likewise.
16570         (cacos_test): Use END_COMPLEX macro without arguments.
16571         (cacosh_test): Likewise.
16572         (carg_test): Use END macro without arguments.
16573         (casin_test): Use END_COMPLEX macro without arguments.
16574         (casinh_test): Likewise.
16575         (catan_test): Likewise.
16576         (catanh_test): Likewise.
16577         (cbrt_test): Use END macro without arguments.
16578         (ccos_test): Use END_COMPLEX macro without arguments.
16579         (ccosh_test): Likewise.
16580         (ceil_test): Use END macro without arguments.
16581         (cexp_test): Use END_COMPLEX macro without arguments.
16582         (cimag_test): Use END macro without arguments.
16583         (clog_test): Use END_COMPLEX macro without arguments.
16584         (clog10_test): Likewise.
16585         (conj_test): Likewise.
16586         (copysign_test): Use END macro without arguments.
16587         (cos_test): Likewise.
16588         (cos_test_tonearest): Likewise.
16589         (cos_test_towardzero): Likewise.
16590         (cos_test_downward): Likewise.
16591         (cos_test_upward): Likewise.
16592         (cosh_test): Likewise.
16593         (cosh_test_tonearest): Likewise.
16594         (cosh_test_towardzero): Likewise.
16595         (cosh_test_downward): Likewise.
16596         (cosh_test_upward): Likewise.
16597         (cpow_test): Use END_COMPLEX macro without arguments.
16598         (cproj_test): Likewise.
16599         (creal_test): Use END macro without arguments.
16600         (csin_test): Use END_COMPLEX macro without arguments.
16601         (csinh_test): Likewise.
16602         (csqrt_test): Likewise.
16603         (ctan_test): Likewise.
16604         (ctan_test_tonearest): Likewise.
16605         (ctan_test_towardzero): Likewise.
16606         (ctan_test_downward): Likewise.
16607         (ctan_test_upward): Likewise.
16608         (ctanh_test): Likewise.
16609         (ctanh_test_tonearest): Likewise.
16610         (ctanh_test_towardzero): Likewise.
16611         (ctanh_test_downward): Likewise.
16612         (ctanh_test_upward): Likewise.
16613         (erf_test): Use END macro without arguments.
16614         (erfc_test): Likewise.
16615         (exp_test): Likewise.
16616         (exp_test_tonearest): Likewise.
16617         (exp_test_towardzero): Likewise.
16618         (exp_test_downward): Likewise.
16619         (exp_test_upward): Likewise.
16620         (exp10_test): Likewise.
16621         (exp2_test): Likewise.
16622         (expm1_test): Likewise.
16623         (fabs_test): Likewise.
16624         (fdim_test): Likewise.
16625         (finite_test): Likewise.
16626         (floor_test): Likewise.
16627         (fma_test): Likewise.
16628         (fma_test_towardzero): Likewise.
16629         (fma_test_downward): Likewise.
16630         (fma_test_upward): Likewise.
16631         (fmax_test): Likewise.
16632         (fmin_test): Likewise.
16633         (fmod_test): Likewise.
16634         (fpclassify_test): Likewise.
16635         (frexp_test): Likewise.
16636         (gamma_test): Likewise.
16637         (hypot_test): Likewise.
16638         (ilogb_test): Likewise.
16639         (isfinite_test): Likewise.
16640         (isgreater_test): Likewise.
16641         (isgreaterequal_test): Likewise.
16642         (isinf_test): Likewise.
16643         (isless_test): Likewise.
16644         (islessequal_test): Likewise.
16645         (islessgreater_test): Likewise.
16646         (isnan_test): Likewise.
16647         (isnormal_test): Likewise.
16648         (issignaling_test): Likewise.
16649         (isunordered_test): Likewise.
16650         (j0_test): Likewise.
16651         (j1_test): Likewise.
16652         (jn_test): Likewise.
16653         (ldexp_test): Likewise.
16654         (lgamma_test): Likewise.
16655         (lrint_test): Likewise.
16656         (lrint_test_tonearest): Likewise.
16657         (lrint_test_towardzero): Likewise.
16658         (lrint_test_downward): Likewise.
16659         (lrint_test_upward): Likewise.
16660         (llrint_test): Likewise.
16661         (llrint_test_tonearest): Likewise.
16662         (llrint_test_towardzero): Likewise.
16663         (llrint_test_downward): Likewise.
16664         (llrint_test_upward): Likewise.
16665         (log_test): Likewise.
16666         (log10_test): Likewise.
16667         (log1p_test): Likewise.
16668         (log2_test): Likewise.
16669         (logb_test): Likewise.
16670         (logb_test_downward): Likewise.
16671         (lround_test): Likewise.
16672         (llround_test): Likewise.
16673         (modf_test): Likewise.
16674         (nearbyint_test): Likewise.
16675         (nextafter_test): Likewise.
16676         (nexttoward_test): Likewise.
16677         (pow_test): Likewise.
16678         (pow_test_tonearest): Likewise.
16679         (pow_test_towardzero): Likewise.
16680         (pow_test_downward): Likewise.
16681         (pow_test_upward): Likewise.
16682         (remainder_test): Likewise.
16683         (remainder_test_tonearest): Likewise.
16684         (remainder_test_towardzero): Likewise.
16685         (remainder_test_downward): Likewise.
16686         (remainder_test_upward): Likewise.
16687         (remquo_test): Likewise.
16688         (rint_test): Likewise.
16689         (rint_test_tonearest): Likewise.
16690         (rint_test_towardzero): Likewise.
16691         (rint_test_downward): Likewise.
16692         (rint_test_upward): Likewise.
16693         (round_test): Likewise.
16694         (scalb_test): Likewise.
16695         (scalbn_test): Likewise.
16696         (scalbln_test): Likewise.
16697         (signbit_test): Likewise.
16698         (sin_test): Likewise.
16699         (sin_test_tonearest): Likewise.
16700         (sin_test_towardzero): Likewise.
16701         (sin_test_downward): Likewise.
16702         (sin_test_upward): Likewise.
16703         (sincos_test): Likewise.
16704         (sinh_test): Likewise.
16705         (sinh_test_tonearest): Likewise.
16706         (sinh_test_towardzero): Likewise.
16707         (sinh_test_downward): Likewise.
16708         (sinh_test_upward): Likewise.
16709         (sqrt_test): Likewise.
16710         (tan_test): Likewise.
16711         (tan_test_tonearest): Likewise.
16712         (tan_test_towardzero): Likewise.
16713         (tan_test_downward): Likewise.
16714         (tan_test_upward): Likewise.
16715         (tanh_test): Likewise.
16716         (tgamma_test): Likewise.
16717         (trunc_test): Likewise.
16718         (y0_test): Likewise.
16719         (y1_test): Likewise.
16720         (yn_test): Likewise.
16721         (significand_test): Likewise.
16722
16723 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
16724
16725         [BZ #15381]
16726         * libio/genops.c (_IO_no_init): Initialize wide struct info.
16727
16728 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
16729
16730         [BZ #14894]
16731         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
16732         __ppc_mdoio and __ppc_mdoom.
16733         * manual/platform.texi: Document new functions __ppc_yield,
16734         __ppc_mdoio and __ppc_mdoom.
16735
16736 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
16737
16738         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
16739         (main): Mention "tls" pseudo-hwcap is legacy.
16740         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
16741
16742 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16743
16744         * math/gen-libm-test.pl (parse_args): Output only string of
16745         arguments as text for test name, not full call or descriptions of
16746         tests for extra outputs.
16747         (generate_testfile): Do not pass function name to parse_args.
16748         Generate this_func variable from START.
16749         * math/libm-test.inc (struct test_f_f_data): Rename test_name
16750         field to arg_str.
16751         (struct test_ff_f_data): Likewise.
16752         (test_ff_f_data_nexttoward): Likewise.
16753         (struct test_fi_f_data): Likewise.
16754         (struct test_fl_f_data): Likewise.
16755         (struct test_if_f_data): Likewise.
16756         (struct test_fff_f_data): Likewise.
16757         (struct test_c_f_data): Likewise.
16758         (struct test_f_f1_data): Likewise.  Remove field extra_name.
16759         (struct test_fF_f1_data): Likewise.
16760         (struct test_ffI_f1_data): Likewise.
16761         (struct test_c_c_data): Rename test_name field to arg_str.
16762         (struct test_cc_c_data): Likewise.
16763         (struct test_f_i_data): Likewise.
16764         (struct test_ff_i_data): Likewise.
16765         (struct test_f_l_data): Likewise.
16766         (struct test_f_L_data): Likewise.
16767         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
16768         and extra2_name.
16769         (COMMON_TEST_SETUP): New macro.
16770         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
16771         (COMMON_TEST_CLEANUP): Likewise.
16772         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
16773         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
16774         macros.
16775         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
16776         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
16777         macros.
16778         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
16779         (RUN_TEST_fff_f): Take argument string.  Call new setup and
16780         cleanup macros.
16781         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
16782         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
16783         macros.
16784         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
16785         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
16786         macros.
16787         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16788         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
16789         cleanup macros.
16790         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16791         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
16792         cleanup macros.
16793         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16794         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
16795         cleanup macros.
16796         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16797         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
16798         macros.
16799         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
16800         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
16801         macros.
16802         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
16803         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
16804         macros.
16805         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
16806         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
16807         cleanup macros.
16808         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
16809         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
16810         cleanup macros.
16811         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
16812         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
16813         macros.
16814         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
16815         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
16816         cleanup macros.
16817         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
16818         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
16819         macros.
16820         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
16821         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
16822         macros.
16823         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
16824         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
16825         cleanup macros.
16826         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
16827
16828 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16829
16830         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
16831         to _sifields.sigfault.
16832         (si_addr_lsb): Define new macro.
16833         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
16834         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16835         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
16836
16837 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
16838
16839         [BZ #15441]
16840         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
16841         returns -1.
16842         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
16843         null return -1.
16844         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
16845         loading the domain.
16846
16847 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16848
16849         * math/gen-libm-test.pl (parse_args): Do not include expected
16850         result in test name.
16851         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
16852         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16853         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16854         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16855         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16857
16858 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16859
16860         * benchtests/Makefile: Sort function entries.
16861
16862         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
16863         tanh, asinh, acosh, atanh.
16864         * benchtests/acos-inputs: New file.
16865         * benchtests/acosh-inputs: New file.
16866         * benchtests/asin-inputs: New file.
16867         * benchtests/asinh-inputs: New file.
16868         * benchtests/atanh-inputs: New file.
16869         * benchtests/cosh-inputs: New file.
16870         * benchtests/log-inputs: New file.
16871         * benchtests/sinh-inputs: New file.
16872         * benchtests/tanh-inputs: New file.
16873
16874 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
16875
16876         [BZ #15339]
16877         * posix/tst-getaddrinfo4.c: New test.
16878         * posix/Makefile (tests): Add it.
16879
16880 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16881
16882         [BZ #15339]
16883         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
16884         when no services were used.
16885         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
16886         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
16887
16888 2013-05-21  Andreas Schwab  <schwab@suse.de>
16889
16890         [BZ #15014]
16891         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
16892         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
16893         successful.
16894         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
16895         redundant variable declarations and reallocation of buffer when
16896         parsing as IPv6 address.  Always set NSS status when called from
16897         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
16898         buffer too small.  Correct computation of needed size.
16899         * nss/Makefile (tests): Add test-digits-dots.
16900         * nss/test-digits-dots.c: New test.
16901
16902 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16903
16904         * benchtests/Makefile: Remove instructions for adding
16905         benchmark tests.
16906         * benchtests/README: New file to explain how to execute and
16907         enhance the benchmark tests.
16908
16909 2013-05-21  Andreas Schwab  <schwab@suse.de>
16910
16911         [BZ #15493]
16912         * setjmp/Makefile (tests): Add tst-sigsetjmp.
16913         * setjmp/tst-sigsetjmp.c: New test.
16914
16915 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16916
16917         * sysdeps/x86_64/memset.S (memset): New implementation.
16918         (__bzero): Likewise.
16919         (__memset_tail): New function.
16920
16921 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16922
16923         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
16924         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
16925         __memcpy_sse2_unaligned ifunc selection.
16926         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
16927         Add memcpy-sse2-unaligned.S.
16928         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16929         Add: __memcpy_sse2_unaligned.
16930
16931 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
16932
16933         [BZ #15490]
16934         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
16935         math_force_eval before restoring floating-point envrionment.
16936         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
16937         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
16938         Likewise.
16939         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
16940         <math_private.h>.
16941         (__nearbyintl): Use math_force_eval before restoring
16942         floating-point environment.
16943         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
16944
16945         * math/gen-libm-test.pl (special_functions): Remove.
16946         (parse_args): Don't handle TEST_extra.  Handle functions with no
16947         return value.
16948         * math/libm-test.inc (struct test_sincos_data): Replace with
16949         struct test_fFF_11_data.
16950         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
16951         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
16952         (sincos_test_data): Change element type to struct
16953         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
16954         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
16955         RUN_TEST_LOOP_sincos.
16956         * math/README.libm-test: Don't mention special handling of
16957         individual functions.
16958         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
16959         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16960         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16961         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16962         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16963         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16964
16965         * math/gen-libm-test.pl (get_variable): Remove function.
16966         (parse_args): Don't show pointer parameters to call in test
16967         names.  Use "extra output N" in test names for extra outputs
16968         rather than naming variables.
16969
16970 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
16971
16972         [BZ #15488]
16973         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
16974         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
16975         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
16976         double tests.
16977         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
16978         disable.
16979         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
16980         check_long_double.
16981
16982         * math/gen-libm-test.pl (@tests): Remove variable.
16983         ($count): Likewise.
16984         (new_test): Remove function.
16985         (show_exceptions): New function.
16986         (special_functions): Use show_exceptions instead of new_test.
16987         (parse_args): Likewise.
16988         (generate_testfile): Pass only function name in generated call to
16989         print_max_error or print_complex_max_error.
16990         (get_ulps): Do not handle complex tests specially.
16991         (output_test): Rename to ...
16992         (get_all_ulps_for_test): ... this.  Return a string rather than
16993         printing to a file.  Require ulps to be present.
16994         (output_ulps): Generate arrays rather than #defines.
16995         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
16996         (struct ulp_data): New type.
16997         (BUILD_COMPLEX_ULP): Remove macro.
16998         (compare_ulp_data): New function.
16999         (find_ulps): Likewise.
17000         (find_test_ulps): Likewise.
17001         (find_function_ulps): Likewise.
17002         (find_complex_function_ulps): Likewise.
17003         (print_max_error): Determine allowed ulps using
17004         find_function_ulps.
17005         (print_complex_max_error): Determine allowed ulps using
17006         find_complex_function_ulps.
17007         (check_float_internal): Determine max ulps using find_test_ulps.
17008         (check_float): Do not take max_ulp parameter.  Update call to
17009         check_float_internal.
17010         (check_complex): Likewise.
17011         (check_int): Do not take max_ulp parameter.
17012         (check_long): Likewise.
17013         (check_bool): Likewise.
17014         (check_longlong): Likewise.
17015         (struct test_f_f_data): Remove max_ulp field.
17016         (struct test_ff_f_data): Likewise.
17017         (struct test_ff_f_data_nexttoward): Likewise.
17018         (struct test_fi_f_data): Likewise.
17019         (struct test_fl_f_data): Likewise.
17020         (struct test_if_f_data): Likewise.
17021         (struct test_fff_f_data): Likewise.
17022         (struct test_c_f_data): Likewise.
17023         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17024         (struct test_fF_f1_data): Likewise.
17025         (struct test_ffI_f1_data): Likewise.
17026         (struct test_c_c_data): Remove max_ulp field.
17027         (struct test_cc_c_data): Likewise.
17028         (struct test_f_i_data): Likewise.
17029         (struct test_ff_i_data): Likewise.
17030         (struct test_f_l_data): Likewise.
17031         (struct test_f_L_data): Likewise.
17032         (struct test_sincos_data): Likewise.
17033         (RUN_TEST_f_f): Do not handle ulps.
17034         (RUN_TEST_LOOP_f_f): Likewise.
17035         (RUN_TEST_2_f): Likewise.
17036         (RUN_TEST_LOOP_2_f): Likewise.
17037         (RUN_TEST_fff_f): Likewise.
17038         (RUN_TEST_LOOP_fff_f): Likewise.
17039         (RUN_TEST_c_f): Likewise.
17040         (RUN_TEST_LOOP_c_f): Likewise.
17041         (RUN_TEST_f_f1): Likewise.
17042         (RUN_TEST_LOOP_f_f1): Likewise.
17043         (RUN_TEST_fF_f1): Likewise.
17044         (RUN_TEST_LOOP_fF_f1): Likewise.
17045         (RUN_TEST_fI_f1): Likewise.
17046         (RUN_TEST_LOOP_fI_f1): Likewise.
17047         (RUN_TEST_ffI_f1): Likewise.
17048         (RUN_TEST_LOOP_ffI_f1): Likewise.
17049         (RUN_TEST_c_c): Likewise.
17050         (RUN_TEST_LOOP_c_c): Likewise.
17051         (RUN_TEST_cc_c): Likewise.
17052         (RUN_TEST_LOOP_cc_c): Likewise.
17053         (RUN_TEST_f_i): Likewise.
17054         (RUN_TEST_LOOP_f_i): Likewise.
17055         (RUN_TEST_f_i_tg): Likewise.
17056         (RUN_TEST_LOOP_f_i_tg): Likewise.
17057         (RUN_TEST_ff_i_tg): Likewise.
17058         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17059         (RUN_TEST_f_b): Likewise.
17060         (RUN_TEST_LOOP_f_b): Likewise.
17061         (RUN_TEST_f_b_tg): Likewise.
17062         (RUN_TEST_LOOP_f_b_tg): Likewise.
17063         (RUN_TEST_f_l): Likewise.
17064         (RUN_TEST_LOOP_f_l): Likewise.
17065         (RUN_TEST_f_L): Likewise.
17066         (RUN_TEST_LOOP_f_L): Likewise.
17067         (RUN_TEST_sincos): Likewise.
17068         (RUN_TEST_LOOP_sincos): Likewise.
17069
17070 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17071
17072         [BZ #15480]
17073         [BZ #15485]
17074         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17075         main case of finite arguments, set rounding mode to FE_TONEAREST
17076         and discard exceptions.
17077         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17078         exceptions.
17079         (remainder_tonearest_test_data): New variable.
17080         (remainder_test_tonearest): New function.
17081         (remainder_towardzero_test_data): New variable.
17082         (remainder_test_towardzero): New function.
17083         (remainder_downward_test_data): New variable.
17084         (remainder_test_downward): New function.
17085         (remainder_upward_test_data): New variable.
17086         (remainder_test_upward): New function.
17087         (main): Call the new test functions.
17088
17089         * math/libm-test.inc (struct test_f_f1_data): Remove field
17090         extra_init.
17091         (struct test_fF_f1_data): Likewise.
17092         (struct test_ffI_f1_data): Likewise.
17093         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17094         based on value of EXTRA_EXPECTED.
17095         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17096         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17097         EXTRA_VAR based on value of EXTRA_EXPECTED.
17098         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17099         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17100         EXTRA_VAR based on value of EXTRA_EXPECTED.
17101         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17102         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17103         EXTRA_VAR based on value of EXTRA_EXPECTED.
17104         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17105         * math/gen-libm-test.pl (parse_args): Don't output initializers
17106         for extra output values.
17107
17108         * math/libm-test.inc (check_int): Expect result to be exactly
17109         equal to expected value and do not handle ulps.
17110         (check_long): Likewise.
17111         (check_longlong): Likewise.
17112
17113         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17114         exceptions.
17115         (cimag_test_data): Likewise.
17116         (conj_test_data): Likewise.
17117         (copysign_test_data): Likewise.
17118         (cproj_test_data): Likewise.
17119         (creal_test_data): Likewise.
17120         (fabs_test_data): Likewise.
17121         (fdim_test_data): Likewise.
17122         (finite_test_data): Likewise.
17123         (floor_test_data): Likewise.
17124         (fmax_test_data): Likewise.
17125         (fmin_test_data): Likewise.
17126         (fmod_test_data): Likewise.
17127         (fpclassify_test_data): Likewise.
17128         (frexp_test_data): Likewise.
17129         (ilogb_test_data): Likewise.
17130         (isfinite_test_data): Likewise.
17131         (isgreater_test_data): Likewise.
17132         (isgreaterequal_test_data): Likewise.
17133         (isinf_test_data): Likewise.
17134         (isless_test_data): Likewise.
17135         (islessequal_test_data): Likewise.
17136         (islessgreater_test_data): Likewise.
17137         (isnan_test_data): Likewise.
17138         (isnormal_test_data): Likewise.
17139         (issignaling_test_data): Likewise.
17140         (isunordered_test_data): Likewise.
17141         (ldexp_test_data): Likewise.
17142         (lrint_test_data): Likewise.
17143         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17144         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17145         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17146         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17147         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17148         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17149         test input.
17150         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17151         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17152         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17153         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17154         that test input.
17155         (lrint_downward_test_data): Test for "inexact" exceptions.
17156         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17157         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17158         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17159         test input.
17160         (lrint_upward_test_data): Test for "inexact" exceptions.
17161         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17162         test input.
17163         (llrint_test_data): Test for "inexact" exceptions.
17164         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17165         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17166         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17167         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17168         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17169         (llrint_downward_test_data): Test for "inexact" exceptions.
17170         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17171         (llrint_upward_test_data): Test for "inexact" exceptions.
17172         (logb_test_data): Likewise.
17173         (logb_downward_test_data): Likewise.
17174         (nextafter_test_data): Likewise.
17175         (nexttoward_test_data): Likewise.
17176         (remainder_test_data): Likewise.
17177         (remquo_test_data): Likewise.
17178         (scalbn_test_data): Likewise.
17179         (scalbln_test_data): Likewise.
17180         (signbit_test_data): Likewise.
17181         (sqrt_test_data): Likewise.
17182         (significand_test_data): Likewise.
17183
17184 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17185
17186         [BZ #15424]
17187         * benchtests/bench-modf.c (struct args): Mark arg0 as
17188         volatile.
17189         * scripts/bench.pl: Mark members of struct args as volatile.
17190
17191 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17192
17193         [BZ # 15497]
17194         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17195         negative infinity on POWER6 or lower.
17196         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17197
17198 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17199
17200         [BZ #15442]
17201         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17202         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17203         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17204         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17205         (_FP_SETQNAN): New macro.
17206         (_FP_SETQNAN_SEMIRAW): Likewise.
17207         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17208         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17209         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17210         (FP_EXTEND): Use _FP_FRAC_SNANP.
17211         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17212         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17213         into account.
17214         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17215         New macro.
17216         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17217         Likewise.
17218
17219 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17220
17221         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17222         with DIVIDE_BY_ZERO_EXCEPTION.
17223         (gamma_test_data): Likewise.
17224         (lgamma_test_data): Likewise.
17225         (log_test_data): Likewise.
17226         (log10_test_data): Likewise.
17227         (log2_test_data): Likewise.
17228         (tgamma_test_data): Likewise.
17229
17230         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17231         (acos_test_tonearest): Likewise.
17232         (acos_test_towardzero): Likewise.
17233         (acos_test_downward): Likewise.
17234         (acos_test_upward): Likewise.
17235         (acosh_test): Likewise.
17236         (asin_test): Likewise.
17237         (asin_test_tonearest): Likewise.
17238         (asin_test_towardzero): Likewise.
17239         (asin_test_downward): Likewise.
17240         (asin_test_upward): Likewise.
17241         (asinh_test): Likewise.
17242         (atan_test): Likewise.
17243         (atanh_test): Likewise.
17244         (atan2_test): Likewise.
17245         (cabs_test): Likewise.
17246         (cacos_test): Likewise.
17247         (cacosh_test): Likewise.
17248         (casin_test): Likewise.
17249         (casinh_test): Likewise.
17250         (catan_test): Likewise.
17251         (catanh_test): Likewise.
17252         (cbrt_test): Likewise.
17253         (ccos_test): Likewise.
17254         (ccosh_test): Likewise.
17255         (cexp_test): Likewise.
17256         (clog_test): Likewise.
17257         (clog10_test): Likewise.
17258         (cos_test): Likewise.
17259         (cos_test_tonearest): Likewise.
17260         (cos_test_towardzero): Likewise.
17261         (cos_test_downward): Likewise.
17262         (cos_test_upward): Likewise.
17263         (cosh_test): Likewise.
17264         (cosh_test_tonearest): Likewise.
17265         (cosh_test_towardzero): Likewise.
17266         (cosh_test_downward): Likewise.
17267         (cosh_test_upward): Likewise.
17268         (cpow_test): Likewise.
17269         (csin_test): Likewise.
17270         (csinh_test): Likewise.
17271         (csqrt_test): Likewise.
17272         (ctan_test): Likewise.
17273         (ctan_test_tonearest): Likewise.
17274         (ctan_test_towardzero): Likewise.
17275         (ctan_test_downward): Likewise.
17276         (ctan_test_upward): Likewise.
17277         (ctanh_test): Likewise.
17278         (ctanh_test_tonearest): Likewise.
17279         (ctanh_test_towardzero): Likewise.
17280         (ctanh_test_downward): Likewise.
17281         (ctanh_test_upward): Likewise.
17282         (erf_test): Likewise.
17283         (erfc_test): Likewise.
17284         (exp_test): Likewise.
17285         (exp_test_tonearest): Likewise.
17286         (exp_test_towardzero): Likewise.
17287         (exp_test_downward): Likewise.
17288         (exp_test_upward): Likewise.
17289         (exp10_test): Likewise.
17290         (exp2_test): Likewise.
17291         (expm1_test): Likewise.
17292         (fmod_test): Likewise.
17293         (gamma_test): Likewise.
17294         (hypot_test): Likewise.
17295         (j0_test): Likewise.
17296         (j1_test): Likewise.
17297         (jn_test): Likewise.
17298         (lgamma_test): Likewise.
17299         (log_test): Likewise.
17300         (log10_test): Likewise.
17301         (log1p_test): Likewise.
17302         (log2_test): Likewise.
17303         (logb_test_downward): Likewise.
17304         (pow_test): Likewise.
17305         (pow_test_tonearest): Likewise.
17306         (pow_test_towardzero): Likewise.
17307         (pow_test_downward): Likewise.
17308         (pow_test_upward): Likewise.
17309         (remainder_test): Likewise.
17310         (remquo_test): Likewise.
17311         (sin_test): Likewise.
17312         (sin_test_tonearest): Likewise.
17313         (sin_test_towardzero): Likewise.
17314         (sin_test_downward): Likewise.
17315         (sin_test_upward): Likewise.
17316         (sincos_test): Likewise.
17317         (sinh_test): Likewise.
17318         (sinh_test_tonearest): Likewise.
17319         (sinh_test_towardzero): Likewise.
17320         (sinh_test_downward): Likewise.
17321         (sinh_test_upward): Likewise.
17322         (sqrt_test): Likewise.
17323         (tan_test): Likewise.
17324         (tan_test_tonearest): Likewise.
17325         (tan_test_towardzero): Likewise.
17326         (tan_test_downward): Likewise.
17327         (tan_test_upward): Likewise.
17328         (tanh_test): Likewise.
17329         (tgamma_test): Likewise.
17330         (y0_test): Likewise.
17331         (y1_test): Likewise.
17332         (yn_test): Likewise.
17333
17334         * math/gen-libm-test.pl (adjust_arg): Remove function.
17335         (special_function): Remove argument $in_func.  Only handle
17336         generating output for tables of tests, not inside functions.
17337         (parse_args): Likewise.
17338         (generate_testfile): Remove variable $in_func.  Update call to
17339         parse_args.
17340         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17341         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17342         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17343         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17344         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17345         (MAX_VALUE_INIT): Rename macro to max_value.
17346         (MIN_VALUE_INIT): Rename macro to min_value.
17347         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17348         (plus_zero): Remove variable.
17349         (minus_zero): Likewise.
17350         (plus_infty): Likewise.
17351         (minus_infty): Likewise.
17352         (qnan_value): Likewise.
17353         (max_value): Likewise.
17354         (min_value): Likewise.
17355         (min_subnorm_value): Likewise.
17356
17357 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17358
17359         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17360         uint64_t or uint32_t usage.
17361         * crypt/sha256-block.c: Likewise.
17362         * crypt/sha256-crypt.c: Likewise.
17363         * crypt/sha256.c: Likewise.
17364         * crypt/sha512-block.c: Likewise.
17365         * crypt/sha512-crypt.c: Likewise.
17366         * crypt/sha512.c: Likewise.
17367         * debug/backtrace-tst.c: Likewise.
17368         * debug/pcprofiledump.c: Likewise.
17369         * elf/cache.c: Likewise.
17370         * elf/dl-cache.c: Likewise.
17371         * elf/dl-misc.c: Likewise.
17372         * elf/dl-profile.c: Likewise.
17373         * elf/dl-support.c: Likewise.
17374         * elf/ldconfig.c: Likewise.
17375         * elf/sprof.c: Likewise.
17376         * iconv/dummy-repertoire.c: Likewise.
17377         * iconv/iconv_charmap.c: Likewise.
17378         * iconv/skeleton.c: Likewise.
17379         * iconvdata/8bit-generic.c: Likewise.
17380         * iconvdata/cp737.h: Likewise.
17381         * iconvdata/cp775.h: Likewise.
17382         * iconvdata/ibm1008.h: Likewise.
17383         * iconvdata/ibm1025.h: Likewise.
17384         * iconvdata/ibm1046.h: Likewise.
17385         * iconvdata/ibm1097.h: Likewise.
17386         * iconvdata/ibm1112.h: Likewise.
17387         * iconvdata/ibm1122.h: Likewise.
17388         * iconvdata/ibm1123.h: Likewise.
17389         * iconvdata/ibm1124.h: Likewise.
17390         * iconvdata/ibm1129.h: Likewise.
17391         * iconvdata/ibm1130.h: Likewise.
17392         * iconvdata/ibm1132.h: Likewise.
17393         * iconvdata/ibm1133.h: Likewise.
17394         * iconvdata/ibm1137.h: Likewise.
17395         * iconvdata/ibm1140.h: Likewise.
17396         * iconvdata/ibm1141.h: Likewise.
17397         * iconvdata/ibm1142.h: Likewise.
17398         * iconvdata/ibm1143.h: Likewise.
17399         * iconvdata/ibm1144.h: Likewise.
17400         * iconvdata/ibm1145.h: Likewise.
17401         * iconvdata/ibm1146.h: Likewise.
17402         * iconvdata/ibm1147.h: Likewise.
17403         * iconvdata/ibm1148.h: Likewise.
17404         * iconvdata/ibm1149.h: Likewise.
17405         * iconvdata/ibm1153.h: Likewise.
17406         * iconvdata/ibm1154.h: Likewise.
17407         * iconvdata/ibm1155.h: Likewise.
17408         * iconvdata/ibm1156.h: Likewise.
17409         * iconvdata/ibm1157.h: Likewise.
17410         * iconvdata/ibm1158.h: Likewise.
17411         * iconvdata/ibm1160.h: Likewise.
17412         * iconvdata/ibm1161.h: Likewise.
17413         * iconvdata/ibm1162.h: Likewise.
17414         * iconvdata/ibm1163.h: Likewise.
17415         * iconvdata/ibm1164.h: Likewise.
17416         * iconvdata/ibm1166.h: Likewise.
17417         * iconvdata/ibm1167.h: Likewise.
17418         * iconvdata/ibm12712.h: Likewise.
17419         * iconvdata/ibm1390.h: Likewise.
17420         * iconvdata/ibm1399.h: Likewise.
17421         * iconvdata/ibm16804.h: Likewise.
17422         * iconvdata/ibm4517.h: Likewise.
17423         * iconvdata/ibm4899.h: Likewise.
17424         * iconvdata/ibm4909.h: Likewise.
17425         * iconvdata/ibm4971.h: Likewise.
17426         * iconvdata/ibm5347.h: Likewise.
17427         * iconvdata/ibm803.h: Likewise.
17428         * iconvdata/ibm856.h: Likewise.
17429         * iconvdata/ibm901.h: Likewise.
17430         * iconvdata/ibm902.h: Likewise.
17431         * iconvdata/ibm9030.h: Likewise.
17432         * iconvdata/ibm9066.h: Likewise.
17433         * iconvdata/ibm921.h: Likewise.
17434         * iconvdata/ibm922.h: Likewise.
17435         * iconvdata/ibm9448.h: Likewise.
17436         * iconvdata/isiri-3342.h: Likewise.
17437         * iconvdata/jis0201.h: Likewise.
17438         * include/link.h: Likewise.
17439         * include/netdb.h: Likewise.
17440         * inet/check_native.c: Likewise.
17441         * inet/check_pf.c: Likewise.
17442         * inet/getipv4sourcefilter.c: Likewise.
17443         * inet/getnameinfo.c: Likewise.
17444         * inet/getsourcefilter.c: Likewise.
17445         * inet/htonl.c: Likewise.
17446         * inet/setipv4sourcefilter.c: Likewise.
17447         * inet/setsourcefilter.c: Likewise.
17448         * inet/test-inet6_opt.c: Likewise.
17449         * inet/tst-network.c: Likewise.
17450         * locale/C-collate.c: Likewise.
17451         * locale/C-ctype.c: Likewise.
17452         * locale/C-time.c: Likewise.
17453         * locale/C-translit.h: Likewise.
17454         * locale/loadarchive.c: Likewise.
17455         * locale/programs/3level.h: Likewise.
17456         * locale/programs/charmap.c: Likewise.
17457         * locale/programs/charmap.h: Likewise.
17458         * locale/programs/ld-address.c: Likewise.
17459         * locale/programs/ld-collate.c: Likewise.
17460         * locale/programs/ld-ctype.c: Likewise.
17461         * locale/programs/ld-identification.c: Likewise.
17462         * locale/programs/ld-measurement.c: Likewise.
17463         * locale/programs/ld-messages.c: Likewise.
17464         * locale/programs/ld-monetary.c: Likewise.
17465         * locale/programs/ld-name.c: Likewise.
17466         * locale/programs/ld-numeric.c: Likewise.
17467         * locale/programs/ld-paper.c: Likewise.
17468         * locale/programs/ld-telephone.c: Likewise.
17469         * locale/programs/ld-time.c: Likewise.
17470         * locale/programs/linereader.c: Likewise.
17471         * locale/programs/locale.c: Likewise.
17472         * locale/programs/locarchive.c: Likewise.
17473         * locale/programs/locfile.h: Likewise.
17474         * locale/programs/repertoire.c: Likewise.
17475         * locale/programs/simple-hash.c: Likewise.
17476         * locale/programs/simple-hash.h: Likewise.
17477         * malloc/memusage.c: Likewise.
17478         * malloc/memusagestat.c: Likewise.
17479         * nis/nis_defaults.c: Likewise.
17480         * nis/nis_hash.c: Likewise.
17481         * nis/nis_print.c: Likewise.
17482         * nis/nis_xdr.c: Likewise.
17483         * nscd/connections.c: Likewise.
17484         * nscd/hstcache.c: Likewise.
17485         * nscd/nscd_gethst_r.c: Likewise.
17486         * nscd/nscd_getserv_r.c: Likewise.
17487         * nscd/nscd_helper.c: Likewise.
17488         * nscd/servicescache.c: Likewise.
17489         * nss/makedb.c: Likewise.
17490         * nss/nss_db/db-XXX.c: Likewise.
17491         * nss/nss_db/db-initgroups.c: Likewise.
17492         * nss/nss_db/db-netgrp.c: Likewise.
17493         * nss/nss_files/files-network.c: Likewise.
17494         * nss/nss_files/files-parse.c: Likewise.
17495         * posix/bug-regex5.c: Likewise.
17496         * posix/fnmatch_loop.c: Likewise.
17497         * posix/regcomp.c: Likewise.
17498         * posix/regexec.c: Likewise.
17499         * posix/tst-rfc3484-2.c: Likewise.
17500         * posix/tst-rfc3484-3.c: Likewise.
17501         * posix/tst-rfc3484.c: Likewise.
17502         * resolv/nss_dns/dns-canon.c: Likewise.
17503         * resolv/nss_dns/dns-network.c: Likewise.
17504         * resolv/res_init.c: Likewise.
17505         * resolv/res_mkquery.c: Likewise.
17506         * resolv/tst-aton.c: Likewise.
17507         * stdlib/cxa_atexit.c: Likewise.
17508         * stdlib/cxa_finalize.c: Likewise.
17509         * stdlib/gen-fpioconst.c: Likewise.
17510         * stdlib/strtol_l.c: Likewise.
17511         * string/tst-endian.c: Likewise.
17512         * sunrpc/auth_des.c: Likewise.
17513         * sunrpc/clnt_udp.c: Likewise.
17514         * sunrpc/rtime.c: Likewise.
17515         * sunrpc/svcauth_des.c: Likewise.
17516         * sunrpc/xdr.c: Likewise.
17517         * sunrpc/xdr_intXX_t.c: Likewise.
17518         * sunrpc/xdr_rec.c: Likewise.
17519         * sysdeps/generic/ldconfig.h: Likewise.
17520         * sysdeps/generic/ldsodefs.h: Likewise.
17521         * sysdeps/generic/memusage.h: Likewise.
17522         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17523         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17524         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17525         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17526         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17527         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17528         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17529         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17530         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17531         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17532         * sysdeps/posix/getaddrinfo.c: Likewise.
17533         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17534         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17535         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17536         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17537         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17538         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17539         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17540         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17541         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17542         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17543         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17544         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17545         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17546         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17547         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17548         * sysdeps/x86_64/dl-tls.h: Likewise.
17549         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17550         * time/alt_digit.c: Likewise.
17551         * time/era.c: Likewise.
17552         * wcsmbs/tst-c16c32-1.c: Likewise.
17553
17554 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17555
17556         * math/libm-test.inc (struct test_sincos_data): New type.
17557         (RUN_TEST_LOOP_sincos): New macro.
17558         (sincos_test_data): New variable.
17559         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17560
17561 2013-05-16  Richard Henderson  <rth@redhat.com>
17562
17563         * math/atest-exp2.c (LIMB64): New macro.
17564         (CONSTSZ): New macro.
17565         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17566         (hexdig): Move ...
17567         (print_mpn_fp): ... to function scope.
17568         (read_mpn_hex): Remove.
17569         (get_log2): Remove.
17570         (exp2_mpn): Use mp_log2.
17571         (main): Use mp_exp1.
17572
17573 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17574
17575         * math/libm-test.inc: Remove comment about not testing "inexact"
17576         exceptions.
17577         (INEXACT_EXCEPTION): New macro.
17578         (NO_INEXACT_EXCEPTION): Likewise.
17579         (INVALID_EXCEPTION_OK): Update value.
17580         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17581         (OVERFLOW_EXCEPTION_OK): Likewise.
17582         (UNDERFLOW_EXCEPTION_OK): Likewise.
17583         (IGNORE_ZERO_INF_SIGN): Likewise.
17584         (ERRNO_UNCHANGED): Likewise.
17585         (ERRNO_EDOM): Likewise.
17586         (ERRNO_ERANGE): Likewise.
17587         (test_exceptions): Handle testing "inexact" exceptions.
17588         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17589         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17590         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17591         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17592         INEXACT_EXCEPTION.
17593         (rint_towardzero_test_data): Likewise.
17594         (rint_downward_test_data): Likewise.
17595         (rint_upward_test_data): Likewise.
17596
17597         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17598         with OVERFLOW_EXCEPTION.
17599         (exp10_test_data): Likewise.
17600         (exp2_test_data): Likewise.
17601         (expm1_test_data): Likewise.
17602         (lgamma_test_data): Likewise.
17603         (pow_test_data): Likewise.
17604         (tgamma_test_data): Likewise.
17605         (yn_test_data): Remove duplicate test of overflow.
17606
17607         * math/libm-test.inc (struct test_cc_c_data): New type.
17608         (RUN_TEST_LOOP_cc_c): New macro.
17609         (cpow_test_data): New variable.
17610         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
17611
17612         * math/libm-test.inc (struct test_f_L_data): New type.
17613         (RUN_TEST_LOOP_f_L): New macro.
17614         (llrint_test_data): New variable.
17615         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
17616         (llrint_tonearest_test_data): New variable.
17617         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
17618         (llrint_towardzero_test_data): New variable.
17619         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
17620         (llrint_downward_test_data): New variable.
17621         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
17622         (llrint_upward_test_data): New variable.
17623         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
17624         (llround_test_data): New variable.
17625         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
17626
17627 2013-05-13  Peter Collingbourne  <pcc@google.com>
17628
17629         * math/atest-exp2.c (get_log2): Remove const attribute.
17630
17631 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17632
17633         * math/libm-test.inc (struct test_f_l_data): New type.
17634         (RUN_TEST_LOOP_f_l): New macro.
17635         (lrint_test_data): New variable.
17636         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
17637         (lrint_tonearest_test_data): New variable.
17638         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
17639         (lrint_towardzero_test_data): New variable.
17640         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
17641         (lrint_downward_test_data): New variable.
17642         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
17643         (lrint_upward_test_data): New variable.
17644         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
17645         (lround_test_data): New variable.
17646         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
17647
17648 2013-05-15  Peter Collingbourne  <pcc@google.com>
17649
17650         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
17651         (EXTRACT_WORDS64) Use where appropriate.
17652         (INSERT_WORDS64) Likewise.
17653
17654         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
17655         constraints with x constraints.
17656         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
17657
17658         * malloc/obstack.c (_obstack_compat): Add initializer.
17659
17660 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17661
17662         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
17663         si_trapno and add si_addr_lsb to _sifields.sigfault.
17664         (si_trapno): Remove macro.
17665         (si_addr_lsb): Define new macro.
17666         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17667
17668 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17669
17670         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
17671         instead of TEST_f_l.
17672         (llrint_test_tonearest): Likewise.
17673         (llrint_test_towardzero): Likewise.
17674         (llrint_test_downward): Likewise.
17675         (llrint_test_upward): Likewise.
17676         (llround_test): Likewise.
17677
17678         * math/libm-test.inc (struct test_f_i_data): Add comment.
17679         (RUN_TEST_LOOP_f_b): New macro.
17680         (RUN_TEST_LOOP_f_b_tg): Likewise.
17681         (finite_test_data): New variable.
17682         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
17683         (isfinite_test_data): New variable.
17684         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17685         (isinf_test_data): New variable.
17686         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17687         (isnan_test_data): New variable.
17688         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17689         (isnormal_test_data): New variable.
17690         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17691         (issignaling_test_data): New variable.
17692         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17693         (signbit_test_data): New variable.
17694         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17695
17696         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
17697         with INVALID_EXCEPTION.
17698         (acosh_test_data): Likewise.
17699         (asin_test_data): Likewise.
17700         (atanh_test_data): Likewise.
17701         (fmod_test_data): Likewise.
17702         (log_test_data): Likewise.
17703         (log10_test_data): Likewise.
17704         (log2_test_data): Likewise.
17705         (pow_test_data): Likewise.
17706         (sqrt_test_data): Likewise.
17707         (y0_test_data): Likewise.
17708         (y1_test_data): Likewise.
17709         (yn_test_data): Likewise.
17710
17711         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
17712         function contents.
17713
17714         * math/libm-test.inc (struct test_ff_i_data): New type.
17715         (RUN_TEST_LOOP_ff_i_tg): New macro.
17716         (isgreater_test_data): New variable.
17717         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17718         (isgreaterequal_test_data): New variable.
17719         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17720         (isless_test_data): New variable.
17721         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17722         (islessequal_test_data): New variable.
17723         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17724         (islessgreater_test_data): New variable.
17725         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17726         (isunordered_test_data): New variable.
17727         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17728
17729 2013-05-14  David S. Miller  <davem@davemloft.net>
17730
17731         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17732
17733 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
17734
17735         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
17736
17737         * math/libm-test.inc (struct test_fF_f1_data): Change type of
17738         extra_test to int.
17739         (struct test_f_i_data): Change type of max_ulp to int.
17740
17741         * math/libm-test.inc (test_ffI_f1_data): New type.
17742         (RUN_TEST_LOOP_ffI_f1): New macro.
17743         (remquo_test_data): New variable.
17744         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
17745
17746         * setjmp/tst-setjmp-fp.c: New file.
17747         * setjmp/Makefile (tests): Add tst-setjmp-fp.
17748         (link-libm): New variable.
17749         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
17750
17751         * math/libm-test.inc (struct test_f_i_data): New type.
17752         (RUN_TEST_LOOP_f_i): New macro.
17753         (RUN_TEST_LOOP_f_i_tg): Likewise.
17754         (fpclassify_test_data): New variable.
17755         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
17756         (ilogb_test_data): New variable.
17757         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
17758
17759         * math/libm-test.inc (scalbln_test): Correct function name in END
17760         call.
17761
17762         * math/libm-test.inc (struct test_f_f1_data): Add comment.
17763         (RUN_TEST_LOOP_fI_f1): New macro.
17764         (frexp_test_data): New variable.
17765         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
17766
17767         * math/libm-test.inc (struct test_fF_f1_data): New type.
17768         (RUN_TEST_LOOP_fF_f1): New macro.
17769         (modf_test_data): New variable.
17770         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
17771
17772         * math/libm-test.inc (struct test_f_f1_data): New type.
17773         (RUN_TEST_LOOP_f_f1): New macro.
17774         (gamma_test_data): New variable.
17775         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17776         (lgamma_test_data): New variable.
17777         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17778
17779 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
17780
17781         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
17782         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
17783         (main): Comment "tls" pseudo-hwcap.
17784
17785 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
17786
17787         * math/libm-test.inc (struct test_fl_f_data): New type.
17788         (RUN_TEST_LOOP_fl_f): New variable.
17789         (scalbln_test_data): New variable.
17790         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
17791
17792         * math/libm-test.inc (struct test_fi_f_data): New type.
17793         (RUN_TEST_LOOP_fi_f): New macro.
17794         (ldexp_test_data): New variable.
17795         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
17796         (scalbn_test_data): New variable.
17797         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
17798
17799         * math/libm-test.inc (struct test_c_f_data): New type.
17800         (RUN_TEST_LOOP_c_f): New macro.
17801         (cabs_test_data): New variable.
17802         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
17803         (carg_test_data): New variable.
17804         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
17805         (cimag_test_data): New variable.
17806         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
17807         (creal_test_data): New variable.
17808         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
17809
17810         * math/libm-test.inc (struct test_if_f_data): New type.
17811         (RUN_TEST_LOOP_if_f): New macro.
17812         (jn_test_data): New variable.
17813         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
17814         (yn_test_data): New variable.
17815         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
17816
17817         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
17818
17819 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17820
17821         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
17822         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
17823
17824 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17825
17826         * benchtests/Makefile (CPPFLAGS-nonlib): Add
17827         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
17828         (bench-deps): Add bench-timing.h.
17829         * benchtests-bench-skeleton.c: Include bench-timing.h.
17830         (main): Use TIMING_* macros instead of clock_gettime.
17831         * benchtests/bench-timing.h: New file.
17832
17833         [BZ #14582]
17834         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
17835         Renamed from _LIB_VERSION.
17836         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
17837
17838 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
17839
17840         * math/libm-test.inc (struct test_fff_f_data): New type.
17841         (RUN_TEST_LOOP_fff_f): New macro.
17842         (fma_test_data): New variable.
17843         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
17844         (fma_towardzero_test_data): New variable.
17845         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
17846         (fma_downward_test_data): New variable.
17847         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
17848         (fma_upward_test_data): New variable.
17849         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
17850
17851         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
17852         (struct test_c_c_data): New type.
17853         (RUN_TEST_LOOP_c_c): New macro.
17854         (cacos_test_data): New variable.
17855         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
17856         (cacosh_test_data): New variable.
17857         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
17858         (casin_test_data): New variable.
17859         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
17860         (casinh_test_data): New variable.
17861         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
17862         (catan_test_data): New variable.
17863         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
17864         (catanh_test_data): New variable.
17865         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
17866         (ccos_test_data): New variable.
17867         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
17868         (ccosh_test_data): New variable.
17869         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
17870         (cexp_test_data): New variable.
17871         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
17872         (clog_test_data): New variable.
17873         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
17874         (clog10_test_data): New variable.
17875         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
17876         (conj_test_data): New variable.
17877         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
17878         (cproj_test_data): New variable.
17879         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
17880         (csin_test_data): New variable.
17881         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
17882         (csinh_test_data): New variable.
17883         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
17884         (csqrt_test_data): New variable.
17885         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
17886         (ctan_test_data): New variable.
17887         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
17888         (ctan_tonearest_test_data): New variable.
17889         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17890         (ctan_towardzero_test_data): New variable.
17891         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17892         (ctan_downward_test_data): New variable.
17893         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17894         (ctan_upward_test_data): New variable.
17895         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17896         (ctanh_test_data): New variable.
17897         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
17898         (ctanh_tonearest_test_data): New variable.
17899         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17900         (ctanh_towardzero_test_data): New variable.
17901         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17902         (ctanh_downward_test_data): New variable.
17903         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17904         (ctanh_upward_test_data): New variable.
17905         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17906         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
17907         of BUILD_COMPLEX.
17908
17909         * math/libm-test.inc (struct test_ff_f_data): New type.
17910         (struct test_ff_f_data_nexttoward): Likewise.
17911         (RUN_TEST_LOOP_2_f): New macro.
17912         (RUN_TEST_LOOP_ff_f): Likewise.
17913         (atan2_test_data): New variable.
17914         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
17915         (copysign_test_data): New variable.
17916         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
17917         (fdim_test_data): New variable.
17918         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
17919         (fmax_test_data): New variable.
17920         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
17921         (fmin_test_data): New variable.
17922         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
17923         (fmod_test_data): New variable.
17924         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
17925         (hypot_test_data): New variable.
17926         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
17927         (nextafter_test_data): New variable.
17928         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
17929         (nexttoward_test_data): New variable.
17930         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
17931         (pow_test_data): New variable.
17932         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
17933         (pow_tonearest_test_data): New variable.
17934         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
17935         (pow_towardzero_test_data): New variable.
17936         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
17937         (pow_downward_test_data): New variable.
17938         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
17939         (pow_upward_test_data): New variable.
17940         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
17941         (remainder_test_data): New variable.
17942         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
17943         (scalb_test_data): New variable.
17944         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
17945         * sysdeps/i386/fpu/libm-test-ulps: Update.
17946
17947 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
17948
17949         * math/libm-test.inc (fma_test): Use max_value instead of local
17950         variable fltmax.
17951         (nextafter_test): Likewise.
17952
17953         * math/libm-test.inc (acos_towardzero_test_data): New variable.
17954         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17955         (acos_downward_test_data): New variable.
17956         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17957         (acos_upward_test_data): New variable.
17958         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17959         (acosh_test_data): New variable.
17960         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
17961         (asin_test_data): New variable.
17962         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
17963         (asin_tonearest_test_data): New variable.
17964         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17965         (asin_towardzero_test_data): New variable.
17966         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17967         (asin_downward_test_data): New variable.
17968         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17969         (asin_upward_test_data): New variable.
17970         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17971         (asinh_test_data): New variable.
17972         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
17973         (atan_test_data): New variable.
17974         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
17975         (atanh_test_data): New variable.
17976         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
17977         (cbrt_test_data): New variable.
17978         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
17979         (ceil_test_data): New variable.
17980         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
17981         (cos_test_data): New variable.
17982         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
17983         (cos_tonearest_test_data): New variable.
17984         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17985         (cos_towardzero_test_data): New variable.
17986         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17987         (cos_downward_test_data): New variable.
17988         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17989         (cos_upward_test_data): New variable.
17990         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17991         (cosh_test_data): New variable.
17992         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
17993         (cosh_tonearest_test_data): New variable.
17994         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17995         (cosh_towardzero_test_data): New variable.
17996         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17997         (cosh_downward_test_data): New variable.
17998         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17999         (cosh_upward_test_data): New variable.
18000         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18001         (erf_test_data): New variable.
18002         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18003         (erfc_test_data): New variable.
18004         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18005         (exp_test_data): New variable.
18006         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18007         (exp_tonearest_test_data): New variable.
18008         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18009         (exp_towardzero_test_data): New variable.
18010         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18011         (exp_downward_test_data): New variable.
18012         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18013         (exp_upward_test_data): New variable.
18014         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18015         (exp10_test_data): New variable.
18016         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18017         (exp2_test_data): New variable.
18018         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18019         (expm1_test_data): New variable.
18020         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18021         (fabs_test_data): New variable.
18022         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18023         (floor_test_data): New variable.
18024         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18025         (j0_test_data): New variable.
18026         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18027         (j1_test_data): New variable.
18028         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18029         (log_test_data): New variable.
18030         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18031         (log10_test_data): New variable.
18032         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18033         (log1p_test_data): New variable.
18034         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18035         (log2_test_data): New variable.
18036         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18037         (logb_test_data): New variable.
18038         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18039         (logb_downward_test_data): New variable.
18040         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18041         (nearbyint_test_data): New variable.
18042         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18043         (rint_test_data): New variable.
18044         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18045         (rint_tonearest_test_data): New variable.
18046         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18047         (rint_towardzero_test_data): New variable.
18048         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18049         (rint_downward_test_data): New variable.
18050         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18051         (rint_upward_test_data): New variable.
18052         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18053         (round_test_data): New variable.
18054         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18055         (sin_test_data): New variable.
18056         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18057         (sin_tonearest_test_data): New variable.
18058         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18059         (sin_towardzero_test_data): New variable.
18060         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18061         (sin_downward_test_data): New variable.
18062         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18063         (sin_upward_test_data): New variable.
18064         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18065         (sinh_test_data): New variable.
18066         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18067         (sinh_tonearest_test_data): New variable.
18068         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18069         (sinh_towardzero_test_data): New variable.
18070         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18071         (sinh_downward_test_data): New variable.
18072         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18073         (sinh_upward_test_data): New variable.
18074         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18075         (sqrt_test_data): New variable.
18076         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18077         (tan_test_data): New variable.
18078         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18079         (tan_tonearest_test_data): New variable.
18080         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18081         (tan_towardzero_test_data): New variable.
18082         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18083         (tan_downward_test_data): New variable.
18084         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18085         (tan_upward_test_data): New variable.
18086         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18087         (tanh_test_data): New variable.
18088         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18089         (tgamma_test_data): New variable.
18090         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18091         (trunc_test_data): New variable.
18092         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18093         (y0_test_data): New variable.
18094         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18095         (y1_test_data): New variable.
18096         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18097         (significand_test_data): New variable.
18098         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18099
18100 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18101
18102         [BZ #12387]
18103         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18104
18105 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18106
18107         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18108
18109 2013-05-10  Andreas Jaeger  <aj@suse.de>
18110
18111         [BZ #15448]
18112         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18113         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18114
18115 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18116
18117         * math/gen-libm-test.pl (adjust_arg): New function.
18118         (special_functions): Handle generating output in both functions
18119         and arrays.
18120         (parse_args): Likewise.
18121         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18122         $in_func argument to parse_args.
18123         * math/libm-test.inc (struct test_f_f_data): New type.
18124         (IF_ROUND_INIT_): New macro.
18125         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18126         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18127         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18128         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18129         (ROUND_RESTORE_): Likewise.
18130         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18131         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18132         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18133         (ROUND_RESTORE_FE_UPWARD): Likewise.
18134         (RUN_TEST_LOOP_f_f): New macro.
18135         (acos_test_data): New variable.
18136         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18137         (acos_tonearest_test_data): New variable.
18138         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18139
18140 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18141
18142         * benchtests/bench-skeleton.c (startup): Fix coding style.
18143
18144 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18145
18146         [BZ #6809]
18147         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18148         negative infinity argument.
18149         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18150         negative infinity argument.
18151         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18152         negative infinity argument.
18153         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18154         domain errors.
18155
18156 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18157
18158         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18159         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18160         * iconv/iconv_prog.c (main): Likewise.
18161         * locale/programs/charmap-dir.c (charmap_readdir)
18162         (fopen_uncompressed): Likewise.
18163         * locale/programs/locfile.c (siblings_uncached)
18164         (write_locale_data): Use lstat64 instead of lstat.
18165         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18166         stat.
18167
18168 2013-05-10  Andreas Jaeger  <aj@suse.de>
18169
18170         [BZ #15395]
18171         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18172         localization.
18173         Include <locale.h>.
18174
18175 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18176
18177         * elf/dl-close.c (_dl_close_worker): Add comments.
18178
18179 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18180
18181         [BZ #15359]
18182         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18183         high part of pi/2.
18184         (__ieee754_rem_pio2l): Update comments.
18185
18186         [BZ #15429]
18187         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18188         high part of pi/2.
18189         (__ieee754_rem_pio2l): Update comments.
18190
18191         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18192         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18193
18194         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18195         M_PI_4l.
18196
18197         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18198         (M_PI_34_LOG10El): Likewise.
18199         (M_PI2_LOG10El): Likewise.
18200         (M_PI4_LOG10El): Likewise.
18201         (M_PI_LOG10El): Likewise.
18202
18203 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18204
18205         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18206
18207 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18208
18209         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18210         (MINUS_ZERO_INIT): Likewise.
18211         (PLUS_INFTY_INIT): Likewise.
18212         (MINUS_INFTY_INIT): Likewise.
18213         (QNAN_VALUE_INIT): Likewise.
18214         (MAX_VALUE_INIT): Likewise.
18215         (MIN_VALUE_INIT): Likewise.
18216         (MIN_SUBNORM_VALUE_INIT): Likewise.
18217         (plus_zero): Initialize with PLUS_ZERO_INIT.
18218         (minus_zero): Initialize with MINUS_ZERO_INIT.
18219         (plus_infty): Initialize with PLUS_INFTY_INIT.
18220         (minus_infty): Initialize with MINUS_INFTY_INIT.
18221         (qnan_value): Initialize with QNAN_VALUE_INIT.
18222         (max_value): Initialize with MAX_VALUE_INIT.
18223         (min_value): Initialize with MIN_VALUE_INIT.
18224         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18225
18226         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18227         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18228         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18229         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18230
18231         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18232         (RUN_TEST_2_f): Likewise.
18233         (RUN_TEST_ff_f): Likewise.
18234         (RUN_TEST_fi_f): Likewise.
18235         (RUN_TEST_fl_f): Likewise.
18236         (RUN_TEST_fff_f): Likewise.
18237         (RUN_TEST_c_f): Likewise.
18238         (RUN_TEST_f_f1): Likewise.
18239         (RUN_TEST_fF_f1): Likewise.
18240         (RUN_TEST_fI_f1): Likewise.
18241         (RUN_TEST_ffI_f1): Likewise.
18242         (RUN_TEST_c_c): Likewise.
18243         (RUN_TEST_cc_c): Likewise.
18244         (RUN_TEST_f_i): Likewise.
18245         (RUN_TEST_f_i_tg): Likewise.
18246         (RUN_TEST_ff_i_tg): Likewise.
18247         (RUN_TEST_f_b): Likewise.
18248         (RUN_TEST_f_b_tg): Likewise.
18249         (RUN_TEST_f_l): Likewise.
18250         (RUN_TEST_f_L): Likewise.
18251         (RUN_TEST_sincos): Likewise.
18252         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18253         whether to show exceptions.  Do not include ");\n" in return
18254         value.
18255         (special_functions): Output call to RUN_TEST_sincos instead of
18256         check_float calls.  Update calls to new_test.
18257         (parse_args): Output call to single RUN_TEST_* macro instead of
18258         check_* calls and other assignments.  Update calls to new_test.
18259
18260         [BZ #2546]
18261         [BZ #2560]
18262         [BZ #5159]
18263         [BZ #15426]
18264         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18265         input to result for tgamma overflow.
18266         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18267         (gamma_coeff): New variable.
18268         (NCOEFF): New macro.
18269         (gamma_positive): New function.
18270         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18271         underflow here.  Use gamma_positive instead of exp (lgamma) for
18272         other arguments.
18273         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18274         (gamma_coeff): New variable.
18275         (NCOEFF): New macro.
18276         (gammaf_positive): New function.
18277         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18278         underflow here.  Use gamma_positive instead of exp (lgamma) for
18279         other arguments.
18280         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18281         (gamma_coeff): New variable.
18282         (NCOEFF): New macro.
18283         (gammal_positive): New function.
18284         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18285         underflow here.  Use gamma_positive instead of exp (lgamma) for
18286         other arguments.
18287         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18288         (gamma_coeff): New variable.
18289         (NCOEFF): New macro.
18290         (gammal_positive): New function.
18291         (__ieee754_gammal_r): Handle positive infinity, overflow and
18292         underflow here.  Handle NaN the same as positive infinity.  Remove
18293         check x < 0xffffffff for negative integers.  Use gamma_positive
18294         instead of exp (lgamma) for other arguments.
18295         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18296         (gamma_coeff): New variable.
18297         (NCOEFF): New macro.
18298         (gammal_positive): New function.
18299         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18300         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18301         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18302         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18303         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18304         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18305         * sysdeps/generic/math_private.h (__gamma_productf): New
18306         prototype.
18307         (__gamma_product): Likewise.
18308         (__gamma_productl): Likewise.
18309         * math/Makefile (libm-calls): Add gamma_product.
18310         * math/libm-test.inc (tgamma_test): Add more tests.
18311         * sysdeps/i386/fpu/libm-test-ulps: Update.
18312         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18313
18314 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18315
18316         * benchtests/bench-skeleton.c (main): Preheat CPU.
18317
18318 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18319
18320         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18321
18322 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18323
18324         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18325         and _dl_skip_args_internal.
18326
18327 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18328
18329         * manual/message.texi (Message Translation): Talk about users.
18330         Message to key mapping impacts design.
18331
18332 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18333
18334         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18335
18336         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18337
18338         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18339         * sysdeps/wordsize-64/glob64.c: ... here.
18340
18341         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18342         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18343         New macros.
18344
18345         * debug/getlogin_r_chk.c: Moved to ...
18346         * login/getlogin_r_chk.c: ... here.
18347         * debug/Makefile (routines): Move getlogin_r_chk to ...
18348         * login/Makefile (routines): ... here.
18349         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18350         * login/Versions (libc: GLIBC_2.4): ... here.
18351
18352         * io/poll.c (__poll): Renamed from poll.
18353         Add libc_hidden_def.
18354         (poll): Define as weak alias.
18355
18356         * debug/ptsname_r_chk.c: Moved to ...
18357         * login/ptsname_r_chk.c: ... here.
18358         * debug/Makefile (routines): Move ptsname_r_chk to ...
18359         * login/Makefile (routines): ... here.
18360         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18361         * login/Versions (libc: GLIBC_2.4): ... here.
18362
18363         * posix/getlogin.c: Moved to ...
18364         * login/getlogin.c: ... here.
18365         * posix/getlogin_r.c: Moved to ...
18366         * login/getlogin_r.c: ... here.
18367         * posix/getlogin_r.c: Moved to ...
18368         * login/getlogin_r.c: ... here.
18369         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18370         * login/Makefile (routines): ... here.
18371         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18372         * login/Versions (libc: GLIBC_2.0): ... here.
18373
18374         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18375         (setrlimit): Define as weak alias.
18376
18377         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18378         Call __ names for open, ftruncate, and close.
18379         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18380         (truncate): Define as weak alias.
18381
18382 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18383
18384         * math/gen-libm-test.pl (parse_args): Initialize x before each
18385         test of frexp, modf and remquo.
18386
18387         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18388         test signgam value.
18389
18390 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18391
18392         [BZ #15418]
18393         [BZ #15419]
18394         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18395         internal tests.
18396         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18397
18398 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18399
18400         * elf/dl-writev.h: New file.
18401         * elf/dl-misc.c: Include it.
18402         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18403         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18404
18405 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18406
18407         * math/libm-test.inc (noXFails): Remove variable.
18408         (noXPasses): Likewise.
18409         (BUILD_COMPLEX_INT): Remove macro.
18410         (print_screen): Remove xfail argument.
18411         (print_screen_max_error): Likewise.
18412         (update_stats): Likewise.
18413         (print_max_error): Likewise.  Update calls to other affected
18414         functions.
18415         (print_complex_max_error): Likewise.
18416         (test_single_exception): Update calls to print_screen.
18417         (test_single_errno): Likewise.
18418         (check_float_internal): Remove xfail argument.  Update calls to
18419         other affected functions.
18420         (check_float): Likewise.
18421         (check_complex): Likewise.
18422         (check_int): Likewise.
18423         (check_long): Likewise.
18424         (check_bool): Likewise.
18425         (check_longlong): Likewise.
18426         (main): Don't print noXFails and noXPasses.
18427         * math/gen-libm-test.pl (top level): Don't mention expected
18428         failure handling in comment.
18429         (new_test): Don't handle expected failures.
18430         (parse_args): Don't mention expected failure handling in comment.
18431         (generate_testfile): Don't handle expected failures.
18432         (parse_ulps): Likewise.
18433         (print_ulps_file): Likewise.
18434         (get_failure): Remove function.
18435         (output_test): Don't handle expected failures.
18436         * make/README.libm-test: Don't mention expected failure handling.
18437
18438         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18439         (minus_zero): Likewise.
18440         (plus_infty): Likewise.
18441         (minus_infty): Likewise.
18442         (qnan_value): Likewise.
18443         (max_value): Likewise.
18444         (min_value): Likewise.
18445         (min_subnorm_value): Likewise.
18446         (initialize): Do not initialize those variables dynamically.
18447
18448 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18449
18450         * io/open.c (__open_2): Moved to ...
18451         * io/open_2.c: ... this new file.
18452         * io/open64.c (__open64_2): Moved to ...
18453         * io/open64_2.c: ... this new file.
18454         * io/openat.c (__openat_2): Moved to ...
18455         * io/openat_2.c: ... this new file.
18456         * io/openat64.c (__openat64_2): Moved to ...
18457         * io/openat64_2.c: ... this new file.
18458         * io/Makefile (routines): Add them.
18459         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18460         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18461         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18462         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18463         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18464         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18465         (__openat64): Add hidden_ver.
18466         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18467         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18468
18469         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18470         Separately conditionalize setting of GLRO(dl_sysinfo) so
18471         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18472         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18473
18474 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18475
18476         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18477         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18478         definition.
18479         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18480         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18481         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18482         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18483         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18484
18485 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18486
18487         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18488         test signgam value.
18489
18490         * math/libm-test.inc (hypot_test): Do not use
18491         IGNORE_ZERO_INF_SIGN.
18492
18493 2013-05-03  Andreas Jaeger  <aj@suse.de>
18494
18495         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18496         Linux 3.9.
18497         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18498         (PF_MAX): Adjust for VSOCK change.
18499
18500 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18501
18502         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18503
18504 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18505
18506         [BZ #15264]
18507         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18508         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18509         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18510
18511 2013-05-02  David S. Miller  <davem@davemloft.net>
18512
18513         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18514
18515 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18516
18517         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18518
18519 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18520
18521         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18522
18523 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18524
18525         [BZ #14952]
18526         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18527         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18528         Use __attribute__ ((__gnu_inline__)).
18529         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18530         Don't use __attribute__ ((__gnu_inline__)).
18531
18532 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18533
18534         [BZ #15423]
18535         * math/s_catan.c (__catan): Handle small real or imaginary part of
18536         input specially to avoid spurious underflow.
18537         * math/s_catanf.c (__catanf): Likewise.
18538         * math/s_catanh.c (__catanh): Likewise.
18539         * math/s_catanhf.c (__catanhf): Likewise.
18540         * math/s_catanhl.c (__catanhl): Likewise.
18541         * math/s_catanl.c (__catanl): Likewise.
18542         * math/libm-test.inc (catan_test): Add more tests.
18543         (catanh_test): Likewise.
18544         * sysdeps/i386/fpu/libm-test-ulps: Update.
18545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18546
18547 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18548
18549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18550
18551 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18552
18553         [BZ #15416]
18554         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18555         accurately for denominator in atan2.
18556         * math/s_catanf.c (__catanf): Likewise.
18557         * math/s_catanh.c (__catanh): Likewise.
18558         * math/s_catanhf.c (__catanhf): Likewise.
18559         * math/s_catanhl.c (__catanhl): Likewise.
18560         * math/s_catanl.c (__catanl): Likewise.
18561         * math/libm-test.inc (catan_test): Add more tests.
18562         (catanh_test): Likewise.
18563         * sysdeps/i386/fpu/libm-test-ulps: Update.
18564         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18565
18566 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18567
18568         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18569
18570         * benchtests/Makefile (bench): Remove slow benchmarks.
18571         * benchtests/atan-inputs: Add slow benchmark inputs.
18572         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18573         (BENCH_FUNC): Accept variant offset.
18574         (VARIANT): Define.
18575         * benchtests/bench-skeleton.c (main): Run benchmark for each
18576         variant.
18577         * benchtests/cos-inputs: Add slow benchmark inputs.
18578         * benchtests/exp-inputs: Likewise.
18579         * benchtests/pow-inputs: Likewise.
18580         * benchtests/sin-inputs: Likewise.
18581         * benchtests/slowatan-inputs: Remove.
18582         * benchtests/slowatan.c: Remove.
18583         * benchtests/slowcos-inputs: Remove.
18584         * benchtests/slowcos.c: Remove.
18585         * benchtests/slowexp-inputs: Remove.
18586         * benchtests/slowexp.c: Remove.
18587         * benchtests/slowpow-inputs: Remove.
18588         * benchtests/slowpow.c: Remove.
18589         * benchtests/slowsin-inputs: Remove.
18590         * benchtests/slowsin.c: Remove.
18591         * benchtests/slowtan-inputs: Remove.
18592         * benchtests/slowtan.c: Remove.
18593         * benchtests/tan-inputs: Add slow benchmark inputs.
18594         * scripts/bench.pl: Parse comments and directives.
18595
18596         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18597         in CPPFLAGS.
18598         ($(objpfx)bench-%.c): Remove *-ITER.
18599         * benchtests/bench-modf.c: Remove definition of ITER.
18600         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18601         (main): Loop for DURATION seconds instead of fixed number of
18602         iterations.
18603         * scripts/bench.pl: Don't expect iterations in parameters.
18604
18605 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18606
18607         * io/fchdir.c (__fchdir): Renamed from fchdir.
18608         (fchdir): Define as weak alias.
18609
18610 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18611
18612         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
18613         (ERRNO_EDOM): Likewise.
18614         (ERRNO_ERANGE): Likewise.
18615         (noErrnoTests): New variable.
18616         (init_max_error): Set errno to 0.
18617         (test_single_errno): New function.
18618         (test_errno): Likewise.
18619         (check_float_internal): Call test_errno.  Set errno to 0.
18620         (check_complex): Refer to errno tests in comment.
18621         (check_int): Call test_errno.  Set errno to 0.
18622         (check_long): Likewise.
18623         (check_bool): Likewise.
18624         (check_longlong): Likewise.
18625         (cos_test): Use ERRNO_* flags for errno tests instead of
18626         check_int.
18627         (expm1_test): Likewise.
18628         (fmod_test): Likewise.
18629         (ilogb_test): Likewise.
18630         (lgamma_test): Likewise.
18631         (pow_test): Likewise.
18632         (remainder_test): Likewise.
18633         (sin_test): Likewise.
18634         (tan_test): Likewise.
18635         (yn_test): Likewise.
18636         (initialize): Set errno to 0.
18637         (main): Print number of errno tests.
18638         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
18639
18640 2013-04-29  Andreas Jaeger  <aj@suse.de>
18641
18642         [BZ #15084]
18643         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
18644         and RES_USEVC.
18645
18646         [BZ #15085]
18647         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
18648         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
18649         unimplemented.
18650
18651         [BZ #15380]
18652         * stdlib/random.c (__initstate): Return NULL if
18653         __initstate fails.
18654
18655         [BZ #15086]
18656         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
18657         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
18658         RES_SNGLKUPREOP.
18659
18660 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18661
18662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18663
18664 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18665
18666         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
18667         of individual tests.
18668         (casin_test): Likewise.
18669         (casinh_test): Likewise.
18670
18671 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
18672
18673         [BZ #15409]
18674         * math/s_catan.c (__catan): Handle arguments with large real or
18675         imaginary part separately without squaring.
18676         * math/s_catanf.c (__catanf): Likewise.
18677         * math/s_catanh.c (__catanh): Likewise.
18678         * math/s_catanhf.c (__catanhf): Likewise.
18679         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18680         and redefine.
18681         (__catanhl): Handle arguments with large real or imaginary part
18682         separately without squaring.
18683         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18684         and redefine.
18685         (__catanl): Handle arguments with large real or imaginary part
18686         separately without squaring.
18687         * math/libm-test.inc (catan_test): Add more tests.
18688         (catanh_test): Likewise.
18689         * sysdeps/i386/fpu/libm-test-ulps: Update.
18690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18691
18692 2013-04-27  Andreas Jaeger  <aj@suse.de>
18693
18694         [BZ #15007]
18695         * stdlib/stdlib.h: Update guards for qecvt.
18696         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
18697         <stdlib.h>.
18698
18699 2013-04-27  Allan McRae  <allan@archlinux.org>
18700
18701         * sysdeps/i386/fpu/libm-test-ulps: Update.
18702
18703 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
18704
18705         [BZ #15406]
18706         * math/s_catan.c: Include <float.h>.
18707         (__catan): Ensure underflow exception occurs for underflowed
18708         result.
18709         * math/s_catanf.c: Include <float.h>.
18710         (__catanf): Ensure underflow exception occurs for underflowed
18711         result.
18712         * math/s_catanh.c: Include <float.h>.
18713         (__catanh): Ensure underflow exception occurs for underflowed
18714         result.
18715         * math/s_catanhf.c: Include <float.h>.
18716         (__catanhf): Ensure underflow exception occurs for underflowed
18717         result.
18718         * math/s_catanhl.c: Include <float.h>.
18719         (__catanhl): Ensure underflow exception occurs for underflowed
18720         result.
18721         * math/s_catanl.c: Include <float.h>.
18722         (__catanl): Ensure underflow exception occurs for underflowed
18723         result.
18724         * math/libm-test.inc (catan_test): Add more tests.
18725         (catanh_test): Likewise.
18726
18727         [BZ #15405]
18728         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
18729         underflowed result.
18730         * math/s_ccoshf.c (__ccoshf): Likewise.
18731         * math/s_ccoshl.c (__ccoshl): Likewise.
18732         * math/s_csin.c (__csin): Likewise.
18733         * math/s_csinf.c (__csinf): Likewise.
18734         * math/s_csinh.c (__csinh): Likewise.
18735         * math/s_csinhf.c (__csinhf): Likewise.
18736         * math/s_csinhl.c (__csinhl): Likewise.
18737         * math/s_csinl.c (__csinl): Likewise.
18738         * math/libm-test.inc (ccos_test): Add more tests.
18739         (ccosh_test): Likewise.
18740         (csin_test): Likewise.
18741         (csinh_test): Likewise.
18742
18743 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18744
18745         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
18746         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
18747         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
18748         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
18749         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
18750         powerpc/power5+/fpu folders.
18751         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18752
18753
18754 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18755
18756         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18757
18758 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
18759
18760         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
18761         additions to variable.
18762         [$(config-machine) = x86_64] (modules-names): Likewise.
18763         ($(objpfx)tst-audit3): Remove dependency.
18764         ($(objpfx)tst-audit3.out): Likewise.
18765         ($(objpfx)tst-audit4): Likewise.
18766         ($(objpfx)tst-audit4.out): Likewise.
18767         ($(objpfx)tst-audit5): Likewise.
18768         ($(objpfx)tst-audit5.out): Likewise.
18769         ($(objpfx)tst-audit6): Likewise.
18770         ($(objpfx)tst-audit6.out): Likewise.
18771         ($(objpfx)tst-audit7): Likewise.
18772         ($(objpfx)tst-audit7.out): Likewise.
18773         (tst-audit3-ENV): Remove variable.
18774         (tst-audit4-ENV): Likewise.
18775         (tst-audit5-ENV): Likewise.
18776         (tst-audit6-ENV): Likewise.
18777         (tst-audit7-ENV): Likewise.
18778         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
18779         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
18780         addition to variable.
18781         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
18782         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
18783         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
18784         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
18785         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
18786         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
18787         tst-audit3, tst-audit4 and tst-audit5.
18788         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
18789         tst-audit6 and tst-audit7.
18790         [$(subdir) = elf] (modules-names): Add audit modules for those
18791         tests.
18792         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
18793         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
18794         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
18795         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
18796         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
18797         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
18798         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
18799         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
18800         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
18801         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
18802         [$(subdir) = elf] (tst-audit3-ENV): New variable.
18803         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
18804         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
18805         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
18806         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
18807         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
18808         Likewise.
18809         [$(subdir) = elf && $(config-cflags-avx) = yes]
18810         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
18811         [$(subdir) = elf && $(config-cflags-avx) = yes]
18812         (CFLAGS-tst-auditmod4a.c): Likewise.
18813         [$(subdir) = elf && $(config-cflags-avx) = yes]
18814         (CFLAGS-tst-auditmod4b.c): Likewise.
18815         [$(subdir) = elf && $(config-cflags-avx) = yes]
18816         (CFLAGS-tst-auditmod6b.c): Likewise.
18817         [$(subdir) = elf && $(config-cflags-avx) = yes]
18818         (CFLAGS-tst-auditmod6c.c): Likewise.
18819         [$(subdir) = elf && $(config-cflags-avx) = yes]
18820         (CFLAGS-tst-auditmod7b.c): Likewise.
18821         * elf/tst-audit3.c: Move to ...
18822         * sysdeps/x86_64/tst-audit3.c: ... here.
18823         * elf/tst-audit4.c: Move to ...
18824         * sysdeps/x86_64/tst-audit4.c: ... here.
18825         * elf/tst-audit5.c: Move to ...
18826         * sysdeps/x86_64/tst-audit5.c: ... here.
18827         * elf/tst-audit6.c: Move to ...
18828         * sysdeps/x86_64/tst-audit6.c: ... here.
18829         * elf/tst-audit7.c: Move to ...
18830         * sysdeps/x86_64/tst-audit7.c: ... here.
18831         * elf/tst-auditmod3a.c: Move to ...
18832         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
18833         * elf/tst-auditmod3b.c: Move to ...
18834         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
18835         * elf/tst-auditmod4a.c: Move to ...
18836         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
18837         * elf/tst-auditmod4b.c: Move to ...
18838         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
18839         * elf/tst-auditmod5a.c: Move to ...
18840         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
18841         * elf/tst-auditmod5b.c: Move to ...
18842         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
18843         * elf/tst-auditmod6a.c: Move to ...
18844         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
18845         * elf/tst-auditmod6b.c: Move to ...
18846         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
18847         * elf/tst-auditmod6c.c: Move to ...
18848         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
18849         * elf/tst-auditmod7a.c: Move to ...
18850         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
18851         * elf/tst-auditmod7b.c: Move to ...
18852         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
18853
18854 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
18855
18856         [BZ #15366]
18857         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
18858         define unconditionally.
18859         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
18860         define unconditionally.
18861         (INT8_C, INT16_C, etc.): Likewise.
18862
18863 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
18864
18865         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
18866         __ehdr_start with hidden visibility.
18867
18868         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
18869
18870 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
18871
18872         * math/libm-test.inc (cos_test): Use accurate hex constants.
18873         (sincost_test): Likewise.
18874
18875 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
18876
18877         * math/libm-test.inc (catan_test): Add more tests.
18878         (catanh_test): Likewise.
18879
18880         * math/s_catanf.c (__catanf): Use suffixed floating-point
18881         constants.
18882         * math/s_catanhf.c (__catanhf): Likewise.
18883         * math/s_catanhl.c (__catanhl): Likewise.
18884         * math/s_catanl.c (__catanl): Likewise.
18885
18886         [BZ #15394]
18887         * math/s_catan.c (__catan): Calculate imaginary part of result
18888         with log1p not log unless computing log of number close to 0.
18889         * math/s_catanf.c (__catanf): Likewise.
18890         * math/s_catanl.c (__catanl): Likewise.
18891         * math/s_catanh.c (__catanh): Calculate real part of result with
18892         log1p not log unless computing log of number close to 0.
18893         * math/s_catanhf.c (__catanhf): Likewise.
18894         * math/s_catanhl.c (__catanhl): Likewise.
18895         * math/libm-test.inc (catan_test): Add more tests.
18896         (catanh_test): Likewise.
18897         * sysdeps/i386/fpu/libm-test-ulps: Update.
18898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18899
18900 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18901
18902         * benchtests/Makefile: Mention files in which fast and slow
18903         paths of math functions are implemented.
18904
18905 2013-04-23  Roland McGrath  <roland@hack.frob.com>
18906
18907         * sysdeps/posix/timespec_get.c: New file.
18908
18909 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18910
18911         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
18912         POWER.
18913         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
18914         for POWER.
18915         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
18916         powerpc/power5/fpu folders.
18917         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
18918         * benchtests/Makefile: Add modf testcase.
18919         * benchtests/bench-modf.c: New file: Benchmark test for mo
18920
18921 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
18922
18923         [BZ #14888]
18924         * time/Makefile (tests): Add tst-strptime-whitespace.
18925         * time/strptime_l.c (get_number): Use ISSPACE.
18926         (__strptime_internal): Likewise.
18927         * time/tst-strptime-whitespace.c: New test case.
18928
18929 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
18930
18931         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
18932         member.
18933         (_nss_files_init): Set it here.
18934
18935 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
18936
18937         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
18938         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
18939         unsigned.
18940
18941 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
18942
18943         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
18944
18945 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18946
18947         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
18948         size just once.
18949
18950 2013-04-21  David S. Miller  <davem@davemloft.net>
18951
18952         * po/ru.po: Update Russion translation from translation project.
18953
18954 2013-04-17  Adam Conrad  <adconrad@0c3.net>
18955
18956         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
18957         and setfsgid.
18958
18959 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
18960
18961         * configure.in: Remove i386 configure warning. Remove i386 case.
18962         * configure: Regenerate.
18963         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
18964         Add example to error message.
18965         * sysdeps/i386/configure: Regenerate.
18966
18967 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
18968
18969         * benchtests/Makefile (bench): Add cos, tan, slowcos and
18970         slowtan.
18971         * benchtests/cos-inputs: New file.
18972         * benchtests/slowcos-inputs: New file.
18973         * benchtests/slowcos.c: New file.
18974         * benchtests/slowtan-inputs: New file.
18975         * benchtests/slowtan.c: New file.
18976         * benchtests/tan-inputs: New file.
18977
18978 2013-04-16  Roland McGrath  <roland@hack.frob.com>
18979
18980         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
18981         considered kosher.
18982
18983 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18984
18985         * benchtests/Makefile: Include cppflags-iterator.mk to add
18986         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
18987
18988         * Makefile.in (bench-clean): New target.
18989         * benchtests/Makefile (bench-clean): Likewise.
18990
18991 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
18992
18993         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
18994
18995 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18996
18997         * stdio-common/tstdiomisc.c: Fix coding-style violation.
18998
18999 2013-04-15  Andreas Schwab  <schwab@suse.de>
19000
19001         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19002         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19003         * nscd/pwdcache.c (cache_addpw): Likewise.
19004         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19005         more than recsize.
19006
19007 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19008
19009         * benchtests/Makefile (bench): Write all output to
19010         bench-out.tmp together.
19011
19012 2013-04-15  Andreas Schwab  <schwab@suse.de>
19013
19014         * nscd/nscd.c (main): Don't fork again after closing files.
19015
19016 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19017
19018         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19019
19020         * benchtests/Rules (bench-deps): Collect dependencies into a
19021         single variable.  Add Makefile to dependencies.
19022         ($(objpfx)bench-%.c): Depend on bench-deps.
19023
19024 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19025             Xavier Roche  <roche+kml2@exalead.com>
19026
19027         [BZ #15361]
19028         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19029         just that it's a file descriptor.
19030         * manual/llio.texi (Synchronizing AIO Operations): Update description
19031         for EBADF error from aio_fsync.
19032
19033 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19034
19035         * Rules (bench): Move target definition...
19036         * benchtests/Makefile: ... here.
19037
19038 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19039
19040         * math/libm-test.inc (cos_test): Fix PI/2 test.
19041         (sincos_test): Likewise.
19042         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19043         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19044
19045 2013-04-11  Andreas Schwab  <schwab@suse.de>
19046
19047         [BZ #13988]
19048         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19049         accept exponent character only when digits were seen.
19050         * stdio-common/Makefile (tests): Add bug26.
19051         * stdio-common/bug26.c: New file.
19052
19053         [BZ #14293]
19054         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19055         non-freeable.
19056
19057 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19058
19059         * Makeconfig (rtld-prefix): Define built linker prefix.
19060         * Rules (run-bench): Use it.
19061         * math/Makefile (run-regen-ulps): Likewise.
19062
19063         * Rules (bench): Remove eval.
19064
19065 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19066             Roland McGrath  <roland@hack.frob.com>
19067             Ondrej Bilka  <neleai@seznam.cz>
19068
19069         [BZ #15346]
19070         * time/getdate.c: Include ctype.h and alloca.h.
19071         (__getdate_r): Trim leading and trailing spaces of input.
19072         * time/tst-getdate.c (tests): Add tests with leading and
19073         trailing spaces.
19074
19075 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19076
19077         [BZ #14280]
19078         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19079         when computing value.
19080
19081 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19082
19083         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19084         Use testrun.sh to run libm tests.
19085
19086         [BZ #15309]
19087         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19088
19089 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19090
19091         [BZ #15264]
19092         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19093
19094 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19095
19096         * Makefile.in (regen-ulps): New target.
19097         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19098         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19099         [ifneq (no,$(PERL)] (regen-ulps): New target.
19100         [ifeq (no,$(PERL)] (regen-ulps): New target.
19101         * math/libm-test.inc (ulps_file_name): Define.
19102         (output_dir): New variable.
19103         (options): Add "output-dir" option.
19104         (parse_opt): Handle 'o' case.
19105         (main): If output_dir is non-NULL use it as a prefix
19106         otherwise use "".
19107         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19108
19109 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19110
19111         [BZ #10060, #10062]
19112         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19113         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19114         fail configure if __sync_val_compare_and_swap is not inlined.
19115         * sysdeps/i386/configure: Regenerate.
19116         * configure.in: Build for i686 when configured for i386.
19117         * configure: Regenerate.
19118         * README: Remove i386 reference.
19119
19120 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19121
19122         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19123         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19124
19125 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19126
19127         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19128         (lmsnanval): New variables.
19129         (F): Add conversion tests.
19130         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19131         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19132
19133         * stdio-common/tstdiomisc.c (F): Properly collect individual
19134         tests' results.
19135
19136         [BZ #14686, #15336]
19137         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19138         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19139         Instead, use input NaN values or generate a qNaN by arithmetic
19140         operation.  Also fix bugs to comply with the standard.
19141         * math/libm-test.inc (remainder_test): Add more tests.
19142
19143         [BZ #15335, #15342]
19144         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19145         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19146         input NaN values or generate a qNaN by arithmetic operation.
19147
19148         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19149         unreachable code.
19150
19151         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19152         definitions.
19153
19154 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19155
19156         [BZ #14478]
19157         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19158         underflowed result.
19159         * math/s_cexpf.c (__cexpf): Likewise.
19160         * math/s_cexpl.c (__cexpl): Likewise.
19161         * math/libm-test.inc (cexp_test): Add more tests.
19162
19163 2013-04-03  Andreas Schwab  <schwab@suse.de>
19164
19165         [BZ #15330]
19166         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19167         order arrays from heap if bigger than alloca cutoff.
19168
19169 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19170
19171         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19172         (SNAN_TESTS_double): Refer to GCC PR56831.
19173         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19174         GCC PR56828.
19175
19176 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19177
19178         * Rules (bench): Move bench.out after the run is complete.
19179
19180         * Rules (bench): Echo currently running benchmark.
19181
19182         * benchtests/Makefile (bench): Add atan and slowatan.
19183         * benchtests/atan-inputs: New file.
19184         * benchtests/slowatan-inputs: New file.
19185         * benchtests/slowatan.c: New file.
19186
19187         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19188         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19189         its value.
19190
19191         [BZ #15305]
19192         * sysdeps/unix/sysv/linux/kernel-features.h
19193         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19194         __ASSUME_XFS_RESTRICTED_CHOWN.
19195         * sysdeps/unix/sysv/linux/pathconf.c
19196         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19197         Save and restore errno.
19198
19199 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19200
19201         [BZ #15327]
19202         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19203         arguments using __kernel_casinh.
19204         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19205         arguments using __kernel_casinhf.
19206         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19207         arguments using __kernel_casinhl.
19208         * math/libm-test.inc (cacosh_test): Add more tests.
19209         * sysdeps/i386/fpu/libm-test-ulps: Update.
19210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19211
19212 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19213
19214         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19215         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19216
19217         * bench/Makefile (bench): Add sin and slowsin.
19218         * benchtests/sin-inputs: New file.
19219         * benchtests/slowsin-inputs: New file.
19220         * benchtests/slowsin.c: New file.
19221
19222         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19223         (bench): Add slowexp and slowpow.
19224         (exp-ITER): Increase iterations.
19225         (pow-ITER): Likewise.
19226         * benchtests/exp-inputs: Change input.
19227         * benchtests/pow-inputs: Likewise.
19228         * benchtests/slowexp-inputs: New file.
19229         * benchtests/slowexp.c: New file.
19230         * benchtests/slowpow-inputs: New file.
19231         * benchtests/slowpow.c: New file.
19232
19233 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19234
19235         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19236         instructions.
19237         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19238         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19239         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19240         * benchtests/Makefile: Add rint benchtest.
19241         * benchtests/rint-inputs: Input for rint benchtest.
19242
19243 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19244
19245         * Versions.def (libm): Add GLIBC_2.18.
19246         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19247         hidden libm prototypes.
19248         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19249         * math/Makefile (libm-calls): Add s_issignaling.
19250         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19251         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19252         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19253         declaration.
19254         * math/math.h [__USE_GNU] (issignaling): New macro.
19255         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19256         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19257         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19258         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19259         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19260         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19261         * manual/arith.texi (issignaling): New section.
19262         * manual/libm-err-tab.pl (@all_functions): Update comment.
19263         * math/gen-libm-test.pl (parse_args): Apply special handling for
19264         issignaling.
19265         * math/libm-test.inc (print_float, issignaling_test): New
19266         functions.
19267         (check_float_internal): Add issignaling checks.
19268         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19269         default definition.
19270         * sysdeps/powerpc/math-tests.h: New file.
19271         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19272         tests.
19273         * math/test-snan.c (TEST_FUNC): Likewise.
19274
19275 2013-03-30  David S. Miller  <davem@davemloft.net>
19276
19277         * po/de.po: Update from translation team.
19278
19279 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19280
19281         [BZ #10357]
19282         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19283         imaginary part less than 1.0 and real part less than 0.5
19284         specially.
19285         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19286         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19287         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19288         (cacos_test): Add more tests.
19289         (casin_test): Likewise.
19290         (casinh_test): Likewise.
19291         * sysdeps/i386/fpu/libm-test-ulps: Update.
19292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19293
19294 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19295
19296         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19297         ONE with its value.
19298
19299         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19300         (__pow_mp): Replace ONE and MONE with their values.
19301         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19302         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19303         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19304         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19305         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19306         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19307
19308         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19309
19310         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19311         (__pow_mp): Replace ZERO and MZERO with their values.
19312         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19313         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19314         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19315         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19316         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19317         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19318         (__sqr): Likewise.
19319
19320         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19321
19322         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19323
19324 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19325
19326         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19327         Declare with __attribute__ ((weak)).
19328         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19329         Call __call_tls_dtors only if it's not NULL.
19330
19331 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19332
19333         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19334         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19335         magic __ehdr_start linker symbol if it's defined.
19336         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19337         them up here if it was already done.
19338
19339         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19340         (_dl_aux_init): Use const in cast when setting it.
19341         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19342         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19343         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19344
19345         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19346         Declare them here.
19347         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19348         * csu/libc-tls.c: Nor here.
19349         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19350
19351         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19352         (__libc_message): Never call vsyslog.
19353
19354 2013-03-28  Alan Modra  <amodra@gmail.com>
19355
19356         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19357         Define as empty.
19358         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19359         Likewise.
19360
19361 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19362
19363         [BZ #15214]
19364         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19365         underflow.
19366         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19367
19368 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19369
19370         [BZ #15304]
19371         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19372         Don't add gid passed as argument.
19373
19374         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19375
19376 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19377
19378         [BZ #15307]
19379         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19380         imaginary part between 1.0 and 1.5 and real part less than 0.5
19381         specially.
19382         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19383         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19384         * math/libm-test.inc (cacos_test): Add more tests.
19385         (casin_test): Likewise.
19386         (casinh_test): Likewise.
19387         * sysdeps/i386/fpu/libm-test-ulps: Update.
19388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19389
19390 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19391
19392         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19393         constants.
19394         (norm): Likewise.
19395         (denorm): Likewise.
19396         (__dbl_mp): Likewise.
19397         (add_magnitudes): Likewise.
19398         (sub_magnitudes): Likewise.
19399         (__add): Likewise.
19400         (__sub): Likewise.
19401         (__mul): Likewise.
19402         (__sqr): Likewise.
19403         (__inv): Likewise.
19404         (__dvd): Likewise.
19405
19406         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19407         commented code.
19408         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19409         (__dubcos): Likewise.
19410         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19411         (__ieee754_acos): Likewise.
19412         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19413         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19414         (__exp1): Likewise.
19415         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19416         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19417         (log1): Likewise.
19418         (my_log2): Likewise.
19419         (checkint): Likewise.
19420         * sysdeps/ieee754/dbl-64/e_remainder.c
19421         (__ieee754_remainder): Likewise.
19422         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19423         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19424         (bsloww): Likewise.
19425         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19426
19427         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19428         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19429         MANTISSA_STORE_T to store computations on mantissa.  Use
19430         macros for rounding and division.
19431         (denorm): Likewise.
19432         (__dbl_mp): Likewise.
19433         (add_magnitudes): Likewise.
19434         (sub_magnitudes): Likewise.
19435         (__mul): Likewise.
19436         (__sqr): Likewise.
19437         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19438         powers of two in terms of TWOPOW macro.
19439         (mp_no): Make type of mantissa as MANTISSA_T.
19440         [!RADIXI]: Define RADIXI.
19441         [!TWO52]: Define TWO52.
19442         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19443
19444 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19445
19446         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19447         llroundl symbol when building for PPC32.
19448
19449 2013-03-24  Mark H Weaver  <mhw@netris.org>
19450
19451         * manual/arith.texi (Normalization Functions): Fix prototypes for
19452         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19453
19454 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19455
19456         [BZ #13889]
19457         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19458         high value to check if expl overflow.
19459         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19460         to check for underflow and overflow.
19461         * math/libm-test.inc: Add exp test.
19462
19463 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19464
19465         [BZ #11120]
19466         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19467         with NOT_IN_libc.
19468
19469 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19470
19471         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19472         symbol.
19473
19474 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19475
19476         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19477         wrap blocks consisting of several statements.
19478
19479         * sysdeps/generic/math-tests.h: New file.
19480         * sysdeps/i386/fpu/math-tests.h: Likewise.
19481         * math/test-snan.c: Include it.
19482         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19483
19484 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19485
19486         [BZ #15285]
19487         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19488         (__ieee754_j0l): Do not improve calculations using cos of twice
19489         input for inputs above LDBL_MAX / 2.0L.
19490         (__ieee754_y0l): Likewise.
19491         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19492         (__ieee754_j1l): Do not improve calculations using cos of twice
19493         input for inputs above LDBL_MAX / 2.0L.
19494         (__ieee754_y1l): Likewise.
19495         * math/libm-test.inc (j0_test): Add another test.
19496         (j1_test): Likewise.
19497         (y0_test): Likewise.
19498         (y1_test): Likewise.
19499         * sysdeps/i386/fpu/libm-test-ulps: Update.
19500
19501 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19502
19503         * Rules ($(objpfx)bench-%.c): Include code from a C source
19504         file.
19505
19506 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19507
19508         [BZ #15287]
19509         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19510         imaginary part 1.0 and real part less than 0.5 specially.
19511         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19512         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19513         * math/libm-test.inc (cacos_test): Add more tests.
19514         (casin_test): Likewise.
19515         (casinh_test): Likewise.
19516         * sysdeps/i386/fpu/libm-test-ulps: Update.
19517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19518
19519 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19520
19521         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19522         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19523
19524 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19525
19526         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19527         * config.make.in (config-cflags-sse4): Remove variable.
19528         (config-cflags-avx): Likewise.
19529         (config-cflags-sse2avx): Likewise.
19530         (config-cflags-novzeroupper): Likewise.
19531         (config-asflags-i686): Likewise.
19532         (have-mfma4): Likewise.
19533         (have-as-vis3): Likewise.
19534         (MIG): Likewise.
19535         * configure.in (MIG): Do not AC_SUBST.
19536         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19537         (libc_cv_cc_sse4): Do not AC_SUBST.
19538         (libc_cv_cc_avx): Likewise.
19539         (libc_cv_cc_sse2avx): Likewise.
19540         (libc_cv_cc_novzeroupper): Likewise.
19541         (libc_cv_cc_fma4): Likewise.
19542         (libc_cv_as_i686): Likewise.
19543         (libc_cv_sparc_as_vis3): Likewise.
19544         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19545         LIBC_CONFIG_VAR.
19546         (config-asflags-i686): Likewise.
19547         (config-cflags-avx): Likewise.
19548         (config-cflags-sse2avx): Likewise.
19549         (have-mfma4): Likewise.
19550         (config-cflags-novzeroupper): Likewise.
19551         * sysdeps/mach/configure.in (MIG): Likewise.
19552         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19553         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19554         LIBC_CONFIG_VAR.
19555         (config-cflags-avx): Likewise.
19556         (config-cflags-sse2avx): Likewise.
19557         (have-mfma4): Likewise.
19558         (config-cflags-novzeroupper): Likewise.
19559         * configure: Regenerated.
19560         * sysdeps/i386/configure: Likewise.
19561         * sysdeps/mach/configure: Likewise.
19562         * sysdeps/sparc/configure: Likewise.
19563         * sysdeps/x86_64/configure: Likewise.
19564
19565 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19566
19567         [BZ #14812]
19568         * locale/programs/localedef.c (options): Put N_ translation marker
19569         on argument names, not just descriptions.
19570
19571 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19572
19573         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19574
19575 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19576
19577         [BZ #14176]
19578         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19579
19580 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19581
19582         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19583         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19584         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19585         [!BEFORE_ABORT] (before_abort): New function.
19586         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19587         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19588         (writev_for_fatal): New function.
19589         (WRITEV_FOR_FATAL): New macro; call that.
19590         (backtrace_and_maps): New function.
19591         (BEFORE_ABORT): New macro; call that.
19592         (struct str_list): Type removed.
19593         (__libc_message, __libc_fatal): Functions removed.
19594         Include <sysdeps/posix/libc_fatal.c> instead.
19595
19596 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19597
19598         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19599         constants.
19600         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19601         double constants.
19602
19603 2013-03-19  Andreas Schwab  <schwab@suse.de>
19604
19605         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19606         * sysdeps/gnu/configure: Regenerate.
19607
19608         * configure.in: Substitute libc_cv_rtlddir.
19609         * configure: Regenerate.
19610         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
19611         * Makeconfig (rtlddir, inst_rtlddir): New variables.
19612         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
19613         * elf/Makefile (install-others, CFLAGS-interp.c)
19614         (ldso_install, common-ldd-rewrite): Likewise.
19615         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
19616         $(inst_slibdir)/$(rtld-installed-name).
19617         * scripts/rellns-sh: Add -p option.
19618         * Makerules (make-shlib-link): Use rellns-sh to get relative name
19619         for source.
19620
19621 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19622
19623         * manual/nptl.texi: Renamed to ...
19624         * manual/threads.texi: ... this.
19625         * manual/Makefile (chapters): Update.
19626
19627 2013-03-18  Roland McGrath  <roland@hack.frob.com>
19628
19629         [BZ #14812]
19630         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
19631         on argument names, not just descriptions.
19632         * malloc/memusagestat.c (options): Likewise.
19633         * nss/getent.c (options): Likewise.
19634
19635 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
19636
19637         [BZ #14812]
19638         * iconv/iconv_prog.c (options): Put N_ translation marker
19639         on argument names, not just descriptions.
19640         * iconv/iconvconfig.c (options): Likewise.
19641
19642 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
19643
19644         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
19645         implementation which is faster on all x86_64 architectures.
19646         Tested on AMD, Intel Nehalem, SNB, IVB.
19647         * sysdeps/x86_64/strnlen.S: Likewise.
19648
19649         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
19650         Remove all multiarch strlen and strnlen versions.
19651         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
19652         Remove strlen and strnlen related parts.
19653
19654         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
19655         Inline strlen part.
19656         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
19657
19658         * sysdeps/x86_64/multiarch/strlen.S: Remove.
19659         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
19660         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
19661         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
19662         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
19663         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
19664
19665 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
19666
19667         * manual/memory.texi (Malloc Tunable Parameters):
19668         Sort parameters alphabetically. Add comments for missing entries.
19669
19670 2013-03-17  David S. Miller  <davem@davemloft.net>
19671
19672         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19673
19674 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
19675
19676         [BZ #15283]
19677         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
19678         for arguments at most half maximum finite value.
19679         * math/libm-test.inc (j0_test): Add more tests.
19680         (j1_test): Likewise.
19681         (y0_test): Likewise.
19682         (y1_test): Likewise.
19683         * sysdeps/i386/fpu/libm-test-ulps: Update.
19684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19685
19686         [BZ #14155]
19687         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
19688         1 / x and functions P and Q for arguments above 0x1p256L.
19689         (__ieee754_y0l): Likewise.
19690         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19691         (__ieee754_y1l): Likewise.
19692         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
19693         (j1_test): Likewise.
19694         (y0_test): Likewise.
19695         (y1_test): Likewise.
19696
19697 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
19698
19699         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
19700         variable.
19701
19702 2013-03-15  Roland McGrath  <roland@hack.frob.com>
19703
19704         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
19705         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
19706         zero since it's initialized to EXEC_PAGESIZE.
19707
19708         * sysdeps/unix/sysv/linux/ldsodefs.h
19709         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
19710         * sysdeps/generic/ldsodefs.h: ... here.
19711
19712 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
19713
19714         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
19715
19716         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
19717         math/test-snan.c.
19718         * math/test-snan.c: Renamed from
19719         sysdeps/powerpc/fpu/test-powerpc-snan.c.
19720         * math/Makefile (tests): Add test-snan.
19721         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
19722         test-powerpc-snan.
19723
19724         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
19725         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
19726         functions.
19727         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
19728         __builtin_nan family of functions.
19729         * math/libm-test.inc (initialize): Initialize qnan_value with
19730         __builtin_nan family of functions.
19731         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
19732         Remove variables.
19733         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
19734         Remove functions.
19735         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
19736         storage class.  Initialize qNaN_var and sNaN_var with
19737         __builtin_nan and __builtin_nans families of functions,
19738         respectively.
19739
19740         * math/libm-test.inc (acosh_test): Also test with qNaN input.
19741         (sqrt_test): Remove duplicate test with qNaN input.
19742         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
19743         (round_test, signbit_test, significand_test): Note missing +/-Inf
19744         as well as qNaN tests.
19745
19746         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
19747         qNaN_var.  Fix a few strings, too.
19748         * math/libm-test.inc (nan_value): Rename to qnan_value.
19749         * math/gen-libm-test.pl (%beautify): Adjust to that.
19750         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
19751         * math/test-misc.c (main): Likewise.
19752         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
19753         to __qnan_bytes, and __qnan_union, respectively.
19754         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
19755         Likewise.
19756         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
19757         and lqnanval, respectively.
19758         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
19759         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
19760         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
19761         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
19762
19763         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
19764         * math/test-misc.c (main) [__x86_64__]: Enable test for long
19765         doubles.
19766
19767         * math/test-misc.c (main): Fix copy'n'pastos.
19768         * misc/tst-efgcvt.c (special): Likewise.
19769
19770         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
19771         Remove declarations.
19772
19773 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19774
19775         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
19776         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
19777         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
19778         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
19779
19780 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19781
19782         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
19783         macro to return vdso values correctly in IFUNC implementations.
19784         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
19785         Optimization by using IFUNC.
19786
19787 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19788             Richard Henderson  <rth@redhat.com>
19789             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19790
19791         * Makefile.in (bench): New target.
19792         * NEWS: Mention the benchmark framework.
19793         * Rules (bench): Likewise.
19794         (binaries-bench): Generate binaries for functions to
19795         benchmark.
19796         * benchtests/Makefile: New makefile for benchmark tests.
19797         * benchtests/bench-skeleton.c: New skeleton file for benchmark
19798         programs.
19799         * benchtests/exp-inputs: New input file for EXP function.
19800         * benchtests/pow-inputs: New input file for POW function.
19801         * scripts/bench.pl: New script to generate source files for
19802         benchmark programs.
19803
19804 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19805
19806         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19807         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
19808         computations on mantissa.  Use macros for rounding and
19809         division.
19810         (denorm): Likewise.
19811         (__dbl_mp): Likewise.
19812         (add_magnitudes): Likewise.
19813         (sub_magnitudes): Likewise.
19814         (__mul): Likewise.
19815         (__sqr): Likewise.
19816         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19817         powers of two in terms of TWOPOW macro.
19818         (mp_no): Make type of mantissa as MANTISSA_T.
19819         [!RADIXI]: Define RADIXI.
19820         [!TWO52]: Define TWO52.
19821         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19822
19823         * manual/nptl.texi (cindex): Modify threads to pthreads.
19824
19825 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
19826
19827         * sysdeps/x86_64/preconfigure: Regenerated.
19828
19829 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
19830
19831         [BZ #14155]
19832         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
19833         0x1p28 and above.
19834         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
19835         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
19836         0x1p28 and above.
19837         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
19838         * math/libm-test.inc (j0_test): Do not allow one spurious
19839         underflow exception.
19840         (y1_test): Likewise.
19841
19842 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19843
19844         * manual/Makefile (chapters): Add nptl.
19845         * manual/debug.texi (Debugging Support): Add link to Threads
19846         chapter.
19847         * manual/nptl.texi: New file.
19848
19849         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
19850
19851 2013-03-14  Petr Baudis  <pasky@ucw.cz>
19852
19853         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
19854         for non-NULL pointer before the memory validity test. Pointed
19855         out by Holger Brunck <holger.brunck@keymile.com>.
19856
19857 2013-03-13  Andreas Schwab  <schwab@suse.de>
19858
19859         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
19860         instead of .os.
19861
19862 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
19863
19864         * timezone/zic.c: Update from tzcode 2013b.
19865
19866 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
19867
19868         * manual/install.texi (Configuring and compiling):
19869         Mention i686 and i586.
19870         * INSTALL: Regenerate.
19871
19872 2013-03-12  Roland McGrath  <roland@hack.frob.com>
19873
19874         * sysdeps/init_array/elf-init.c: New file.
19875         * csu/elf-init.c
19876         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
19877         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
19878
19879         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
19880         __gmon_start__ as global, but as static with a .preinit_array pointer.
19881         * sysdeps/init_array/gmon-start.c: New file.  Use that.
19882         * sysdeps/init_array/crti.S: New file, empty except for comments.
19883         * sysdeps/init_array/crtn.S: Likewise.
19884
19885 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
19886
19887         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
19888         definining bcopy.
19889         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19890         Remove Prefer_SSE_for_memop.
19891         * sysdeps/x86_64/multiarch/init-arch.h: Remove
19892         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
19893         HAS_PREFER_SSE_FOR_MEMOP.
19894         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
19895         memset-x86-64.
19896         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19897         Remove bzero, memset ifunc support.
19898         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
19899         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
19900         * sysdeps/x86_64/multiarch/memset.S: Likewise.
19901         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19902
19903 2013-03-11  Andreas Schwab  <schwab@suse.de>
19904
19905         [BZ #15234]
19906         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
19907         by SHLIB_COMPAT.
19908         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
19909         (GLIBC_2.16): Remove pthread_atfork.
19910
19911 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19912
19913         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
19914         (ptestcases.h): Likewise.
19915
19916 2013-03-08  Roland McGrath  <roland@hack.frob.com>
19917
19918         * Makeconfig ($(common-objpfx)config.status): Depend on
19919         sysdeps/*/preconfigure{,.in} too.
19920
19921 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
19922
19923         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
19924         (__free_hook): Use void * instead of __malloc_ptr_t.
19925         (__malloc_hook): Likewise.
19926         (__realloc_hook): Likewise.
19927         (__memalign_hook): Likewise.
19928         (__after_morecore_hook): Likewise.
19929         * malloc/arena.c (save_malloc_hook): Likewise.
19930         (save_free_hook): Likewise.
19931         * malloc/hooks.c (malloc_hook_ini): Likewise.
19932         (realloc_hook_ini): Likewise.
19933         (memalign_hook_ini): Likewise.
19934         * malloc/malloc.c (malloc_hook_ini): Likewise.
19935         (realloc_hook_ini): Likewise.
19936         (memalign_hook_ini): Likewise.
19937         (__free_hook): Likewise.
19938         (__malloc_hook): Likewise.
19939         (__realloc_hook): Likewise.
19940         (__memalign_hook): Likewise.
19941         (__libc_malloc): Likewise.
19942         (__libc_free): Likewise.
19943         (__libc_realloc): Likewise.
19944         (__libc_memalign): Likewise.
19945         (__libc_valloc): Likewise.
19946         (__libc_pvalloc): Likewise.
19947         (__libc_calloc): Likewise.
19948         (__posix_memalign): Likewise.
19949         * malloc/morecore.c (__sbrk): Likewise.
19950         (__default_morecore): Likewise.
19951
19952         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
19953
19954         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
19955         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
19956         __malloc_ptrdiff_t.
19957
19958         * malloc/malloc.h (__malloc_size_t): Remove macro.
19959         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
19960         __malloc_size_t.
19961         (old_memalign_hook): Likewise.
19962         (old_realloc_hook): Likewise.
19963         (struct hdr): Likewise.
19964         (flood): Likewise.
19965         (mallochook): Likewise.
19966         (memalignhook): Likewise.
19967         (reallochook): Likewise.
19968         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
19969         (tr_old_realloc_hook): Likewise.
19970         (tr_old_memalign_hook): Likewise.
19971         (tr_mallochook): Likewise.
19972         (tr_reallochook): Likewise.
19973         (tr_memalignhook): Likewise.
19974
19975 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19976
19977         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
19978         default_ldbl_pack and using as default implementation.
19979         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
19980         implementation.
19981         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
19982         redundant definition.
19983         (ldbl_insert_mantissa): Likewise.
19984         (ldbl_canonicalize): Likewise.
19985         (ldbl_nearbyint): Likewise.
19986         (ldbl_pack): Rename to ldbl_pack_ppc.
19987         (ldbl_unpack): Rename to ldbl_unpack_ppc.
19988         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
19989         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
19990
19991 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
19992
19993         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
19994         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
19995         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
19996         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
19997         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
19998         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
19999         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20000         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20001
20002 2013-03-07  Andreas Jaeger  <aj@suse.de>
20003
20004         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20005         bits/mman-linux.h.
20006
20007 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20008
20009         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20010         Include mpa.h and declare __MPEXP.
20011         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20012         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20013         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20014         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20015         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20016         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20017         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20018
20019         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20020         (__slowpow): Use long double EXPL and LOGL functions to
20021         compute POW.
20022         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20023         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20024         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20025         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20026         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20027         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20028
20029         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20030         intermediate variable to calculate exponent.
20031         (__sqr): Likewise.
20032         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20033         Likewise.
20034         (__sqr): Likewise.
20035
20036         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20037         [!NO__SQR]: Define __sqr.
20038         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20039         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20040         sysdeps/ieee754/dbl-64/mpa.c.
20041         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20042
20043         [BZ #12723]
20044         * posix/Makefile (tests): Add tst-pathconf.
20045         * posix/tst-pathconf.c: New test case.
20046         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20047         _PC_PIPE_BUF.
20048         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20049
20050 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20051
20052         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20053
20054 2013-03-06  Andreas Jaeger  <aj@suse.de>
20055
20056         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20057         definition via __MAP_ANONYMOUS.
20058
20059         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20060         it's not part of Linux headers.
20061
20062         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20063         (MAP_HUGE_MASK): Define.
20064
20065         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20066         Define.
20067         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20068         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20069         Define.
20070         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20071         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20072         Define.
20073         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20074         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20075         Define.
20076         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20077
20078         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20079         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20080         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20081         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20082         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20083         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20084
20085         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20086         Handle f2fs.
20087
20088         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20089         Handle f2fs and efivarfs.
20090
20091         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20092         f2fs.
20093
20094         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20095         (EFIVARFS_MAGIC): Add.
20096         (F2FS_LINK_MAX): Add.
20097
20098 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20099
20100         * stdio-common/vfprintf.c: Replace __builtin_expect with
20101         __glibc_unlikely.
20102
20103 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20104
20105         [BZ #13550]
20106         * sysdeps/generic/bp-sym.h: Remove file.
20107         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20108         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20109         <bp-sym.h> and <bp-asm.h>.
20110         (__longjmp): Don't use BP_SYM.
20111         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20112         and <bp-asm.h>.
20113         (memcpy): Don't use BP_SYM.
20114         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20115         <bp-sym.h> and <bp-asm.h>.
20116         (memcpy): Don't use BP_SYM.
20117         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20118         <bp-asm.h>.
20119         (memcpy): Don't use BP_SYM.
20120         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20121         <bp-asm.h>.
20122         (memset): Don't use BP_SYM.
20123         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20124         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20125         (__bzero): Don't use BP_SYM.
20126         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20127         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20128         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20129         <bp-sym.h> and <bp-asm.h>.
20130         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20131         pointers.
20132         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20133         <bp-sym.h> and <bp-asm.h>.
20134         (memcpy): Don't use BP_SYM.
20135         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20136         <bp-sym.h> and <bp-asm.h>.
20137         (memset): Don't use BP_SYM.
20138         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20139         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20140         (__bzero): Don't use BP_SYM.
20141         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20142         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20143         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20144         <bp-sym.h> and <bp-asm.h>.
20145         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20146         pointers.
20147         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20148         <bp-sym.h> and <bp-asm.h>.
20149         (memcpy): Don't use BP_SYM.
20150         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20151         <bp-sym.h> and <bp-asm.h>.
20152         (memset): Don't use BP_SYM.
20153         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20154         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20155         (__bzero): Don't use BP_SYM.
20156         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20157         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20158         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20159         <bp-sym.h> and <bp-asm.h>.
20160         (__memchr): Don't use BP_SYM.
20161         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20162         <bp-sym.h> and <bp-asm.h>.
20163         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20164         pointers.
20165         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20166         <bp-sym.h> and <bp-asm.h>.
20167         (memcpy): Don't use BP_SYM.
20168         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20169         <bp-sym.h> and <bp-asm.h>.
20170         (__mempcpy): Don't use BP_SYM.
20171         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20172         <bp-sym.h> and <bp-asm.h>.
20173         (__memrchr): Don't use BP_SYM.
20174         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20175         <bp-sym.h> and <bp-asm.h>.
20176         (memset): Don't use BP_SYM.
20177         (__bzero): Likewise.
20178         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20179         <bp-sym.h> and <bp-asm.h>.
20180         (__rawmemchr): Don't use BP_SYM.
20181         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20182         <bp-sym.h> and <bp-asm.h>.
20183         (__STRCMP): Don't use BP_SYM.
20184         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20185         <bp-sym.h> and <bp-asm.h>.
20186         (strchr): Don't use BP_SYM.
20187         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20188         <bp-sym.h> and <bp-asm.h>.
20189         (__strchrnul): Don't use BP_SYM.
20190         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20191         <bp-sym.h> and <bp-asm.h>.
20192         (strlen): Don't use BP_SYM.
20193         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20194         <bp-sym.h> and <bp-asm.h>.
20195         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20196         pointers.
20197         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20198         <bp-sym.h> and <bp-asm.h>.
20199         (__strnlen): Don't use BP_SYM.
20200         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20201         <bp-sym.h> and <bp-asm.h>.
20202         (__GI__setjmp): Don't use BP_SYM.
20203         (_setjmp): Likewise.
20204         (__sigsetjmp): Likewise.
20205         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20206         (L(start_addresses)): Don't use BP_SYM.
20207         (_start): Likewise.
20208         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20209         <bp-asm.h>.
20210         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20211         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20212         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20213         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20214         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20215         <bp-asm.h>.
20216         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20217         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20218         about bounded pointers.
20219         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20220         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20221         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20222         <bp-asm.h>.
20223         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20224         about bounded pointers.  Remove GKM FIXME comments.
20225         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20226         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20227         <bp-asm.h>.
20228         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20229         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20230         Remove GKM FIXME comments.
20231         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20232         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20233         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20234         <bp-asm.h>.
20235         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20236         about bounded pointers.  Remove GKM FIXME comment.
20237         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20238         and <bp-asm.h>.
20239         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20240         pointers.
20241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20242         <bp-sym.h> and <bp-asm.h>.
20243         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20245         <bp-sym.h> and <bp-asm.h>.
20246         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20247         comment.
20248
20249 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20250
20251         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20252         call free(NULL).
20253
20254 2013-03-05  David S. Miller  <davem@davemloft.net>
20255
20256         * po/es.po: Update from translation team.
20257
20258 2013-03-05  Andreas Jaeger  <aj@suse.de>
20259
20260         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20261         <bits/mman-linux.h>.
20262         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20263         is fine.
20264         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20265         <bits/mman-linux.h> to end of file.
20266         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20267         is fine.
20268         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20269         <bits/mman-linux.h> to end of file.
20270         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20271         is fine.
20272         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20273         <bits/mman-linux.h> to end of file.
20274
20275         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20276         (MCL_CURRENT, MCL_FUTURE): Define here.
20277
20278 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20279
20280         [BZ #15232]
20281         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20282         attribute_hidden.
20283         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20284
20285 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20286
20287         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20288         fourth parameter needed for rt_sigprocmask syscall.
20289         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20290         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20291         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20292         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20293         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20294         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20295
20296 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20297
20298         [BZ #13550]
20299         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20300         comment about bounded pointers.
20301         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20302         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20303
20304 2013-03-04  Andreas Jaeger  <aj@suse.de>
20305
20306         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20307         common definitions.
20308
20309         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20310         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20311         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20312         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20313         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20314         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20315
20316 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20317
20318         [BZ #15055]
20319         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20320         __ieee754_sqrl instead of __sqrl.
20321
20322 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20323
20324         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20325         * sysdeps/powerpc/fpu_control.h: ... here.
20326         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20327         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20328         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20329         * sysdeps/powerpc/bits/mathinline.h: ... here.
20330
20331 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20332
20333         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20334         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20335         to just [NEED_DL_SYSINFO_DSO].
20336         * elf/dl-support.c: Likewise.
20337         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20338         * elf/rtld.c (dl_main): Likewise.
20339         * elf/setup-vdso.h (setup_vdso): Likewise.
20340         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20341         * sysdeps/unix/sysv/linux/dl-sysdep.c
20342         (_dl_discover_osversion): Likewise.
20343
20344 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20345
20346         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20347         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20348
20349 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20350
20351         * NEWS: Mention libm performance improvements and non-x86 PI
20352         futex support.
20353
20354         * csu/libc-start.c (__pthread_initialize_minimal): Change
20355         function arguments.
20356         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20357
20358 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20359
20360         [BZ #13550]
20361         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20362         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20363         <bp-sym.h> and <bp-asm.h>.
20364         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20365         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20366         and <bp-asm.h>.
20367         (memcpy): Don't use BP_SYM.
20368         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20369         <bp-asm.h>.
20370         (__mpn_add_n): Don't use BP_SYM.
20371         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20372         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20373         and <bp-asm.h>.
20374         (__mpn_addmul_1): Don't use BP_SYM.
20375         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20376         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20377         <bp-sym.h>.
20378         (_setjmp): Don't use BP_SYM.
20379         (__novmx_setjmp): Likewise.
20380         (__GI__setjmp): Likewise.
20381         (__vmx_setjmp): Likewise.
20382         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20383         <bp-sym.h>.
20384         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20385         (__bzero): Don't use BP_SYM.
20386         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20387         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20388         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20389         <bp-sym.h> and <bp-asm.h>.
20390         (memcpy): Don't use BP_SYM.
20391         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20392         <bp-sym.h> and <bp-asm.h>.
20393         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20394         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20395         <bp-sym.h> and <bp-asm.h>.
20396         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20397         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20398         <bp-asm.h>.
20399         (__mpn_lshift): Don't use BP_SYM.
20400         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20401         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20402         <bp-asm.h>.
20403         (memset): Don't use BP_SYM.
20404         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20405         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20406         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20407         <bp-asm.h>.
20408         (__mpn_mul_1): Don't use BP_SYM.
20409         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20410         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20411         <bp-sym.h> and <bp-asm.h>.
20412         (memcmp): Don't use BP_SYM.
20413         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20414         <bp-sym.h> and <bp-asm.h>.
20415         (memcpy): Don't use BP_SYM.
20416         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20417         <bp-sym.h> and <bp-asm.h>.
20418         (memset): Don't use BP_SYM.
20419         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20420         <bp-sym.h> and <bp-asm.h>.
20421         (strncmp): Don't use BP_SYM.
20422         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20423         <bp-sym.h> and <bp-asm.h>.
20424         (memcpy): Don't use BP_SYM.
20425         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20426         <bp-sym.h> and <bp-asm.h>.
20427         (memset): Don't use BP_SYM.
20428         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20429         <bp-sym.h> and <bp-asm.h>.
20430         (__memchr): Don't use BP_SYM.
20431         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20432         <bp-sym.h> and <bp-asm.h>.
20433         (memcmp): Don't use BP_SYM.
20434         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20435         <bp-sym.h> and <bp-asm.h>.
20436         (memcpy): Don't use BP_SYM.
20437         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20438         <bp-sym.h> and <bp-asm.h>.
20439         (__mempcpy): Don't use BP_SYM.
20440         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20441         <bp-sym.h> and <bp-asm.h>.
20442         (__memrchr): Don't use BP_SYM.
20443         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20444         <bp-sym.h> and <bp-asm.h>.
20445         (memset): Don't use BP_SYM.
20446         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20447         <bp-sym.h> and <bp-asm.h>.
20448         (__rawmemchr): Don't use BP_SYM.
20449         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20450         <bp-sym.h> and <bp-asm.h>.
20451         (__STRCMP): Don't use BP_SYM.
20452         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20453         <bp-sym.h> and <bp-asm.h>.
20454         (strchr): Don't use BP_SYM.
20455         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20456         <bp-sym.h> and <bp-asm.h>.
20457         (__strchrnul): Don't use BP_SYM.
20458         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20459         <bp-sym.h> and <bp-asm.h>.
20460         (strlen): Don't use BP_SYM.
20461         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20462         <bp-sym.h> and <bp-asm.h>.
20463         (strncmp): Don't use BP_SYM.
20464         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20465         <bp-sym.h> and <bp-asm.h>.
20466         (__strnlen): Don't use BP_SYM.
20467         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20468         <bp-asm.h>.
20469         (__mpn_rshift): Don't use BP_SYM.
20470         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20471         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20472         <bp-sym.h> and <bp-asm.h>.
20473         (__sigsetjmp): Don't use BP_SYM.
20474         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20475         (L(start_addresses)): Don't use BP_SYM.
20476         (_start): Likewise.
20477         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20478         <bp-asm.h>.
20479         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20480         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20481         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20482         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20483         <bp-asm.h>.
20484         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20485         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20486         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20487         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20488         <bp-asm.h>.
20489         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20490         comments.
20491         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20492         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20493         <bp-asm.h>.
20494         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20495         FIXME comments.
20496         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20497         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20498         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20499         <bp-asm.h>.
20500         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20501         comment.
20502         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20503         and <bp-asm.h>.
20504         (strncmp): Don't use BP_SYM,
20505         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20506         <bp-asm.h>.
20507         (__mpn_sub_n): Don't use BP_SYM.
20508         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20509         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20510         and <bp-asm.h>.
20511         (__mpn_submul_1): Don't use BP_SYM.
20512         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20513         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20514         <bp-sym.h> and <bp-asm.h>.
20515         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20517         <bp-sym.h> and <bp-asm.h>.
20518         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20519         comment.
20520
20521 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20522
20523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20524         Use ZK to minimize writes to Z.
20525         (sub_magnitudes): Simplify code a bit.
20526         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20527         Use ZK to minimize writes to Z.
20528         (sub_magnitudes): Simplify code a bit.
20529
20530 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20531
20532         * csu/gmon-start.c: Add special exception to license text.
20533
20534 2013-02-27  Richard Henderson  <rth@redhat.com>
20535
20536         * scripts/config.guess: Update from config.git.
20537         * scripts/config.sub: Likewise.
20538
20539 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20540
20541         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20542
20543         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20544
20545         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20546
20547         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20548
20549         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20550
20551 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20552
20553         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20554         [$(build-shared = yes].
20555
20556 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20557
20558         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20559         (__mul): Reduce iterations for calculating mantissa.
20560
20561         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20562         MPTWO.
20563         (__mpranred): Likewise.
20564
20565         [BZ #15160]
20566         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20567         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20568
20569 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20570
20571         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20572         Define __attribute__.
20573
20574 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20575
20576         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20577         unused.
20578         * posix/regex_internal.h (__attribute): Remove.
20579         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20580         (re_string_context_at): Likewise.
20581         (bitset_not): Use __attribute__ and mark function as possibly
20582         unused.
20583         (bitset_merge): Likewise.
20584         (bitset_mask): Likewise.
20585         (re_string_char_size_at): Likewise.
20586         (re_string_wchar_at): Likewise.
20587         (re_string_elem_size_at): Likewise.
20588
20589 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20590
20591         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20592         code.
20593         (cc32): Likewise.
20594
20595         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20596         (__acr): Likewise.
20597         (__cpy): Likewise.
20598         (norm): Likewise.
20599         (denorm): Likewise.
20600         (__dbl_mp): Likewise.
20601         (add_magnitudes): Likewise.
20602         (sub_magnitudes): Likewise.
20603         (__mul): Likewise.
20604         (__inv): Likewise.
20605
20606         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20607         style.
20608
20609         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
20610         style.
20611
20612         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
20613         code.
20614
20615         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
20616         up changes with default code.
20617         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
20618         Likewise.
20619
20620 2013-02-24  Allan McRae  <allan@archlinux.org>
20621
20622         * manual/socket.texi (The Internet Namespace): Order menu items
20623         to match that in the file.
20624
20625         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
20626         node listing of the info page menu.
20627
20628 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
20629
20630         [BZ #13550]
20631         * sysdeps/i386/bp-asm.h: Remove file.
20632         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20633         (PARMS): Do not use macros from bp-asm.h.
20634         (S1): Likewise.
20635         (S2): Likewise.
20636         (SIZE): Likewise.
20637         (__mpn_add_n): Do not use BP_SYM
20638         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
20639         "bp-asm.h".
20640         (PARMS): Do not use macros from bp-asm.h.
20641         (S1): Likewise.
20642         (SIZE): Likewise.
20643         (__mpn_addmul_1): Do not use BP_SYM
20644         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
20645         "bp-asm.h".
20646         (PARMS): Do not use macros from bp-asm.h.
20647         (SIGMSK): Likewise.
20648         (_setjmp): Likewise.  Do not use BP_SYM.
20649         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
20650         "bp-asm.h".
20651         (PARMS): Do not use macros from bp-asm.h.
20652         (SIGMSK): Likewise.
20653         (setjmp): Likewise.  Do not use BP_SYM.
20654         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
20655         "bp-asm.h".
20656         (PARMS): Do not use macros from bp-asm.h.
20657         (__frexp): Do not use BP_SYM.
20658         (frexp): Likewise.
20659         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
20660         "bp-asm.h".
20661         (PARMS): Do not use macros from bp-asm.h.
20662         (__frexpf): Do not use BP_SYM.
20663         (frexpf): Likewise.
20664         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
20665         "bp-asm.h".
20666         (PARMS): Do not use macros from bp-asm.h.
20667         (__frexpl): Do not use BP_SYM.
20668         (frexpl): Likewise.
20669         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
20670         "bp-asm.h".
20671         (PARMS): Do not use macros from bp-asm.h.
20672         (__remquo): Do not use BP_SYM.
20673         (remquo): Likewise.
20674         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
20675         "bp-asm.h".
20676         (PARMS): Do not use macros from bp-asm.h.
20677         (__remquof): Do not use BP_SYM.
20678         (remquof): Likewise.
20679         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
20680         "bp-asm.h".
20681         (PARMS): Do not use macros from bp-asm.h.
20682         (__remquol): Do not use BP_SYM.
20683         (remquol): Likewise.
20684         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
20685         "bp-asm.h".
20686         (PARMS): Do not use macros from bp-asm.h.
20687         (DEST): Likewise.
20688         (SRC): Likewise.
20689         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
20690         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
20691         "bp-asm.h".
20692         (PARMS): Do not use macros from bp-asm.h.
20693         (strlen): Do not use BP_SYM.
20694         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
20695         "bp-asm.h".
20696         (PARMS): Do not use macros from bp-asm.h.
20697         (S1): Likewise.
20698         (S2): Likewise.
20699         (SIZE): Likewise.
20700         (__mpn_add_n): Do not use BP_SYM.
20701         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
20702         "bp-asm.h".
20703         (PARMS): Do not use macros from bp-asm.h.
20704         (S1): Likewise.
20705         (SIZE): Likewise.
20706         (__mpn_addmul_1): Do not use BP_SYM.
20707         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
20708         weak_alias.
20709         (bzero): Likewise.
20710         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
20711         "bp-asm.h".
20712         (PARMS): Do not use macros from bp-asm.h.
20713         (S): Likewise.
20714         (SIZE): Likewise.
20715         (__mpn_lshift): Do not use BP_SYM.
20716         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
20717         "bp-asm.h".
20718         (PARMS): Do not use macros from bp-asm.h.
20719         (DEST): Likewise.
20720         (SRC): Likewise.
20721         (LEN): Likewise.
20722         (memcpy): Likewise.  Do not use BP_SYM.
20723         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
20724         libc_hidden_def and weak_alias.
20725         (mempcpy): Do not use BP_SYM in weak_alias.
20726         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
20727         "bp-asm.h".
20728         (PARMS): Do not use macros from bp-asm.h.
20729         (DEST): Likewise.
20730         (LEN): Likewise.
20731         [!BZERO_P] (CHR): Likewise.
20732         (memset): Likewise.  Do not use BP_SYM.
20733         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
20734         "bp-asm.h".
20735         (PARMS): Do not use macros from bp-asm.h.
20736         (S1): Likewise.
20737         (SIZE): Likewise.
20738         (__mpn_mul_1): Do not use BP_SYM.
20739         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
20740         "bp-asm.h".
20741         (PARMS): Do not use macros from bp-asm.h.
20742         (S): Likewise.
20743         (SIZE): Likewise.
20744         (__mpn_rshift): Do not use BP_SYM.
20745         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
20746         "bp-asm.h".
20747         (PARMS): Do not use macros from bp-asm.h.
20748         (STR): Likewise.
20749         (CHR): Likewise.
20750         (strchr): Likewise.  Do not use BP_SYM.
20751         (index): Do not use BP_SYM in weak_alias.
20752         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
20753         "bp-asm.h".
20754         (PARMS): Do not use macros from bp-asm.h.
20755         (DEST): Likewise.
20756         (SRC): Likewise.
20757         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
20758         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
20759         "bp-asm.h".
20760         (PARMS): Do not use macros from bp-asm.h.
20761         (strlen): Do not use BP_SYM.
20762         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
20763         "bp-asm.h".
20764         (PARMS): Do not use macros from bp-asm.h.
20765         (S1): Likewise.
20766         (S2): Likewise.
20767         (SIZE): Likewise.
20768         (__mpn_sub_n): Do not use BP_SYM.
20769         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
20770         "bp-asm.h".
20771         (PARMS): Do not use macros from bp-asm.h.
20772         (S1): Likewise.
20773         (SIZE): Likewise.
20774         (__mpn_submul_1): Do not use BP_SYM.
20775         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
20776         "bp-asm.h".
20777         (PARMS): Do not use macros from bp-asm.h.
20778         (S1): Likewise.
20779         (S2): Likewise.
20780         (SIZE): Likewise.
20781         (__mpn_add_n): Do not use BP_SYM.
20782         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
20783         weak_alias.
20784         (bzero): Likewise.
20785         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
20786         "bp-asm.h".
20787         (PARMS): Do not use macros from bp-asm.h.
20788         (BLK2): Likewise.
20789         (LEN): Likewise.
20790         (memcmp): Do not use BP_SYM.
20791         (bcmp): Do not use BP_SYM in weak_alias.
20792         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
20793         "bp-asm.h".
20794         (PARMS): Do not use macros from bp-asm.h.
20795         (DEST): Likewise.
20796         (SRC): Likewise.
20797         (LEN): Likewise.
20798         (memcpy): Likewise.  Do not use BP_SYM.
20799         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
20800         "bp-asm.h".
20801         (PARMS): Do not use macros from bp-asm.h.
20802         (DEST): Likewise.
20803         (SRC): Likewise.
20804         (LEN): Likewise.
20805         (memmove): Likewise.  Do not use BP_SYM.
20806         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
20807         "bp-asm.h".
20808         (PARMS): Do not use macros from bp-asm.h.
20809         (DEST): Likewise.
20810         (SRC): Likewise.
20811         (LEN): Likewise.
20812         (__mempcpy): Likewise.  Do not use BP_SYM.
20813         (mempcpy): Do not use BP_SYM in weak_alias.
20814         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
20815         "bp-asm.h".
20816         (PARMS): Do not use macros from bp-asm.h.
20817         (DEST): Likewise.
20818         (LEN): Likewise.
20819         [!BZERO_P] (CHR): Likewise.
20820         (memset): Likewise.  Do not use BP_SYM.
20821         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
20822         "bp-asm.h".
20823         (PARMS): Do not use macros from bp-asm.h.
20824         (STR2): Likewise.
20825         (strcmp): Do not use BP_SYM.
20826         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
20827         "bp-asm.h".
20828         (PARMS): Do not use macros from bp-asm.h.
20829         (STR): Likewise.
20830         (DELIM): Likewise.
20831         [USE_AS_STRTOK_R] (SAVE): Likewise.
20832         (FUNCTION): Likewise.  Do not use BP_SYM.
20833         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
20834         aliases.
20835         (strtok_r): Likewise.
20836         (__GI___strtok_r): Likewise.
20837         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20838         (PARMS): Do not use macros from bp-asm.h.
20839         (S): Likewise.
20840         (SIZE): Likewise.
20841         (__mpn_lshift): Do not use BP_SYM.
20842         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20843         (PARMS): Do not use macros from bp-asm.h.
20844         (STR): Likewise.
20845         (CHR): Likewise.
20846         (__memchr): Do not use BP_SYM.
20847         (memchr): Do not use BP_SYM in weak_alias.
20848         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20849         (PARMS): Do not use macros from bp-asm.h.
20850         (BLK2): Likewise.
20851         (LEN): Likewise.
20852         (memcmp): Do not use BP_SYM.
20853         (bcmp): Do not use BP_SYM in weak_alias.
20854         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
20855         (PARMS): Do not use macros from bp-asm.h.
20856         (S1): Likewise.
20857         (SIZE): Likewise.
20858         (__mpn_mul_1): Do not use BP_SYM.
20859         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
20860         "bp-asm.h".
20861         (PARMS): Do not use macros from bp-asm.h.
20862         (STR): Likewise.
20863         (CHR): Likewise.
20864         (__rawmemchr): Do not use BP_SYM.
20865         (rawmemchr): Do not use BP_SYM in weak_alias.
20866         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20867         (PARMS): Do not use macros from bp-asm.h.
20868         (S): Likewise.
20869         (SIZE): Likewise.
20870         (__mpn_rshift): Do not use BP_SYM.
20871         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20872         (PARMS): Do not use macros from bp-asm.h.
20873         (SIGMSK): Likewise.
20874         (__sigsetjmp): Likewise.  Do not use BP_SYM.
20875         * sysdeps/i386/start.S: Do not include "bp-sym.h".
20876         (_start): Do not use BP_SYM.
20877         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
20878         (PARMS): Do not use macros from bp-asm.h.
20879         (DEST): Likewise.
20880         (SRC): Likewise.
20881         (__stpcpy): Likewise.  Do not use BP_SYM.
20882         (stpcpy): Do not use BP_SYM in weak_alias.
20883         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
20884         "bp-asm.h".
20885         (PARMS): Do not use macros from bp-asm.h.
20886         (DEST): Likewise.
20887         (SRC): Likewise.
20888         (LEN): Likewise.
20889         (__stpncpy): Likewise.  Do not use BP_SYM.
20890         (stpncpy): Do not use BP_SYM in weak_alias.
20891         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20892         (PARMS): Do not use macros from bp-asm.h.
20893         (STR): Likewise.
20894         (CHR): Likewise.
20895         (strchr): Likewise.  Do not use BP_SYM.
20896         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
20897         "bp-asm.h".
20898         (PARMS): Do not use macros from bp-asm.h.
20899         (STR): Likewise.
20900         (CHR): Likewise.
20901         (__strchrnul): Likewise.  Do not use BP_SYM.
20902         (strchrnul): Do not use BP_SYM in weak_alias.
20903         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
20904         "bp-asm.h".
20905         (PARMS): Do not use macros from bp-asm.h.
20906         (STOP): Likewise.
20907         (strcspn): Do not use BP_SYM.
20908         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
20909         "bp-asm.h".
20910         (PARMS): Do not use macros from bp-asm.h.
20911         (STR): Likewise.
20912         (STOP): Likewise.
20913         (strpbrk): Likewise.  Do not use BP_SYM.
20914         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
20915         "bp-asm.h".
20916         (PARMS): Do not use macros from bp-asm.h.
20917         (STR): Likewise.
20918         (CHR): Likewise.
20919         (strrchr): Likewise.  Do not use BP_SYM.
20920         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
20921         (PARMS): Do not use macros from bp-asm.h.
20922         (SKIP): Likewise.
20923         (strspn): Do not use BP_SYM.
20924         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
20925         (PARMS): Do not use macros from bp-asm.h.
20926         (STR): Likewise.
20927         (DELIM): Likewise.
20928         (SAVE): Likewise.
20929         (FUNCTION): Likewise.  Do not use BP_SYM.
20930         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
20931         aliases.
20932         (strtok_r): Likewise.
20933         (__GI___strtok_r): Likewise.
20934         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20935         (PARMS): Do not use macros from bp-asm.h.
20936         (S1): Likewise.
20937         (S2): Likewise.
20938         (SIZE): Likewise.
20939         (__mpn_sub_n): Do not use BP_SYM.
20940         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
20941         "bp-asm.h".
20942         (PARMS): Do not use macros from bp-asm.h.
20943         (S1): Likewise.
20944         (SIZE): Likewise.
20945         (__mpn_submul_1): Do not use BP_SYM.
20946         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
20947         <bp-sym.h>.
20948         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
20949         and <bp-asm.h>.
20950         (PARMS): Do not use macros from bp-asm.h.
20951         (FLAGS): Likewise.
20952         (PTID): Likewise.
20953         (TLS): Likewise.
20954         (CTID): Likewise.
20955         (__clone): Do not use BP_SYM.
20956         (clone): Do not use BP_SYM in weak_alias.
20957         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
20958         and <bp-asm.h>.
20959         (PARMS): Do not use macros from bp-asm.h.
20960         (LEN): Likewise.
20961         (__mmap64): Do not use BP_SYM.
20962         (mmap64): Do not use BP_SYM in weak_alias.
20963         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20964         <bp-sym.h> and <bp-asm.h>.
20965         (PARMS): Do not use macros from bp-asm.h.
20966         (__posix_fadvise64_l64): Do not use BP_SYM.
20967         * sysdeps/unix/sysv/linux/i386/semtimedop.S
20968         (PARMS): Do not use macros from bp-asm.h.
20969         (NSOPS): Likewise.
20970         (semtimedop): Do not use BP_SYM.
20971         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
20972         and <bp-asm.h>.
20973
20974 2013-02-21  Allan McRae  <allan@archlinux.org>
20975
20976         * manual/message.texi (Charset conversion in gettext):
20977         Move @end statement to beginning of line.
20978
20979 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20980
20981         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
20982         static.
20983         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
20984         Likewise.
20985
20986         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
20987         (denorm): Likewise.
20988         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
20989         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
20990
20991 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20992
20993         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
20994         tail-call to the resolved function if pltexit isn't needed.
20995
20996 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20997
20998         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
20999         or Y being zero as being unlikely.
21000         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21001         Likewise.
21002
21003 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21004
21005         * manual/nss.texi (System Databases and Name Service Switch):
21006         Remove frobnicate @pxref.
21007
21008 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21009
21010         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21011         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21012
21013 2013-02-20  Petr Machata  <pmachata@redhat.com>
21014
21015         * elf/elf.h (R_ARM_TARGET1): New macro.
21016         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21017         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21018         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21019         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21020         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21021         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21022         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21023         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21024         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21025         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21026         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21027         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21028         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21029         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21030         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21031         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21032         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21033         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21034         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21035         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21036         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21037         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21038         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21039         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21040         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21041         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21042         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21043         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21044         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21045         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21046         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21047         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21048         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21049         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21050         (R_ARM_THM_GOT_BREL12): Likewise.
21051         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21052         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21053         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21054         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21055         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21056         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21057         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21058         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21059         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21060
21061 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21062
21063         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21064         __attribute_used__ to __attribute__ ((unused)).
21065
21066 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21067
21068         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21069         powerpc mpa.c.
21070         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21071         comment formatting.
21072         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21073
21074 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21075
21076         [BZ #13550]
21077         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21078         Remove macro.
21079         (ENTER): Remove both macro definitions.
21080         (LEAVE): Likewise.
21081         (CHECK_BOUNDS_LOW): Likewise.
21082         (CHECK_BOUNDS_HIGH): Likewise.
21083         (CHECK_BOUNDS_BOTH): Likewise.
21084         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21085         (RETURN_BOUNDED_POINTER): Likewise.
21086         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21087         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21088         (POP_ERRNO_LOCATION_RETURN): Likewise.
21089         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21090         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21091         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21092         macros.
21093         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21094         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21095         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21096         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21097         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21098         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21099         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21100         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21101         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21102         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21103         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21104         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21105         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21106         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21107         removed macros.
21108         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21109         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21110         macros.
21111         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21112         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21113         * sysdeps/i386/i586/memset.S (memset): Likewise.
21114         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21115         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21116         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21117         macros.
21118         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21119         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21120         Change uses of L(2) to L(out).
21121         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21122         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21123         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21124         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21125         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21126         removed macros.
21127         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21128         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21129         macros.
21130         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21131         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21132         (RETURN): Do not use macro LEAVE.
21133         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21134         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21135         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21136         * sysdeps/i386/i686/memset.S (memset): Likewise.
21137         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21138         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21139         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21140         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21141         Likewise.
21142         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21143         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21144         L(1_2) and L(1_3) into L(1).
21145         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21146         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21147         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21148         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21149         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21150         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21151         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21152         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21153         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21154         macros.
21155         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21156         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21157         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21158         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21159         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21160         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21161         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21162         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21163         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21164         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21165         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21166         * sysdeps/i386/strspn.S (strspn): Likewise.
21167         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21168         conditional code.
21169         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21170         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21171         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21172         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21173         L(1_3) into L(1_1).
21174         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21175         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21176         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21177         macros.
21178         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21179
21180 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21181
21182         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21183         macro.
21184
21185 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21186
21187         * math/atest-exp.c (exp_mpn): Remove ROUND.
21188         * math/atest-exp2.c (exp_mpn): Likewise.
21189         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21190
21191         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21192         * stdlib/tst-tls-atexit-lib.c: Likewise.
21193         * stdlib/tst-tls-atexit.c: Likewise.
21194
21195 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21196
21197         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21198         and __attribute_alloc_size__.
21199
21200 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21201
21202         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21203         __attribute_alloc_size__.
21204         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21205         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21206
21207 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21208
21209         * include/programs/xmalloc.h: New file.
21210         * catgets/gencat.c: Include it.
21211         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21212         * elf/pldd.c: Likewise.
21213         * iconv/iconv_charmap.c: Likewise.
21214         * iconv/iconvconfig.c: Likewise.
21215         * iconv/strtab.c: Likewise.
21216         * locale/programs/locale.c: Likewise.
21217         * locale/programs/localedef.h: Likewise.
21218         * locale/programs/simple-hash.c: Likewise.
21219         * nscd/nscd.h: Likewise.
21220         * nss/makedb.c: Likewise.
21221         * sysdeps/generic/ldconfig.h: Likewise.
21222
21223 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21224
21225         * Versions.def: Add GLIBC_2.18.
21226         * include/link.h (struct link_map): New member l_tls_dtor_count.
21227         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21228         (__call_tls_dtors): Likewise.
21229         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21230         __cxa_thread_atexit_impl.
21231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21232         Likewise.
21233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21234         Likewise.
21235         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21236         Likewise.
21237         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21238         Likewise.
21239         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21240         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21241         Likewise.
21242         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21243         Likewise.
21244         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21245         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21246         Likewise.
21247         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21248         (tests): Add test case tst-tls-atexit.
21249         (modules-names): Add shared library for tst-tls-atexit.
21250         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21251         (GLIBC_PRIVATE): Add __call_tls_dtors.
21252         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21253         for libstdc++.
21254         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21255         * stdlib/tst-tls-atexit.c: New test case.
21256         * stdlib/tst-tls-atexit-lib.c: New test case.
21257
21258         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21259
21260         * elf/Versions (ld): Add _dl_find_dso_for_object.
21261         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21262         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21263         (dl_open_worker): Use _dl_find_dso_for_object.
21264         * elf/dl-sym.c (do_sym): Likewise.
21265         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21266
21267 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21268
21269         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21270         Syntactic changes only.
21271         (_dl_runtime_profile): Do a tail-call to the resolved function.
21272
21273 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21274
21275         [BZ #13550]
21276         * sysdeps/x86_64/bp-asm.h: Remove file.
21277         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21278         <bp-sym.h> and <bp-asm.h>.
21279         (__clone): Do not use BP_SYM.
21280         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21281         <bp-sym.h> and <bp-asm.h>.
21282         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21283         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21284         "bp-asm.h".
21285         (_setjmp): Do not use BP_SYM.
21286         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21287         "bp-asm.h".
21288         (setjmp): Do not use BP_SYM.
21289         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21290         libc_hidden_def.
21291         (mempcpy): Do not use BP_SYM in weak_alias.
21292         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21293         "bp-asm.h".
21294         (strchr): Do not use BP_SYM.
21295         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21296         "bp-asm.h".
21297         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21298         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21299         (_start): Do not use BP_SYM.
21300         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21301         "bp-asm.h".
21302         (strcat): Do not use BP_SYM.
21303         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21304         "bp-asm.h".
21305         (STRCMP): Do not use BP_SYM.
21306         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21307         "bp-asm.h".
21308         (STRCPY): Do not use BP_SYM.
21309         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21310         "bp-asm.h".
21311         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21312         "bp-asm.h".
21313         (FUNCTION): Do not use BP_SYM.
21314         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21315         weak_alias.
21316         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21317
21318 2013-02-17  Andreas Jaeger  <aj@suse.de>
21319
21320         * time/Versions: Sort entries.
21321         * string/Versions: Likewise.
21322         * resolv/Versions: Likewise.
21323         * posix/Versions: Likewise.
21324         * iconv/Versions: Likewise.
21325         * elf/Versions: Likewise.
21326         * wcsmbs/Versions: Likewise.
21327
21328 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21329
21330         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21331         loop termination condition.
21332
21333         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21334         variable to calculate EZ.
21335         (__sqr): Likewise.
21336
21337         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21338         the lower precision input.
21339
21340 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21341
21342         [BZ #13550]
21343         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21344         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21345         (run-via-rtld-prefix): Do not handle %-bp tests.
21346         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21347         (all-object-suffixes): Remove .ob.
21348         (bppfx): Remove variable.
21349         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21350         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21351         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21352         [$(build-bounded) = yes] (libtype.ob): Likewise.
21353         * Makerules (elide-routines.ob): Remove variable.
21354         (do-tests-clean): Do not handle *-bp.out.
21355         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21356         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21357         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21358         (tests): Do not include $(tests-bp.out).
21359         (xtests): Do not include $(xtests-bp.out).
21360         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21361         [$(build-bounded) = yes] ($(addprefix
21362         $(objpfx),$(binaries-bounded))): Remove rule.
21363         ($(objpfx)%-bp.out): Remove rule.
21364         * config.make.in (build-bounded): Remove variable.
21365         * crypt/Makefile [$(build-bounded) = yes]
21366         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21367         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21368         append to variable.
21369         [$(build-bounded) = yes] (install-lib): Likewise.
21370         [$(build-bounded) = yes] (generated): Likewise.
21371         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21372         Remove rule.
21373         * intl/Makefile [$(build-bounded) = yes]
21374         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21375         * math/Makefile [$(build-bounded) = yes]
21376         ($(tests:%=$(objpfx)%-bp): Likewise.
21377         * misc/Makefile [$(build-bounded) = yes]
21378         ($(objpfx)tst-tsearch-bp): Likewise.
21379         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21380         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21381         Remove dependency.
21382         * string/Makefile (o-objects.ob): Remove variable.
21383         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21384         (CFLAGS-.ob): Remove variable.
21385         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21386         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21387         both definitions of variable.
21388         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21389         (ASFLAGS-.ob): Remove variable.
21390
21391 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21392
21393         [BZ #13550]
21394         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21395         Remove __BOUNDED_POINTERS__ from condition.
21396         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21397         * string/bits/string2.h [!__NO_STRING_INLINES &&
21398         !__BOUNDED_POINTERS__]: Likewise.
21399         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21400         Likewise.
21401         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21402         Remove conditional code.
21403         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21404         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21405         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21406         condition.
21407
21408         [BZ #13550]
21409         * csu/libc-start.c: Do not include <bp-sym.h>.
21410         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21411         * elf/dl-open.c: Do not include <bp-sym.h>.
21412         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21413         * math/fegetenv.c: Do not include <bp-sym.h>.
21414         (fegetenv): Do not use BP_SYM in versioned symbols.
21415         * nptl/sysdeps/pthread/bits/libc-lockP.h
21416         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21417         <bp-sym.h>.
21418         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21419         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21420         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21421         (__pthread_mutex_destroy): Likewise.
21422         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21423         (__pthread_mutex_lock): Likewise.
21424         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21425         (__pthread_mutex_trylock): Likewise.
21426         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21427         (__pthread_mutex_unlock): Likewise.
21428         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21429         (__pthread_mutexattr_init): Likewise.
21430         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21431         (__pthread_mutexattr_destroy): Likewise.
21432         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21433         (__pthread_mutexattr_settype): Likewise.
21434         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21435         (__pthread_rwlock_init): Likewise.
21436         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21437         (__pthread_rwlock_destroy): Likewise.
21438         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21439         (__pthread_rwlock_rdlock): Likewise.
21440         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21441         (__pthread_rwlock_tryrdlock): Likewise.
21442         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21443         (__pthread_rwlock_wrlock): Likewise.
21444         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21445         (__pthread_rwlock_trywrlock): Likewise.
21446         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21447         (__pthread_rwlock_unlock): Likewise.
21448         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21449         (__pthread_key_create): Likewise.
21450         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21451         (__pthread_setspecific): Likewise.
21452         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21453         (__pthread_getspecific): Likewise.
21454         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21455         Likewise.
21456         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21457         (_pthread_cleanup_push_defer): Likewise.
21458         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21459         (_pthread_cleanup_pop_restore): Likewise.
21460         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21461         (pthread_setcancelstate): Likewise.
21462         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21463         <bp-sym.h>.
21464         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21465         (memchr): Do not use BP_SYM in weak_alias.
21466         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21467         (fegetenv): Do not use BP_SYM in versioned symbols.
21468         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21469         (fesetenv): Do not use BP_SYM in versioned symbols.
21470         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21471         (feupdateenv): Do not use BP_SYM in versioned symbols.
21472         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21473         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21474         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21475         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21476         (open64): Do not use BP_SYM in weak_alias.
21477         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21478         (fegetenv): Do not use BP_SYM in versioned symbols.
21479         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21480         (fesetenv): Do not use BP_SYM in versioned symbols.
21481         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21482         (feupdateenv): Do not use BP_SYM in versioned symbols.
21483         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21484         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21485         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21486         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21487         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21488         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21489         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21490         <bp-sym.h>.
21491         (__libc_start_main): Do not use BP_SYM.
21492
21493 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21494
21495         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21496         redundant return line.
21497         (norm): Likewise.
21498         (denorm): Likewise.
21499         (dbl_mp): Likewise.
21500         (sub_magnitudes): Likewise.
21501         (__add): Likewise.
21502         (__sub): Likewise.
21503         (__mul): Likewise.
21504         (__inv): Likewise.
21505         (__dvd): Likewise.
21506         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21507         (norm): Likewise.
21508         (denorm): Likewise.
21509         (dbl_mp): Likewise.
21510         (sub_magnitudes): Likewise.
21511         (__add): Likewise.
21512         (__sub): Likewise.
21513         (__mul): Likewise.
21514         (__inv): Likewise.
21515         (__dvd): Likewise.
21516
21517         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21518         instead of __mul.
21519         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21520         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21521         (cc32): Likewise.
21522
21523         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21524         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21525         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21526         of __mul for squares.
21527         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21528         function
21529         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21530         Likewise.
21531         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21532         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21533
21534 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21535
21536         [BZ #13550]
21537         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21538         code.
21539         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21540         prototype or function definition.  Rename ubp_* variables and
21541         parameters.  Remove argv definitions conditional on
21542         [__BOUNDED_POINTERS__].
21543         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21544         * elf/dl-runtime.c (_dl_fixup): Likewise.
21545         * include/set-hooks.h (RUN_HOOK): Likewise.
21546         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21547         definition.
21548         * string/strcpy.c (strcpy): Do not use __unbounded.
21549         * sysdeps/generic/frame.h (struct layout): Likewise.
21550         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21551         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21552         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21553         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21554         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21555         (__backtrace): Likewise.
21556         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21557         use __ptrvalue.
21558         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21559         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21560         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21561         Likewise.
21562         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21563         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21564         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21565         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21566         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21567         Do not use __unbounded.
21568         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21569         Rename __unboundedrlimits parameter to rlimits in prototype.
21570         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21571         Do not use __unbounded.
21572         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21573         not use __ptrvalue.
21574         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21575         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21576         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21577         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21578         __ptrvalue or __unbounded.
21579         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21580         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21581         use __unbounded.
21582         (__new_msgctl): Do not use __ptrvalue.
21583         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21584         __unbounded.
21585         (__libc_msgrcv): Do not use __ptrvalue.
21586         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21587         startup_info): Do not use __unbounded.
21588         (__libc_start_main): Likewise.  Rename ubp_* variables and
21589         parameters.  Remove argv definitions conditional on
21590         [__BOUNDED_POINTERS__].
21591         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21592         __ptrvalue.
21593         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21594         use __unbounded.
21595         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21596         or __ptrvalue.
21597         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21598         use __unbounded.
21599         (__new_shmctl): Do not use __ptrvalue.
21600         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21601         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21602         Likewise.
21603         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21604         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21605         (__libc_sigaction): Likewise.
21606         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21607         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
21608         Likewise.
21609         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21610
21611 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
21612
21613         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
21614
21615         * string/mempcpy.c: Implement by calling memcpy.
21616
21617 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
21618
21619         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
21620
21621         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
21622         evaluation.
21623
21624         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
21625         values in the mantissa.
21626
21627         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
21628         minimize writes to Z.
21629         (sub_magnitudes): Simplify code a bit.
21630
21631 2013-02-12  Roland McGrath  <roland@hack.frob.com>
21632
21633         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
21634         from the message.  The linker prefixes all warnings with that already.
21635
21636 2013-02-12  Andreas Schwab  <schwab@suse.de>
21637
21638         [BZ #15078]
21639         * posix/regexec.c (extend_buffers): Add parameter min_len.
21640         (check_matching): Pass minimum needed length.
21641         (clean_state_log_if_needed): Likewise.
21642         (get_subexp): Likewise.
21643         * posix/Makefile (tests): Add bug-regex34.
21644         (bug-regex34-ENV): Define.
21645         * posix/bug-regex34.c: New file.
21646
21647         [BZ #11561]
21648         * posix/regcomp.c (parse_bracket_exp): When looking up collating
21649         elements compare against the byte sequence of it, not its name.
21650         * posix/Makefile (tests): Add bug-regex35.
21651         (bug-regex35-ENV): Define.
21652         * posix/bug-regex35.c: New file.
21653
21654 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21655
21656         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
21657         comment.
21658         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
21659         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
21660         (CHECK_EOL): Add undef.
21661
21662 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
21663
21664         * bits/stdlib-bsearch.h: New file.
21665         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
21666         * stdlib/stdlib.h: Likewise.
21667
21668 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21669
21670         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
21671         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
21672         declaration.
21673         * manual/search.texi (Array Search Function): Add missing const in
21674         lfind prototype.
21675         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
21676         declaration to use rlim_t.
21677         (Basic Scheduling Functions): Remove erroneous const from
21678         sched_getparam prototype.  Remove erroneous * from
21679         sched_get_priority_max and sched_get_priority_min prototypes.
21680         (Resource Usage): Fix summary @comment on vtimes to refer to
21681         sys/vtimes.h rather than vtimes.h.
21682         Add missing *s in vtimes prototype.
21683         (Limits on Resources): Fix ulimit prototype to return long int.
21684         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
21685         prototypes to use long int rather than double.
21686         (BSD Random): Fix initstate and setstate to use char *, not void *.
21687         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
21688         prototype to make second argument 'struct aiocb64 *const[]'.
21689         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
21690         (Status of AIO Operations): Remove erroneous const in aio_return and
21691         aio_return64 prototypes.
21692         (Synchronizing I/O): Fix sync prototype to return void.
21693         * manual/startup.texi (Suboptions): Remove an erroneous const in
21694         getsubopt prototype.
21695         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
21696         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
21697         use size_t rather than int.
21698         (Scanning All Users): Likewise for getpwent_r.
21699         (Setting Groups): Add missing const to setgroups prototype.
21700         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
21701         * manual/socket.texi (Host Names): Fix gethostbyaddr and
21702         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
21703         'const void *' rather than 'const char *'.
21704         (Host Address Functions): Likewise for inet_ntop.
21705         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
21706         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
21707         ssize_t for return value.
21708         (Sending Data): Likewise for send, sendto, sendmsg.
21709         (Socket Option Functions): Add a missing const in setsockopt prototype.
21710         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
21711         use wchar_t for the argument.
21712         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
21713         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
21714         take no arguments.
21715         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
21716         double/float/long double for second argument.
21717         Fix return types of significand, significandf, significandl.
21718         * manual/filesys.texi (Setting Permissions): Use mode_t for second
21719         argument in fchmod prototype.
21720         (File Owner): Use uid_t and gid_t in fchown prototype.
21721         (File Times): Add const to utimes, futimes, and lutimes prototypes.
21722         (Making Special Files): Use mode_t and dev_t in mknod prototype.
21723         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
21724         use 'const struct dirent **' as argument types to CMP function pointer
21725         argument.
21726         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
21727         (File Times): Fix summary magic @comment for struct utimbuf and utime
21728         to refer to utime.h, not time.h.
21729         * manual/string.texi (Argz Functions): Add missing const in
21730         argz_extract and argz_next prototypes.
21731         (Finding Tokens in a String): Likewise for basename.
21732         (String/Array Comparison): Fix typo in wcscasecmp prototype.
21733         (Copying and Concatenation): Fix typo in wmemmove prototype.
21734         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
21735         (Signal Stack): Remove erroneous const in sigstack prototype.
21736         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
21737         prototype.
21738         (Simple Calendar Time): Likewise for stime.
21739         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
21740         prototype.
21741         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
21742         say sys/sysctl.h instead.
21743         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
21744         and vsyslog prototypes.
21745
21746 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21747
21748         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
21749         Remove.
21750
21751 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21752
21753         * misc/sys/mman.h: Fix typo in mremap comment.
21754
21755 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21756
21757         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
21758         the '\0' terminator.
21759
21760 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21761
21762         [BZ #13550]
21763         * debug/segfault.c: Don't include <bp-checks.h>.
21764         * sysdeps/generic/bp-checks.h: Remove file.
21765         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
21766         (__GETDENTS): Don't use CHECK_N.
21767         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
21768         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
21769         (__getgroups): Don't use CHECK_N.
21770         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
21771         (setgroups): Don't use CHECK_N.
21772         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
21773         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
21774         (__libc_msgrcv): Don't use CHECK_N.
21775         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
21776         (__libc_msgsnd): Don't use CHECK_N.
21777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
21778         <bp-checks.h>.
21779         (__libc_pread): Don't use CHECK_N.
21780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
21781         include <bp-checks.h>.
21782         (__libc_pread64): Don't use CHECK_N.
21783         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
21784         include <bp-checks.h>.
21785         (__libc_pwrite): Don't use CHECK_N.
21786         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
21787         include <bp-checks.h>.
21788         (__libc_pwrite64): Don't use CHECK_N.
21789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
21790         <bp-checks.h>.
21791         (__libc_pread): Don't use CHECK_N.
21792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
21793         include <bp-checks.h>.
21794         (__libc_pread64): Don't use CHECK_N.
21795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
21796         include <bp-checks.h>.
21797         (__libc_pwrite): Don't use CHECK_N.
21798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
21799         include <bp-checks.h>.
21800         (__libc_pwrite64): Don't use CHECK_N.
21801         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
21802         (do_pread): Don't use CHECK_N.
21803         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
21804         (do_pread64): Don't use CHECK_N.
21805         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
21806         (do_pwrite): Don't use CHECK_N.
21807         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
21808         (do_pwrite64): Don't use CHECK_N.
21809         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
21810         (__libc_readv): Don't use CHECK_N.
21811         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
21812         (semop): Don't use CHECK_N.
21813         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
21814         <bp-checks.h>.
21815         (semtimedop): Don't use CHECK_N.
21816         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
21817         (__libc_pread): Don't use CHECK_N.
21818         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
21819         <bp-checks.h>.
21820         (__libc_pread64): Don't use CHECK_N.
21821         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
21822         <bp-checks.h>.
21823         (__libc_pwrite): Don't use CHECK_N.
21824         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
21825         <bp-checks.h>.
21826         (__libc_pwrite64): Don't use CHECK_N.
21827         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
21828         <bp-checks.h>.
21829         (__libc_msgrcv): Don't use CHECK_N.
21830         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
21831         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
21832         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
21833         (__libc_writev): Don't use CHECK_N.
21834
21835 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21836
21837         * string/strcpy.c: Removed unused variable.
21838
21839         * Makeconfig (+sysdep-includes): Define with := rather than =.
21840         Use an existing include/ subdir of each sysdeps dir before it.
21841
21842 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21843
21844         * nscd/connection.c (register_traced_file): Comment function.
21845         [HAVE_INOTIFY] (union __inev): Define.
21846         [HAVE_INOTIFY] (inotify_check_files): New function.
21847         [HAVE_INOTIFY] (clear_db_cache): Likewise.
21848         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
21849         clear_db_cache.
21850         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
21851
21852 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21853
21854         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
21855         loaded if not already and that a failure is permanent.
21856
21857 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21858
21859         [BZ #15006]
21860         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
21861         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
21862
21863 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21864
21865         [BZ #13550]
21866         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
21867         (CHECK_1_NULL_OK): Likewise.
21868         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
21869         (__fxstat): Do not use CHECK_1.
21870         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
21871         <bp-checks.h>.
21872         (___fxstat64): Do not use CHECK_1.
21873         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
21874         <bp-checks.h>.
21875         (__fxstatat): Do not use CHECK_1.
21876         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
21877         <bp-checks.h>.
21878         (__fxstatat64): Do not use CHECK_1.
21879         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
21880         <bp-checks.h>.
21881         (__fxstat): Do not use CHECK_1.
21882         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
21883         <bp-checks.h>.
21884         (__fxstatat): Do not use CHECK_1.
21885         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
21886         <bp-checks.h>.
21887         (__getresgid): Do not use CHECK_1.
21888         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
21889         <bp-checks.h>.
21890         (__getresuid): Do not use CHECK_1.
21891         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
21892         <bp-checks.h>.
21893         (__lxstat): Do not use CHECK_1.
21894         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
21895         <bp-checks.h>.
21896         (__old_msgctl): Do not use CHECK_1.
21897         (__new_msgctl): Likewise.
21898         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
21899         <bp-checks.h>.
21900         (__new_setrlimit): Do not use CHECK_1.
21901         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
21902         <bp-checks.h>.
21903         (__old_shmctl): Do not use CHECK_1.
21904         (__new_shmctl): Likewise.
21905         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
21906         <bp-checks.h>.
21907         (__xstat): Do not use CHECK_1.
21908         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
21909         (__lxstat): Do not use CHECK_1.
21910         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
21911         <bp-checks.h>.
21912         (___lxstat64): Do not use CHECK_1.
21913         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
21914         (__old_msgctl): Do not use CHECK_1.
21915         (__new_msgctl): Likewise.
21916         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
21917         <bp-checks.h>.
21918         (__gettimeofday): Do not use CHECK_1.
21919         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
21920         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
21921         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
21922         <bp-checks.h>.
21923         (__gettimeofday): Do not use CHECK_1.
21924         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
21925         (__old_shmctl): Do not use CHECK_1_NULL_OK.
21926         (__new_shmctl): Do not use CHECK_1.
21927         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
21928         <bp-checks.h>.
21929         (do_sigtimedwait): Do not use CHECK_1.
21930         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
21931         <bp-checks.h>.
21932         (do_sigwaitinfo): Do not use CHECK_1.
21933         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
21934         <bp-checks.h>.
21935         (msgctl): Do not use CHECK_1.
21936         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
21937         <bp-checks.h>.
21938         (shmctl): Do not use CHECK_1.
21939         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
21940         (ustat): Do not use CHECK_1.
21941         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
21942         <bp-checks.h>.
21943         (__fxstat): Do not use CHECK_1.
21944         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
21945         <bp-checks.h>.
21946         (__fxstatat): Do not use CHECK_1.
21947         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
21948         <bp-checks.h>.
21949         (__lxstat): Do not use CHECK_1.
21950         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
21951         <bp-checks.h>.
21952         (__xstat): Do not use CHECK_1.
21953         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
21954         (__xstat): Do not use CHECK_1.
21955         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
21956         (___xstat64): Do not use CHECK_1.
21957
21958         [BZ #13550]
21959         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
21960         definitions.
21961         (CHECK_BOUNDS_HIGH): Likewise.
21962         * string/strcpy.c: Do not include <bp-checks.h>.
21963         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
21964
21965 2013-02-07  Roland McGrath  <roland@hack.frob.com>
21966
21967         * nscd/nscd-client.h (__nscd_drop_map_ref):
21968         Add __attribute__ ((unused)).
21969         * nis/nss-nisplus.h (niserr2nss): Likewise.
21970
21971         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
21972         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
21973
21974         * csu/libc-tls.c (init_static_tls, init_slotinfo):
21975         Remove inline keyword.
21976         * include/rounding-mode.h (round_away): Likewise.
21977         * libio/wfileops.c (adjust_wide_data): Likewise.
21978         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
21979         (__m128i_strloadu_tolower): Likewise.
21980         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
21981         (__m128i_strloadu_tolower): Likewise.
21982         * time/mktime.c (ydhms_diff): Likewise.
21983         * locale/elem-hash.h (elem_hash): Likewise.
21984         * locale/setlocale.c (setdata): Likewise.
21985         * posix/regex_internal.h (re_string_char_size_at): Likewise.
21986         (re_string_wchar_at): Likewise.
21987         (bitset_not, bitset_merge, bitset_mask): Likewise.
21988         [!(__GNUC__ > 3)] (inline): Remove macro.
21989         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
21990         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
21991         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
21992         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
21993         * string/memcmp.c (memcmp_bytes): Likewise.
21994         * locale/programs/locarchive.c (compute_hashval): Likewise.
21995         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
21996         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
21997         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
21998         * nss/getent.c (print_rpc, print_protocols): Likewise.
21999         (print_passwd, print_group, print_aliases): Likewise.
22000         * nis/nss-nisplus.h (niserr2nss): Likewise.
22001         * nscd/connections.c (restart_p): Likewise.
22002         Change return type to bool.
22003
22004 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22005
22006         * Makeconfig (all-Depend-files): Add existing
22007         $(sorted-subdirs:=/Depend) files.
22008         (all-subdirs): Remove nss.
22009         * sysdeps/unix/inet/Subdirs: Add it here instead.
22010         * hesiod/Depend: New file.
22011
22012         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22013         instead of calling alloca.
22014
22015         * io/lseek.c (__lseek): Rename to __libc_lseek.
22016         Define __lseek as an alias.
22017
22018         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22019
22020 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22021
22022         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22023         else clause and remove check for non-standard endianness.
22024
22025 2013-02-04  David S. Miller  <davem@davemloft.net>
22026
22027         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22028
22029 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22030
22031         [BZ #13550]
22032         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22033         (__ubp_memchr): Remove prototype.
22034         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22035         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22036         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22037         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22038         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22039         Remove alias.
22040         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22041         (__ubp_memchr): Likewise.
22042         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22043         (__ubp_memchr): Likewise.
22044         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22045         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22046         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22047         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22048         CHECK_STRING.
22049         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22050         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22051         (__getcwd): Do not use CHECK_STRING.
22052         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22053         <bp-checks.h>.
22054         (__real_chown): Do not use CHECK_STRING.
22055         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22056         <bp-checks.h>.
22057         (fchownat): Do not use CHECK_STRING.
22058         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22059         CHECK_STRING.
22060         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22061         <bp-checks.h>.
22062         (__lchown): Do not use CHECK_STRING.
22063         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22064         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22065         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22066         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22068         include <bp-checks.h>.
22069         (truncate64): Do not use CHECK_STRING.
22070         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22071         <bp-checks.h>.
22072         (__real_chown): Do not use CHECK_STRING.
22073         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22074         <bp-checks.h>.
22075         (__lchown): Do not use CHECK_STRING.
22076         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22077         <bp-checks.h>.
22078         (__chown): Do not use CHECK_STRING.
22079         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22080         <bp-checks.h>.
22081         (truncate64): Do not use CHECK_STRING.
22082         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22083         Likewise.
22084         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22085         (__xmknod): Do not use CHECK_STRING.
22086         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22087         <bp-checks.h>.
22088         (__xmknodat): Do not use CHECK_STRING.
22089         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22090         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22091
22092 2013-02-04  Andreas Schwab  <schwab@suse.de>
22093
22094         [BZ #14142]
22095         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22096         * include/netdb.h: Likewise for h_errno.
22097         * elf/tst-stackguard1.c: Include <tls.h>.
22098
22099 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22100
22101         * elf/link.h (struct link_map): Extend the l_addr comment.
22102         * include/link.h (struct link_map): Likewise.
22103
22104 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22105
22106         [BZ #13550]
22107         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22108         (BOUNDED_1): Remove macro.
22109         * debug/backtrace.c: Don't include <bp-checks.h>.
22110         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22111         (__backtrace): Likewise.
22112         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22113         <bp-checks.h>.
22114         (__backtrace): Don't use BOUNDED_1.
22115         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22116         <bp-checks.h>.
22117         (__backtrace): Don't use BOUNDED_1.
22118         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22119         (__backtrace): Don't use BOUNDED_1.
22120         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22121         (shmat): Don't use BOUNDED_N.
22122
22123 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22124
22125         [BZ #13550]
22126         * sysdeps/generic/bp-start.h: Remove file.
22127         * csu/libc-start.c: Don't include <bp-start.h>.
22128         (LIBC_START_MAIN): Set up __environ directly instead of using
22129         INIT_ARGV_and_ENVIRON.
22130         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22131         <bp-start.h>.
22132
22133         [BZ #13550]
22134         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22135         definitions.
22136         (CHECK_FCNTL): Likewise.
22137         (CHECK_N_PAGES): Likewise.
22138
22139         [BZ #13550]
22140         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22141         definitions.
22142         (CHECK_SIGSET_NULL_OK): Likewise.
22143         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22144         <bp-checks.h>.
22145         (sigpending): Don't use CHECK_SIGSET.
22146         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22147         <bp-checks.h>.
22148         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22149         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22150         <bp-checks.h>.
22151         (do_sigsuspend): Don't use CHECK_SIGSET.
22152         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22153         use CHECK_SIGSET.
22154         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22155         (do_sigwait): Don't use CHECK_SIGSET.
22156         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22157         use CHECK_SIGSET.
22158         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22159         include <bp-checks.h>.
22160         (sigpending): Don't use CHECK_SIGSET.
22161         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22162         include <bp-checks.h>.
22163         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22164         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22165         <bp-checks.h>.
22166         (sigpending): Don't use CHECK_SIGSET.
22167         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22168         <bp-checks.h>.
22169         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22170
22171         [BZ #13550]
22172         * sysdeps/generic/bp-semctl.h: Remove file.
22173         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22174         <bp-checks.h> and <bp-semctl.h>.
22175         (__old_semctl): Don't use CHECK_SEMCTL.
22176         (__new_semctl): Likewise.
22177         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22178         and <bp-semctl.h>.
22179         (__old_semctl): Don't use CHECK_SEMCTL.
22180         (__new_semctl): Likewise.
22181         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22182         <bp-checks.h> and <bp-semctl.h>.
22183         (__old_semctl): Don't use CHECK_SEMCTL.
22184         (__new_semctl): Likewise.
22185         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22186         <bp-checks.h> and <bp-semctl.h>.
22187         (semctl): Don't use CHECK_SEMCTL.
22188
22189         [BZ #13550]
22190         * Makerules (elide-bp-thunks): Remove variable.
22191         (elide-routines.oS): Don't use $(elide-bp-thunks).
22192         (elide-routines.os): Likewise.
22193         (elide-routines.o): Likewise.
22194         (elide-routines.op): Likewise.
22195         (elide-routines.og): Likewise.
22196         (objects): Don't use $(bp-thunks).
22197         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22198         include.
22199         (common-generated): Do not add s-proto-bp.d.
22200         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22201         (int): Likewise.
22202         (typ): Likewise.
22203         Do not generate makefile rules for bounded-pointer thunks.
22204         * sysdeps/generic/bp-thunks.h: Remove file.
22205         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22206         * sysdeps/unix/s-proto-bp.S: Likewise.
22207
22208         [BZ #15062]
22209         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22210         parts of result separately when argument is not close to line from
22211         -i to i and one part of argument is small.
22212         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22213         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22214         * math/libm-test.inc (cacos_test): Add more tests.
22215         (casin_test): Likewise.
22216         (casinh_test): Likewise.
22217         * sysdeps/i386/fpu/libm-test-ulps: Update.
22218         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22219
22220 2013-01-31  David S. Miller  <davem@davemloft.net>
22221
22222         * po/de.po: Update from translation team.
22223
22224 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22225
22226         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22227
22228 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22229
22230         * configure.in (_AC_PROG_CC_C89): New definition.
22231         * configure: Regenerate.
22232
22233         * configure.in (AC_PROG_CPP): New definition.
22234         * configure: Regenerate.
22235
22236 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22237
22238         * debug/tst-backtrace.h: New file.
22239         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22240         (ret): Remove variable.
22241         (x): Likewise.
22242         (FAIL): Remove macro.
22243         (NO_INLINE): Likewise.
22244         (fn1): Use match function instead of strstr.
22245         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22246         (ret): Remove variable.
22247         (x): Likewise.
22248         (FAIL): Remove macro.
22249         (NO_INLINE): Likewise.
22250         (fn): Use match function instead of strstr.
22251         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22252         (ret): Remove variable.
22253         (x): Likewise.
22254         (FAIL): Remove macro.
22255         (NO_INLINE): Likewise.
22256         (handle_signal): Use match function instead of strstr.
22257         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22258         (ret): Remove variable.
22259         (x): Likewise.
22260         (FAIL): Remove macro.
22261         (NO_INLINE): Likewise.
22262         (handle_signal): Use match function instead of strstr.
22263
22264 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22265
22266         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22267
22268 2013-01-23  David S. Miller  <davem@davemloft.net>
22269
22270         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22271         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22272         argument of CAS if possible.
22273         * sysdeps/sparc/sparc64/bits/atomic.h
22274         (__arch_compare_and_exchange_val_32_acq): Likewise.
22275         (__arch_compare_and_exchange_val_64_acq): Likewise.
22276
22277 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22278
22279         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22280         * sysdeps/posix/ulimit.c: ... this.
22281         Include <limits.h>.
22282         * sysdeps/unix/bsd/ulimit.c: Remove file.
22283
22284 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22285
22286         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22287         (LDFLAGS-tst-array5): Likewise.
22288
22289 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22290
22291         [BZ #15036]
22292         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22293         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22294         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22295         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22296
22297 2013-01-21  David S. Miller  <davem@davemloft.net>
22298
22299         * sysdeps/sparc/backtrace.c: New file.
22300         * sysdeps/sparc/sparc32/backtrace.h: New file.
22301         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22302         * sysdeps/sparc/sparc64/backtrace.h: New file.
22303         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22304         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22305         -funwind-tables.
22306
22307 2013-01-21  Andreas Schwab  <schwab@suse.de>
22308
22309         [BZ #15020]
22310         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22311         closed its stdout.
22312
22313 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22314
22315         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22316         "mpa2.h".
22317         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22318
22319 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22320             Mark Mitchell  <mark@codesourcery.com>
22321             Tom de Vries  <tom@codesourcery.com>
22322             Paul Pluzhnikov  <ppluzhnikov@google.com>
22323
22324         * debug/tst-backtrace2.c: New file.
22325         * debug/tst-backtrace3.c: Likewise.
22326         * debug/tst-backtrace4.c: Likewise.
22327         * debug/tst-backtrace5.c: Likewise.
22328         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22329         (CFLAGS-tst-backtrace3.c): Likewise.
22330         (CFLAGS-tst-backtrace4.c): Likewise.
22331         (CFLAGS-tst-backtrace5.c): Likewise.
22332         (LDFLAGS-tst-backtrace2): Likewise.
22333         (LDFLAGS-tst-backtrace3): Likewise.
22334         (LDFLAGS-tst-backtrace4): Likewise.
22335         (LDFLAGS-tst-backtrace5): Likewise.
22336         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22337         tst-backtrace4 and tst-backtrace5.
22338
22339 2013-01-18  Anton Blanchard  <anton@samba.org>
22340             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22341
22342         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22343         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22344         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22345         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22347         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22348         "+r" and remove output regs list as redundant.  Add explicit inline
22349         asm to specify register of return val to work around compiler codegen
22350         bug.  Remove (int) cast on return value.  Add return type parameter to
22351         use in macro so that this macro does not truncate return value for
22352         64-bit values.
22353         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22354         pass to INTERNAL_VSYSCALL_NCS.
22355         (INLINE_VSYSCALL): Add 'long int' as return type to
22356         INTERNAL_VSYSCALL_NCS macro invocation.
22357         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22358         INTERNAL_VSYSCALL_NCS macro invocation.
22359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22360
22361 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22362
22363         [BZ #14496]
22364         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22365         Fix application of SIMD FP exception mask.
22366
22367         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22368         mp_no from a power of two.
22369         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22370         __mpexp_twomm1.  Use __pow_mp.
22371
22372         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22373         multiplication.
22374
22375 2013-01-17  David S. Miller  <davem@davemloft.net>
22376
22377         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22378
22379 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22380
22381         [BZ #15023]
22382         * include/complex.h: Condition contents on [!_COMPLEX_H].
22383         (__kernel_casinhf): New prototype.
22384         (__kernel_casinh): Likewise.
22385         (__kernel_casinhl): Likewise.
22386         * math/Makefile (libm_calls): Add k_casinh.
22387         * math/k_casinh.c: New file.
22388         * math/k_casinhf.c: Likewise.
22389         * math/k_casinhl.c: Likewise.
22390         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22391         finite nonzero arguments.
22392         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22393         finite nonzero arguments.
22394         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22395         finite nonzero arguments.
22396         * math/s_casinh.c: Do not include <float.h>.
22397         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22398         * math/s_casinhf.c: Do not include <float.h>.
22399         (__casinhf): Move code for finite nonzero arguments to
22400         k_casinhf.c.
22401         * math/s_casinhl.c: Do not include <float.h>.
22402         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22403         redefine.
22404         (__casinhl): Move code for finite nonzero arguments to
22405         k_casinhl.c.
22406         * math/libm-test.inc (cacos_test): Add more tests.
22407         * sysdeps/i386/fpu/libm-test-ulps: Update.
22408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22409
22410 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22411
22412         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22413         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22414         [!HAVE_MREMAP]: Remove [defined linux] case.
22415         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22416
22417 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22418
22419         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22420
22421 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22422
22423         * elf/elf.h (R_386_SIZE32): New relocation.
22424         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22425         R_386_SIZE32.
22426         (elf_machine_rela): Likewise.
22427         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22428         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22429
22430 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22431
22432         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22433         (FP_FAST_FMA): Do not define.
22434         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22435         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22436         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22437         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22438         !_SOFT_FLOAT]: Likewise.
22439         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22440         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22441         value.
22442         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22443         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22444         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22445         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22446         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22447         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22448         file.
22449
22450 2013-01-16  Andreas Schwab  <schwab@suse.de>
22451
22452         [BZ #14327]
22453         * include/stdlib.h (__mktemp): Add declaration.
22454         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22455         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22456
22457 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22458
22459         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22460         definitions.
22461         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22462         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22463         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22464         definitions here.
22465         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22466         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22467         definitions.
22468         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22469         and ONE.
22470         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22471         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22472         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22473         definitions.
22474         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22475         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22476         definitions.
22477         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22478
22479         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22480
22481 2013-01-15  David S. Miller  <davem@davemloft.net>
22482
22483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22484         trunc{,f} to libm-sysdep_routes.
22485         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22487         file.
22488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22490         file.
22491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22492         file.
22493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22495         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22496         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22497         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22498         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22499         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22500         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22501
22502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22503         nearbyint{,f} to libm-sysdep_routes.
22504         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22506         New file.
22507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22508         file.
22509         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22510         New file.
22511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22512         file.
22513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22515         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22516         file.
22517         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22518         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22519         file.
22520         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22521         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22522         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22523
22524         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22525         libc_feholdexcept and libc_fesetenv.
22526
22527 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22528
22529         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22530
22531 2013-01-14  David S. Miller  <davem@davemloft.net>
22532
22533         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22534         (SPARC_ASM_VIS2_IFUNC): Likewise.
22535         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22537         use of 'siam' instruction.
22538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22539         Likewise.
22540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22541         Likewise.
22542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22543         Likewise.
22544         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22545         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22546         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22547         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22549         file.
22550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22551         file.
22552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22553         file.
22554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22555         file.
22556         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22557         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22558         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22559         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22561         new VIS2 routines.
22562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22565         Likewise.
22566         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22567         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22568         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22569         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22571         routines to libm-sysdep_routines.
22572         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22573
22574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22575         fdim/fdimf to libm-sysdep_routines.
22576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22577         file.
22578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22580         file.
22581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22583         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22584         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22585         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22586         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22587         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22588
22589 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22590
22591         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22592         to optimize copies.
22593
22594         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22595         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22596         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22597
22598         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22599         local variable MPTWO.
22600         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22601         Likewise.
22602
22603 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22604
22605         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22606         GLOB_NOESCAPE.
22607
22608 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22609
22610         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
22611
22612 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22613
22614         * manual/pattern.texi (glob_t): Document gl_flags.
22615         (glob64_t): Likewise.
22616
22617 2013-01-11  David S. Miller  <davem@davemloft.net>
22618
22619         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
22620         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
22621         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
22622         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
22623         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
22624         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
22625         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
22626         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
22627         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
22628         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
22629         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
22630         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
22631         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
22632
22633         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22634         sparc V9 rather than using V8 code.
22635         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22636         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22637
22638         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22639         Move to...
22640         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
22641         Here.
22642
22643 2013-01-11  Roland McGrath  <roland@hack.frob.com>
22644
22645         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
22646         not in the main loop.
22647         * configure: Regenerated.
22648
22649 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
22650
22651         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
22652         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
22653         to just #else.
22654         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
22655         [!__GLIBC_HAVE_LONG_LONG] case.
22656         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
22657         condition to just #else.
22658         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
22659         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
22660         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
22661         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
22662         unconditional.
22663         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
22664         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22665         #elif condition to just #else.
22666         * sysdeps/unix/sysv/linux/sys/sysmacros.h
22667         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
22668         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22669         #elif condition to just #else.
22670
22671 2013-01-11  Steve Ellcey  <sellcey@mips.com>
22672
22673         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
22674         (EF_MIPS_ARCH_64): Fix value.
22675         (EF_MIPS_ARCH_32R2): New.
22676         (EF_MIPS_ARCH_64R2): New.
22677
22678 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
22679
22680         * Makeconfig (+link-pie-before-libc): New.
22681         (+link-pie-after-libc): Likewise.
22682         (+link-pie-tests): Likewise.
22683         (+link-pie): Rewritten.
22684         (link-before-libc): Remove $(config-LDFLAGS).
22685         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
22686         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
22687         (config-LDFLAGS): Renamed to ...
22688         (rtld-LDFLAGS): This.
22689         (rtld-tests-LDFLAGS): New macro.
22690         (link-libc-rpath-link): Likewise.
22691         (link-libc-tests-rpath-link): Likewise.
22692         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
22693         (link-libc): Prepand $(link-libc-rpath-link).
22694         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
22695         (test-program-prefix): New macro.
22696         (test-via-rtld-prefix): Likewise.
22697         (test-program-cmd): Likewise.
22698         (host-test-program-cmd): Likewise.
22699         * Makefile ($(common-objpfx)testrun.sh): Replace
22700         $(run-program-prefix) with $(test-program-prefix).
22701         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
22702         $(rtld-LDFLAGS).
22703         ($(common-objpfx)shlib.lds): Likewise.
22704         (build-module-helper): Likewise.
22705         ($(common-objpfx)format.lds): Likewise.
22706         * Rules (binaries-pie-tests): New.
22707         (binaries-pie-notests): Likewise.
22708         (binaries-pie): Rewritten.
22709         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
22710         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
22711         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
22712         (make-test-out): Replace $(host-built-program-cmd) with
22713         $(host-test-program-cmd).
22714         * config.make.in (build-hardcoded-path-in-tests): New variable.
22715         * configure.in (--enable-hardcoded-path-in-tests): New configure
22716         option.
22717         (hardcoded_path_in_tests): New AC_SUBST.
22718         * configure: Regenerated.
22719         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
22720         $(built-program-cmd) with $(test-program-cmd).
22721         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
22722         (test_program_cmd): This.
22723         * elf/Makefile ($(objpfx)order.out): Run test with
22724         $(test-program-prefix).
22725         ($(objpfx)order2.out): Likewise.
22726         ($(objpfx)tst-initorder.out): Likewise.
22727         ($(objpfx)tst-initorder2.out): Likewise.
22728         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
22729         $(test-program-cmd).
22730         ($(objpfx)tst-array1-static.out): Likewise.
22731         ($(objpfx)tst-array2.out): Likewise.
22732         ($(objpfx)tst-array3.out): Likewise.
22733         ($(objpfx)tst-array4.out): Likewise.
22734         ($(objpfx)tst-array5.out): Likewise.
22735         ($(objpfx)tst-array5-static.out): Likewise.
22736         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
22737         $(test-program-cmd).
22738         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
22739         $(run-program-prefix) with $(test-program-prefix).
22740         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
22741         (test_program_prefix): This.
22742         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
22743         $(run-program-prefix) with $(test-program-prefix).
22744         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
22745         (test_program_prefix): This.
22746         * iconvdata/tst-tables.sh: Likewise.
22747         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
22748         $(run-program-prefix) with $(test-program-prefix).
22749         ($(objpfx)tst-translit.out): Likewise.
22750         ($(objpfx)tst-gettext2.out): Likewise.
22751         ($(objpfx)tst-gettext4.out): Likewise.
22752         ($(objpfx)tst-gettext6.out): Likewise.
22753         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
22754         (test_program_prefix): This.
22755         * intl/tst-gettext2.sh: Likewise.
22756         * intl/tst-gettext4.sh  Likewise.
22757         * intl/tst-gettext6.sh: Likewise.
22758         * intl/tst-translit.sh: Likewise.
22759         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
22760         with $(test-program-cmd).
22761         * libio/Makefile ($(objpfx)test-freopen.out): Replace
22762         $(run-program-prefix) with $(test-program-prefix).
22763         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
22764         (test_program_prefix): This.
22765         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
22766         $(run-program-prefix) with $(test-program-prefix).
22767         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
22768         (test_program_prefix): This.
22769         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
22770         * posix/Makefile ($(objpfx)globtest.out): Replace
22771         $(run-via-rtld-prefix) and $(test-wrapper) with
22772         $(test-program-prefix) and $(test-via-rtld-prefix).
22773         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
22774         $(test-program-prefix).
22775         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
22776         $(host-test-program-cmd).
22777         (tst-spawn-ARGS): Likewise.
22778         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
22779         $(test-program-prefix).
22780         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
22781         (test_via_rtld_prefix): This.
22782         (test_wrapper): Renamed to ...
22783         (test_program_prefix): This.
22784         (run_program_prefix): Replaced by test_program_prefix.
22785         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
22786         (test_program_prefix): This.
22787         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
22788         with $(host-test-program-cmd).
22789         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
22790         $(run-program-prefix) with $(test-program-prefix).
22791         ($(objpfx)tst-printf.out): Likewise.
22792         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
22793         $(test-program-cmd).
22794         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
22795         (test_program_prefix): This.
22796         * stdio-common/tst-unbputc.sh: Likewise.
22797         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
22798         $(run-program-prefix) with $(test-program-prefix).
22799         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
22800         (test_program_prefix): This.
22801         * string/Makefile ($(objpfx)tst-svc.out):  Replace
22802         $(built-program-cmd) with $(test-program-cmd).
22803
22804 2013-01-11  Andreas Jaeger  <aj@suse.de>
22805
22806         [BZ #15003]
22807         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
22808         value. Sync with Linux 3.7.
22809
22810 2013-01-10  David S. Miller  <davem@davemloft.net>
22811
22812         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
22813         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22814         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22815
22816 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22817
22818         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
22819         never set.
22820         * configure: Regenerated.
22821
22822 2013-01-10  David S. Miller  <davem@davemloft.net>
22823
22824         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22825         sparc V9 rather than using V8 code.
22826         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22827         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22828
22829 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22830
22831         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
22832         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
22833         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
22834         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
22835         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
22836         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
22837         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
22838         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
22839         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
22840         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
22841         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
22842         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
22843         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
22844         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
22845         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
22846         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
22847         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
22848         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
22849         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
22850         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
22851         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
22852         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
22853         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
22854         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
22855         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
22856         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
22857         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
22858
22859 2013-01-10  David S. Miller  <davem@davemloft.net>
22860
22861         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22862
22863 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22864
22865         * posix/Makefile (tests-static): New variable.
22866         (tests): Add $(tests-static).
22867         (tst-exec-static-ARGS): New variable.
22868         (tst-spawn-static-ARGS): Likewise.
22869         * posix/tst-exec-static.c: New file.
22870         * posix/tst-spawn-static.c: Likewise.
22871         * posix/tst-exec.c: Support run directly.
22872         * posix/tst-spawn.c: Likewise.
22873
22874 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
22875
22876         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
22877         long.
22878         * math/bits/mathcalls.h (llrint): Likewise.
22879         (llround): Likewise.
22880         * stdlib/stdlib.h (struct drand48_data): Likewise.
22881         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
22882         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
22883         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
22884         Likewise.
22885         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
22886         Likewise.
22887         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
22888         (elf_greg_t): Likewise.
22889         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
22890         (__jmp_buf): Likewise.
22891         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
22892         definitions.
22893         (llrint): Likewise, for all definitions.
22894         (llrintl): Likewise.
22895
22896         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
22897         Remove [__GNUC__] condition.
22898         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
22899         condition to just [__USE_ISOC99].
22900         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
22901
22902 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22903
22904         [BZ #14200]
22905         * sysdeps/unix/sysv/linux/x86/bits/environments.h
22906         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
22907         defined.
22908         (_POSIX_V6_ILP32_OFF32): Likewise.
22909         (_XBS5_ILP32_OFF32): Likewise.
22910         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
22911         (__ILP32_OFFBIG_LDFLAGS): Likewise.
22912
22913 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22914
22915         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
22916
22917         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
22918         doubles __mpexp_twomm1.  Adjust usage.
22919         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
22920         Remove.
22921
22922 2013-01-10  Andreas Schwab  <schwab@suse.de>
22923
22924         [BZ #14964]
22925         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
22926         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
22927
22928 2013-01-09  David S. Miller  <davem@davemloft.net>
22929
22930         [BZ #15003]
22931         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
22932         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
22933         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
22934         (TCP_FASTOPEN): Define.
22935         (tcp_repair_opt): New structure.
22936         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
22937         enum values.
22938         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
22939         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
22940         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
22941         (tcp_cookie_transactions): New structure.
22942
22943 2013-01-09  Anton Blanchard  <anton@samba.org>
22944
22945         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
22946         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
22947         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
22948         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
22949
22950 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
22951
22952         * include/features.h (__USE_ANSI): Remove.
22953
22954 2013-01-09  Roland McGrath  <roland@hack.frob.com>
22955
22956         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
22957
22958         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
22959
22960 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
22961
22962         * sysdeps/s390/fpu/libm-test-ulps: Update.
22963
22964         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22965
22966         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
22967         (__acr): Likewise.
22968         (__cpy): Likewise.
22969         (norm): Likewise.
22970         (denorm): Likewise.
22971         (__mp_dbl): Likewise.
22972         (__dbl_mp): Likewise.
22973         (add_magnitudes): Likewise.
22974         (sub_magnitudes): Likewise.
22975         (__add): Likewise.
22976         (__sub): Likewise.
22977         (__mul): Likewise.
22978         (__inv): Likewise.
22979         (__dvd): Likewise.
22980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
22981         (__acr): Likewise.
22982         (__cpy): Likewise.
22983         (norm): Likewise.
22984         (denorm): Likewise.
22985         (__mp_dbl): Likewise.
22986         (__dbl_mp): Likewise.
22987         (add_magnitudes): Likewise.
22988         (sub_magnitudes): Likewise.
22989         (__add): Likewise.
22990         (__sub): Likewise.
22991         (__mul): Likewise.
22992         (__inv): Likewise.
22993         (__dvd): Likewise.
22994         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
22995         (__acr): Likewise.
22996         (__cpy): Likewise.
22997         (norm): Likewise.
22998         (denorm): Likewise.
22999         (__mp_dbl): Likewise.
23000         (__dbl_mp): Likewise.
23001         (add_magnitudes): Likewise.
23002         (sub_magnitudes): Likewise.
23003         (__add): Likewise.
23004         (__sub): Likewise.
23005         (__mul): Likewise.
23006         (__inv): Likewise.
23007         (__dvd): Likewise.
23008
23009 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23010
23011         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23012         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23013         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23014         2 && __USE_EXTERN_INLINES]: Likewise.
23015
23016 2013-01-08  Andreas Jaeger  <aj@suse.de>
23017
23018         [BZ# 14985]
23019         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23020         Remove.
23021         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23022         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23023
23024 2013-01-07  Anton Blanchard  <anton@samba.org>
23025
23026         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23027         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23028         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23029         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23030         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23031         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23032         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23033         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23034         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23035         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23036         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23037         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23038         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23039         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23040         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23041         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23042         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23043         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23044         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23045         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23046         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23047         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23048         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23049         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23050         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23051         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23052         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23053         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23054         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23055         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23056         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23057         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23058         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23059         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23060         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23061         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23062         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23063         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23064         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23065         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23066         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23067         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23068         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23069
23070 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23071
23072         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23073         (__MALLOC_PMT): Likewise.
23074         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23075         [__GNUC__], only on [_LIBC].
23076         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23077         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23078         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23079         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23080         forward declaration.
23081         (realloc_hook_ini): Likewise.
23082         (memalign_hook_ini): Likewise.
23083         (__libc_memalign): Do not use __MALLOC_PMT in variable
23084         declaration.
23085         (__libc_valloc): Likewise.
23086         (__libc_pvalloc): Likewise.
23087         (__libc_calloc): Likewise.
23088         (__posix_memalign): Likewise.
23089
23090         [BZ #14996]
23091         * math/s_casinh.c: Include <float.h>.
23092         (__casinh): Do not do computation with squaring and square root
23093         for large arguments.
23094         * math/s_casinhf.c: Include <float.h>.
23095         (__casinhf): Do not do computation with squaring and square root
23096         for large arguments.
23097         * math/s_casinhl.c: Include <float.h>.
23098         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23099         (__casinhl): Do not do computation with squaring and square root
23100         for large arguments.
23101         * math/libm-test.inc (casin_test): Add more tests.
23102         (casinh_test): Likewise.
23103         * sysdeps/i386/fpu/libm-test-ulps: Update.
23104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23105
23106 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23107
23108         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23109         (__x86_64_raw_data_cache_size): Likewise.
23110         (__x86_64_data_cache_size_half): Likewise.
23111         (__x86_64_raw_data_cache_size_half): Likewise.
23112         (__x86_64_shared_cache_size): Likewise.
23113         (__x86_64_raw_shared_cache_size): Likewise.
23114         (__x86_64_shared_cache_size_half): Likewise.
23115         (__x86_64_raw_shared_cache_size_half): Likewise.
23116         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23117         to ...
23118         (__x86_data_cache_size): This.
23119         (__x86_64_raw_data_cache_size): Renamed to ...
23120         (__x86_raw_data_cache_size): This.
23121         (__x86_64_data_cache_size_half): Renamed to ...
23122         (__x86_data_cache_size_half): This.
23123         (__x86_64_raw_data_cache_size_half): Renamed to ...
23124         (__x86_raw_data_cache_size_half): This.
23125         (__x86_64_shared_cache_size): Renamed to ...
23126         (__x86_shared_cache_size): This.
23127         (__x86_64_raw_shared_cache_size): Renamed to ...
23128         (__x86_raw_shared_cache_size): This.
23129         (__x86_64_shared_cache_size_half): Renamed to ...
23130         (__x86_shared_cache_size_half): This.
23131         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23132         (__x86_raw_shared_cache_size_half): This.
23133         * sysdeps/x86_64/memcpy.S: Updated.
23134         * sysdeps/x86_64/memset.S: Likewise.
23135         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23136         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23137         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23138
23139 2013-01-04  David S. Miller  <davem@davemloft.net>
23140
23141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23142
23143 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23144
23145         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23146         1 to avoid redefinition warning.
23147         (__USE_GNU): Don't define.
23148         (init_signaling_nan): Protoize.
23149
23150         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23151
23152 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23153
23154         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23155         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23156         (__cpymn): Likewise.
23157         (norm): Remove commented code.
23158         (denorm): Likewise.
23159         (__mp_dbl): Likewise.
23160         (__inv): Likewise.
23161         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23162         (__cpymn): Likewise.
23163         (norm): Remove commented code.
23164         (denorm): Likewise.
23165         (__mp_dbl): Likewise.
23166         (__inv): Likewise.
23167
23168         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23169         mp_no value for 1.0 and 2.0.
23170         (norm): Use RADIXI instead of radixi.d.
23171         (denorm): Likewise.
23172         (__mul): Use 0.0 instead of zero.d.
23173         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23174         mp_no value for 1.0 and 2.0.
23175         (norm): Use RADIXI instead of radixi.d.
23176         (denorm): Likewise.
23177         (__mul): Use 0.0 instead of zero.d.
23178
23179 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23180
23181         [BZ #14994]
23182         * math/s_casinh.c (__casinh): Reduce finite argument to first
23183         quadrant then set signs of results at the end.
23184         * math/s_casinhf.c (__casinhf): Likewise.
23185         * math/s_casinhl.c (__casinhl): Likewise.
23186         * math/libm-test.inc (casin_test): Add more tests.
23187         (casinh_test): Likewise.
23188         * sysdeps/i386/fpu/libm-test-ulps: Update.
23189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23190
23191 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23192
23193         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23194
23195         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23196
23197         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23198         declarations.
23199         (denorm): Likewise.
23200         (__mp_dbl): Likewise.
23201         (__inv): Likewise.
23202
23203         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23204         and adjust the header comment.
23205
23206         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23207         variable name from declaration.
23208
23209 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23210
23211         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23212         Initialize COMMON_CPUID_INDEX_7 element.
23213         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23214         (CPUID_RTM): Likewise.
23215         (HAS_RTM): Likewise.
23216         (COMMON_CPUID_INDEX_7): New enum.
23217
23218 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23219
23220         [BZ #14981]
23221         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23222         size is zero, record memory as freed.
23223
23224 2013-01-03  Andreas Jaeger  <aj@suse.de>
23225
23226         * po/ia.po: Add new Interlingua translation.
23227
23228 2012-01-03  Allan McRae  <allan@archlinux.org>
23229
23230         * locale/programs/localedef.c: Fix description of '--posix' flag.
23231
23232 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23233
23234         * NEWS: Update dates in second copyright notice.
23235         * README: Update copyright dates in example.
23236         * manual/libc.texinfo: Update copyright dates.
23237         * scripts/test-installation.pl: Update copyright date in --version
23238         output.
23239
23240         * hurd/ctty-input.c: Fix copyright notice formatting.
23241         * hurd/ctty-output.c: Likewise.
23242         * hurd/dtable.c: Likewise.
23243         * hurd/hurd-raise.c: Likewise.
23244         * hurd/hurdprio.c: Likewise.
23245         * hurd/msgportdemux.c: Likewise.
23246         * misc/sys/file.h: Likewise.
23247         * misc/sys/ioctl.h: Likewise.
23248         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23249         * sysdeps/mach/hurd/chdir.c: Likewise.
23250         * sysdeps/mach/hurd/fchdir.c: Likewise.
23251         * sysdeps/mach/hurd/rename.c: Likewise.
23252         * sysdeps/mach/hurd/rmdir.c: Likewise.
23253         * sysdeps/mach/hurd/seekdir.c: Likewise.
23254         * sysdeps/mach/hurd/setsid.c: Likewise.
23255         * sysdeps/posix/wait3.c: Likewise.
23256
23257         * All files with FSF copyright notices: Update copyright dates
23258         using scripts/update-copyrights.
23259         * intl/plural.c: Regenerated.
23260         * locale/programs/charmap-kw.h: Likewise.
23261         * locale/programs/locfile-kw.h: Likewise.
23262
23263 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23264
23265         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23266         four values.
23267
23268         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23269         calculation loop and add branch prediction.
23270
23271         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23272         check access beyond bounds of m1np.
23273
23274         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23275         MPTWO.
23276         (__inv): Remove local variable MPTWO to use the global
23277         constant.
23278         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23279         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23280         variable MPTWO.
23281         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23282         MP3HALFS static const.
23283
23284 2013-01-01  David S. Miller  <davem@davemloft.net>
23285
23286         * po/ca.po: Update from translation team.
23287
23288 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23289
23290         * scripts/update-copyrights: New file.
23291         * Makeconfig: Reformat copyright notice.
23292         * ctype/ctype.h: Likewise.
23293         * debug/swprintf_chk.c: Likewise.
23294         * elf/dl-cache.c: Likewise.
23295         * elf/dl-debug.c: Likewise.
23296         * elf/dl-object.c: Likewise.
23297         * grp/initgroups.c: Likewise.
23298         * hurd/Makefile: Likewise.
23299         * hurd/hurd/signal.h: Likewise.
23300         * hurd/hurdfault.c: Likewise.
23301         * hurd/hurdioctl.c: Likewise.
23302         * hurd/hurdlookup.c: Likewise.
23303         * hurd/intr-msg.c: Likewise.
23304         * iconv/gconv_open.c: Likewise.
23305         * libio/swprintf.c: Likewise.
23306         * locale/lc-ctype.c: Likewise.
23307         * locale/nl_langinfo.c: Likewise.
23308         * mach/Machrules: Likewise.
23309         * mach/Makefile: Likewise.
23310         * malloc/obstack.h: Likewise.
23311         * manual/Makefile: Likewise.
23312         * manual/tsort.awk: Likewise.
23313         * misc/bits/stab.def: Likewise.
23314         * nis/nis_print_group_entry.c: Likewise.
23315         * nis/nis_table.c: Likewise.
23316         * nis/nss_compat/compat-pwd.c: Likewise.
23317         * nis/nss_compat/compat-spwd.c: Likewise.
23318         * po/Makefile: Likewise.
23319         * posix/fnmatch.c: Likewise.
23320         * posix/regex.h: Likewise.
23321         * resolv/Makefile: Likewise.
23322         * resolv/nss_dns/dns-network.c: Likewise.
23323         * resolv/res_hconf.c: Likewise.
23324         * scripts/gen-sorted.awk: Likewise.
23325         * soft-fp/soft-fp.h: Likewise.
23326         * stdio-common/printf.h: Likewise.
23327         * stdlib/monetary.h: Likewise.
23328         * stdlib/random.c: Likewise.
23329         * stdlib/random_r.c: Likewise.
23330         * sysdeps/generic/Makefile: Likewise.
23331         * sysdeps/gnu/Makefile: Likewise.
23332         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23333         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23334         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23335         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23336         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23337         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23338         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23339         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23340         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23341         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23342         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23343         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23344         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23345         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23346         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23347         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23348         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23349         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23350         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23351         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23352         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23353         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23354         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23355         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23356         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23357         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23358         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23359         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23360         * sysdeps/mach/hurd/errnos.awk: Likewise.
23361         * sysdeps/mach/hurd/fork.c: Likewise.
23362         * sysdeps/mach/hurd/getcwd.c: Likewise.
23363         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23364         * sysdeps/mach/hurd/mmap.c: Likewise.
23365         * sysdeps/mach/hurd/utimes.c: Likewise.
23366         * sysdeps/mach/hurd/xmknod.c: Likewise.
23367         * sysdeps/posix/profil.c: Likewise.
23368         * sysdeps/posix/readdir_r.c: Likewise.
23369         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23370         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23371         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23372         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23373         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23374         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23375         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23376         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23377         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23378         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23379         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23380         * sysdeps/pthread/lio_listio.c: Likewise.
23381         * sysdeps/sparc/dl-procinfo.h: Likewise.
23382         * sysdeps/unix/i386/sysdep.S: Likewise.
23383         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23384         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23385         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23386         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23388         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23389         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23390         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23391         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23392         * sysdeps/wordsize-32/divdi3.c: Likewise.
23393         * time/sys/time.h: Likewise.
23394         * wcsmbs/Makefile: Likewise.
23395
23396 2013-01-01  David S. Miller  <davem@davemloft.net>
23397
23398         * po/fr.po: Update from translation team.
23399
23400         * catgets/gencat.c: Update copyright year.
23401         * csu/version.c: Likewise.
23402         * debug/catchsegv.sh: Likewise.
23403         * debug/pcprofiledump.c: Likewise.
23404         * debug/xtrace.sh: Likewise.
23405         * elf/ldconfig.c: Likewise.
23406         * elf/ldd.bash.in: Likewise.
23407         * elf/pldd.c: Likewise.
23408         * elf/sotruss.ksh: Likewise.
23409         * elf/sprof.c: Likewise.
23410         * iconv/iconv_prog.c: Likewise.
23411         * iconv/iconvconfig.c: Likewise.
23412         * locale/programs/locale.c: Likewise.
23413         * locale/programs/localedef.c: Likewise.
23414         * login/programs/pt_chown.c: Likewise.
23415         * malloc/memusage.sh: Likewise.
23416         * malloc/memusagestat.c: Likewise.
23417         * malloc/mtrace.pl: Likewise.
23418         * nscd/nscd.c: Likewise.
23419         * nss/getent.c: Likewise.
23420         * nss/makedb.c: Likewise.
23421         * posix/getconf.c: Likewise.
23422
23423 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23424
23425         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23426         numbers.
23427
23428 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23429
23430         * math/bits/mathcalls.h (modf): Use __nonnull.
23431
23432 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23433
23434         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23435         (split): Use macro CN instead of the bare value.
23436         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23437         could be used.
23438         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23439         instead of the bare value.
23440         (power1): Likewise.
23441
23442 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23443
23444         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23445         __ATAN_TWOM.
23446         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23447
23448         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23449         their values.
23450         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23451         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23452         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23453         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23454
23455 2012-12-28  Andreas Jaeger  <aj@suse.de>
23456
23457         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23458         values are from Linux 3.7.
23459
23460         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23461         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23462
23463 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23464
23465         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23466         TRUE case.
23467
23468         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23469         (norm): Likewise.
23470         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23471         variables with preprocessor constants.
23472         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23473         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23474         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23475
23476 2012-12-27  Bruno Haible  <bruno@clisp.org>
23477
23478         [BZ #14317]
23479         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23480         only if needed.
23481
23482 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23483
23484         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23485         and use variable directly.
23486         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23487
23488         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23489         MPONE.
23490         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23491         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23492         variable MPONE.
23493         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23494         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23495         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23496         include directive.  Remove local variable MPONE.
23497         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23498         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23499         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23500
23501 2012-12-25  David S. Miller  <davem@davemloft.net>
23502
23503         * version.h (RELEASE): Set to "development".
23504         (VERSION): Set to "2.17.90".
23505         * NEWS: Add 2.18 section.
23506
23507 2012-12-21  David S. Miller  <davem@davemloft.net>
23508
23509         * po/hr.po: Update from translation team.
23510
23511 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23512
23513         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23514
23515 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23516
23517         * NEWS:  Mention new memcpy for MIPS.
23518
23519 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23520
23521         * manual/contrib.texi (Contributors): Spelling correction.
23522
23523 2012-12-15  David S. Miller  <davem@davemloft.net>
23524
23525         * po/ru.po: Update from translation team.
23526
23527 2012-12-13  David S. Miller  <davem@davemloft.net>
23528
23529         * NEWS: Mention IFUNC testsuite enhancements.
23530
23531         * po/pl.po: Update from translation team.
23532         * po/bg.po: Likewise.
23533
23534         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23535         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23536
23537 2012-12-11  David S. Miller  <davem@davemloft.net>
23538
23539         * po/sv.po: Update from translation team.
23540
23541         * po/vi.po: Update from translation team.
23542
23543         * po/cs.po: Update from translation team.
23544
23545         * po/de.po: Update from translation team.
23546         * po/eo.po: Likewise.
23547         * po/nl.po: Likewise.
23548
23549 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23550
23551         [BZ #14246]
23552         * manual/argp.texi (Argp Helper Functions): Move node to follow
23553         Argp Parsing State.
23554
23555         [BZ #14872]
23556         * manual/conf.texi (Limits on File System Capacity): Mention if
23557         terminating null is included in the max size.
23558
23559 2012-12-10  Andreas Jaeger  <aj@suse.de>
23560
23561         * po/cs.po: Update from translation team.
23562
23563 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23564
23565         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23566         void pointer and cast to uintptr_t.
23567         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23568         path.
23569         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23570         * sysdeps/s390/s390-64/memset.S: Likewise.
23571
23572 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23573
23574         [BZ #14833]
23575         * menual/message.texi (Message Translation): Fix typos.
23576         (Helper programs for gettext): Likewise.
23577
23578 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23579
23580         [BZ #14898]
23581         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23582         Change to -1.
23583
23584 2012-12-07  David S. Miller  <davem@davemloft.net>
23585
23586         * po/libc.pot: Update.
23587
23588 2012-12-07  Richard Henderson  <rth@redhat.com>
23589
23590         [BZ #10114]
23591         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23592         normal/normal case to before the switch.
23593         (_FP_DIV): Likewise.
23594
23595 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23596             Mike Frysinger  <vapier@gentoo.org>
23597
23598         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23599         check for __NR_fadvise64_64.
23600
23601 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23602
23603         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23604         0, not just to plain "0" as a statement.
23605         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23606         with cw.
23607
23608 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
23609
23610         * NEWS: Use sourceware.org in Bugzilla URL.
23611
23612 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
23613
23614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23615         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23616
23617         * stdio-common/tst-put-error.c (do_test): Add newline to the
23618         padded test to ensure flush.
23619
23620 2012-12-05  Jeff Law  <law@redhat.com>
23621
23622         * sunrpc/etc.rpc (fedfs_admin): Add entry.
23623
23624 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
23625
23626         * README: Don't refer to ports add-on as distributed separately.
23627         Mention AArch64 in list of systems supported in the ports add-on.
23628
23629         * LICENSES: Add more non-FSF copyright and license notices.
23630
23631         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
23632         ((unused)).
23633
23634         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
23635
23636         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
23637         10000 as width of padded output.
23638
23639 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23640
23641         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
23642
23643         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
23644         variable LX with __attribute__ ((unused)).
23645         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
23646         Likewise.
23647         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
23648         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23649         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
23650         with __attribute__ ((unused)).
23651
23652 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
23653
23654         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
23655
23656 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23657
23658         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
23659         (CFLAGS-nldbl-acos.c): New variable.
23660         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
23661         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
23662         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
23663         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
23664         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
23665         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
23666         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
23667         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
23668         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
23669         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
23670         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
23671         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
23672         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
23673         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
23674         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
23675         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
23676         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
23677         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
23678         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
23679         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
23680         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
23681         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
23682         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
23683         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
23684         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
23685         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
23686         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
23687         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
23688         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
23689         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
23690         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
23691         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
23692         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
23693         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
23694         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
23695         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
23696         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
23697         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
23698         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
23699         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
23700         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
23701         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
23702         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
23703         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
23704         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
23705         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
23706         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
23707         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
23708         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
23709         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
23710         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
23711         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
23712         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
23713         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
23714         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
23715         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
23716         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
23717         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
23718         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
23719         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
23720         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
23721         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
23722         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
23723         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
23724         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
23725         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
23726         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
23727         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
23728         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
23729         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
23730         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
23731         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
23732         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
23733         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
23734         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
23735         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
23736         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
23737         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
23738         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
23739         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
23740         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
23741         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
23742         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
23743         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
23744         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
23745         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
23746         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
23747         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
23748         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
23749         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
23750         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
23751         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
23752         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
23753         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
23754         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
23755         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
23756         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
23757
23758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23759         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23760
23761         [BZ #14914]
23762         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
23763         whole low double instead of just low 47 bits when splitting values
23764         into two parts.
23765
23766 2012-12-03  Allan McRae  <allan@archlinux.org>
23767
23768         * manual/stdio.texi (Predefined Printf Handlers): Remove
23769         @hsep and @vsep usage.
23770
23771 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
23772
23773         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
23774         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
23775
23776 2012-12-03  Jeff Law  <law@redhat.com>
23777
23778         * time/sys/time.h (settimeofday): Do not mark TV argument
23779         as __nonnull.
23780
23781 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
23782
23783         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
23784         when currently writing and seek to current position when not.
23785         * libio/Makefile (tests): Remove bug-fclose1.
23786         * libio/bug-fclose1.c: Delete.
23787
23788 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
23789
23790         * manual/arith.texi (feenableexcept): Fix typo.
23791         (fedisableexcept): Likewise.
23792
23793 2012-11-30  Roland McGrath  <roland@hack.frob.com>
23794
23795         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
23796         second, differently-typed declaration, rather than a cast.
23797
23798 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23799
23800         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
23801         * include/rpc/svc.h: ... here.
23802
23803 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
23804
23805         [BZ #13013]
23806         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
23807         depending n and resplen2 to catch cases where answer
23808         equals answerp2.
23809
23810 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
23811
23812         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
23813         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
23814
23815 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
23816
23817         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
23818
23819 2012-11-29  Roland McGrath  <roland@hack.frob.com>
23820
23821         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
23822
23823 2012-11-28  Jeff Law  <law@redhat.com>
23824
23825         [BZ #13761]
23826         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
23827         dataset_temporary.  Track alloca usage into alloca_used.
23828         If dataset is large allocate and release it via malloc/free.
23829
23830 2012-06-04  Florian Weimer  <fweimer@redhat.com>
23831
23832         [BZ #14197]
23833         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
23834
23835 2012-11-28  David S. Miller  <davem@davemloft.net>
23836
23837         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23838
23839 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23840
23841         [BZ #14803]
23842         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
23843         of pi/2 rounded to nearest to 64 bits.
23844         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
23845         nearest to 64 bits.
23846         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
23847         bits.
23848
23849 2012-11-28  Jeff Law <law@redhat.com>
23850             Martin Osvald <mosvald@redhat.com>
23851
23852         [BZ #14889]
23853         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
23854         * sunrpc/svc.c: Include time.h.
23855         (__svc_accept_failed): New function.
23856         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
23857         any reason other than EINTR, call __svc_accept_failed.
23858         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
23859         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
23860
23861 2012-11-28  Andreas Schwab  <schwab@suse.de>
23862
23863         * scripts/abilist.awk: Also handle indirect functions in .opd
23864         section.
23865
23866 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23867
23868         [BZ #13881]
23869         * sysdeps/x86/fpu/powl_helper.c: New file.
23870         * sysdeps/x86/fpu/Makefile: Likewise.
23871         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
23872         (p3): New object.
23873         (__ieee754_powl): Use __powl_helper for finite arguments except
23874         integer exponents below 8.
23875         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
23876         (p3): New object.
23877         (__ieee754_powl): Use __powl_helper for finite arguments except
23878         integer exponents below 8.
23879         * math/libm-test.inc (pow_test): Add more tests and enable some
23880         previously disabled tests.
23881         * sysdeps/i386/fpu/libm-test-ulps: Update.
23882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23883
23884 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23885             Carlos O'Donell  <carlos_odonell@mentor.com>
23886
23887         * nss/makedb.c (is_prime): Assert that input is odd and greater
23888         than 4.  Note that fact in a comment too.
23889         (next_prime): Add 4 to input.
23890
23891 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23892
23893         [BZ #11741]
23894         * libio/Makefile (tests): Add test case tst-fwrite-error.
23895         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
23896         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
23897         * libio/tst-fwrite-error.c: New test case.
23898
23899 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
23900
23901         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
23902         before casting to void *.
23903         * include/libc-internal.h (__pointer_type): New macro.
23904         (__integer_if_pointer_type_sub): Likewise.
23905         (__integer_if_pointer_type): Likewise.
23906         (cast_to_integer): Likewise.
23907         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
23908         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
23909         before casting to atomic64_t.
23910         (atomic_exchange_acq): Likewise.
23911         (__arch_exchange_and_add_body): Likewise.
23912         (__arch_add_body): Likewise.
23913         (atomic_add_negative): Likewise.
23914         (atomic_add_zero): Likewise.
23915
23916 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
23917
23918         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
23919         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
23920         (add_fdes): Likewise.
23921         (linear_search_fdes): Likewise.
23922         (binary_search_unencoded_fdes): Likewise.
23923
23924 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
23925
23926         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
23927
23928 2012-11-24  Adam Conrad  <adconrad@0c3.net>
23929
23930         * configure.in: Autodetect C++ header directories.
23931         * configure: Regenerated.
23932
23933 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
23934
23935         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
23936
23937 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
23938
23939         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23940
23941 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
23942
23943         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
23944         LDBL_MANT_DIG == 106]: Disable some tests.
23945         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23946         Likewise.
23947         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23948         Likewise.
23949
23950         [BZ #14871]
23951         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
23952         input for small inputs.  Return +/- pi/2 for large inputs.
23953         * math/libm-test.inc (atan_test): Add more tests.
23954
23955         * sysdeps/generic/unwind-dw2-fde-glibc.c
23956         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
23957         __attribute__ ((unused)).
23958
23959         [BZ #14645]
23960         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
23961         x * y if x and y are nonzero and z is zero.
23962
23963         [BZ #14811]
23964         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
23965         nonzero exponents with absolute value below 0x1p-117 to +/-
23966         0x1p-117.
23967
23968         [BZ #14869]
23969         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
23970         up arguments below 2**-450, not just those below 2**-500.
23971         * math/libm-test.inc (hypot_test): Add another test.
23972
23973         [BZ #14868]
23974         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
23975         Return a+b for ratio over 2**120, not 2**60.
23976         * math/libm-test.inc (hypot_test): Add another test.
23977
23978         * math/libm-test.inc (clog_test): Use
23979         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
23980         (clog10_test): Likewise.
23981
23982         [BZ #6778]
23983         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
23984
23985 2012-11-22  Andreas Schwab  <schwab@suse.de>
23986
23987         * sysdeps/i386/fpu/libm-test-ulps: Update.
23988
23989 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
23990
23991         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
23992         printf output with newline.
23993
23994 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
23995
23996         [BZ #14865]
23997         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
23998         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
23999         -z nodlopen, -z initfirst and -z execstack support.
24000         * configure: Regenerated.
24001
24002         * elf/elf.h (DF_1_NODIRECT): New macro.
24003         (DF_1_IGNMULDEF): Likewise.
24004         (DF_1_NOKSYMS): Likewise.
24005         (DF_1_NOHDR): Likewise.
24006         (DF_1_EDITED): Likewise.
24007         (DF_1_NORELOC): Likewise.
24008         (DF_1_SYMINTPOSE): Likewise.
24009         (DF_1_GLOBAUDIT): Likewise.
24010         (DF_1_SINGLETON): Likewise.
24011         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24012         DT_1_SUPPORTED_MASK bits.
24013         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24014
24015 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24016
24017         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24018
24019 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24020
24021         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24022         macro.
24023
24024         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24025         (sendmmsg): Move declarations...
24026         * socket/sys/socket.h: ... here.
24027         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24028         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24029         include it from...
24030         * socket/recvmmsg.c: ... this new file.
24031         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24032         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24033         definition of __sendmmsg hidden.
24034         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24035         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24036         Move ENOSYS stub into and include it from...
24037         * socket/sendmmsg.c: ... this new file.
24038         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24039         (sysdep_routines): Move recvmmsg and sendmmsg...
24040         * socket/Makefile (routines): ... here.
24041         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24042         (GLIBC_PRIVATE): Add __sendmmsg.
24043         * include/sys/socket.h (__sendmmsg): Add declarations.
24044         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24045         sendmmsg.
24046
24047 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24048
24049         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24050         variable I1 with __attribute__ ((unused)).
24051         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24052
24053 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24054
24055         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24056         DUMMY variables with __attribute__ ((unused)).
24057
24058         * bits/byteswap.h: Include <bits/types.h>.
24059         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24060
24061 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24062
24063         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24064         string_t.  Do not manually set errno.
24065         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24066         length with __strnlen.  Make sure to both set errno and return it on
24067         failure.
24068
24069 2012-11-19  David S. Miller  <davem@davemloft.net>
24070
24071         With help from Joseph Myers.
24072         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24073         very large arguments properly.
24074         * math/libm-test.inc (atan_test): New tests.
24075         (atan2_test): New tests.
24076         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24077         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24078
24079 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24080
24081         [BZ #14856]
24082         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24083         Define to 3.
24084
24085         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24086         [POSIX] (EADDRNOTAVAIL): Likewise.
24087         [POSIX] (EAFNOSUPPORT): Likewise.
24088         [POSIX] (EALREADY): Likewise.
24089         [POSIX] (ECONNABORTED): Likewise.
24090         [POSIX] (ECONNREFUSED): Likewise.
24091         [POSIX] (ECONNRESET): Likewise.
24092         [POSIX] (EDESTADDRREQ): Likewise.
24093         [POSIX] (EDQUOT): Likewise.
24094         [POSIX] (EHOSTUNREACH): Likewise.
24095         [POSIX] (EIDRM): Likewise.
24096         [POSIX] (EISCONN): Likewise.
24097         [POSIX] (ELOOP): Likewise.
24098         [POSIX] (EMULTIHOP): Likewise.
24099         [POSIX] (ENETDOWN): Likewise.
24100         [POSIX] (ENETUNREACH): Likewise.
24101         [POSIX] (ENOBUFS): Likewise.
24102         [POSIX] (ENODATA): Likewise.
24103         [POSIX] (ENOLINK): Likewise.
24104         [POSIX] (ENOMSG): Likewise.
24105         [POSIX] (ENOPROTOOPT): Likewise.
24106         [POSIX] (ENOSR): Likewise.
24107         [POSIX] (ENOSTR): Likewise.
24108         [POSIX] (ENOTCONN): Likewise.
24109         [POSIX] (ENOTSOCK): Likewise.
24110         [POSIX] (EOPNOTSUPP): Likewise.
24111         [POSIX] (EOVERFLOW): Likewise.
24112         [POSIX] (EPROTO): Likewise.
24113         [POSIX] (EPROTONOSUPPORT): Likewise.
24114         [POSIX] (EPROTOTYPE): Likewise.
24115         [POSIX] (ESTALE): Likewise.
24116         [POSIX] (ETIME): Likewise.
24117         [POSIX] (ETXTBSY): Likewise.
24118         [POSIX] (EWOULDBLOCK): Likewise.
24119         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24120         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24121         [POSIX] (SEEK_CUR): Likewise.
24122         [POSIX] (SEEK_END): Likewise.
24123         [POSIX || UNIX98] (mode_t): Do not require.
24124         [POSIX] (off_t): Likewise.
24125         [POSIX] (pid_t): Likewise.
24126         [POSIX] (sys/stat.h): Do not allow header.
24127         [POSIX] (unistd.h): Likewise.
24128         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24129         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24130         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24131         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24132         require.
24133         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24134         sigevent): Specify elements.
24135         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24136         entry.
24137         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24138         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24139
24140         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24141         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24142         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24143         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24144         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24145         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24146         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24147         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24148         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24149         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24150         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24151         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24152         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24153         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24154         Likewise.
24155         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24156         Likewise.
24157         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24158         Likewise.
24159         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24160         Likewise.
24161         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24162         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24163         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24164         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24165         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24166         Specify lower bound on value.
24167         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24168         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24169         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24170         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24171         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24172         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24173         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24174         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24175         value.
24176         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24177         as optional.
24178         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24179         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24180         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24181         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24182         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24183         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24184         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24185         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24186         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24187         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24188         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24189         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24190         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24191         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24192         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24193         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24194         entry.
24195         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24196         optional.
24197         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24198         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24199         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24200         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24201         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24202         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24203         Likewise.
24204         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24205         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24206         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24207         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24208         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24209         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24210         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24211         as optional.
24212         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24213         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24214         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24215         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24216         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24217         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24218         specify as optional.
24219         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24220         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24221         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24222         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24223         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24224         [XPG3] (NL_LANGMAX): Likewise.
24225         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24226         [POSIX || XPG3] (NL_NMAX): Likewise.
24227         [POSIX || XPG3] (NL_SETMAX): Likewise.
24228         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24229         [XPG3] (NZERO): Likewise.
24230         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24231         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24232         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24233         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24234         (REG_ERANGE): Expect.
24235         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24236         optional-constant.
24237         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24238         Use (void) in prototype.
24239         [POSIX] (*_t): Allow.
24240         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24241         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24242         (WRDE_BADVAL): Expect.
24243
24244         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24245         expect.
24246         [XPG3 || XPG4] (O_RSYNC): Likewise.
24247         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24248         Likewise.
24249         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24250         [XPG3 || XPG4] (sigqueue): Likewise.
24251         [XPG3 || XPG4] (sigtimedwait): Likewise.
24252         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24253         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24254         [XPG3 || XPG4] (vsnprintf): Likewise.
24255         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24256         Likewise.
24257         [XPG3 || XPG4] (blksize_t): Likewise.
24258         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24259         Likewise.
24260         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24261         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24262         [XPG3 || XPG4] (struct itimerspec): Likewise.
24263         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24264         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24265         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24266         [XPG3 || XPG4] (clockid_t): Likewise.
24267         [XPG3 || XPG4] (timer_t): Likewise.
24268         [XPG3 || XPG4] (clock_getres): Likewise.
24269         [XPG3 || XPG4] (clock_gettime): Likewise.
24270         [XPG3 || XPG4] (clock_settime): Likewise.
24271         [XPG3 || XPG4] (nanosleep): Likewise.
24272         [XPG3 || XPG4] (timer_create): Likewise.
24273         [XPG3 || XPG4] (timer_delete): Likewise.
24274         [XPG3 || XPG4] (timer_gettime): Likewise.
24275         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24276         [XPG3 || XPG4] (timer_settime): Likewise.
24277         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24278         [XPG3 || XPG4] (getlogin_r): Likewise.
24279         [XPG3 || XPG4] (pread): Likewise.
24280         [XPG3 || XPG4] (pthread_atfork): Likewise.
24281         [XPG3 || XPG4] (pwrite): Likewise.
24282
24283         [BZ #14835]
24284         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24285         <bits/siginfo.h>.
24286
24287 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24288
24289         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24290         finalizing MALLSTREAM.
24291
24292         * sysdeps/mach/hurd/syncfs.c: New file.
24293
24294 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24295
24296         [BZ #14719]
24297         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24298         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24299         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24300         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24301         (_nss_dns_gethostbyname4_r): Likewise.
24302         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24303         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24304
24305 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24306
24307         [BZ #13763]
24308         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24309
24310 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24311
24312         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24313         * elf/cache.c (print_entry): Print ",AArch64" for
24314         FLAG_AARCH64_LIB64
24315
24316         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24317         * elf/cache.c (print_entry): Print ",hard-float" for
24318         FLAG_ARM_LIBHF.
24319
24320 2012-11-18  David S. Miller  <davem@davemloft.net>
24321
24322         With help from Joseph Myers.
24323         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24324         cutoff to 2**-13.
24325         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24326         cutoff to 2**-25.
24327         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24328         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24329         small.
24330         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24331         * math/libm-test.inc (y0_test): New tests.
24332         (y1_test): New tests.
24333         * sysdeps/i386/fpu/libm-test-ulps: Update.
24334         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24335         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24336
24337 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24338
24339         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24340         64-bit targets.
24341         * configure: Regenerated.
24342
24343 2012-11-17  David S. Miller  <davem@davemloft.net>
24344
24345         [BZ #14811]
24346         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24347         nonzero exponents with absolute value below 0x1p-128 to +/-
24348         0x1p-128.
24349
24350 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24351
24352         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24353
24354         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24355
24356         * posix/getconf-speclist.c: New file.
24357         * posix/posix-envs.def: Likewise.
24358         * posix/confstr.c (START_ENV_GROUP): New macro.
24359         (END_ENV_GROUP): Likewise.
24360         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24361         (KNOWN_PRESENT_ENV_STRING): Likewise.
24362         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24363         (UNKNOWN_ENVIRONMENT): Likewise.
24364         (confstr): Include posix-envs.def instead of handling
24365         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24366         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24367         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24368         (END_ENV_GROUP): Likewise.
24369         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24370         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24371         (UNKNOWN_ENVIRONMENT): Likewise.
24372         (__sysconf): Include posix-envs.def instead of handling associated
24373         cases directly here.
24374         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24375         preprocessing getconf-speclist.c rather than running getconf or
24376         generating empty file.
24377
24378 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24379
24380         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24381
24382 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24383
24384         [BZ #14672]
24385         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24386
24387 2012-11-16  David S. Miller  <davem@davemloft.net>
24388
24389         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24390         smaller than LDBL_EPSILON/2.0L, just return xm1.
24391
24392 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24393
24394         * elf/tst-array1.c (init): Set constructor priority to 1000.
24395         (fini): Set destructor priority to 1000.
24396         * elf/tst-array2dep.c: Likewise.
24397
24398 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24399
24400         [BZ #11741]
24401         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24402         (_IO_new_file_xsputn): Also return EOF if none of the input
24403         data was written when overflow failed.
24404         * libio/iopadn.c (_IO_padn): Likewise.
24405         * libio/iowpadn.c (_IO_wpadn): Likewise.
24406         * stdio-common/tst-put-error.c: Add copyright notice.
24407         (do_test): Add case for printing padded string.
24408         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24409         _IO_padn returned error.
24410         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24411         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24412         return EOF.
24413
24414 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24415
24416         * libio/libioP.h: Add comment note that the references to C++
24417         bits are now obsolete.
24418
24419 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24420
24421         * math/libm-test.inc (check_complex): Use asprintf.
24422
24423 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24424
24425         * debug/pcprofiledump.c (print_version): Update copyright year.
24426         * malloc/memusagestat.c (print_version): Likewise.
24427
24428 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24429
24430         [BZ #14831]
24431         * elf/Makefile (tests): Add tst-audit8.
24432         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24433         ($(objpfx)tst-audit8.out): New target.
24434         (tst-audit8-ENV): New variable.
24435         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24436         audit if l_reloc_result is NULL.
24437         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24438         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24439         * elf/tst-audit8.c: New file.
24440
24441 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24442
24443         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24444         * misc/Makefile (CFLAGS-select.c): Define.
24445         * posix/Makefile (CFLAGS-pause.c): Define.
24446
24447 2012-11-13  David S. Miller  <davem@davemloft.net>
24448
24449         * crypt/Makefile: Move test targets after toplevel Rules
24450         inclusion.  Grab any necessary sysdep routines when linking.
24451         * crypt/md5.c (md5_process_block): Remove define, we will always
24452         name it __md5_process_block.
24453         (md5_finish_ctx): Update md5_process_block call.
24454         (md5_stream): Likewise.
24455         (md5_process_bytes): Likewise.
24456         (md5_process_block): Rename to __md5_process_block and move to ...
24457         * crypt/md5-block.c: ... here.
24458         * crypt/sha256.c (sha256_process_block): Move to ...
24459         * crypt/sha256-block.c: ... here.
24460         * crypt/sha512.c (sha512_process_block): Move to ...
24461         * crypt/sha512-block.c: ... here.
24462         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24463         path.
24464         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24465         * sysdeps/sparc/sparc64/multiarch/Makefile
24466         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24467         crypt subdir.
24468         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24469         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24470         multiarch changes.
24471         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24472         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24473         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24474         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24475         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24476         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24477         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24478         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24479         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24480         file.
24481         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24482         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24483         file.
24484         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24485
24486 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24487
24488         * timezone/tzselect.ksh: Update from tzcode git revision
24489         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24490         * timezone/zdump.c: Likewise.
24491         * timezone/zic.c: Likewise.
24492         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24493         in TZVERSION setting, not $(PKGVERSION).
24494         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24495         REPORT_BUGS_TO settings.
24496
24497         [BZ #14838]
24498         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24499         macro.
24500
24501 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24502
24503         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24504         detection to immediately after _FP_ROUND().
24505         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24506         bits are 0.
24507
24508 2012-11-11  David S. Miller  <davem@davemloft.net>
24509
24510         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24511         inttypes.h
24512         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24513         __close rather than their public counterparts.
24514
24515 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24516
24517         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24518         file.
24519         [UNIX98] (sem_timedwait): Do not expect.
24520         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24521         [XPG4 || UNIX98] (sockatmark): Do not expect.
24522         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24523         (clock_getcpuclockid): Do not expect.
24524         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24525         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24526         Do not expect.
24527         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24528         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24529         [UNIX98] (vwscanf): Likewise.
24530         [UNIX98] (vswscanf): Likewise.
24531
24532 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24533
24534         * timezone/version.h: Remove file.
24535         * timezone/README: Do not refer to version.h.
24536         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24537         $(objpfx)version.h.
24538         ($(objpfx)zdump.o): Likewise.
24539         ($(objpfx)version.h): New target.
24540
24541         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24542         2012i.
24543         * timezone/README: Don't mention modification to tzselect.ksh.
24544         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24545         work on unmodified tzselect.ksh.  Substitute version numbers in
24546         tzselect.ksh.
24547
24548         * Makefile (format-me): Remove.
24549         (INSTALL): Adjust indentation.  Use commands directly instead of
24550         using $(format-me).
24551
24552         * aclocal.m4 (ACX_PKGVERSION): New macro.
24553         (ACX_BUGURL): Likewise.
24554         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24555         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24556         (REPORT_BUGS_TO): Likewise.
24557         * configure: Regenerated.
24558         * config.h.in (PKGVERSION): New macro.
24559         (REPORT_BUGS_TO): Likewise.
24560         * config.make.in (PKGVERSION): New variable.
24561         (PKGVERSION_TEXI): Likewise.
24562         (REPORT_BUGS_TO): Likewise.
24563         (REPORT_BUGS_TEXI): Likewise.
24564         * Makefile (format-me): Use -I$(common-objpfx)manual.
24565         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24566         ($(common-objpfx)manual/%): New target.
24567         (manual/%): Remove target.
24568         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24569         (print_version): Use PKGVERSION.
24570         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24571         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24572         and REPORT_BUGS_TO.
24573         ($(objpfx)xtrace): Likewise.
24574         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24575         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24576         (print_version): Use PKGVERSION.
24577         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24578         (do_version): Use PKGVERSION.
24579         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24580         REPORT_BUGS_TO.
24581         (common-ldd-rewrite): Likewise.
24582         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24583         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24584         (print_version): Use PKGVERSION.
24585         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24586         * elf/pldd.c (argp_program_bug_address): Remove variable.
24587         (more_help): New function.
24588         (argp): Use more_help.
24589         (print_version): Use PKGVERSION.
24590         * elf/sln.c (main): Use PKGVERSION.
24591         (usage): Use REPORT_BUGS_TO.
24592         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24593         (top level): Use PKGVERSION.
24594         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24595         (print_version): Use PKGVERSION.
24596         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24597         (print_version): Use PKGVERSION.
24598         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24599         (print_version): Use PKGVERSION.
24600         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24601         (print_version): Use PKGVERSION.
24602         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24603         (print_version): Use PKGVERSION.
24604         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24605         (print_version): Use PKGVERSION.
24606         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24607         and BUGURL.
24608         ($(objpfx)memusage): Likewise.
24609         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
24610         (do_version): Use PKGVERSION.
24611         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
24612         (print_version): Use PKGVERSION.
24613         * malloc/mtrace.pl ($PACKAGE): Remove variable.
24614         ($PKGVERSION): New variable.
24615         ($REPORT_BUGS_TO): Likewise.
24616         (usage): Use $REPORT_BUGS_TO.
24617         (top level): Use $PKGVERSION.
24618         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
24619         ($(objpfx)pkgvers.texi): New rule.
24620         ($(objpfx)stamp-pkgvers): Likewise.
24621         * manual/install.texi: Include pkgvers.texi.
24622         (--with-pkgversion): Document new configure option.
24623         (--with-bugurl): Likewise.
24624         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
24625         than necessarily for this particular distribution.  Use
24626         REPORT_BUGS_TO for where to report bugs.
24627         * INSTALL: Regenerated.
24628         * manual/libc.texinfo: Include pkgvers.texi.
24629         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
24630         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
24631         (print_version): Use PKGVERSION.
24632         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
24633         (print_version): Use PKGVERSION.
24634         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
24635         (print_version): Use PKGVERSION.
24636         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
24637         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
24638         macro.
24639         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
24640         (print_version): Use PKGVERSION.
24641         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
24642         (print_version): Use PKGVERSION.
24643         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
24644         and PKGVERSION.
24645
24646         * timezone/checktab.awk: Update from tzcode 2012i.
24647         * timezone/ialloc.c: Likewise.
24648         * timezone/private.h: Likewise.
24649         * timezone/scheck.c: Likewise.
24650         * timezone/tzfile.h: Likewise.
24651         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
24652         (TZVERSION): Hardcode tzcode version number.
24653         * timezone/zdump.c: Update from tzcode 2012i.
24654         * timezone/zic.c: Likewise.
24655         * timezone/version.h: New file.
24656         * timezone/README: Describe version.h.  Update upstream location.
24657
24658         [BZ #14824]
24659         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
24660         (mktemp): Enable declaration.
24661         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
24662         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
24663         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
24664         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
24665         Likewise.
24666         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
24667         Likewise.
24668         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
24669         Likewise.
24670         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
24671         Likewise.
24672         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
24673         Likewise.
24674         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
24675         Likewise.
24676
24677         [BZ #14821]
24678         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
24679         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
24680         for copies of such integer values.
24681         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24682         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24683
24684 2012-11-09  Andreas Jaeger  <aj@suse.de>
24685
24686         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
24687         definitions and declarations that are provided by
24688         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24689
24690 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24691
24692         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
24693         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
24694         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
24695         definition.
24696
24697 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24698
24699         * elf/elf.h: Update comment before AArch64 relocations.
24700
24701 2012-11-07  David S. Miller  <davem@davemloft.net>
24702
24703         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
24704         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24705         (__start_context): Declare.
24706         (__makecontext_ret): Delete.
24707         (__makecontext): Hook up __start_context instead of
24708         __makecontext_ret.
24709         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
24710         (sysdep_routines): Add __start_context when in stdlib.
24711
24712 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24713
24714         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
24715         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
24716         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
24717         hardcoded "nm".
24718         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
24719         (READELF): New variable.  Use it instead of hardcoded "readelf".
24720
24721 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24722
24723         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
24724         * sysdeps/x86/Makefile: Here.
24725         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
24726         * sysdeps/x86/tst-xmmymm.sh: This.
24727
24728 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24729
24730         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
24731         expectations.
24732         [UNIX98] (pthread_barrier_t): Do not expect.
24733         [UNIX98] (pthread_barrierattr_t): Likewise.
24734         [UNIX98] (pthread_spinlock_t): Likewise.
24735         [UNIX98] (pthread_barrier_destroy): Likewise.
24736         [UNIX98] (pthread_barrier_init): Likewise.
24737         [UNIX98] (pthread_barrier_wait): Likewise.
24738         [UNIX98] (pthread_barrierattr_destroy): Likewise.
24739         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
24740         [UNIX98] (pthread_barrierattr_init): Likewise.
24741         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
24742         [UNIX98] (pthread_getcpuclockid): Likewise.
24743         [UNIX98] (pthread_mutex_timedlock): Likewise.
24744         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
24745         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
24746         [UNIX98] (pthread_sigmask): Likewise.
24747         [UNIX98] (pthread_spin_destroy): Likewise.
24748         [UNIX98] (pthread_spin_init): Likewise.
24749         [UNIX98] (pthread_spin_lock): Likewise.
24750         [UNIX98] (pthread_spin_trylock): Likewise.
24751         [UNIX98] (pthread_spin_unlock): Likewise.
24752         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
24753         Do not expect.
24754         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
24755         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
24756         [XPG3 || XPG4] (pthread_cond_t): Likewise.
24757         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
24758         [XPG3 || XPG4] (pthread_key_t): Likewise.
24759         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
24760         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
24761         [XPG3 || XPG4] (pthread_once_t): Likewise.
24762         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
24763         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
24764         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
24765         [XPG3 || XPG4] (pthread_t): Likewise.
24766
24767         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
24768         not expect.
24769         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
24770
24771         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
24772         Change function return type to int.
24773
24774         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
24775         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
24776         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
24777         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
24778         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
24779         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
24780         [!POSIX] (posix_madvise): Likewise.
24781         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
24782         && !UNIX98].
24783         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
24784         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
24785         (mode_t): Likewise.
24786         (posix_mem_offset): Likewise.
24787         (posix_typed_mem_get_info): Likewise.
24788         (posix_typed_mem_open): Likewise.
24789
24790         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
24791         Change condition to [XOPEN2K8].
24792
24793         * conform/conformtest.pl: Preprocess allow-header data with -x c
24794         instead of from stdin.
24795         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
24796         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
24797         [C99-based standards] (cerfc): Likewise.
24798         [C99-based standards] (cexp2): Likewise.
24799         [C99-based standards] (cexpm1): Likewise.
24800         [C99-based standards] (clog10): Likewise.
24801         [C99-based standards] (clog1p): Likewise.
24802         [C99-based standards] (clog2): Likewise.
24803         [C99-based standards] (clgamma): Likewise.
24804         [C99-based standards] (ctgamma): Likewise.
24805         [C99-based standards] (cerff): Likewise.
24806         [C99-based standards] (cerfcf): Likewise.
24807         [C99-based standards] (cexp2f): Likewise.
24808         [C99-based standards] (cexpm1f): Likewise.
24809         [C99-based standards] (clog10f): Likewise.
24810         [C99-based standards] (clog1pf): Likewise.
24811         [C99-based standards] (clog2f): Likewise.
24812         [C99-based standards] (clgammaf): Likewise.
24813         [C99-based standards] (ctgammaf): Likewise.
24814         [C99-based standards] (cerfl): Likewise.
24815         [C99-based standards] (cerfcl): Likewise.
24816         [C99-based standards] (cexp2l): Likewise.
24817         [C99-based standards] (cexpm1l): Likewise.
24818         [C99-based standards] (clog10l): Likewise.
24819         [C99-based standards] (clog1pl): Likewise.
24820         [C99-based standards] (clog2l): Likewise.
24821         [C99-based standards] (clgammal): Likewise.
24822         [C99-based standards] (ctgammal): Likewise.
24823         * conform/data/inttypes.h-data [C99-based standards]: Include
24824         stdint.h-data.  Remove all expectations for stdint.h contents.
24825         [C99-based standards] (PRI*): Do not allow.
24826         [C99-based standards] (SCN*): Likewise.
24827         [C99-based standards] (*_t): Likewise.
24828         [C99-based-standards] (PRId8): Expect macro.
24829         [C99-based-standards] (PRIi8): Likewise.
24830         [C99-based-standards] (PRIo8): Likewise.
24831         [C99-based-standards] (PRIu8): Likewise.
24832         [C99-based-standards] (PRIx8): Likewise.
24833         [C99-based-standards] (PRIX8): Likewise.
24834         [C99-based-standards] (SCNd8): Likewise.
24835         [C99-based-standards] (SCNi8): Likewise.
24836         [C99-based-standards] (SCNo8): Likewise.
24837         [C99-based-standards] (SCNu8): Likewise.
24838         [C99-based-standards] (SCNx8): Likewise.
24839         [C99-based-standards] (PRIdLEAST8): Likewise.
24840         [C99-based-standards] (PRIiLEAST8): Likewise.
24841         [C99-based-standards] (PRIoLEAST8): Likewise.
24842         [C99-based-standards] (PRIuLEAST8): Likewise.
24843         [C99-based-standards] (PRIxLEAST8): Likewise.
24844         [C99-based-standards] (PRIXLEAST8): Likewise.
24845         [C99-based-standards] (SCNdLEAST8): Likewise.
24846         [C99-based-standards] (SCNiLEAST8): Likewise.
24847         [C99-based-standards] (SCNoLEAST8): Likewise.
24848         [C99-based-standards] (SCNuLEAST8): Likewise.
24849         [C99-based-standards] (SCNxLEAST8): Likewise.
24850         [C99-based-standards] (PRIdFAST8): Likewise.
24851         [C99-based-standards] (PRIiFAST8): Likewise.
24852         [C99-based-standards] (PRIoFAST8): Likewise.
24853         [C99-based-standards] (PRIuFAST8): Likewise.
24854         [C99-based-standards] (PRIxFAST8): Likewise.
24855         [C99-based-standards] (PRIXFAST8): Likewise.
24856         [C99-based-standards] (SCNdFAST8): Likewise.
24857         [C99-based-standards] (SCNiFAST8): Likewise.
24858         [C99-based-standards] (SCNoFAST8): Likewise.
24859         [C99-based-standards] (SCNuFAST8): Likewise.
24860         [C99-based-standards] (SCNxFAST8): Likewise.
24861         [C99-based-standards] (PRId16): Likewise.
24862         [C99-based-standards] (PRIi16): Likewise.
24863         [C99-based-standards] (PRIo16): Likewise.
24864         [C99-based-standards] (PRIu16): Likewise.
24865         [C99-based-standards] (PRIx16): Likewise.
24866         [C99-based-standards] (PRIX16): Likewise.
24867         [C99-based-standards] (SCNd16): Likewise.
24868         [C99-based-standards] (SCNi16): Likewise.
24869         [C99-based-standards] (SCNo16): Likewise.
24870         [C99-based-standards] (SCNu16): Likewise.
24871         [C99-based-standards] (SCNx16): Likewise.
24872         [C99-based-standards] (PRIdLEAST16): Likewise.
24873         [C99-based-standards] (PRIiLEAST16): Likewise.
24874         [C99-based-standards] (PRIoLEAST16): Likewise.
24875         [C99-based-standards] (PRIuLEAST16): Likewise.
24876         [C99-based-standards] (PRIxLEAST16): Likewise.
24877         [C99-based-standards] (PRIXLEAST16): Likewise.
24878         [C99-based-standards] (SCNdLEAST16): Likewise.
24879         [C99-based-standards] (SCNiLEAST16): Likewise.
24880         [C99-based-standards] (SCNoLEAST16): Likewise.
24881         [C99-based-standards] (SCNuLEAST16): Likewise.
24882         [C99-based-standards] (SCNxLEAST16): Likewise.
24883         [C99-based-standards] (PRIdFAST16): Likewise.
24884         [C99-based-standards] (PRIiFAST16): Likewise.
24885         [C99-based-standards] (PRIoFAST16): Likewise.
24886         [C99-based-standards] (PRIuFAST16): Likewise.
24887         [C99-based-standards] (PRIxFAST16): Likewise.
24888         [C99-based-standards] (PRIXFAST16): Likewise.
24889         [C99-based-standards] (SCNdFAST16): Likewise.
24890         [C99-based-standards] (SCNiFAST16): Likewise.
24891         [C99-based-standards] (SCNoFAST16): Likewise.
24892         [C99-based-standards] (SCNuFAST16): Likewise.
24893         [C99-based-standards] (SCNxFAST16): Likewise.
24894         [C99-based-standards] (PRId32): Likewise.
24895         [C99-based-standards] (PRIi32): Likewise.
24896         [C99-based-standards] (PRIo32): Likewise.
24897         [C99-based-standards] (PRIu32): Likewise.
24898         [C99-based-standards] (PRIx32): Likewise.
24899         [C99-based-standards] (PRIX32): Likewise.
24900         [C99-based-standards] (SCNd32): Likewise.
24901         [C99-based-standards] (SCNi32): Likewise.
24902         [C99-based-standards] (SCNo32): Likewise.
24903         [C99-based-standards] (SCNu32): Likewise.
24904         [C99-based-standards] (SCNx32): Likewise.
24905         [C99-based-standards] (PRIdLEAST32): Likewise.
24906         [C99-based-standards] (PRIiLEAST32): Likewise.
24907         [C99-based-standards] (PRIoLEAST32): Likewise.
24908         [C99-based-standards] (PRIuLEAST32): Likewise.
24909         [C99-based-standards] (PRIxLEAST32): Likewise.
24910         [C99-based-standards] (PRIXLEAST32): Likewise.
24911         [C99-based-standards] (SCNdLEAST32): Likewise.
24912         [C99-based-standards] (SCNiLEAST32): Likewise.
24913         [C99-based-standards] (SCNoLEAST32): Likewise.
24914         [C99-based-standards] (SCNuLEAST32): Likewise.
24915         [C99-based-standards] (SCNxLEAST32): Likewise.
24916         [C99-based-standards] (PRIdFAST32): Likewise.
24917         [C99-based-standards] (PRIiFAST32): Likewise.
24918         [C99-based-standards] (PRIoFAST32): Likewise.
24919         [C99-based-standards] (PRIuFAST32): Likewise.
24920         [C99-based-standards] (PRIxFAST32): Likewise.
24921         [C99-based-standards] (PRIXFAST32): Likewise.
24922         [C99-based-standards] (SCNdFAST32): Likewise.
24923         [C99-based-standards] (SCNiFAST32): Likewise.
24924         [C99-based-standards] (SCNoFAST32): Likewise.
24925         [C99-based-standards] (SCNuFAST32): Likewise.
24926         [C99-based-standards] (SCNxFAST32): Likewise.
24927         [C99-based-standards] (PRId64): Likewise.
24928         [C99-based-standards] (PRIi64): Likewise.
24929         [C99-based-standards] (PRIo64): Likewise.
24930         [C99-based-standards] (PRIu64): Likewise.
24931         [C99-based-standards] (PRIx64): Likewise.
24932         [C99-based-standards] (PRIX64): Likewise.
24933         [C99-based-standards] (SCNd64): Likewise.
24934         [C99-based-standards] (SCNi64): Likewise.
24935         [C99-based-standards] (SCNo64): Likewise.
24936         [C99-based-standards] (SCNu64): Likewise.
24937         [C99-based-standards] (SCNx64): Likewise.
24938         [C99-based-standards] (PRIdLEAST64): Likewise.
24939         [C99-based-standards] (PRIiLEAST64): Likewise.
24940         [C99-based-standards] (PRIoLEAST64): Likewise.
24941         [C99-based-standards] (PRIuLEAST64): Likewise.
24942         [C99-based-standards] (PRIxLEAST64): Likewise.
24943         [C99-based-standards] (PRIXLEAST64): Likewise.
24944         [C99-based-standards] (SCNdLEAST64): Likewise.
24945         [C99-based-standards] (SCNiLEAST64): Likewise.
24946         [C99-based-standards] (SCNoLEAST64): Likewise.
24947         [C99-based-standards] (SCNuLEAST64): Likewise.
24948         [C99-based-standards] (SCNxLEAST64): Likewise.
24949         [C99-based-standards] (PRIdFAST64): Likewise.
24950         [C99-based-standards] (PRIiFAST64): Likewise.
24951         [C99-based-standards] (PRIoFAST64): Likewise.
24952         [C99-based-standards] (PRIuFAST64): Likewise.
24953         [C99-based-standards] (PRIxFAST64): Likewise.
24954         [C99-based-standards] (PRIXFAST64): Likewise.
24955         [C99-based-standards] (SCNdFAST64): Likewise.
24956         [C99-based-standards] (SCNiFAST64): Likewise.
24957         [C99-based-standards] (SCNoFAST64): Likewise.
24958         [C99-based-standards] (SCNuFAST64): Likewise.
24959         [C99-based-standards] (SCNxFAST64): Likewise.
24960         [C99-based-standards] (PRIdMAX): Likewise.
24961         [C99-based-standards] (PRIiMAX): Likewise.
24962         [C99-based-standards] (PRIoMAX): Likewise.
24963         [C99-based-standards] (PRIuMAX): Likewise.
24964         [C99-based-standards] (PRIxMAX): Likewise.
24965         [C99-based-standards] (PRIXMAX): Likewise.
24966         [C99-based-standards] (SCNdMAX): Likewise.
24967         [C99-based-standards] (SCNiMAX): Likewise.
24968         [C99-based-standards] (SCNoMAX): Likewise.
24969         [C99-based-standards] (SCNuMAX): Likewise.
24970         [C99-based-standards] (SCNxMAX): Likewise.
24971         [C99-based-standards] (PRIdPTR): Likewise.
24972         [C99-based-standards] (PRIiPTR): Likewise.
24973         [C99-based-standards] (PRIoPTR): Likewise.
24974         [C99-based-standards] (PRIuPTR): Likewise.
24975         [C99-based-standards] (PRIxPTR): Likewise.
24976         [C99-based-standards] (PRIXPTR): Likewise.
24977         [C99-based-standards] (SCNdPTR): Likewise.
24978         [C99-based-standards] (SCNiPTR): Likewise.
24979         [C99-based-standards] (SCNoPTR): Likewise.
24980         [C99-based-standards] (SCNuPTR): Likewise.
24981         [C99-based-standards] (SCNxPTR): Likewise.
24982         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
24983         allow.
24984         * conform/data/stdint.h-data: Update comments to clarify
24985         requirements.
24986         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
24987         type.
24988         [C99-based standards] (INT8_MAX): Likewise.
24989         [C99-based standards] (INT16_MIN): Likewise.
24990         [C99-based standards] (INT16_MAX): Likewise.
24991         [C99-based standards] (INT32_MIN): Likewise.
24992         [C99-based standards] (INT32_MAX): Likewise.
24993         [C99-based standards] (INT64_MIN): Likewise.
24994         [C99-based standards] (INT64_MAX): Likewise.
24995         [C99-based standards] (UINT8_MAX): Likewise.
24996         [C99-based standards] (UINT16_MAX): Likewise.
24997         [C99-based standards] (UINT32_MAX): Likewise.
24998         [C99-based standards] (UINT64_MAX): Likewise.
24999         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25000         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25001         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25002         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25003         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25004         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25005         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25006         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25007         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25008         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25009         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25010         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25011         [C99-based standards] (INT_FAST8_MIN): Likewise.
25012         [C99-based standards] (INT_FAST8_MAX): Likewise.
25013         [C99-based standards] (INT_FAST16_MIN): Likewise.
25014         [C99-based standards] (INT_FAST16_MAX): Likewise.
25015         [C99-based standards] (INT_FAST32_MIN): Likewise.
25016         [C99-based standards] (INT_FAST32_MAX): Likewise.
25017         [C99-based standards] (INT_FAST64_MIN): Likewise.
25018         [C99-based standards] (INT_FAST64_MAX): Likewise.
25019         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25020         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25021         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25022         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25023         [C99-based standards] (INTPTR_MIN): Likewise.
25024         [C99-based standards] (INTPTR_MAX): Likewise.
25025         [C99-based standards] (UINTPTR_MAX): Likewise.
25026         [C99-based standards] (INTMAX_MIN): Likewise.
25027         [C99-based standards] (INTMAX_MAX): Likewise.
25028         [C99-based standards] (UINTMAX_MAX): Likewise.
25029         [C99-based standards] (PTRDIFF_MIN): Likewise.
25030         [C99-based standards] (PTRDIFF_MAX): Likewise.
25031         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25032         [C99-based standards] (SIZE_MAX): Likewise.
25033         [C99-based standards] (WCHAR_MAX): Likewise.
25034         [C99-based standards] (WINT_MAX): Likewise.
25035         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25036         constraint on value.
25037         [C99-based standards] (WCHAR_MIN): Likewise.
25038         [C99-based standards] (WINT_MIN): Likewise.
25039         [C99-based standards] (*_t): Allow.
25040         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25041         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25042         Include math.h-data and complex.h-data.  Remove all expectations
25043         of math.h and complex.h contents.
25044         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25045         at end of line.
25046         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25047         (struct tm): Expect tag.
25048         [C99-based-standards] (wcstof): Expect function.
25049         [C99-based-standards] (wcstold): Likewise.
25050         [C99-based-standards] (wcstoll): Likewise.
25051         [C99-based-standards] (wcstoull): Likewise.
25052         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25053         macro-int-constant.  Specify type.
25054         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25055         constraint on value.
25056         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25057         Specify type.
25058         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25059         Specify value.
25060         [ISO C standards]: Do not allow headers.
25061         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25062         wcs[abcdefghijklmnopqrstuvwxyz]*.
25063         [ISO C standards] (*_t): Do not allow.
25064         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25065         Expect function.
25066         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25067         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25068         Specify type.
25069         [ISO C standards]: Do not allow headers.
25070         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25071         is[abcdefghijklmnopqrstuvwxyz]*.
25072         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25073         to[abcdefghijklmnopqrstuvwxyz]*.
25074         [ISO C standards] (*_t): Do not allow.
25075         * conform/data/stdalign.h-data: New file.
25076         * conform/data/stdbool.h-data: Likewise.
25077         * conform/data/stdnoreturn.h-data: Likewise.
25078
25079 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25080
25081         [BZ #14815]
25082         * manual/filesys.texi (Directory Entries): Typo fix.
25083         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25084
25085 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25086
25087         * elf/elf.h (EM_AARCH64): New macro.
25088         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25089         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25090         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25091         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25092         (R_AARCH64_TLSDESC): Likewise.
25093         (NT_ARM_TLS): Likewise.
25094         (NT_ARM_HW_BREAK): Likewise.
25095         (NT_ARM_HW_WATCH): Likewise.
25096
25097 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25098
25099         [BZ #14811]
25100         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25101         (__ieee754_powl): Saturate nonzero exponents with absolute value
25102         below 0x1p-79 to +/- 0x1p-79.
25103         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25104         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25105         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25106         nonzero exponents with absolute value below 0x1p-32 to +/-
25107         0x1p-32.
25108         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25109         (__ieee754_powl): Saturate nonzero exponents with absolute value
25110         below 0x1p-79 to +/- 0x1p-79.
25111         * math/libm-test.inc (pow_test): Add more tests.
25112
25113 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25114
25115         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25116         _dl_s390_cap_flags with kernel. Increase string length.
25117         (_dl_s390_platforms): Add z196 and zEC12.
25118
25119 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25120
25121         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25122         Change XOPEN21K to XOPEN2K.
25123
25124 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25125
25126         * string/memmove.c: Use memcpy when possible.
25127
25128 2012-11-06  Andreas Jaeger  <aj@suse.de>
25129
25130         * po/eo.po: Update from translation team.
25131
25132 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25133
25134         [BZ #14793]
25135         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25136         exponent and small x and y exponents, scale x or y up.  Increase
25137         by 2 the exponent used in scaling up.
25138         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25139         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25140         * math/libm-test.inc (fma_test): Add more tests.
25141         (fma_test_towardzero): Likewise.
25142         (fma_test_downward): Likewise.
25143         (fma_test_upward): Likewise.
25144
25145 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25146
25147         [BZ #14805]
25148         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25149         fenv_t *.
25150
25151         [BZ #14801]
25152         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25153         namespace for names of struct fields.
25154         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25155         fenv_t fields.
25156         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25157         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25158
25159 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25160
25161         [BZ #3665]
25162         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25163
25164 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25165
25166         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25167         PTR_DEMANGLE.
25168
25169         [BZ #5246]
25170         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25171         PTR_DEMANGLE.
25172
25173 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25174
25175         [BZ #14797]
25176         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25177         definitely overflow as x * y not x * y + z.
25178         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25179         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25180         * math/libm-test.inc (fma_test): Add more tests.
25181         (fma_test_towardzero): Likewise.
25182         (fma_test_downward): Likewise.
25183         (fma_test_upward): Likewise.
25184
25185 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25186
25187         [BZ #157]
25188
25189         * include/stub-tag.h: Remove file.
25190         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25191         '#include' of it.
25192         * manual/maint.texi (Porting): Don't reference it.
25193         * Makerules ($(objpfx)stubs): Likewise.
25194         * dirent/closedir.c: Don't include <stub-tag.h>.
25195         * dirent/dirfd.c: Likewise.
25196         * dirent/fdopendir.c: Likewise.
25197         * dirent/getdents.c: Likewise.
25198         * dirent/getdents64.c: Likewise.
25199         * dirent/opendir.c: Likewise.
25200         * dirent/readdir.c: Likewise.
25201         * dirent/readdir64.c: Likewise.
25202         * dirent/readdir64_r.c: Likewise.
25203         * dirent/readdir_r.c: Likewise.
25204         * dirent/rewinddir.c: Likewise.
25205         * dirent/seekdir.c: Likewise.
25206         * dirent/telldir.c: Likewise.
25207         * gmon/profil.c: Likewise.
25208         * grp/setgroups.c: Likewise.
25209         * inet/if_index.c: Likewise.
25210         * io/access.c: Likewise.
25211         * io/chdir.c: Likewise.
25212         * io/chmod.c: Likewise.
25213         * io/chown.c: Likewise.
25214         * io/close.c: Likewise.
25215         * io/dup.c: Likewise.
25216         * io/dup2.c: Likewise.
25217         * io/dup3.c: Likewise.
25218         * io/euidaccess.c: Likewise.
25219         * io/faccessat.c: Likewise.
25220         * io/fchdir.c: Likewise.
25221         * io/fchmod.c: Likewise.
25222         * io/fchmodat.c: Likewise.
25223         * io/fchown.c: Likewise.
25224         * io/fchownat.c: Likewise.
25225         * io/fcntl.c: Likewise.
25226         * io/flock.c: Likewise.
25227         * io/fstatfs.c: Likewise.
25228         * io/fstatfs64.c: Likewise.
25229         * io/fstatvfs.c: Likewise.
25230         * io/fstatvfs64.c: Likewise.
25231         * io/futimens.c: Likewise.
25232         * io/fxstat.c: Likewise.
25233         * io/fxstat64.c: Likewise.
25234         * io/fxstatat.c: Likewise.
25235         * io/fxstatat64.c: Likewise.
25236         * io/getcwd.c: Likewise.
25237         * io/isatty.c: Likewise.
25238         * io/lchmod.c: Likewise.
25239         * io/lchown.c: Likewise.
25240         * io/link.c: Likewise.
25241         * io/linkat.c: Likewise.
25242         * io/lseek.c: Likewise.
25243         * io/lseek64.c: Likewise.
25244         * io/lxstat64.c: Likewise.
25245         * io/mkdir.c: Likewise.
25246         * io/mkdirat.c: Likewise.
25247         * io/mkfifo.c: Likewise.
25248         * io/mkfifoat.c: Likewise.
25249         * io/open.c: Likewise.
25250         * io/open64.c: Likewise.
25251         * io/openat.c: Likewise.
25252         * io/openat64.c: Likewise.
25253         * io/pipe.c: Likewise.
25254         * io/pipe2.c: Likewise.
25255         * io/poll.c: Likewise.
25256         * io/posix_fadvise.c: Likewise.
25257         * io/posix_fadvise64.c: Likewise.
25258         * io/posix_fallocate.c: Likewise.
25259         * io/posix_fallocate64.c: Likewise.
25260         * io/read.c: Likewise.
25261         * io/readlink.c: Likewise.
25262         * io/readlinkat.c: Likewise.
25263         * io/rmdir.c: Likewise.
25264         * io/sendfile.c: Likewise.
25265         * io/sendfile64.c: Likewise.
25266         * io/statfs.c: Likewise.
25267         * io/statfs64.c: Likewise.
25268         * io/statvfs.c: Likewise.
25269         * io/statvfs64.c: Likewise.
25270         * io/symlink.c: Likewise.
25271         * io/symlinkat.c: Likewise.
25272         * io/ttyname.c: Likewise.
25273         * io/ttyname_r.c: Likewise.
25274         * io/umask.c: Likewise.
25275         * io/unlink.c: Likewise.
25276         * io/unlinkat.c: Likewise.
25277         * io/utime.c: Likewise.
25278         * io/utimensat.c: Likewise.
25279         * io/write.c: Likewise.
25280         * io/xmknod.c: Likewise.
25281         * io/xmknodat.c: Likewise.
25282         * io/xstat.c: Likewise.
25283         * io/xstat64.c: Likewise.
25284         * login/getpt.c: Likewise.
25285         * login/grantpt.c: Likewise.
25286         * login/unlockpt.c: Likewise.
25287         * math/e_acoshl.c: Likewise.
25288         * math/e_acosl.c: Likewise.
25289         * math/e_asinl.c: Likewise.
25290         * math/e_atan2l.c: Likewise.
25291         * math/e_atanhl.c: Likewise.
25292         * math/e_coshl.c: Likewise.
25293         * math/e_expl.c: Likewise.
25294         * math/e_fmodl.c: Likewise.
25295         * math/e_gammal_r.c: Likewise.
25296         * math/e_hypotl.c: Likewise.
25297         * math/e_j0l.c: Likewise.
25298         * math/e_j1l.c: Likewise.
25299         * math/e_jnl.c: Likewise.
25300         * math/e_lgammal_r.c: Likewise.
25301         * math/e_log10l.c: Likewise.
25302         * math/e_log2l.c: Likewise.
25303         * math/e_logl.c: Likewise.
25304         * math/e_powl.c: Likewise.
25305         * math/e_rem_pio2l.c: Likewise.
25306         * math/e_sinhl.c: Likewise.
25307         * math/e_sqrtl.c: Likewise.
25308         * math/fclrexcpt.c: Likewise.
25309         * math/fedisblxcpt.c: Likewise.
25310         * math/feenablxcpt.c: Likewise.
25311         * math/fegetenv.c: Likewise.
25312         * math/fegetexcept.c: Likewise.
25313         * math/fegetround.c: Likewise.
25314         * math/feholdexcpt.c: Likewise.
25315         * math/fesetenv.c: Likewise.
25316         * math/fesetround.c: Likewise.
25317         * math/feupdateenv.c: Likewise.
25318         * math/fgetexcptflg.c: Likewise.
25319         * math/fraiseexcpt.c: Likewise.
25320         * math/fsetexcptflg.c: Likewise.
25321         * math/ftestexcept.c: Likewise.
25322         * math/k_cosl.c: Likewise.
25323         * math/k_rem_pio2l.c: Likewise.
25324         * math/k_sinl.c: Likewise.
25325         * math/k_tanl.c: Likewise.
25326         * math/s_asinhl.c: Likewise.
25327         * math/s_atanl.c: Likewise.
25328         * math/s_cbrtl.c: Likewise.
25329         * math/s_erfl.c: Likewise.
25330         * math/s_expm1l.c: Likewise.
25331         * math/s_log1pl.c: Likewise.
25332         * math/s_tanhl.c: Likewise.
25333         * misc/acct.c: Likewise.
25334         * misc/brk.c: Likewise.
25335         * misc/chflags.c: Likewise.
25336         * misc/chroot.c: Likewise.
25337         * misc/fchflags.c: Likewise.
25338         * misc/fgetxattr.c: Likewise.
25339         * misc/flistxattr.c: Likewise.
25340         * misc/fremovexattr.c: Likewise.
25341         * misc/fsetxattr.c: Likewise.
25342         * misc/fsync.c: Likewise.
25343         * misc/ftruncate.c: Likewise.
25344         * misc/futimes.c: Likewise.
25345         * misc/futimesat.c: Likewise.
25346         * misc/getdomain.c: Likewise.
25347         * misc/getdtsz.c: Likewise.
25348         * misc/gethostid.c: Likewise.
25349         * misc/gethostname.c: Likewise.
25350         * misc/getloadavg.c: Likewise.
25351         * misc/getpagesize.c: Likewise.
25352         * misc/getsysstats.c: Likewise.
25353         * misc/getxattr.c: Likewise.
25354         * misc/gtty.c: Likewise.
25355         * misc/ioctl.c: Likewise.
25356         * misc/lgetxattr.c: Likewise.
25357         * misc/listxattr.c: Likewise.
25358         * misc/llistxattr.c: Likewise.
25359         * misc/lremovexattr.c: Likewise.
25360         * misc/lsetxattr.c: Likewise.
25361         * misc/lutimes.c: Likewise.
25362         * misc/madvise.c: Likewise.
25363         * misc/mincore.c: Likewise.
25364         * misc/mlock.c: Likewise.
25365         * misc/mlockall.c: Likewise.
25366         * misc/mmap.c: Likewise.
25367         * misc/mprotect.c: Likewise.
25368         * misc/msync.c: Likewise.
25369         * misc/munlock.c: Likewise.
25370         * misc/munlockall.c: Likewise.
25371         * misc/munmap.c: Likewise.
25372         * misc/preadv.c: Likewise.
25373         * misc/preadv64.c: Likewise.
25374         * misc/ptrace.c: Likewise.
25375         * misc/pwritev.c: Likewise.
25376         * misc/pwritev64.c: Likewise.
25377         * misc/readv.c: Likewise.
25378         * misc/reboot.c: Likewise.
25379         * misc/remap_file_pages.c: Likewise.
25380         * misc/removexattr.c: Likewise.
25381         * misc/revoke.c: Likewise.
25382         * misc/select.c: Likewise.
25383         * misc/setdomain.c: Likewise.
25384         * misc/setegid.c: Likewise.
25385         * misc/seteuid.c: Likewise.
25386         * misc/sethostid.c: Likewise.
25387         * misc/sethostname.c: Likewise.
25388         * misc/setregid.c: Likewise.
25389         * misc/setreuid.c: Likewise.
25390         * misc/setxattr.c: Likewise.
25391         * misc/sstk.c: Likewise.
25392         * misc/stty.c: Likewise.
25393         * misc/swapoff.c: Likewise.
25394         * misc/swapon.c: Likewise.
25395         * misc/sync.c: Likewise.
25396         * misc/syncfs.c: Likewise.
25397         * misc/syscall.c: Likewise.
25398         * misc/truncate.c: Likewise.
25399         * misc/ualarm.c: Likewise.
25400         * misc/usleep.c: Likewise.
25401         * misc/ustat.c: Likewise.
25402         * misc/utimes.c: Likewise.
25403         * misc/vhangup.c: Likewise.
25404         * misc/writev.c: Likewise.
25405         * posix/_exit.c: Likewise.
25406         * posix/alarm.c: Likewise.
25407         * posix/execve.c: Likewise.
25408         * posix/fexecve.c: Likewise.
25409         * posix/fork.c: Likewise.
25410         * posix/fpathconf.c: Likewise.
25411         * posix/getaddrinfo.c: Likewise.
25412         * posix/getegid.c: Likewise.
25413         * posix/geteuid.c: Likewise.
25414         * posix/getgid.c: Likewise.
25415         * posix/getgroups.c: Likewise.
25416         * posix/getlogin.c: Likewise.
25417         * posix/getlogin_r.c: Likewise.
25418         * posix/getpgid.c: Likewise.
25419         * posix/getpid.c: Likewise.
25420         * posix/getppid.c: Likewise.
25421         * posix/getresgid.c: Likewise.
25422         * posix/getresuid.c: Likewise.
25423         * posix/getsid.c: Likewise.
25424         * posix/getuid.c: Likewise.
25425         * posix/glob64.c: Likewise.
25426         * posix/nanosleep.c: Likewise.
25427         * posix/pathconf.c: Likewise.
25428         * posix/pause.c: Likewise.
25429         * posix/posix_madvise.c: Likewise.
25430         * posix/pread.c: Likewise.
25431         * posix/pread64.c: Likewise.
25432         * posix/pwrite.c: Likewise.
25433         * posix/pwrite64.c: Likewise.
25434         * posix/sched_getaffinity.c: Likewise.
25435         * posix/sched_getp.c: Likewise.
25436         * posix/sched_gets.c: Likewise.
25437         * posix/sched_primax.c: Likewise.
25438         * posix/sched_primin.c: Likewise.
25439         * posix/sched_rr_gi.c: Likewise.
25440         * posix/sched_setaffinity.c: Likewise.
25441         * posix/sched_setp.c: Likewise.
25442         * posix/sched_sets.c: Likewise.
25443         * posix/sched_yield.c: Likewise.
25444         * posix/setgid.c: Likewise.
25445         * posix/setlogin.c: Likewise.
25446         * posix/setpgid.c: Likewise.
25447         * posix/setresgid.c: Likewise.
25448         * posix/setresuid.c: Likewise.
25449         * posix/setsid.c: Likewise.
25450         * posix/setuid.c: Likewise.
25451         * posix/sleep.c: Likewise.
25452         * posix/spawni.c: Likewise.
25453         * posix/sysconf.c: Likewise.
25454         * posix/times.c: Likewise.
25455         * posix/wait.c: Likewise.
25456         * posix/wait3.c: Likewise.
25457         * posix/wait4.c: Likewise.
25458         * posix/waitpid.c: Likewise.
25459         * resolv/gai_sigqueue.c: Likewise.
25460         * resource/getpriority.c: Likewise.
25461         * resource/getrlimit.c: Likewise.
25462         * resource/getrusage.c: Likewise.
25463         * resource/nice.c: Likewise.
25464         * resource/setpriority.c: Likewise.
25465         * resource/setrlimit.c: Likewise.
25466         * resource/ulimit.c: Likewise.
25467         * rt/aio_cancel.c: Likewise.
25468         * rt/aio_fsync.c: Likewise.
25469         * rt/aio_read.c: Likewise.
25470         * rt/aio_sigqueue.c: Likewise.
25471         * rt/aio_suspend.c: Likewise.
25472         * rt/aio_write.c: Likewise.
25473         * rt/clock_getres.c: Likewise.
25474         * rt/clock_gettime.c: Likewise.
25475         * rt/clock_nanosleep.c: Likewise.
25476         * rt/clock_settime.c: Likewise.
25477         * rt/lio_listio.c: Likewise.
25478         * rt/mq_close.c: Likewise.
25479         * rt/mq_getattr.c: Likewise.
25480         * rt/mq_notify.c: Likewise.
25481         * rt/mq_open.c: Likewise.
25482         * rt/mq_receive.c: Likewise.
25483         * rt/mq_send.c: Likewise.
25484         * rt/mq_setattr.c: Likewise.
25485         * rt/mq_timedreceive.c: Likewise.
25486         * rt/mq_timedsend.c: Likewise.
25487         * rt/mq_unlink.c: Likewise.
25488         * rt/shm_open.c: Likewise.
25489         * rt/shm_unlink.c: Likewise.
25490         * rt/timer_create.c: Likewise.
25491         * rt/timer_delete.c: Likewise.
25492         * rt/timer_getoverr.c: Likewise.
25493         * rt/timer_gettime.c: Likewise.
25494         * rt/timer_settime.c: Likewise.
25495         * setjmp/__longjmp.c: Likewise.
25496         * setjmp/setjmp.c: Likewise.
25497         * signal/kill.c: Likewise.
25498         * signal/killpg.c: Likewise.
25499         * signal/raise.c: Likewise.
25500         * signal/sigaction.c: Likewise.
25501         * signal/sigaltstack.c: Likewise.
25502         * signal/sigblock.c: Likewise.
25503         * signal/sigignore.c: Likewise.
25504         * signal/sigintr.c: Likewise.
25505         * signal/signal.c: Likewise.
25506         * signal/sigpause.c: Likewise.
25507         * signal/sigpending.c: Likewise.
25508         * signal/sigqueue.c: Likewise.
25509         * signal/sigreturn.c: Likewise.
25510         * signal/sigset.c: Likewise.
25511         * signal/sigsetmask.c: Likewise.
25512         * signal/sigstack.c: Likewise.
25513         * signal/sigsuspend.c: Likewise.
25514         * signal/sigtimedwait.c: Likewise.
25515         * signal/sigvec.c: Likewise.
25516         * signal/sigwait.c: Likewise.
25517         * signal/sigwaitinfo.c: Likewise.
25518         * signal/sysv_signal.c: Likewise.
25519         * socket/accept.c: Likewise.
25520         * socket/accept4.c: Likewise.
25521         * socket/bind.c: Likewise.
25522         * socket/connect.c: Likewise.
25523         * socket/getpeername.c: Likewise.
25524         * socket/getsockname.c: Likewise.
25525         * socket/getsockopt.c: Likewise.
25526         * socket/isfdtype.c: Likewise.
25527         * socket/listen.c: Likewise.
25528         * socket/recv.c: Likewise.
25529         * socket/recvfrom.c: Likewise.
25530         * socket/recvmsg.c: Likewise.
25531         * socket/send.c: Likewise.
25532         * socket/sendmsg.c: Likewise.
25533         * socket/sendto.c: Likewise.
25534         * socket/setsockopt.c: Likewise.
25535         * socket/shutdown.c: Likewise.
25536         * socket/sockatmark.c: Likewise.
25537         * socket/socket.c: Likewise.
25538         * socket/socketpair.c: Likewise.
25539         * stdio-common/ctermid.c: Likewise.
25540         * stdio-common/cuserid.c: Likewise.
25541         * stdio-common/remove.c: Likewise.
25542         * stdio-common/rename.c: Likewise.
25543         * stdio-common/renameat.c: Likewise.
25544         * stdio-common/tempname.c: Likewise.
25545         * stdlib/getcontext.c: Likewise.
25546         * stdlib/makecontext.c: Likewise.
25547         * stdlib/setcontext.c: Likewise.
25548         * stdlib/swapcontext.c: Likewise.
25549         * stdlib/system.c: Likewise.
25550         * streams/fattach.c: Likewise.
25551         * streams/fdetach.c: Likewise.
25552         * streams/getmsg.c: Likewise.
25553         * streams/getpmsg.c: Likewise.
25554         * streams/putmsg.c: Likewise.
25555         * streams/putpmsg.c: Likewise.
25556         * sysdeps/unix/bsd/getpt.c: Likewise.
25557         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25558         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25559         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25561         Likewise.
25562         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25563         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25564         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25565         * sysvipc/msgctl.c: Likewise.
25566         * sysvipc/msgget.c: Likewise.
25567         * sysvipc/msgrcv.c: Likewise.
25568         * sysvipc/msgsnd.c: Likewise.
25569         * sysvipc/semctl.c: Likewise.
25570         * sysvipc/semget.c: Likewise.
25571         * sysvipc/semop.c: Likewise.
25572         * sysvipc/semtimedop.c: Likewise.
25573         * sysvipc/shmat.c: Likewise.
25574         * sysvipc/shmctl.c: Likewise.
25575         * sysvipc/shmdt.c: Likewise.
25576         * sysvipc/shmget.c: Likewise.
25577         * termios/tcdrain.c: Likewise.
25578         * termios/tcflow.c: Likewise.
25579         * termios/tcflush.c: Likewise.
25580         * termios/tcgetattr.c: Likewise.
25581         * termios/tcgetpgrp.c: Likewise.
25582         * termios/tcsendbrk.c: Likewise.
25583         * termios/tcsetattr.c: Likewise.
25584         * termios/tcsetpgrp.c: Likewise.
25585         * time/adjtime.c: Likewise.
25586         * time/clock.c: Likewise.
25587         * time/getitimer.c: Likewise.
25588         * time/gettimeofday.c: Likewise.
25589         * time/setitimer.c: Likewise.
25590         * time/settimeofday.c: Likewise.
25591         * time/stime.c: Likewise.
25592         * time/time.c: Likewise.
25593
25594 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25595
25596         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25597         /usr/old/bin.
25598
25599         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25600         instead of spaces.
25601         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25602
25603 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25604
25605         [BZ #14796]
25606         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25607         FE_TONEAREST before applying Dekker multiplication and Knuth
25608         addition.  Clear inexact exceptions and check for exact zero
25609         results afterwards.
25610         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25611         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25612         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25613         * math/libm-test.inc (fma_test): Add more tests.
25614         (fma_test_towardzero): Likewise.
25615         (fma_test_downward): Likewise.
25616         (fma_test_upward): Likewise.
25617         * sysdeps/generic/math_private.h (default_libc_fesetround): New
25618         function.
25619         (libc_fesetround): New macro.
25620         (libc_fesetroundf): Likewise.
25621         (libc_fesetroundl): Likewise.
25622         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
25623         function.
25624         (libc_fesetround_387): Likewise.
25625         (libc_fesetroundf): New macro.
25626         (libc_fesetround): Likewise.
25627         (libc_fesetroundl): Likewise.
25628         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
25629         function.
25630         (libc_fesetroundf): New macro.
25631         (libc_fesetround): Likewise.
25632         (libc_fesetroundl): Likewise.
25633         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
25634         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
25635         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
25636         libm_hidden_ver.
25637         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
25638         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
25639         libm_hidden_def.
25640         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
25641         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
25642         libm_hidden_ver.
25643         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
25644         libm_hidden_def.
25645
25646         [BZ #3439]
25647         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
25648         integer constant usable in #if and use that to give value to enum
25649         constant.
25650         (FE_DIVBYZERO): Likewise.
25651         (FE_UNDERFLOW): Likewise.
25652         (FE_OVERFLOW): Likewise.
25653         (FE_INVALID): Likewise.
25654         (FE_INVALID_SNAN): Likewise.
25655         (FE_INVALID_ISI): Likewise.
25656         (FE_INVALID_IDI): Likewise.
25657         (FE_INVALID_ZDZ): Likewise.
25658         (FE_INVALID_IMZ): Likewise.
25659         (FE_INVALID_COMPARE): Likewise.
25660         (FE_INVALID_SOFTWARE): Likewise.
25661         (FE_INVALID_SQRT): Likewise.
25662         (FE_INVALID_INTEGER_CONVERSION): Likewise.
25663         (FE_TONEAREST): Likewise.
25664         (FE_TOWARDZERO): Likewise.
25665         (FE_UPWARD): Likewise.
25666         (FE_DOWNWARD): Likewise.
25667         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
25668         (FE_DIVBYZERO): Likewise.
25669         (FE_OVERFLOW): Likewise.
25670         (FE_UNDERFLOW): Likewise.
25671         (FE_INEXACT): Likewise.
25672         (FE_TONEAREST): Likewise.
25673         (FE_DOWNWARD): Likewise.
25674         (FE_UPWARD): Likewise.
25675         (FE_TOWARDZERO): Likewise.
25676         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
25677         (FE_UNDERFLOW): Likewise.
25678         (FE_OVERFLOW): Likewise.
25679         (FE_DIVBYZERO): Likewise.
25680         (FE_INVALID): Likewise.
25681         (FE_TONEAREST): Likewise.
25682         (FE_TOWARDZERO): Likewise.
25683         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
25684         (FE_OVERFLOW): Likewise.
25685         (FE_UNDERFLOW): Likewise.
25686         (FE_DIVBYZERO): Likewise.
25687         (FE_INEXACT): Likewise.
25688         (FE_TONEAREST): Likewise.
25689         (FE_TOWARDZERO): Likewise.
25690         (FE_UPWARD): Likewise.
25691         (FE_DOWNWARD): Likewise.
25692         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
25693         (FE_DIVBYZERO): Likewise.
25694         (FE_OVERFLOW): Likewise.
25695         (FE_UNDERFLOW): Likewise.
25696         (FE_INEXACT): Likewise.
25697         (FE_TONEAREST): Likewise.
25698         (FE_DOWNWARD): Likewise.
25699         (FE_UPWARD): Likewise.
25700         (FE_TOWARDZERO): Likewise.
25701
25702 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
25703
25704         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
25705
25706 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
25707
25708         * scripts/cross-test-ssh.sh (command): Use newlines to separate
25709         commands.  Quote $PWD.
25710         (blacklist_exports): Don't use remove_newlines.  Replace "declare
25711         -x" by "export".
25712         (remove_newlines): Remove.
25713
25714 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
25715
25716         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
25717         * stdlib/stdlib.h (atof): Moved to ...
25718         * include/bits/stdlib-float.h: Here.  New file.
25719         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
25720         * stdlib/bits/stdlib-float.h: New file.
25721         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
25722         -mno-sse -mno-mmx.
25723         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
25724         <xmmintrin.h>.
25725
25726 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25727
25728         * conform/conformtest.pl (@headers): Add fenv.h.
25729         * conform/data/fenv.h-data: New file.
25730         * include/fenv.h [_ISOMAC]: Disable all contents of file except
25731         include of <math/fenv.h>.
25732
25733         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
25734         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
25735         && !UNIX98].  Enables tests for XOPEN2K8.
25736         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
25737         POSIX2008]: Likewise.
25738
25739         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
25740         (struct rusage): Do not expect type or its members.
25741
25742         [BZ #3439]
25743         * math/math.h (FP_NAN): Define macro to integer constant usable in
25744         #if and use that to give value to enum constant.
25745         (FP_INFINITE): Likewise.
25746         (FP_ZERO): Likewise.
25747         (FP_SUBNORMAL): Likewise.
25748         (FP_NORMAL): Likewise.
25749
25750 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
25751
25752         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
25753         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
25754         arguments.
25755
25756 2012-11-02  Roland McGrath  <roland@hack.frob.com>
25757
25758         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
25759         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
25760         autoconf-time if not.
25761         * configure.in: Remove AC_PREREQ.
25762
25763 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25764
25765         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
25766         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
25767         of the internal implementation.
25768
25769 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25770
25771         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
25772         except include of <misc/sys/syslog.h>.
25773
25774 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25775
25776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
25777         function returns with a NULL context exit with zero.
25778
25779 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25780
25781         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
25782
25783 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25784
25785         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
25786         (run_program_cmd): This.
25787         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
25788         (tst_langinfo): New variable.  Use it.
25789
25790 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
25791
25792         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
25793         floating point opcodes.
25794
25795 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25796
25797         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
25798         variable.
25799
25800         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
25801
25802         * sysdeps/mach/hurd/powerpc: Remove directory.
25803         * sysdeps/mach/powerpc: Likewise.
25804
25805 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25806
25807         * scripts/check-local-headers.sh: Ignore c++ headers.
25808
25809 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25810
25811         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
25812         __libc_cleanup_region_start argument.
25813
25814 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
25815
25816         [BZ #14784]
25817         [BZ #14785]
25818         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
25819         x * y using scaling, not as x * y + z.
25820         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25821         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25822         * math/libm-test.inc (fma_test): Add more tests.
25823         (fma_test_towardzero): Likewise.
25824         (fma_test_downward): Likewise.
25825         (fma_test_upward): Likewise.
25826
25827 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25828
25829         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
25830
25831 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25832
25833         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
25834         New variable.
25835
25836 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
25837
25838         * rt/tst-shm.c (worker): Correct checking for mmap failure.
25839
25840 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25841
25842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25843         Fix sort order.
25844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25845         Likewise.
25846
25847 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25848
25849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25850         Fix the order of the list for glibc 2.17.
25851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25852         Likewise.
25853
25854 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25855
25856         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25857
25858 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25859
25860         [BZ #14610]
25861         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
25862         for low part of x being zero before using __atanl (y).
25863         * math/libm-test.inc (atan2_test): Add another test.
25864
25865         * manual/install.texi (Configuring and compiling): Document
25866         general use of test-wrapper and test-wrapper-env.
25867         * INSTALL: Regenerated.
25868
25869         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
25870         (__fma): Do not extract and scale down low bits on after-rounding
25871         systems when result rounded to normal precision would have normal
25872         exponent.
25873         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
25874         (__fmal): Do not extract and scale down low bits on after-rounding
25875         systems when result rounded to normal precision would have normal
25876         exponent.
25877         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
25878         (__fmal): Do not extract and scale down low bits on after-rounding
25879         systems when result rounded to normal precision would have normal
25880         exponent.
25881         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
25882         macro.
25883         (fma_test): Add more tests.
25884         (fma_test_towardzero): Likewise.
25885         (fma_test_downward): Likewise.
25886         (fma_test_upward): Likewise.
25887
25888 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25889
25890         * sysdeps/i386/tininess.h: Renamed to ...
25891         * sysdeps/x86/tininess.h: This.
25892         * sysdeps/x86_64/tininess.h: Removed.
25893
25894 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25895
25896         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
25897         input.  Use $(build-program-cmd).
25898         ($(objpfx)tst-array1-static.out): Likewise.
25899         ($(objpfx)tst-array2.out): Likewise.
25900         ($(objpfx)tst-array3.out): Likewise.
25901         ($(objpfx)tst-array4.out): Likewise.
25902         ($(objpfx)tst-array5.out): Likewise.
25903         ($(objpfx)tst-array5-static.out): Likewise.
25904
25905 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
25906
25907         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
25908         if defined.
25909
25910         * nss/nsswitch.h (nss_interface_function): Provide new
25911         macro for use with NSS functions.
25912         * grp/initgroups.c: Use new macro.
25913         * nss/getXXbyYY.c: Likewise.
25914         * nss/getXXbyYY_r.c: Likewise.
25915         * nss/getXXent.c: Likewise.
25916         * nss/getXXent_r.c: Likewise.
25917         * sysdeps/posix/getaddrinfo.c: Likewise.
25918
25919 2012-10-30  Andreas Jaeger  <aj@suse.de>
25920
25921         * po/ru.po: Update Russion translation from translation project.
25922
25923 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25924
25925         [BZ #14152]
25926         [BZ #14783]
25927         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
25928         result and shift together with sticky bit instead of replicating
25929         round-to-nearest rounding.
25930         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25931         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25932         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
25933         missing underflow exceptions.
25934         (fma_test_towardzero): Add more tests.
25935         (fma_test_downward): Likewise.
25936         (fma_test_upward): Likewise.
25937
25938         [BZ #14047]
25939         * sysdeps/generic/tininess.h: New file.
25940         * sysdeps/i386/tininess.h: Likewise.
25941         * sysdeps/sh/tininess.h: Likewise.
25942         * sysdeps/x86_64/tininess.h: Likewise.
25943         * stdlib/tst-strtod-underflow.c: Likewise.
25944         * stdlib/tst-tininess.c: Likewise.
25945         * stdlib/strtod_l.c: Include <tininess.h>.
25946         (round_and_return): Do not set errno for exact underflow cases.
25947         Force an underflow exception when setting errno for underflow.
25948         Determine underflow based on rounding to normal precision if
25949         TININESS_AFTER_ROUNDING.
25950         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
25951         ERANGE for exact underflow cases.
25952         * stdlib/Makefile (tests): Add tst-tininess and
25953         tst-strtod-underflow.
25954         ($(objpfx)tst-tininess): Use $(link-libm).
25955         ($(objpfx)tst-strtod-underflow): Likewise.
25956
25957 2012-10-30  Andreas Jaeger  <aj@suse.de>
25958
25959         [BZ#14767]
25960         * elf/Makefile (tests): Remove conditional for have-initfini-array
25961         since this is now always required and the variable does not exist
25962         anymore.
25963         (tests-static): Likewise.
25964         (modules-names): Likewise.
25965
25966         * po/eo.po: Add Esperanto translation from translation project.
25967
25968         * elf/tst-array1.c (fini_array): Make writeable so that it can be
25969         merged with constructor/destructor.
25970         (init_array): Likewise.
25971         * elf/tst-array2dep.c (fini_array): Likewise.
25972         (init_array): Likewise.
25973
25974 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
25975
25976         * manual/message.texi: Delete @cartouche tags.
25977
25978 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
25979
25980         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
25981         EOPNOTSUPP.
25982         * sysdeps/mach/hurd/fsync.c: Likewise.
25983
25984         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
25985         [_POSIX_REALTIME_SIGNALS]: Change condition to
25986         [_POSIX_REALTIME_SIGNALS > 0].
25987
25988 2012-10-27  Andreas Jaeger  <aj@suse.de>
25989
25990         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
25991         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
25992         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
25993         [__WORDSIZE != 64]: Likewise.
25994
25995 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
25996
25997         *  iconvdata/tst-table.sh: Remove ${SHELL}.
25998         *  iconvdata/tst-tables.sh: Likewise.
25999
26000 2012-10-25  David S. Miller  <davem@davemloft.net>
26001
26002         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26003         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26004         of strtoull.
26005
26006         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26007         ifunc-impl-list.c
26008         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26009         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26010         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26011         file.
26012
26013 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26014
26015         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26016         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26017         __getdirentries.
26018
26019 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26020             Jim Blandy  <jimb@codesourcery.com>
26021
26022         * scripts/cross-test-ssh.sh: New file.
26023         * manual/install.texi (Configuring and compiling): Document use of
26024         cross-test-ssh.sh.
26025         * INSTALL: Regenerated.
26026
26027 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26028
26029         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26030         EOPNOTSUPP.
26031
26032 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26033
26034         * Makeconfig (run-program-prefix): Fix comment.
26035
26036 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26037             Jim Blandy  <jimb@codesourcery.com>
26038
26039         * Makeconfig (test-wrapper): New variable,
26040         (test-wrapper-env): Likewise.
26041         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26042         (run-built-tests): Define to yes.
26043         (run-program-prefix): Use $(test-wrapper).
26044         (built-program-cmd): Likewise.
26045         * Rules (make-test-out): Use $(test-wrapper-env) and
26046         $(host-built-program-cmd).
26047         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26048         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26049         tst-pathopt.sh.
26050         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26051         $(test-wrapper-env) to tst-rtld-load-self.sh.
26052         ($(objpfx)order2.out): Use $(test-wrapper).
26053         ($(objpfx)tst-initorder.out): Likewise.
26054         ($(objpfx)tst-initorder2.out): Likewise.
26055         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26056         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26057         (test_wrapper_env): New variable.  Use it to run ld.so.
26058         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26059         Use it to run ld.so.
26060         (test_wrapper_env): Likewise.
26061         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26062         $(test-wrapper) to run-iconv-test.sh.
26063         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26064         (ICONV): Use $test_wrapper.
26065         * posix/Makefile ($(objpfx)globtest.out): Pass
26066         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26067         globtest.sh, not $(run-program-prefix).
26068         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26069         (test_wrapper): Likewise.
26070         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26071         set together with run_via_rtld_prefix.
26072         (run_program_prefix): Define in terms of test_wrapper and
26073         run_via_rtld_prefix.
26074
26075 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26076
26077         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26078         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26079         Targets removed.
26080
26081         [BZ #14743]
26082         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26083         Declare __clock_getres, __clock_gettime, __clock_settime,
26084         __clock_nanosleep, and __clock_getcpuclockid.
26085         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26086         Remove librt_hidden_def (clock_gettime).
26087         * sysdeps/unix/clock_gettime.c: Likewise.
26088         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26089         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26090         * rt/clock_getres.c: Define __clock_getres as an alias.
26091         * sysdeps/posix/clock_getres.c: Likewise.
26092         * rt/clock_settime.c: Define __clock_settime as an alias.
26093         * sysdeps/unix/clock_settime.c: Likewise.
26094         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26095         * sysdeps/unix/clock_nanosleep.c: Likewise.
26096         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26097         * rt/clock-compat.c: New file.
26098         * rt/Makefile (librt-routines): Add clock-compat and move
26099         $(clock-routines) to ...
26100         (routines): ... here, new variable.
26101         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26102         Don't add get_clockfreq here.
26103         * rt/Versions (libc: GLIBC_2.17): New version set.
26104         Add clock_* symbols here.
26105         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26106         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26107         (GLIBC_2.17): Add clock_* symbols.
26108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26109         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26110         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26112         Likewise.
26113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26114         Likewise.
26115         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26116         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26117         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26119         * NEWS: Mention the move.
26120
26121         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26122         Use __open, __read, __close rather than their public counterparts.
26123         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26124         (__get_clockfreq_via_cpuinfo): Likewise.
26125         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26126         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26127
26128         * config.h.in (HAVE_IFUNC): New #undef.
26129         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26130         was successful.
26131         * configure: Regenerated.
26132
26133 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26134
26135         * configure.in: Move READELF check to start of file.
26136         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26137         libc_cv_asm_gnu_indirect_function in the process.
26138         * configure: Regenerated.
26139
26140 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26141
26142         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26143         send the output to /dev/null.
26144         (libc_cv_cc_with_libunwind): Likewise.
26145         (libc_cv_as_noexecstack): Likewise.
26146         * configure: Regenerate.
26147
26148 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26149
26150         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26151
26152         * posix/globtest.sh (TMPDIR): Do not set.
26153         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26154         (testout): Likewise.
26155
26156 2012-10-24  Andreas Jaeger  <aj@suse.de>
26157
26158         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26159         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26160         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26161         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26162         posix_fadvise64, posix_fallocate64.
26163
26164         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26165         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26166         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26167         Likewise.
26168         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26169         Likewise.
26170         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26171
26172         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26173         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26174         <bits/fcntl-linux.h>.
26175         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26176
26177         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26178         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26179         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26180         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26181         [__WORDSIZE != 64]: Likewise.
26182
26183 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26184
26185         * Makeconfig (run-built-tests): New variable.
26186         * Rules [$(cross-compiling) = yes]: Change condition to
26187         [$(run-built-tests) = no].
26188         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26189         to [$(run-built-tests) = yes].
26190         * elf/Makefile [$(cross-compiling) = no]: Likewise
26191         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26192         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26193         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26194         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26195         * io/Makefile [$(cross-compiling) = no]: Likewise.
26196         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26197         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26198         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26199         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26200         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26201         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26202         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26203         * string/Makefile [$(cross-compiling) = no]: Likewise.
26204
26205         * posix/Makefile ($(objpfx)globtest.out): Pass
26206         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26207         $(rtld-installed-name).
26208         * posix/globtest.sh (elf_objpfx): Remove variable.
26209         (rtld_installed_name): Likewise.
26210         (library_path): Likewise.
26211         (run_program_prefix): New variable.  Use for running globtest
26212         binary.
26213
26214 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26215             Joseph Myers  <joseph@codesourcery.com>
26216
26217         * Makeconfig (host-built-program-cmd): New variable.
26218         * elf/Makefile (tst-stackguard1-ARGS): Use
26219         $(host-built-program-cmd).
26220         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26221         (tst-spawn-ARGS): Likewise.
26222         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26223
26224 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26225             Jim Blandy  <jimb@codesourcery.com>
26226
26227         * Makeconfig (run-via-rtld-prefix): New variable.
26228         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26229         (built-program-cmd): Likewise.
26230
26231 2012-10-22  Andreas Jaeger  <aj@suse.de>
26232
26233         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26234         __O_RSYNC if it exists, otherwise to O_SYNC.
26235
26236 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26237             Joseph Myers  <joseph@codesourcery.com>
26238
26239         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26240         /dev/null.
26241         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26242         from /dev/null
26243         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26244         /dev/null.
26245
26246 2012-10-22  Andreas Jaeger  <aj@suse.de>
26247
26248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26249         Define always.
26250         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26251
26252         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26253         bits/fcntl-linux.h.
26254
26255         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26256         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26257
26258         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26259         to __O_LARGEFILE.
26260         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26261         to __O_LARGEFILE.
26262
26263 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26264             Joseph Myers  <joseph@codesourcery.com>
26265
26266         * config.make.in (NM): New variable.
26267
26268 2012-10-21  Andreas Jaeger  <aj@suse.de>
26269
26270         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26271         definitions and declarations that are provided by
26272         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26273
26274 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26275
26276         [BZ #14683]
26277         * elf/Makefile (tests-static): Add tst-leaks1-static.
26278         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26279         ($(objpfx)tst-leaks1-static): New rule.
26280         ($(objpfx)tst-leaks1-static-mem): Likewise.
26281         (tst-leaks1-static-ENV): New macro.
26282         * elf/dl-open.c (dl_open_worker): Check the main application
26283         only if SHARED is defined.
26284         * elf/tst-leaks1-static.c: New file.
26285
26286 2012-10-20  Andreas Jaeger  <aj@suse.de>
26287
26288         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26289         generic values for Linux.
26290         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26291         and declarations that are provided by <bits/fcntl-linux.h> and
26292         include <bits/fcntl-linux.h>.
26293         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26294         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26295
26296 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26297
26298         * io/fcntl.h: Move include of <bits/types.h> to the top and
26299         include it unconditionally.
26300
26301 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26302
26303         * wcsmbs/Makefile (tests-ifunc): New variable.
26304         (tests): Add $(tests-ifunc).
26305         * wcsmbs/test-wcschr-ifunc.c: New file.
26306         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26307         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26308         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26309         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26310         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26311
26312         * string/Makefile (tests-ifunc): New variable.
26313         (tests): Add $(tests-ifunc).
26314         * string/test-memccpy.c (TEST_NAME): New macro.
26315         * string/test-memchr.c (TEST_NAME): Likewise.
26316         * string/test-memcmp.c (TEST_NAME): Likewise.
26317         * string/test-memcpy.c (TEST_NAME): Likewise.
26318         * string/test-memmem.c (TEST_NAME): Likewise.
26319         * string/test-memmove.c (TEST_NAME): Likewise.
26320         * string/test-memset.c (TEST_NAME): Likewise.
26321         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26322         * string/test-stpcpy.c (TEST_NAME): Likewise.
26323         * string/test-stpncpy.c (TEST_NAME): Likewise.
26324         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26325         * string/test-strcasestr.c (TEST_NAME): Likewise.
26326         * string/test-strcat.c (TEST_NAME): Likewise.
26327         * string/test-strchr.c (TEST_NAME): Likewise.
26328         * string/test-strcmp.c(TEST_NAME): Likewise.
26329         * string/test-strcpy.c (TEST_NAME): Likewise.
26330         * string/test-strcspn.c (TEST_NAME): Likewise.
26331         * string/test-strlen.c (TEST_NAME): Likewise.
26332         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26333         * string/test-strncmp.c (TEST_NAME): Likewise.
26334         * string/test-strncpy.c (TEST_NAME): Likewise.
26335         * string/test-strnlen.c (TEST_NAME): Likewise.
26336         * string/test-strpbrk.c (TEST_NAME): Likewise.
26337         * string/test-strrchr.c (TEST_NAME): Likewise.
26338         * string/test-strspn.c (TEST_NAME): Likewise.
26339         * string/test-strstr.c (TEST_NAME): Likewise.
26340         * string/test-bcopy-ifunc.c: New file.
26341         * string/test-bzero-ifunc.c: Likewise.
26342         * string/test-memccpy-ifunc.c: Likewise.
26343         * string/test-memchr-ifunc.c: Likewise.
26344         * string/test-memcmp-ifunc.c: Likewise.
26345         * string/test-memcpy-ifunc.c: Likewise.
26346         * string/test-memmem-ifunc.c: Likewise.
26347         * string/test-memmove-ifunc.c: Likewise.
26348         * string/test-mempcpy-ifunc.c: Likewise.
26349         * string/test-memset-ifunc.c: Likewise.
26350         * string/test-rawmemchr-ifunc.c: Likewise.
26351         * string/test-stpcpy-ifunc.c: Likewise.
26352         * string/test-stpncpy-ifunc.c: Likewise.
26353         * string/test-strcasecmp-ifunc.c: Likewise.
26354         * string/test-strcasestr-ifunc.c: Likewise.
26355         * string/test-strcat-ifunc.c: Likewise.
26356         * string/test-strchr-ifunc.c: Likewise.
26357         * string/test-strchrnul-ifunc.c: Likewise.
26358         * string/test-strcmp-ifunc.c: Likewise.
26359         * string/test-strcpy-ifunc.c: Likewise.
26360         * string/test-strcspn-ifunc.c: Likewise.
26361         * string/test-strlen-ifunc.c: Likewise.
26362         * string/test-strncasecmp-ifunc.c: Likewise.
26363         * string/test-strncat-ifunc.c: Likewise.
26364         * string/test-strncmp-ifunc.c: Likewise.
26365         * string/test-strncpy-ifunc.c: Likewise.
26366         * string/test-strnlen-ifunc.c: Likewise.
26367         * string/test-strpbrk-ifunc.c: Likewise.
26368         * string/test-strrchr-ifunc.c: Likewise.
26369         * string/test-strspn-ifunc.c: Likewise.
26370         * string/test-strstr-ifunc.c: Likewise.
26371
26372         * debug/Makefile (tests-ifunc): New variable.
26373         (tests): Add $(tests-ifunc).
26374         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26375         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26376         * debug/test-stpcpy_chk-ifunc.c: New file.
26377         * debug/test-strcpy_chk-ifunc.c: Likewise.
26378
26379 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26380
26381         [BZ #13601]
26382         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26383         header is not read in.
26384
26385 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26386
26387         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26388         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26389         directly.  Pass built executable to script as
26390         $(built-program-cmd).
26391         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26392         $testprogram without using LD_LIBRARY_PATH and $ldso.
26393
26394         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26395         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26396         $(rtld-installed-name).
26397         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26398         (rtld_installed_name): Likewise.
26399         (library_path): Likewise.
26400         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26401         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26402         $(run-program-prefix) to tst-tables.sh.
26403         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26404         it to run tst-table-from and tst-table-to.
26405         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26406         Pass it to tst-table.sh.
26407         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26408         $(run-program-prefix) to tst-gettext.sh.
26409         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26410         tst-translit.sh.
26411         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26412         tst-gettext2.sh.
26413         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26414         to run tst-gettext.
26415         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26416         to run tst-gettext2.
26417         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26418         to run tst-translit.
26419         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26420         $(run-program-prefix) to tst-mtrace.sh.
26421         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26422         to run tst-mtrace.
26423         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26424         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26425         $(rtld-installed-name).
26426         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26427         (rtld_installed_name): Likewise.
26428         (run_program_prefix): New variable.  Use it to run wordexp-test.
26429
26430         * Makeconfig (ARCH): Remove all definitions.
26431         (machine): Likewise.
26432         [ARCH]: Remove conditional code.
26433         [!objdir]: Give error.
26434         [!objdir] (objpfx): Remove.
26435         [!objdir] (common-objpfx): Likewise.
26436         [!objdir] (common-objdir): Likewise.
26437         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26438         AC_CONFIG_FILES call.
26439         * configure: Regenerated.
26440
26441         [BZ #13888]
26442         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26443         or TMPDIR.
26444         (testout): Likewise.
26445
26446         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26447         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26448         $(rtld-installed-name).
26449         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26450         (rtld_installed_name): Likwise.
26451         (runit): Remove function.
26452         (run_getconf): New variable,  Use it for running getconf binary.
26453
26454 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26455
26456         [BZ #14716]
26457         * string/test-memmem.c (check_result): New function.
26458         (do_one_test): Use it.
26459         (check1): New function.
26460         (test_main): Use it.
26461
26462 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26463
26464         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26465
26466 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26467
26468         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26469         (_G_LSEEK64): Likewise.
26470         (_G_MMAP64): Likewise.
26471         (_G_FSTAT64): Likewise.
26472         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26473         (_G_LSEEK64): Likewise.
26474         (_G_MMAP64): Likewise.
26475         (_G_FSTAT64): Likewise.
26476         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26477         unconditional.  Call __mmap64 directly.
26478         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26479         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26480         __lseek64 directly.
26481         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26482         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26483         __mmap64 directly.
26484         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26485         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26486         __lseek64 directly.
26487         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26488         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26489         __lseek64 directly.
26490         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26491         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26492         __lseek64 directly.
26493         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26494         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26495         __fxstat64 directly.
26496         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26497         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26498         unconditional.
26499         (freopen64) [!_G_OPEN64]: Remove conditional code.
26500         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26501         unconditional.
26502         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26503         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26504         unconditional.
26505         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26506         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26507         unconditional.
26508         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26509         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26510         unconditional.
26511         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26512         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26513         unconditional.
26514         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26515         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26516         unconditional.
26517         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26518         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26519         unconditional.
26520         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26521
26522 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26523
26524         [BZ #12140]
26525         * manual/memory.texi (Malloc Tunable Parameters): Add note
26526         about free list pointers overwriting some perturb bytes.
26527         Wording suggested by Roland McGrath.
26528
26529 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26530
26531         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26532         (lgamma_test): Likewise.
26533         (tgamma_test): Likewise.
26534
26535 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26536
26537         [BZ #14700]
26538         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26539         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26540
26541 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26542
26543         * NEWS: Mention BZ #14716.
26544         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26545         when removing AVAILABLE1_USES_J macro.
26546
26547 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26548
26549         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26550         (__bswap_64): __uint64_t for unsigned 64-bit int.
26551
26552 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26553
26554         * include/string.h (memmem): Declare libc hidden alias.
26555         * string/memmem.c (memmem): Define libc hidden alias.
26556         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26557         __read, __close instead of open, read, close.
26558
26559 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26560
26561         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26562         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26563         global and hidden.
26564         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26565         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26566         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26567         Likewise.
26568         (__rawmemchr_sse2): Likewise.
26569         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26570         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26571         (__strchr_sse2): Likewise.
26572         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26573         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26574         (__strcasecmp_sse2): Likewise.
26575         (__strncasecmp_sse2): Likewise.
26576         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26577         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26578         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26579         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26580         (__strrchr_sse2): Likewise.
26581         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26582         ifunc-impl-list.c.
26583         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26584         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26585         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26586         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26587         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26588         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26589         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26590         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26591         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26592         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26593         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26594         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26595         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26596         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26597         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26598         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26599         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26600         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26601         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26602         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26603         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26604         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26605         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26606         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26607         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
26608         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26609         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26610         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26611         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26612         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26613
26614         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
26615         global and hidden.
26616         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
26617         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
26618         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
26619         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
26620         Likewise.
26621         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
26622         Likewise.
26623         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
26624         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
26625         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
26626         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
26627         ifunc-impl-list.c.
26628         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26629         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26630         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26631         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26632         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26633         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26634         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26635         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26636         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26637         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26638         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26639         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26640         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26641         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
26642         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
26643         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26644         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
26645         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
26646         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26647         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26648         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26649         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26650         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26651         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26652         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26653         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
26654         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
26655         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
26656         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
26657         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26658         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
26659         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26660         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26661         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
26662         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26663         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26664         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26665         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26666         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26667         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26668         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
26669
26670         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
26671         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
26672         * include/ifunc-impl-list.h: New file.
26673         * misc/ifunc-impl-list.c: Likewise.
26674         * misc/Makefile (routines): Add ifunc-impl-list.
26675         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
26676         * string/test-string.h: Include <ifunc-impl-list.h>.
26677         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
26678         TEST_NAME]: New variables.
26679         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
26680         are defined.
26681         (test_init): Call __libc_ifunc_impl_list to initialize
26682         func_list if TEST_IFUNC and TEST_NAME are defined.
26683
26684         * string/Makefile (strop-tests): Add bcopy and bzero.
26685         * string/test-bcopy.c: New file.
26686         * string/test-bzero.c: Likewise.
26687         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
26688         defined.
26689         * string/test-memset.c: Support bzero test if TEST_BZERO is
26690         defined.
26691         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
26692         __libc_memmove.
26693         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
26694         __libc_memset.
26695         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
26696         of memset.
26697
26698 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
26699
26700         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
26701         * configure: Regenerated.
26702
26703         * Makeconfig (+link-static-before-libc): Don't include
26704         $(link-static-libc).
26705
26706         * libio/libio.h (_IO_pos_t): Remove.
26707
26708 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26709
26710         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
26711         McGrath.
26712
26713 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26714
26715         * crypt/crypt-entry.c: Include fips-private.h.
26716         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
26717         * crypt/md5c-test.c (main): Tolerate disabled MD5.
26718         * sysdeps/unix/sysv/linux/fips-private.h: New file.
26719         * sysdeps/generic/fips-private.h: New file, dummy fallback.
26720
26721 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26722
26723         * crypt/crypt-private.h: Include stdbool.h.
26724         (_ufc_setup_salt_r): Return bool.
26725         * crypt/crypt-entry.c: Include errno.h.
26726         (__crypt_r): Return NULL with EINVAL for bad salt.
26727         * crypt/crypt_util.c (bad_for_salt): New.
26728         (_ufc_setup_salt_r): Check that salt is long enough and within
26729         the specified alphabet.
26730         * crypt/badsalttest.c: New file.
26731         * crypt/Makefile (tests): Add it.
26732         ($(objpfx)badsalttest): New.
26733
26734 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
26735
26736         * NEWS: Add entry for BZ #14602.
26737
26738 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26739
26740         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
26741         type-generic.
26742         * math/libm-test.inc: Update comment listing what functions and
26743         macros are tested.
26744         (isgreater_test): New function.
26745         (isgreaterequal_test): Likewise.
26746         (isless_test): Likewise.
26747         (islessequal_test): Likewise.
26748         (islessgreater_test): Likewise.
26749         (isunordered_test): Likewise.
26750         (main): Call the new functions.
26751
26752 2012-10-09  Roland McGrath  <roland@hack.frob.com>
26753
26754         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
26755         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
26756         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
26757         * sysdeps/i386/configure: Regenerated.
26758         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
26759         * sysdeps/mach/configure: Regenerated.
26760         * sysdeps/mach/hurd/configure: Regenerated.
26761         * sysdeps/powerpc/configure: Regenerated.
26762         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26763         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26764         * sysdeps/s390/s390-32/configure: Regenerated.
26765         * sysdeps/s390/s390-64/configure: Regenerated.
26766         * sysdeps/sh/configure: Regenerated.
26767         * sysdeps/sparc/configure: Regenerated.
26768         * sysdeps/unix/sysv/linux/configure: Regenerated.
26769         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
26770         * sysdeps/x86_64/configure: Regenerated.
26771
26772         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
26773         defined.  Don't check if MAP is NULL.
26774
26775 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26776
26777         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
26778         (_G_stat64): Likewise.
26779         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
26780         (_G_stat64): Likewise.
26781         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
26782         instead of struct _G_stat64.
26783         * libio/fileops.c (mmap_remap_check): Likewise.
26784         (decide_maybe_mmap): Likewise.
26785         (_IO_new_file_seekoff): Likewise.
26786         (_IO_file_stat): Likewise.
26787         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
26788         _G_off64_t.
26789         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
26790         instead of struct _G_stat64.
26791         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26792
26793 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26794
26795         [BZ #14602]
26796         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26797         Replace with ...
26798         (CHECK_EOL): New macro.
26799         (two_way_short_needle): Check beginning of haystack for EOL.  Use
26800         CHECK_EOL.
26801         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26802         Replace with CHECK_EOL.
26803         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26804         Replace with CHECK_EOL.
26805
26806 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
26807
26808         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
26809         type-generic.
26810         * math/libm-test.inc: Update comment listing what functions and
26811         macros are tested.
26812         (finite_test): New function.
26813         (isinf_test): Likewise.
26814         (isnan_test): Likewise.
26815         (fpclassify_test): Test subnormal input.
26816         (isfinite_test): Likewise.
26817         (isnormal_test): Likewise.
26818         (main): Call the new functions.
26819
26820 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
26821
26822         [BZ #14660]
26823         * Makerules (%.dynsym): Force C locale when running
26824         $(OBJDUMP) --dynamic-syms.
26825
26826 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
26827
26828         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
26829         <stdint.h>.
26830
26831 2012-10-06  David S. Miller  <davem@davemloft.net>
26832
26833         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
26834         upper 32-bits of the length value in %o2 since we use branch-on-register
26835         tests which consider the entire 64-bit register.
26836
26837 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
26838
26839         * string/test-strstr.c (check2): Add a test for page boundary.
26840
26841 2012-10-05  David S. Miller  <davem@davemloft.net>
26842
26843         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
26844         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
26845         file.
26846         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26847         sysdep_routines.
26848         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26849         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
26850         and bzero when HWCAP_SPARC_CRYPTO is present.
26851
26852 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
26853
26854         [BZ #14602]
26855         * string/test-strstr.c (check2): New function.
26856         (test_main): Call check2.
26857
26858         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
26859         and bug-strchr1.
26860         * string/bug-strcasestr1.c (do_test): Moved to ...
26861         * string/test-strcasestr.c (check1): Here.  New function.
26862         (do_one_test): Break out result checking code into ...
26863         (check_result): This.  New function.
26864         (do_one_test): Call check_result.
26865         (test_main): Call check1.
26866         * string/bug-strchr1.c (do_test): Moved to ...
26867         * string/test-strchr.c (check1): Here.  New function.
26868         (do_one_test): Break out result checking code into ...
26869         (check_result): This.  New function.
26870         (do_one_test): Call check_result.
26871         (test_main): Call check1.
26872         * string/bug-strstr1.c (main): Moved to ...
26873         * string/test-strstr.c (check1): Here.  New function.
26874         (do_one_test): Break out result checking code into ...
26875         (check_result): This.  New function.
26876         (do_one_test): Call check_result.
26877         (test_main): Call check1.
26878         * string/bug-strcasestr1.c: Removed.
26879         * string/bug-strchr1.c: Likewise.
26880         * string/bug-strstr1.c: Likewise.
26881
26882         * elf/Makefile (dl-routines): Add hwcaps.
26883         * elf/dl-support.c (_dl_important_hwcaps): Removed.
26884         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
26885         (_dl_important_hwcaps): Moved to ...
26886         * elf/dl-hwcaps.c: Here.  New file.
26887         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
26888
26889         [BZ #14557]
26890         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
26891         if IS_IN_rtld isn't defined.
26892
26893         * elf/dl-support.c (_dl_sysinfo_map): New.
26894         Include "get-dynamic-info.h" and "setup-vdso.h".
26895         (_dl_non_dynamic_init): Call setup_vdso.
26896         * elf/dynamic-link.h: Don't include <assert.h>.
26897         (elf_get_dynamic_info): Moved to ...
26898         * elf/get-dynamic-info.h: Here.  New file.
26899         * elf/dynamic-link.h: Include "get-dynamic-info.h".
26900         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
26901         * elf/setup-vdso.h: Here.  New file.
26902         * elf/rtld.c: Include "setup-vdso.h".
26903         (dl_main): Call setup_vdso.
26904
26905 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
26906
26907         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
26908         creal in comment listing functions tested.  List finite, isinf,
26909         isnan, isless, islessequal, isgreater, isgreaterequal,
26910         islessgreater, isunordered, lgamma_r and pow10 as functions and
26911         macros not tested.  Mention which functions not tested are aliases
26912         for other functions.  Fix typo.  Note that signs of NaNs are not
26913         tested.
26914
26915         * scripts/config.guess: Update from config.git.
26916         * scripts/config.sub: Likewise.
26917
26918 2012-10-04  Roland McGrath  <roland@hack.frob.com>
26919
26920         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
26921         * misc/madvise.c (madvise): Renamed to __madvise.
26922         Make madvise a weak alias.
26923         * include/sys/mman.h: Declare __madvise.
26924         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
26925         * sysdeps/unix/syscalls.list
26926         (madvise): Make __madvise the strong name, and madvise a weak alias.
26927         * sysdeps/unix/sysv/linux/syscalls.list
26928         (madvise, mmap): Remove redundant entries.
26929         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
26930         * malloc/malloc.c (mtrim): Likewise.
26931         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
26932
26933 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26934
26935         * sysdeps/mach/hurd/dl-cache.c: File removed.
26936         * config.h.in (USE_LDCONFIG): New #undef.
26937         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
26938         * configure: Regenerated.
26939         * elf/Makefile (dl-routines): Add dl-cache only under
26940         [$(use-ldconfig) = yes].
26941         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
26942         cache on [USE_LDCONFIG].
26943         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
26944         [USE_LDCONFIG].
26945         * elf/rtld.c (dl_main): Likewise.
26946
26947 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
26948
26949         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
26950         _SC_LEVEL4_CACHE_LINESIZE.
26951
26952 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26953
26954         * sysdeps/unix/bsd/confstr.h: File removed.
26955
26956 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
26957
26958         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
26959         sys/sdt-config.h.
26960
26961 2012-10-02  Roland McGrath  <roland@hack.frob.com>
26962
26963         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
26964         Make 'mapoff' field ElfW(Off) rather than off_t.
26965
26966 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
26967
26968         * nscd/Makefile: Remove nscd-cflags and all its users.
26969         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
26970         (CFLAGS-nonlib): Add compiler flags for nscd modules.
26971
26972         [BZ #10631]
26973         * malloc.c (malloc_printerr): Clarify error message.
26974
26975 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
26976
26977         [BZ #14648]
26978         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26979         Set bit_FMA_Usable if FMA is supported.
26980         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
26981         macro.
26982         (bit_FMA4_Usable): Updated.
26983         (index_FMA_Usable): New macro.
26984         (CPUID_FMA): Likewise
26985         (HAS_FMA): Defined with bit_FMA_Usable.
26986
26987 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26988
26989         * bits/types.h (__swblk_t): Type removed.
26990         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
26991         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
26992         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26993         (__SWBLK_T_TYPE): Likewise.
26994         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26995         (__SWBLK_T_TYPE): Likewise.
26996         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26997         (__SWBLK_T_TYPE): Likewise.
26998         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26999         (__SWBLK_T_TYPE): Likewise.
27000
27001 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27002             Honza Horak <hhorak@redhat.com>
27003
27004         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27005         (xdr_mapname): Use YPMAXMAP as maxsize.
27006         (xdr_peername): Use YPMAXPEER as maxsize.
27007         (xdr_keydat): Use YPAXRECORD as maxsize.
27008         (xdr_valdat): Use YPMAXRECORD as maxsize.
27009
27010 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27011
27012         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27013
27014         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27015         * csu/init-first.c: ... here.
27016         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27017         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27018         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27019         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27020         * sysdeps/i386/init-first.c: File removed.
27021         * sysdeps/sh/init-first.c: File removed.
27022
27023 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27024
27025         [BZ #14645]
27026         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27027         if x * y might underflow to zero and z is zero.
27028         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27029         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27030         * math/libm-test.inc (min_subnorm_value): New variable.
27031         (fma_test): Add more tests.
27032         (fma_test_towardzero): Likewise.
27033         (fma_test_downward): Likewise
27034         (fma_test_upward): Likewise.
27035         (initialize): Set min_subnorm_value.
27036
27037 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27038
27039         [BZ #14638]
27040         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27041         0 + 0.
27042         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27043         mode for addition resulting in exact zero.
27044         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27045         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27046         exact 0 + 0.
27047         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27048         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27049         * math/libm-test.inc (fma_test): Add more tests.
27050         (fma_test_towardzero): New function.
27051         (fma_test_downward): Likewise.
27052         (fma_test_upward): Likewise.
27053         (main): Call the new functions.
27054
27055 2012-09-28  David S. Miller  <davem@davemloft.net>
27056
27057         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27058
27059 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27060
27061         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27062         instead of SIGALRM.
27063
27064         * sysdeps/gnu/_G_config.h: Moved to ...
27065         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27066         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27067         * sysdeps/generic/_G_config.h: ... here.
27068
27069         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27070
27071         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27072
27073         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27074         Conditionalize target on [libnss_test1.so-version].
27075
27076         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27077
27078         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27079         (elfobjdir): Move out of conditionals.
27080
27081         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27082         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27083         (__nss_lookup_function): Conditionalize label remove_from_tree on
27084         [!DO_STATIC_NSS || SHARED], matching its only use.
27085
27086 2012-09-28  David S. Miller  <davem@davemloft.net>
27087
27088         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27089         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27090         file.
27091         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27092         sysdep_routines.
27093         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27094         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27095         when HWCAP_SPARC_CRYPTO is present.
27096
27097 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27098
27099         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27100
27101 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27102
27103         [BZ #6530]
27104         * stdio-common/vfprintf.c (process_string_arg): Revert
27105         2000-07-22 change.
27106
27107 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27108
27109         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27110         for testcase.
27111         * stdio-common/tst-sprintf.c: Include <locale.h>
27112         (main): Test sprintf's handling of incomplete multibyte
27113         characters.
27114
27115 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27116
27117         * elf/dl-runtime.c (VERSYMIDX): Removed.
27118         * elf/dl-version.c (VERSYMIDX): Likewise.
27119         * elf/do-rel.h (VERSYMIDX): Likewise.
27120         (VALIDX): Likewise.
27121         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27122         * elf/rtld.c (VALIDX): Likewise.
27123         (ADDRIDX): Likewise.
27124         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27125         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27126         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27127         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27128         (VALIDX): Likewise.
27129         (ADDRIDX): Likewise.
27130
27131 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27132
27133         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27134
27135 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27136
27137         [BZ #11438]
27138         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27139         to global scope.
27140         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27141         addresses are in the same scope as 192.0.2/24.
27142         * posix/gai.conf: Document new scope table defaults.
27143
27144 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27145
27146         [BZ #5298]
27147         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27148         for ftell.  Compute offsets from write pointers instead.
27149         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27150
27151 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27152
27153         [BZ #14543]
27154         * libio/Makefile (tests): New test case tst-fseek.
27155         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27156         combination works in wide mode.
27157         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27158         state when the external buffer state changes.
27159
27160 2012-09-27  David S. Miller  <davem@davemloft.net>
27161
27162         [BZ #14376]
27163         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27164         pass reloc->r_addend in as the 'high' argument to
27165         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27166
27167         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27168
27169 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27170
27171         * rt/tst-aio2.c: Include <pthread.h>.
27172         * rt/tst-aio3.c: Likewise.
27173
27174 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27175
27176         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27177
27178 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27179
27180         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27181         contents on [SHARED].
27182
27183 2012-09-26  Marek Polacek  <polacek@redhat.com>
27184
27185         [BZ #14530]
27186         [BZ #13741]
27187         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27188         for C++ and GCC <4.3 as well as for non GCC compilers.
27189
27190 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27191
27192         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27193
27194 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27195
27196         * Makefile.in (all, install): Declare with .PHONY.
27197         Reported by Michael Hope <michael.hope@linaro.org>.
27198
27199 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27200
27201         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27202         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27203         system header.
27204         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27205         Likewise.
27206         (sydep_routines): Add the new and the internal functions.
27207         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27208         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27210         (GLIBC_2.17): Add the new function.
27211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27212         (GLIBC_2.17): Likewise.
27213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27214         (GLIBC_2.17): Likewise.
27215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27216         (GLIBC_2.17): Likewise.
27217         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27218
27219 2012-09-25  Alan Modra  <amodra@gmail.com>
27220
27221         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27222         Add release barrier before setting once_control to say
27223         initialisation is done.  Add hints on lwarx.  Use macro in
27224         place of isync.
27225         (clear_once_control): Add release barrier.
27226
27227 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27228
27229         [BZ #13629]
27230         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27231         specially.
27232         * math/s_clog10.c (__clog10): Likewise.
27233         * math/s_clog10f.c (__clog10f): Likewise.
27234         * math/s_clog10l.c (__clog10l): Likewise.
27235         * math/s_clogf.c (__clogf): Likewise.
27236         * math/s_clogl.c (__clogl): Likewise.
27237         * math/Makefile (libm-calls): Add x2y2m1.
27238         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27239         (__x2y2m1): Likewise.
27240         (__x2y2m1l): Likewise.
27241         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27242         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27243         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27244         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27245         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27246         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27247         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27248         * sysdeps/i386/fpu/libm-test-ulps: Update.
27249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27250
27251         [BZ #14621]
27252         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27253         int as type of variable DEPTH.
27254         (glob): Use size_t instead of int as type of variables NEWCOUNT
27255         and OLD_PATHC.
27256
27257 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27258
27259         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27260         Add s_sincosf-sse2.
27261         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27262         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27263         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27264         macros for using routine as __sincosf_ia32.
27265         Use macro for function declaration and weak_alias.
27266         * sysdeps/i386/fpu/libm-test-ulps: Update.
27267
27268         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27269         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27270
27271         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27272         subnormal argument.
27273         * math/s_cexpf.c (__cexpf): Likewise.
27274         * math/s_csinf.c (__csinf): Likewise.
27275         * math/s_csinhf.c (__csinhf): Likewise.
27276         * math/s_ctanf.c (__ctanf): Likewise.
27277         * math/s_ctanhf.c (__ctanhf): Likewise.
27278         * math/s_ccosh.c (__ccoshf): Likewise.
27279         * math/s_cexp.c (__cexpl): Likewise.
27280         * math/s_csin.c (__csin): Likewise.
27281         * math/s_csinh.c (__csinh): Likewise.
27282         * math/s_ctan.c (__ctan): Likewise.
27283         * math/s_ctanh.c (ctanh): Likewise.
27284         * math/s_ccoshl.c (__ccoshl): Likewise.
27285         * math/s_cexpl.c (__cexpl): Likewise.
27286         * math/s_csinl.c (__csinl): Likewise.
27287         * math/s_csinhl.c (__csinhl): Likewise.
27288         * math/s_ctanl.c (__ctanl): Likewise.
27289         * math/s_ctanhl.c (__ctanhl): Likewise.
27290
27291 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27292
27293         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27294         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27295         (_IO_off_t): Define to __off_t, not _G_off_t.
27296         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27297         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27298         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27299         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27300         type of __dummy and __dummy2 fields.
27301         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27302         (_G_ssize_t): Likewise.
27303         (_G_off_t): Likewise.
27304         (_G_pid_t): Likewise.
27305         (_G_uid_t): Likewise.
27306         (_G_wchar_t): Likewise.
27307         (_G_wint_t): Likewise.
27308         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27309         (_G_ssize_t): Likewise.
27310         (_G_off_t): Likewise.
27311         (_G_pid_t): Likewise.
27312         (_G_uid_t): Likewise.
27313         (_G_wchar_t): Likewise.
27314         (_G_wint_t): Likewise.
27315         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27316         (_G_ssize_t): Likewise.
27317         (_G_off_t): Likewise.
27318         (_G_pid_t): Likewise.
27319         (_G_uid_t): Likewise.
27320         (_G_wchar_t): Likewise.
27321         (_G_wint_t): Likewise.
27322
27323 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27324
27325         * malloc/arena.c: Include malloc-sysdep.h.
27326         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27327         is sufficient to shrink the heap or an unmap is needed.
27328         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27329         new function check_may_shrink_heap.
27330         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27331         new function check_may_shrink_heap.
27332
27333 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27334
27335         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27336         comments.
27337
27338 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27339
27340         * catgets/test-gencat.sh: Add "set -e".
27341         * elf/tst-pathopt.sh: Likewise.
27342         * grp/tst_fgetgrent.sh: Likewise.
27343         * iconvdata/run-iconv-test.sh: Likewise.
27344         * intl/tst-gettext.sh: Likewise.
27345         * intl/tst-gettext2.sh: Likewise.
27346         * intl/tst-gettext4.sh: Likewise.
27347         * intl/tst-gettext6.sh: Likewise.
27348         * intl/tst-translit.sh: Likewise.
27349         * io/ftwtest-sh: Likewise.
27350         * libio/test-freopen.sh: Likewise.
27351         * malloc/tst-mtrace.sh: Likewise.
27352         * posix/globtest.sh: Likewise.
27353         * posix/tst-getconf.sh: Likewise.
27354         * posix/wordexp-tst.sh: Likewise.
27355         * stdio-common/tst-printf.sh: Likewise.
27356         * stdio-common/tst-unbputc.sh: Likewise.
27357         * stdlib/tst-fmtmsg.sh: Likewise.
27358         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27359         * catgets/Makefile: Do not specify -e option when running
27360         testsuite shell scripts.
27361         * elf/Makefile: Likewise.
27362         * grp/Makefile: Likewise.
27363         * iconvdata/Makefile: Likewise.
27364         * intl/Makefile: Likewise.
27365         * io/Makefile: Likewise.
27366         * libio/Makefile: Likewise.
27367         * malloc/Makefile: Likewise.
27368         * posix/Makefile: Likewise.
27369         * stdio-common/Makefile: Likewise.
27370         * stdlib/Makefile: Likewise.
27371         * sysdeps/x86_64/Makefile: Likewise.
27372
27373         * io/ftwtest-sh: Add copyright header.
27374         * posix/globtest.sh: Likewise.
27375         * posix/tst-getconf.sh: Likewise.
27376         * posix/wordexp-tst.sh: Likewise.
27377         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27378
27379 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27380
27381         [BZ #13679]
27382         * Makeconfig (+link): Defined as $(+link-static) if
27383         $(build-shared) isn't yes.
27384         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27385         isn't yes.
27386         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27387
27388         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27389
27390         [BZ #14562]
27391         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27392         new chunk size with MALLOC_ALIGN_MASK.
27393
27394 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27395
27396         [BZ #5044]
27397         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27398         <rounding-mode.h>.
27399         (__printf_fphex): Determine rounding using get_rounding_mode and
27400         round_away.
27401         * stdio-common/tst-printf-round.c (struct hex_test): New
27402         structure.
27403         (hex_tests): New variable.
27404         (test_hex_in_one_mode): New function.
27405         (do_test): Also run tests for hex float output.
27406
27407 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27408
27409         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27410         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27411         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27412         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27413         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27414         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27415         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27416         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27417
27418 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27419
27420         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27421         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27422         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27423         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27424
27425 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27426
27427         [BZ #14579]
27428         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27429         mode only.
27430         * elf/tst-rtld-load-self.sh: New test.
27431         * elf/Makefile: Run it.
27432
27433 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27434
27435         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27436         (tst-writev-ENV): Remove.
27437         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27438
27439 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27440
27441         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27442
27443 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27444
27445         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27446         unconditional.
27447         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27448         Likewise.
27449         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27450         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27451         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27452         Likewise.
27453
27454 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27455
27456         [BZ #14587]
27457         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27458         * config.make.in (have-cpp-asm-debuginfo): Removed.
27459         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27460         * configure: Regenerated.
27461
27462 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27463
27464         [BZ #5044]
27465         * stdio-common/printf_fp.c: Include <stdbool.h> and
27466         <rounding-mode.h>.
27467         (___printf_fp): Determine rounding using get_rounding_mode and
27468         round_away.
27469         * stdio-common/tst-printf-round.c: New file.
27470         * stdio-common/Makefile (tests): Add tst-printf-round.
27471         (link-libm): New variable.
27472         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27473
27474 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27475
27476         [BZ #14576]
27477         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27478         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27479         Likewise.
27480         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27481         Likewise.
27482
27483 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27484
27485         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27486         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27487         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27488         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27489
27490 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27491
27492         [BZ #14518]
27493         * include/rounding-mode.h: New file.
27494         * sysdeps/generic/get-rounding-mode.h: Likewise.
27495         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27496         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27497         (MAX_VALUE): New macro.
27498         (MIN_VALUE): Likewise.
27499         (overflow_value): New function.
27500         (underflow_value): Likewise.
27501         (round_and_return): Use overflow_value and underflow_value to
27502         determine return values in overflow and underflow cases.  Use
27503         round_away to determine rounding depending on rounding mode.
27504         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27505         determine return values in overflow and underflow cases.
27506         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27507         (struct test_results): New structure.
27508         (struct test): Use struct test_results to store expected results
27509         for all rounding modes.
27510         (TEST): Include expected results for all rounding modes.
27511         (test_in_one_mode): New function.
27512         (do_test): Use test_in_one_mode to compute and check results.
27513         Check results for all rounding modes.
27514         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27515         $(link-libm).
27516
27517 2012-12-09  Allan McRae  <allan@archlinux.org>
27518
27519         * sysdeps/i386/fpu/libm-test-ulps: Update
27520
27521 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27522
27523         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27524         (_G_int32_t): Likewise.
27525         (_G_uint16_t): Likewise.
27526         (_G_uint32_t): Likewise.
27527         (_G_HAVE_BOOL): Likewise.
27528         (_G_HAVE_ATEXIT): Likewise.
27529         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27530         (_G_HAVE_IO_FILE_OPEN): Likewise.
27531         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27532         (_G_int32_t): Likewise.
27533         (_G_uint16_t): Likewise.
27534         (_G_uint32_t): Likewise.
27535         (_G_HAVE_BOOL): Likewise.
27536         (_G_HAVE_ATEXIT): Likewise.
27537         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27538         (_G_HAVE_IO_FILE_OPEN): Likewise.
27539         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27540         (_G_int32_t): Likewise.
27541         (_G_uint16_t): Likewise.
27542         (_G_uint32_t): Likewise.
27543         (_G_HAVE_BOOL): Likewise.
27544         (_G_HAVE_ATEXIT): Likewise.
27545         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27546         (_G_HAVE_IO_FILE_OPEN): Likewise.
27547
27548 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27549
27550         * csu/libc-tls.c: Update copyright years.
27551
27552 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27553
27554         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27555         [!_G_USING_THUNKS]: Remove conditional code.
27556         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27557         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27558
27559         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27560         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27561         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27562         (_G_VTABLE_LABEL_PREFIX): Likewise.
27563         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27564         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27565         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27566         (_G_VTABLE_LABEL_PREFIX): Likewise.
27567         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27568         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27569         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27570         (_G_VTABLE_LABEL_PREFIX): Likewise.
27571         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27572
27573 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27574
27575         * libio/Makefile: Include ../Makeconfig before tests.
27576         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27577         only if $(build-shared) is yes.
27578
27579         * iconv/gconv_db.c: Update copyright years.
27580
27581 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27582
27583         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27584         unwind info if defined PIC. Fix special cases description.
27585         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27586
27587         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27588         DP_HI_MASK entry.
27589         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27590
27591 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27592
27593         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27594
27595         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27596         is NULL.
27597
27598         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27599         (LDLIBS-tst-chk4): This.
27600         (LDFLAGS-tst-chk5): Renamed to ...
27601         (LDLIBS-tst-chk5): This.
27602         (LDFLAGS-tst-chk6): Renamed to ...
27603         (LDLIBS-tst-chk6): This.
27604         (LDFLAGS-tst-lfschk4): Renamed to ...
27605         (LDLIBS-tst-lfschk4): This.
27606         (LDFLAGS-tst-lfschk5): Renamed to ...
27607         (LDLIBS-tst-lfschk5): This.
27608         (LDFLAGS-tst-lfschk6): Renamed to ...
27609         (LDLIBS-tst-lfschk6): This.
27610
27611         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
27612         on $(common-objpfx)soversions.mk.
27613
27614 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
27615
27616         [BZ #10014]
27617         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
27618         example host name.
27619
27620 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
27621
27622         * malloc/arena.c (arena_get_retry): New function that gets
27623         another arena for the caller to try its request on.
27624         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
27625         current arena cannot fulfill the request.
27626         (__libc_memalign): Likewise.
27627         (__libc_memalign): Likewise.
27628         (__libc_pvalloc): Likewise.
27629         (__libc_calloc): Likewise.
27630
27631 2012-09-05  John Tobey  <john.tobey@gmail.com>
27632
27633         [BZ #13542]
27634         * manual/arith.texi (Operations on Complex): Fix description
27635         of carg branch cut.
27636
27637 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27638
27639         [BZ #10014]
27640         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
27641         host name.
27642
27643         [BZ #10038]
27644         * manual/memory.texi (Memory): Make order of menu items match
27645         order of sections.
27646
27647 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27648
27649         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
27650         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
27651         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
27652
27653 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27654
27655         * csu/libc-tls.c (static_dtv): Renamed to ...
27656         (_dl_static_dtv): This.  Make it global.
27657         (_dl_initial_dtv): Removed.
27658         (__libc_setup_tls): Updated.
27659         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
27660         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
27661         DL_INITIAL_DTV.
27662
27663 2012-09-06  Petr Machata  <pmachata@redhat.com>
27664
27665         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
27666         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
27667         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
27668         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
27669
27670 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27671
27672         [BZ #14545]
27673         * csu/libc-tls.c (_dl_initial_dtv): New variable.
27674         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
27675         freeing dtv[-1].
27676
27677 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27678
27679         [BZ #14544]
27680         * Makeconfig (link-static-before-libc): Replace $(+prector)
27681         with $(+prectorT).
27682         (link-static-after-libc): Replace $(+postctor) with
27683         $(+postctorT).
27684         (link-bounded): Replace $(+prector)/$(+postctor) with
27685         $(+prectorT)/$(+postctorT).
27686         (+prectorT): New macro.
27687         (+postctorT): Likewise.
27688
27689 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27690
27691         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
27692         (round_str): Handle values above the maximum for IBM long double
27693         as inexact.
27694         * stdlib/tst-strtod-round.c (tests): Regenerated.
27695
27696 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27697
27698         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
27699         assembler flag.
27700         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
27701         zarch_nohighgprs around the zarch optimized routines.
27702         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27703         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27704         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
27705         for zarch.
27706
27707 2012-09-05  David S. Miller  <davem@davemloft.net>
27708
27709         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27710
27711         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
27712         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
27713         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
27714         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
27715         entries.
27716
27717 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27718
27719         * malloc/arena.c: Fold copyright years.
27720         * malloc/mcheck.c, malloc/memusage.c: Likewise.
27721
27722 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27723
27724         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
27725
27726 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27727
27728         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
27729
27730 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27731
27732         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
27733         change internal state upon failure.
27734
27735 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27736
27737         * malloc/mcheck.c (mcheck_check_all): Fix typo.
27738         * malloc/memusage.c (mmap): Likewise.
27739         (mmap64, mremap): Likewise.  Adjust name in comment.
27740
27741 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27742
27743         * libio/fileops.c: Fix typos in comments.
27744         * libio/oldfileops.c: Likewise.
27745         * libio/wfileops.c: Likewise.
27746
27747 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27748
27749         [BZ #1349]
27750         * malloc/Makefile (tests): Add tst-malloc-usable test case.
27751         (tst-malloc-usable-ENV): Set environment for test case.
27752         * malloc/hooks.c (malloc_check_get_size): New function to get
27753         requested size.
27754         * malloc/malloc.c (musable): Use malloc_check_get_size.
27755         * malloc/tst-malloc-usable.c: New test case.
27756
27757 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27758
27759         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
27760
27761 2012-09-05  Allan McRae  <allan@archlinux.org>
27762
27763         [BZ #13966]
27764         * configure.in (CXX_SYSINCLUDES): Use compiler output to
27765         determine header location.
27766         * configure: Regenerated.
27767
27768 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27769
27770         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
27771         float format.
27772         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
27773         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
27774         format.
27775         (test): Regenerate.
27776
27777 2012-09-04  David S. Miller  <davem@davemloft.net>
27778
27779         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
27780         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
27781         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
27782
27783 2012-09-04  Florian Weimer  <fweimer@redhat.com>
27784
27785         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
27786         failures.
27787
27788         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
27789
27790 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
27791
27792         [BZ #9914]
27793         * libio/iogetdelim.c: Include <limits.h>.
27794         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
27795         + len + 1 would overflow.
27796
27797 2012-09-03  Andreas Jaeger  <aj@suse.de>
27798
27799         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27800         * sysdeps/i386/fpu/libm-test-ulps: Update.
27801
27802 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27803
27804         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27805         Add s_sinf-sse2, s_conf-sse2.
27806
27807         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
27808         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
27809         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
27810         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
27811
27812         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
27813         for using routine as __sinf_ia32.
27814         Use macro for function declaration and weak_alias.
27815         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
27816         for using routine as __cosf_ia32.
27817         Use macro for function declaration and weak_alias.
27818
27819         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
27820         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
27821
27822         * sysdeps/x86_64/fpu/s_sinf.S: New file.
27823         * sysdeps/x86_64/fpu/s_cosf.S: New file.
27824         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27825
27826         * math/libm-test.inc (cos_test): Add more test cases.
27827         (sin_test): Likewise.
27828         (sincos_test): Likewise.
27829
27830 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27831
27832         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27833         (IFUNC_RESOLVE): Make pointers to the specialized implementations
27834         hidden.
27835         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27836
27837 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
27838
27839         [BZ #14538]
27840         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
27841         first element of the GOT.
27842         (elf_machine_load_address): Return the difference between
27843         the runtime address of _DYNAMIC and elf_machine_dynamic ().
27844
27845 2012-09-01  Allan McRae  <allan@archlinux.org>
27846
27847         [BZ #13412]
27848         * configure.in (AWK): Require gawk version 3.0 or later.
27849         * configure: Regenerated.
27850
27851 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
27852
27853         * sysdeps/unix/sysv/linux/kernel-features.h
27854         (__ASSUME_POSIX_CPU_TIMERS): Remove.
27855         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27856         [__NR_clock_getres]: Make code unconditional.
27857         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
27858         (clock_getcpuclockid): Remove code left unreachable by removal of
27859         conditionals.
27860         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
27861         code unconditional.
27862         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27863         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27864         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
27865         Make code unconditional.
27866         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27867         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27868         * sysdeps/unix/sysv/linux/clock_settime.c
27869         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
27870         conditional code.
27871         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
27872         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27873
27874 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
27875
27876         [BZ #14476]
27877         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
27878         scripts/test-installation.pl.
27879
27880         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
27881         and $ld_so_version if it is set.
27882
27883 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
27884
27885         [BZ #14516]
27886         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
27887         failure if reading from procfs failed.
27888         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
27889
27890 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27891
27892         * sysdeps/unix/sysv/linux/kernel-features.h
27893         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
27894         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27895         Remove conditional code.
27896         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27897         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
27898         Remove conditional code.
27899         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27900         * sysdeps/unix/sysv/linux/i386/fxstat.c
27901         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27902         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27903         * sysdeps/unix/sysv/linux/i386/fxstatat.c
27904         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27905         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27906         * sysdeps/unix/sysv/linux/i386/lxstat.c
27907         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27908         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27909         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
27910         Remove conditional code.
27911         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27912         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27913         Remove conditional code.
27914         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27915         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
27916         <kernel-features.h>.
27917         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
27918         Remove.
27919         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
27920         Remove conditional code.
27921         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27922         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
27923         Remove conditional.
27924
27925 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
27926
27927         [BZ #5400]
27928         * NEWS: Add fixed bug number.
27929
27930 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27931
27932         [BZ #14519]
27933         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
27934         underflowing exponent in case of negative sign.
27935         * stdlib/tst-strtod-round-data: Add more tests.
27936         * stdlib/tst-strtod-round.c (tests): Regenerated.
27937
27938         [BZ #3479]
27939         * stdlib/strtod_l.c (NDIG): Remove.
27940         (HEXNDIG): Likewise.
27941         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
27942         smallest representable value.
27943         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
27944         lie within an exact representation of 1/2 ulp of the result.
27945         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
27946         unconditionally.
27947         (TENS_P9_IDX): Define unconditionally.
27948         (TENS_P9_SIZE): Likewise.
27949         (TENS_P10_IDX): Likewise.
27950         (TENS_P10_SIZE): Likewise.
27951         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
27952         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
27953         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
27954         entries for 10^2^13 and 10^2^14.
27955         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
27956         (TENS_P13_IDX): Define.
27957         (TENS_P13_SIZE): Likewise.
27958         (TENS_P14_IDX): Likewise.
27959         (TENS_P14_SIZE): Likewise.
27960         (_fpioconst_pow10): Change array size to
27961         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
27962         unconditional.
27963         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
27964         1024]: Add entries for 10^2^13 and 10^2^14.
27965         [LAST_POW10 > _LAST_POW10]: Remove #error.
27966         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
27967         (_fpioconst_pow10): Change array size to
27968         FPIOCONST_POW10_ARRAY_SIZE.
27969         * stdlib/gen-fpioconst.c: New file.
27970         * stdlib/gen-tst-strtod-round.c: Likewise.
27971         * stdlib/tst-strtod-round-data: Likewise.
27972         * stdlib/tst-strtod-round.c: Likewise.
27973         * stdlib/Makefile (tests): Add tst-strtod-round.
27974
27975         [BZ #14459]
27976         * stdlib/strtod_l.c: Include <stdint.h>.
27977         (NDEBUG): Do not define.
27978         (round_and_return): Change EXPONENT parameter to type intmax_t.
27979         Rearrange calculations to avoid internal overflow possibilities.
27980         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
27981         Rearrange calculations to avoid internal overflow possibilities.
27982         Assert that number fits inside MPNSIZE limbs.
27983         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
27984         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
27985         calculations and add assertions to avoid internal overflow
27986         possibilities.  Add casts to avoid signed/unsigned operations.
27987         * stdlib/tst-strtod-overflow.c: New file.
27988         * stdlib/Makefile (tests): Add tst-strtod-overflow.
27989
27990 2012-08-25  Marek Polacek  <polacek@redhat.com>
27991
27992         * time/time.h: Fix some typos in comments.
27993
27994 2012-08-23  Roland McGrath  <roland@hack.frob.com>
27995
27996         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
27997         * posix/tst-rfc3484-2.c: Likewise.
27998         * posix/tst-rfc3484-3.c: Likewise.
27999
28000 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28001
28002         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28003         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28004
28005 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28006
28007         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28008         #include of fxstatat64.c.
28009
28010 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28011
28012         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28013         * shadow/getspent_r.c: Likewise.
28014         * shadow/getspnam.c: Likewise.
28015         * shadow/getspnam_r.c: Likewise.
28016         * gshadow/getsgent.c: Likewise.
28017         * gshadow/getsgent_r.c: Likewise.
28018         * gshadow/getsgnam.c: Likewise.
28019         * gshadow/getsgnam_r.c: Likewise.
28020         * inet/getnetbyad.c: Likewise.
28021         * inet/getnetbyad_r.c: Likewise.
28022         * inet/getnetbynm.c: Likewise.
28023         * inet/getnetbynm_r.c: Likewise.
28024         * inet/getnetent.c: Likewise.
28025         * inet/getnetent_r.c: Likewise.
28026         * inet/getproto.c: Likewise.
28027         * inet/getproto_r.c: Likewise.
28028         * inet/getprtent.c: Likewise.
28029         * inet/getprtent_r.c: Likewise.
28030         * inet/getprtname.c: Likewise.
28031         * inet/getprtname_r.c: Likewise.
28032         * inet/getrpcbyname.c: Likewise.
28033         * inet/getrpcbyname_r.c: Likewise.
28034         * inet/getrpcbynumber.c: Likewise.
28035         * inet/getrpcbynumber_r.c: Likewise.
28036         * inet/getrpcent.c: Likewise.
28037         * inet/getrpcent_r.c: Likewise.
28038         * inet/getaliasent.c: Likewise.
28039         * inet/getaliasent_r.c: Likewise.
28040         * inet/getaliasname.c: Likewise.
28041         * inet/getaliasname_r.c: Likewise.
28042         * nscd/getgrgid_r.c: Likewise.
28043         * nscd/getgrnam_r.c: Likewise.
28044         * nscd/gethstbyad_r.c: Likewise.
28045         * nscd/gethstbynm3_r.c: Likewise.
28046         * nscd/getpwnam_r.c: Likewise.
28047         * nscd/getpwuid_r.c: Likewise.
28048         * nscd/getsrvbynm_r.c: Likewise.
28049         * nscd/getsrvbypt_r.c: Likewise.
28050         * nscd/gai.c: Likewise.
28051
28052         * configure.in (build_nscd): New substituted variable, set
28053         by --disable-build-nscd and defaults to $use_nscd.
28054         * configure: Regenerated.
28055         * config.make.in (build-nscd): New substituted variable.
28056         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28057         Change conditional to require [$(build-nscd) = yes] as well.
28058         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28059
28060         [BZ# 13696]
28061         * configure.in (use_nscd): New substituted variable, set by
28062         --disable-nscd.  If enabled, define USE_NSCD.
28063         * configure: Regenerated.
28064         * config.h.in: Add USE_NSCD.
28065         * config.make.in (use-nscd): New substituted variable.
28066         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28067         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28068         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28069         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28070         (CFLAGS-getgrnam_r.c): Likewise.
28071         (CFLAGS-initgroups.c): Likewise.
28072         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28073         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28074         Variables removed.
28075         * inet/getnetgrent_r.c
28076         (nscd_setnetgrent): New function, broken out of ...
28077         (setnetgrent): ... here.  Call it.
28078         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28079         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28080         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28081         * nscd/Makefile (routines, aux): Move definitions after include of
28082         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28083         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28084         Conditionalize on [USE_NSCD].
28085         (is_nscd, nscd_init_cb): Likewise.
28086         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28087         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28088         * nss/nss_db/db-init.c: Likewise.
28089         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28090         [USE_NSCD].
28091         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28092         (make_request): Use it.
28093         (cache_valid_p): New function.
28094         (__check_pf): Use it.
28095         * NEWS: Add item for --disable-nscd.
28096
28097 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28098
28099         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28100         to support sed >= 4.2.1-20-ga9bf076.
28101         * configure: Regenerated.
28102
28103 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28104
28105         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28106         Conditionalize whole body on [IREL].
28107
28108 2012-08-22  Jeff Law <law@redhat.com>
28109
28110         [BZ #14505]
28111         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28112         if the family is PF_UNSPEC.
28113
28114 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28115
28116         * Makerules (lib-version): Rename from V.
28117         (install-lib-nosubdir): Change V to lib-version.
28118
28119 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28120
28121         [BZ #14252]
28122         * powerpc32/power6/wcschr.c: New file.
28123         * powerpc32/power6/wcscpy.c: New file.
28124         * powerpc32/power6/wcsrchr.c: New file.
28125         * powerpc64/power6/wcschr.c: New file.
28126         * powerpc64/power6/wcscpy.c: New file.
28127         * powerpc64/power6/wcsrchr.c: New file.
28128
28129 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28130
28131         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28132         (two_way_short_needle): Use it.
28133         * string/strstr.c (AVAILABLE1_USES_J): Define.
28134         * string/strcasestr.c: Likewise.
28135
28136         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28137         array references.
28138         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28139
28140         [BZ #11607]
28141         * NEWS: Add an entry.
28142         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28143         define their defaults.
28144         (two_way_short_needle): Detect end-of-string on-the-fly.
28145         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28146         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28147         * string/bug-strcasestr1.c: New test.
28148         * string/Makefile: Run it.
28149
28150 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28151
28152         [BZ #11607]
28153         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28154         the first character.
28155
28156 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28157
28158         * csu/elf-init.c (__libc_csu_irel): Function removed.
28159         * csu/libc-start.c (apply_irel): New function.
28160         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28161
28162 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28163
28164         * sysdeps/unix/sysv/linux/kernel-features.h
28165         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28166         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28167         <kernel-features.h>.
28168         [__NR_fadvise64_64]: Make code unconditional.
28169         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28170         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28171         !__NR_fadvise64_64)]: Likewise.
28172         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28173         !__NR_fadvise64_64))]: Likewise.
28174         [__NR_fadvise64]: Make code unconditional.
28175         [!__NR_fadvise64]: Remove conditional code.
28176         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28177         <kernel-features.h>.
28178         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28179         unconditional.
28180         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28181         conditional code.
28182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28183         not include <kernel-features.h>.
28184         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28185         unconditional.
28186         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28187         conditional code.
28188         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28189         include <kernel-features.h>.
28190         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28191         unconditional.
28192         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28193         conditional code.
28194
28195 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28196
28197         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28198         slight instruction rearrangements per scrollpipe analysis.
28199         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28200
28201 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28202
28203         * manual/syslog.texi (syslog; vsyslog, closelog):
28204         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28205         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28206
28207         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28208         DSOCAPS to match condition on defining it.
28209
28210 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28211
28212         * sysdeps/unix/sysv/linux/kernel-features.h
28213         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28215         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28216         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28218         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28219         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28221         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28222         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28223
28224         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28225         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28226
28227         * sysdeps/unix/sysv/linux/kernel-features.h
28228         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28229         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28230         unconditional.
28231         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28232         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28233         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28234         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28235         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28236         Make code unconditional.
28237         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28238         (__mmap64) [!__NR_mmap2]: Likewise.
28239         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28240         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28241         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28242         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28243         [__NR_mmap2]: Make code unconditional.
28244         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28245         (__mmap64) [!__NR_mmap2]: Likewise.
28246
28247 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28248
28249         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28250
28251 2012-08-18  Andreas Jaeger  <aj@suse.de>
28252
28253         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28254
28255 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28256
28257         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28258         * include/unistd.h (__have_sock_cloexec): Likewise.
28259         (__have_pipe2): Likewise.
28260         (__have_dup3): Likewise.
28261
28262 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28263
28264         [BZ #9685]
28265         * include/unistd.h (__have_pipe2): Change define into an extern int.
28266         (__have_dup3): Likewise.
28267         * socket/have_sock_cloexec.c: Include fcntl.h.
28268         (__have_pipe2): New variable.
28269         (__have_dup3): Likewise.
28270
28271 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28272
28273         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28274
28275 2012-08-17  Marek Polacek  <polacek@redhat.com>
28276
28277         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28278         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28279
28280 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28281
28282         * configure.in: Add AC_SUBST for sysheaders.
28283         * configure: Regenerated.
28284         * config.make.in (sysheaders): New substituted variable.
28285
28286         * sysdeps/unix/mkfifo.c: Moved ...
28287         * sysdeps/posix/mkfifo.c: ... here.
28288         * sysdeps/unix/mkfifoat.c: Moved ...
28289         * sysdeps/posix/mkfifoat.c: ... here.
28290
28291         * sysdeps/unix/utime.c: Moved ...
28292         * sysdeps/posix/utime.c: ... here.
28293
28294         * sysdeps/unix/time.c: Moved ...
28295         * sysdeps/posix/time.c: ... here.
28296         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28297         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28298
28299         * sysdeps/unix/nice.c: Moved ...
28300         * sysdeps/posix/nice.c: ... here.
28301
28302         * sysdeps/unix/alarm.c: Moved ...
28303         * sysdeps/posix/alarm.c: ... here.
28304
28305         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28306
28307 2012-08-17  Jeff Law <law@redhat.com>
28308
28309         * intl/Makefile (codeset_mo): New variable.
28310         ($(codeset_mo)): New target.
28311         (tst-codeset.out): Depend on that.  Remove explicit rule.
28312         (tst-gettext3.out, tst-gettext5.out): Likewise.
28313         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28314         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28315         * intl/tst-codeset.sh: Remove.
28316         * intl/tst-gettext3.sh: Likewise.
28317         * intl/tst-gettext5.sh: Likewise.
28318
28319 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28320
28321         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28322         * sysdeps/unix/syscalls.list: ... here.
28323
28324         * sysdeps/posix/getaddrinfo.c
28325         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28326         (gaiconf_init, gaiconf_reload): Use them.
28327         [!_STATBUF_ST_NSEC]
28328         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28329         Define using time_t rather than struct timespec.
28330
28331         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28332         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28333         Macros removed.
28334         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28335         [!NO_THREADS].
28336         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28337         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28338         Likewise.
28339
28340         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28341         __libc_cleanup_push argument.
28342
28343         * bits/param.h: New file.
28344         * misc/sys/param.h: New file.
28345         * include/sys/param.h: New file.
28346         * misc/Makefile (headers): Add bits/param.h.
28347         * sysdeps/generic/sys/param.h: File removed.
28348         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28349         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28350         * sysdeps/mach/hurd/bits/param.h: New file.
28351         * sysdeps/mach/hurd/sys/param.h: File removed.
28352
28353         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28354         last change.
28355
28356         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28357         [_IO_MTSAFE_IO].
28358         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28359         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28360         New macros.
28361
28362         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28363         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28364         rather than -D_IO_MTSAFE_IO conditionally.
28365         * stdio-common/Makefile (CPPFLAGS): Likewise.
28366         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28367         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28368         Use $(libio-mtsafe).
28369         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28370         of -D_IO_MTSAFE_IO.
28371         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28372         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28373         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28374         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28375         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28376         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28377         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28378         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28379         (CFLAGS-fread_u_chk.c): Likewise.
28380         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28381         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28382         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28383         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28384         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28385         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28386         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28387         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28388         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28389
28390         * libio/Makefile: Test [$(libc-reentrant) = yes]
28391         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28392
28393         * Makeconfig
28394         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28395         * sysdeps/pthread/configure: File removed.
28396         * sysdeps/pthread/Makeconfig: New file.
28397         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28398         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28399
28400 2012-08-16  Gary Benson  <gbenson@redhat.com>
28401
28402         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28403         unmapping the first object in a namespace.
28404
28405 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28406
28407         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28408         (__internal_setnetgrent): ... this.  Add internal_function to
28409         definition.  Add libc_hidden_def.
28410         (setnetgrent): Update caller.
28411         (internal_endnetgrent): Renamed to ...
28412         (__internal_endnetgrent): ... this.  Add internal_function to
28413         definition.  Add libc_hidden_def.
28414         (endnetgrent): Update caller.
28415         (internal_getnetgrent_r): Renamed to ...
28416         (__internal_getnetgrent_r): ... this.  Add internal_function to
28417         definition.  Add libc_hidden_def.
28418         (__getnetgrent_r): Update caller.
28419         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28420
28421 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28422
28423         * stdlib/longlong.h: Update from GCC.
28424
28425 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28426
28427         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28428         on _QL, which is set by umul_ppmm but never used.
28429         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28430         variables, which are set by GMP macros but never used.
28431         * stdio-common/_itowa.c (_itowa): Likewise.
28432         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28433         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28434
28435 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28436
28437         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28438         struct La_sh_regs is not constant.
28439         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28440         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28441         and struct La_sparc64_regs are not constant.
28442
28443 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28444
28445         * sysdeps/unix/sysv/linux/kernel-features.h
28446         (__ASSUME_POSIX_TIMERS): Remove.
28447         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28448         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28449         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28450         Make code unconditional.
28451         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28452         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28453         Make code unconditional.
28454         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28455         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28456         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28457         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28458         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28459         Make code unconditional.
28460         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28461         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28462         (__libc_missing_posix_timers): Remove.
28463
28464 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28465
28466         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28467         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28468
28469         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28470
28471         * elf/dl-sym.c: Include <stdlib.h>.
28472
28473         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28474         constants, which avoids warnings in 32-bit builds.
28475
28476         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28477         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28478
28479         * misc/lseek.c: File moved to ...
28480         * io/lseek.c: ... here.
28481
28482         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28483
28484         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28485         shifting LEN more than 31 bits at once.
28486
28487 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28488
28489         [BZ #14195]
28490         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28491         segmentation fault for a case of two empty input strings.
28492         * string/test-strncasecmp.c (check1): Renamed to...
28493         (bz12205): ...this.
28494         (bz14195): Add new testcase for two empty input strings and N > 0.
28495         (test_main): Call new testcase, adapt for renamed function.
28496
28497 2012-08-15  Andreas Jaeger  <aj@suse.de>
28498
28499         [BZ #14090]
28500         * crypt/md5test2.c: New test, based on test supplied by Serge
28501         Belyshev <belyshev@depni.sinp.msu.ru>.
28502         * crypt/Makefile (xtests): Add md5test-giant..
28503         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28504
28505 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28506
28507         [BZ #14090]
28508         * crypt/md5.c (md5_process_block): Don't assume the buffer
28509         length is less than 2**32.
28510         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28511         length is less than 2**64.
28512
28513 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28514
28515         * string/str-two-way.h: Include <sys/param.h>.
28516         (MAX): Macro removed.
28517
28518         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28519         Move #define and #undef of memmove to just before and after
28520         including <string.h>.
28521
28522         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28523         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28524         and after including <string.h>.  Move declarations of
28525         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28526         to before #include "string/memmove.c".
28527
28528         * include/dirent.h: Declare __getdirentries.
28529
28530         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28531         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28532
28533 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28534
28535         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28536         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28537         * sysdeps/i386/configure: Regenerated.
28538         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28539         STABS_CURRENT_FILE, and STABS_FUN.
28540         (END): Remove call to STABS_FUN_END.
28541         (STABS_CURRENT_FILE1): Delete.
28542         (STABS_CURRENT_FILE): Likewise.
28543         (STABS_FUN): Likewise.
28544         (STABS_FUN_END): Likewise.
28545         (STABS_FUN2): Likewise.
28546         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28547         * sysdeps/x86_64/configure: Regenerated.
28548
28549 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28550
28551         * elf/dl-open.c: Include <atomic.h>.
28552         * elf/dl-lookup.c: Likewise.
28553
28554 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28555
28556         * sysdeps/unix/sysv/linux/kernel-features.h
28557         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28558         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28559         unconditionally.
28560         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28561         unconditionally.
28562         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28563         condition on __ASSUME_CLONE_THREAD_FLAGS.
28564
28565 2012-08-14  Andreas Jaeger  <aj@suse.de>
28566
28567         * sysdeps/i386/fpu/libm-test-ulps: Update.
28568
28569 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28570
28571         * include/atomic.h (atomic_exchange_and_add): Split into ...
28572         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28573         New atomic macros.
28574
28575 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28576
28577         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28578
28579 2012-08-13  Jeff Law <law@redhat.com>
28580
28581         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28582         null byte in the output string.
28583
28584 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28585
28586         * sysdeps/unix/sysv/linux/kernel-features.h
28587         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28588         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28589         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28590         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28591         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28592         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28593         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28594
28595 2012-08-09  Jeff Law <law@redhat.com>
28596
28597         [BZ #13939]
28598         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28599         When avoid_arena is set, don't retry in the that arena.  Pick the
28600         next one, whatever it might be.
28601         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28602         (arena_lock): Pass in new parameter to arena_get2.
28603         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28604         arena_get2.
28605         (__libc_malloc): Unify retrying after main arena failure with
28606         __libc_memalign version.
28607         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
28608
28609 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28610
28611         [BZ #14166]
28612         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
28613         to __redirect_strstr.
28614         (__strstr_sse42): Use typeof __redirect_strstr.
28615         (__strstr_ia32): Likewise.
28616         (__libc_strstr): New prototype.
28617         (strstr): Renamed to ...
28618         (__libc_strstr): This.
28619         (strstr): New strong alias of __libc_strstr.
28620         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
28621         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
28622         __redirect_time.
28623         Include <time.h>.
28624         (__libc_time): New prototype.
28625         (time_ifunc): Replace time with __libc_time.
28626         (time): New strong alias and hidden definition of __libc_time.
28627         (__GI_time): Remove strong alias.
28628         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
28629         Include <stddef.h>.
28630         (memmove): Redefined to __redirect_memmove.
28631         (__memmove_sse2): Use typeof __redirect_memmove.
28632         (__memmove_ssse3): Likewise.
28633         (__memmove_ssse3_back): Likewise.
28634         (__libc_memmove): New prototype.
28635         (memmove): Renamed to ...
28636         (__libc_memmove): This.
28637         (memmove): New strong alias of __libc_memmove.
28638
28639 2012-08-08  Mark Salter  <msalter@redhat.com>
28640
28641         * elf/elf.h
28642         (R_MN10300_TLS_GD): Define.
28643         (R_MN10300_TLS_LD): Likewise.
28644         (R_MN10300_TLS_LDO): Likewise.
28645         (R_MN10300_TLS_GOTIE): Likewise.
28646         (R_MN10300_TLS_IE): Likewise.
28647         (R_MN10300_TLS_LE): Likewise.
28648         (R_MN10300_TLS_DTPMOD): Likewise.
28649         (R_MN10300_TLS_DTPOFF): Likewise.
28650         (R_MN10300_TLS_TPOFF): Likewise.
28651         (R_MN10300_SYM_DIFF): Likewise.
28652         (R_MN10300_ALIGN): Likewise.
28653         (R_MN10300_NUM): Update.
28654
28655 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
28656
28657         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
28658         Remove.
28659
28660 2012-08-08  Roland McGrath  <roland@hack.frob.com>
28661
28662         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
28663
28664         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
28665         sysdeps/unix -> sysdeps/posix move.
28666         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28667
28668 2012-08-07      Allan McRae     <allan@archlinux.org>
28669
28670         [BZ #14303]
28671         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
28672         (SUNOS_CPP): Likewise.
28673         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
28674         not found.
28675         (open_input): Call CPP using execvp.
28676
28677 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28678
28679         * sysdeps/unix/sysv/linux/kernel-features.h
28680         (__ASSUME_PROT_GROWSUPDOWN): Remove.
28681         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28682         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28683         (__ASSUME_WAITID_SYSCALL): Likewise.
28684         * sysdeps/unix/sysv/linux/dl-execstack.c
28685         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
28686         code unconditional.
28687         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
28688         conditional code.
28689         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
28690         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
28691         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
28692         code.
28693         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
28694         unconditional.
28695         [__ASSUME_WAITID_SYSCALL]: Likewise.
28696         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
28697
28698 2012-08-07  Roland McGrath  <roland@hack.frob.com>
28699
28700         * sysdeps/unix/closedir.c: Renamed to ...
28701         * sysdeps/posix/closedir.c: ... here.
28702         * sysdeps/unix/dirfd.c: Renamed to ...
28703         * sysdeps/posix/dirfd.c: ... here.
28704         * sysdeps/unix/dirstream.h: Renamed to ...
28705         * sysdeps/posix/dirstream.h: ... here.
28706         * sysdeps/unix/fdopendir.c: Renamed to ...
28707         * sysdeps/posix/fdopendir.c: ... here.
28708         * sysdeps/unix/opendir.c: Renamed to ...
28709         * sysdeps/posix/opendir.c: ... here.
28710         * sysdeps/unix/readdir.c: Renamed to ...
28711         * sysdeps/posix/readdir.c: ... here.
28712         * sysdeps/unix/readdir_r.c: Renamed to ...
28713         * sysdeps/posix/readdir_r.c: ... here.
28714         * sysdeps/unix/rewinddir.c: Renamed to ...
28715         * sysdeps/posix/rewinddir.c: ... here.
28716         * sysdeps/unix/seekdir.c: Renamed to ...
28717         * sysdeps/posix/seekdir.c: ... here.
28718         * sysdeps/unix/telldir.c: Renamed to ...
28719         * sysdeps/posix/telldir.c: ... here.
28720         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
28721         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
28722         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28723         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
28724
28725         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
28726         * bits/fcntl.h: ... here.
28727
28728         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
28729         not 0.
28730         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
28731         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
28732         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
28733         (struct flock): Move l_start, l_len to the beginning.
28734         Use __pid_t for l_pid.
28735         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
28736         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
28737         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
28738         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
28739         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
28740         [__USE_LARGEFILE64] (struct flock64): New type.
28741         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
28742
28743         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
28744         * bits/dirent.h: ... here.
28745
28746         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
28747         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
28748
28749 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28750
28751         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28752         Change from 2.6.0 to 2.6.16.
28753         * sysdeps/unix/sysv/linux/configure: Regenerated.
28754         * sysdeps/unix/sysv/linux/kernel-features.h
28755         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
28756         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
28757         version.
28758         (__ASSUME_UTIMES): Likewise.
28759         (__ASSUME_CLONE_STOPPED): Remove.
28760         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
28761         architectures, not kernel version.
28762         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
28763         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28764         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28765         (__ASSUME_WAITID_SYSCALL): Likewise.
28766         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
28767         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
28768         * README: State 2.6.16 as minimum Linux kernel version.  Do not
28769         refer to older versions.
28770
28771 2012-08-06  Roland McGrath  <roland@hack.frob.com>
28772
28773         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
28774         Define alphasort64 as an alias.
28775         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
28776         Define versionsort64 as an alias.
28777         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
28778         Define scandir64 as an alias.
28779         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
28780         Define scandirat64 as an alias.
28781         * dirent/alphasort64.c (alphasort64):
28782         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
28783         * dirent/versionsort64.c: Likewise.
28784         * dirent/scandir64.c: Likewise.
28785         * dirent/scandirat64.c: Likewise.
28786         * sysdeps/wordsize-64/alphasort.c: File removed.
28787         * sysdeps/wordsize-64/alphasort64.c: File removed.
28788         * sysdeps/wordsize-64/scandir.c: File removed.
28789         * sysdeps/wordsize-64/scandir64.c: File removed.
28790         * sysdeps/wordsize-64/scandirat.c: File removed.
28791         * sysdeps/wordsize-64/scandirat64.c: File removed.
28792         * sysdeps/wordsize-64/versionsort.c: File removed.
28793         * sysdeps/wordsize-64/versionsort64.c: File removed.
28794         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
28795         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
28796         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
28797         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
28798         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
28799         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
28800         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
28801         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
28802
28803         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
28804         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28805         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
28806         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28807         [defined __arch64__ || defined __sparcv9]
28808         (__INO_T_MATCHES_INO64_T): New macro.
28809         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28810         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
28811         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
28812         * sysdeps/unix/sysv/linux/bits/dirent.h
28813         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
28814         (_DIRENT_MATCHES_DIRENT64): New macro.
28815
28816         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
28817         Define lockf64 as an alias.
28818         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
28819         Define fseeko64 as an alias.
28820         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
28821         Define ftello64 as an alias.
28822         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
28823         Define _IO_fgetpos64 and fgetpos64 as aliases.
28824         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
28825         Define _IO_fsetpos64 and fsetpos64 as aliases.
28826         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
28827         Conditionalize body on this.
28828         * libio/fseeko64.c: Likewise.
28829         * libio/ftello64.c: Likewise.
28830         * libio/iofgetpos64.c: Likewise.
28831         * libio/iofsetpos64.c: Likewise.
28832         * sysdeps/wordsize-64/lockf.c: File removed.
28833         * sysdeps/wordsize-64/lockf64.c: File removed.
28834         * sysdeps/wordsize-64/fseeko.c: File removed.
28835         * sysdeps/wordsize-64/fseeko64.c: File removed.
28836         * sysdeps/wordsize-64/ftello.c: File removed.
28837         * sysdeps/wordsize-64/ftello64.c: File removed.
28838         * sysdeps/wordsize-64/iofgetpos.c: File removed.
28839         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
28840         * sysdeps/wordsize-64/iofsetpos.c: File removed.
28841         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
28842         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
28843         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
28844         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
28845         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
28846         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
28847         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
28848         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
28849         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
28850         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
28851         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
28852
28853         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28854         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28855         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
28856         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28857         [defined __arch64__ || defined __sparcv9]
28858         (__OFF_T_MATCHES_OFF64_T): New macro.
28859         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28860         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28861         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28862         (__OFF_T_MATCHES_OFF64_T): New macro.
28863
28864 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28865
28866         * stdlib/secure-getenv.c (__secure_getenv): Replace
28867         GLIBC_2_16 with GLIBC_2_17.
28868
28869 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28870
28871         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
28872         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
28873
28874 2012-08-03  David S. Miller  <davem@davemloft.net>
28875
28876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28877
28878 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28879
28880         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
28881         Remove.
28882         (__ASSUME_CORRECT_SI_PID): Likewise.
28883         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
28884         (__ASSUME_TMPFS_NAME): Likewise.
28885         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
28886         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
28887         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
28888         (HAVE_AUX_SECURE): Make definition unconditional.
28889         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
28890         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
28891
28892 2012-08-03  Roland McGrath  <roland@hack.frob.com>
28893
28894         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
28895         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
28896         * sysdeps/mach/hurd/eloop-threshold.h: New file.
28897         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
28898         __eloop_threshold instead of SYMLOOP_MAX.
28899
28900         * sysdeps/generic/eloop-threshold.h: New file.
28901         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
28902         of MAXSYMLINKS.
28903         * elf/chroot_canon.c (chroot_canon): Likewise.
28904
28905 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28906
28907         [BZ #13717]
28908         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28909         Change to 2.6.0 everywhere.
28910         * sysdeps/unix/sysv/linux/configure: Regenerated.
28911         * sysdeps/unix/sysv/linux/kernel-features.h
28912         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
28913         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
28914         kernel versions.
28915         (__ASSUME_POSIX_TIMERS): Define unconditionally.
28916         (__ASSUME_FUTEX_REQUEUE): Remove.
28917         (__ASSUME_STATFS64): Define unconditionally.
28918         (__ASSUME_AT_SECURE): Likewise.
28919         (__ASSUME_CORRECT_SI_PID): Likewise.
28920         (__ASSUME_TGKILL): Define without depending on kernel version for
28921         i386.
28922         (__ASSUME_UTIMES): Likewise.
28923         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
28924         kernel version.
28925         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
28926         (__ASSUME_TMPFS_NAME): Likewise.
28927         * README: Update reference to Linux kernel versions.
28928
28929 2012-08-02  Marek Polacek  <polacek@redhat.com>
28930
28931         [BZ# 14150]
28932         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
28933         libc_cv_asm_type_prefix with %.
28934         * configure: Regenerated.
28935         * include/libc-symbols.h: Remove comment about
28936         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28937         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
28938         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
28939         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
28940         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
28941         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28942         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
28943         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
28944         * elf/tst-unique2mod1.c: Likewise.
28945         * elf/tst-unique1mod2.c: Likewise.
28946         * elf/tst-unique1mod1.c: Likewise.
28947         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
28948         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
28949         Replace ASM_TYPE_DIRECTIVE with .type.
28950         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28951         * sysdeps/i386/sysdep.h: Likewise.
28952         * sysdeps/x86_64/sysdep.h: Likewise.
28953         * sysdeps/sh/sysdep.h: Likewise.
28954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28955         Do not define ASM_TYPE_DIRECTIVE.
28956         * sysdeps/powerpc/sysdep.h: Likewise.
28957         * sysdeps/powerpc/powerpc32/sysdep.h:
28958         Replace ASM_TYPE_DIRECTIVE with .type.
28959         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
28960         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
28961         * sysdeps/i386/fpu/e_powf.S: Likewise.
28962         * sysdeps/i386/fpu/e_expl.S: Likewise.
28963         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28964         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28965         * sysdeps/i386/fpu/e_pow.S: Likewise.
28966         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
28967         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28968         * sysdeps/i386/fpu/s_expm1.S: Likewise.
28969         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
28970         * sysdeps/i386/fpu/e_log2.S: Likewise.
28971         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28972         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28973         * sysdeps/i386/fpu/e_powl.S: Likewise.
28974         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28975         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
28976         * sysdeps/i386/fpu/e_logl.S: Likewise.
28977         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
28978         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
28979         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
28980         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28981         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
28982         * sysdeps/i386/fpu/e_log.S: Likewise.
28983         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28984         * sysdeps/i386/fpu/e_logf.S: Likewise.
28985         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28986         * sysdeps/i386/fpu/e_atanh.S: Likewise.
28987         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
28988         * sysdeps/i386/fpu/e_log10.S: Likewise.
28989         * sysdeps/i386/fpu/s_frexp.S: Likewise.
28990         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
28991         * sysdeps/i386/fpu/s_asinh.S: Likewise.
28992         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
28993         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28994         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
28995         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
28996         * sysdeps/i386/i686/strtok.S: Likewise.
28997         * sysdeps/i386/i386-mcount.S: Likewise.
28998         * sysdeps/i386/strtok.S: Likewise.
28999         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29000         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29001         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29002         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29003         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29004         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29005         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29006         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29007         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29008         * sysdeps/x86_64/_mcount.S: Likewise.
29009         * sysdeps/x86_64/strtok.S: Likewise.
29010         * sysdeps/sh/_mcount.S: Likewise.
29011
29012 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29013
29014         * libio/iofopen.c: Include <fcntl.h>.
29015         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29016         (_IO_fopen64, fopen64): Define as aliases.
29017         * libio/iofopen64.c: Include <fcntl.h>.
29018         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29019         Conditionalize body on this.
29020         * sysdeps/wordsize-64/iofopen.c: File removed.
29021         * sysdeps/wordsize-64/iofopen64.c: File removed.
29022
29023 2012-08-01  Marek Polacek  <polacek@redhat.com>
29024
29025         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29026         Use dlfcn directly instead of a variable.
29027         (binfmt-subdir): Do not define.
29028         (dlfcn): Likewise.
29029
29030 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29031
29032         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29033         Remove all definitions.
29034         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29035         <kernel-features.h>.
29036         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29037         (miss_F_GETOWN_EX): Remove all definitions.
29038         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29039         macro definition.
29040         [!__ASSUME_FCNTL64]: Remove conditional code.
29041         [__ASSUME_FCNTL64]: Make code unconditional.
29042         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29043         <kernel-features.h>.
29044         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29045         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29046         (lockf64) [__NR_fcntl64]: Make code unconditional.
29047         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29048
29049         * sysdeps/unix/sysv/linux/kernel-features.h
29050         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29051         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29052         Make code unconditional.
29053         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29054         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29056         [__NR_vfork]: Make code unconditional.
29057         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29058         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29060         [__NR_vfork]: Make code unconditional.
29061         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29062         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29063
29064 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29065
29066         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29067         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29068
29069         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29070         Define mkstemp64 as an alias.
29071         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29072         Define mkstemps64 as an alias.
29073         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29074         Define mkostemp64 as an alias.
29075         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29076         Define mkostemps64 as an alias.
29077         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29078         Conditionalize body on this.
29079         * misc/mkostemp64.c: Likewise.
29080         * misc/mkostemps64.c: Likewise.
29081         * misc/mkstemps64.c: Likewise.
29082         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29083         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29084         * sysdeps/wordsize-64/mkostemp.c: File removed.
29085         * sysdeps/wordsize-64/mkstemp.c: File removed.
29086         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29087         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29088         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29089         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29090
29091         [BZ #14138]
29092         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29093         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29094         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29095         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29096
29097         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29098         compat_symbol macros from <shlib-compat.h> rather than the underlying
29099         default_symbol_version and symbol_version macros, so that DEFAULT
29100         lines in shlib-versions are respected.
29101         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29102
29103 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29104
29105         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29106         Declare with warn_unused_result.
29107         (setgid, setregid, setegid, setresgid): Likewise.
29108         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29109         Likewise.
29110         * WUR-REPORT: Remove set*id functions.
29111
29112 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29113
29114         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29115
29116 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29117
29118         [BZ #10191]
29119         * include/sys/socket.h (__libc_accept, __libc_accept4):
29120         Add attribute_hidden.
29121         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29122
29123         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29124         use of PTR_MANGLE.
29125         * inet/getnetgrent_r.c (setup): Likewise.
29126
29127         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29128
29129 2012-07-31  David S. Miller  <davem@davemloft.net>
29130
29131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29132
29133 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29134
29135         [BZ #13629]
29136         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29137         value between 1.0 and 2.0 and smaller part has absolute value less
29138         than 1.0.
29139         * math/s_clog10.c (__clog10): Likewise.
29140         * math/s_clog10f.c (__clog10f): Likewise.
29141         * math/s_clog10l.c (__clog10l): Likewise.
29142         * math/s_clogf.c (__clogf): Likewise.
29143         * math/s_clogl.c (__clogl): Likewise.
29144         * math/libm-test.inc (clog_test): Add more tests.
29145         (clog10_test): Likewise.
29146         * sysdeps/i386/fpu/libm-test-ulps: Update.
29147         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29148
29149 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29150
29151         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29152         Exit with zero in case no suitable GID is found, and write a
29153         message to standard error.
29154
29155 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29156
29157         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29158         rather than to 1.
29159         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29160         (MAXPATHLEN): Removed.
29161         (NOGROUP, NODEV): New macros.
29162         (setbit, clrbit, isset, isclr): New macros.
29163         (howmany, roundup, powerof2): New macros.
29164         (DEV_BSIZE): New macro.
29165
29166         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29167         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29168
29169         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29170         definition on [!__NO_LONG_DOUBLE_MATH].
29171
29172         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29173         PTR_MANGLE and PTR_DEMANGLE.
29174
29175         * socket/accept4.c (accept4): Rename to __libc_accept4.
29176         Define accept4 as a weak alias.
29177
29178         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29179         on [_DIRENT_HAVE_D_TYPE].
29180         * io/ftw.c (ftw_dir): Likewise.
29181
29182         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29183
29184         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29185
29186         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29187         Use the BSD numbers rather than the arbitrary ones we had.
29188         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29189         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29190         (SIGXCPU, SIGXFSZ): New macros.
29191         (_NSIG): Now 32.
29192
29193         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29194         initializer on [_LIBC_REENTRANT].
29195
29196         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29197         definitions inside [_POSIX_MAPPED_FILES].
29198
29199         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29200
29201         * dirent/opendir.c: Include <fcntl.h>.
29202
29203         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29204         (__libc_getspecific): Likewise.
29205         (__libc_key_create): Likewise.
29206
29207         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29208         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29209         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29210         (tmpfile64): Define as alias.
29211         * sysdeps/wordsize-64/tmpfile.c: File removed.
29212         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29213         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29214         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29215
29216         * stdio-common/vfscanf.c: Include <stdbool.h>.
29217         * nss/makedb.c: Likewise.
29218         * stdio-common/_i18n_number.h: Likewise.
29219         * argp/argp-help.c: Likewise.
29220         * posix/wordexp.c: Likewise.
29221         * sysdeps/posix/spawni.c: Likewise.
29222         * nss/nss_files/files-initgroups.c: Likewise.
29223         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29224         * nss/nss_files/files-initgroups.c: Likewise.
29225         * nss/nss_db/db-netgrp.c: Likewise.
29226         * nss/nss_db/db-initgroups.c: Likewise.
29227         * io/fchmodat.c: Include <sys/stat.h>.
29228
29229         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29230         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29231
29232         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29233         [HAVE_MMAP].
29234
29235         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29236         Add multiple inclusion protection.
29237
29238 2012-07-27  David S. Miller  <davem@davemloft.net>
29239
29240         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29241
29242 2012-07-27  Gary Benson  <gbenson@redhat.com>
29243
29244         [BZ #14298]
29245         * elf/rtld.c: Include <stap-probe.h>.
29246         (dl_main): Added static probes "init_start" and "init_complete".
29247         * elf/dl-load.c: Include <stap-probe.h>.
29248         (lose): Take new parameter "nsid".
29249         Added static probe "map_failed".
29250         (_dl_map_object_from_fd): Pass namespace id to lose.
29251         Added static probe "map_start".
29252         (open_verify): Pass namespace id to lose.
29253         * elf/dl-open.c: Include <stap-probe.h>.
29254         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29255         and "reloc_complete".
29256         * elf/dl-close.c: Include <stap-probe.h>.
29257         (_dl_close_worker): Added static probes "unmap_start" and
29258         "unmap_complete".
29259         * elf/rtld-debugger-interface.txt: New file documenting the above.
29260
29261 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29262
29263         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29264         rather than a string variable.
29265         * sunrpc/rpc_main.c (h_output): Likewise.
29266         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29267
29268 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29269
29270         * inet/check_native.c: New file.
29271
29272 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29273
29274         [BZ #13629]
29275         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29276         if larger part has absolute value 1.0.
29277         * math/s_clog10.c (__clog10): Likewise.
29278         * math/s_clog10f.c (__clog10f): Likewise.
29279         * math/s_clog10l.c (__clog10l): Likewise.
29280         * math/s_clogf.c (__clogf): Likewise.
29281         * math/s_clogl.c (__clogl): Likewise.
29282         * math/libm-test.inc (clog_test): Add more tests.
29283         (clog10_test): Likewise.
29284         * sysdeps/i386/fpu/libm-test-ulps: Update.
29285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29286
29287         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29288         (pltexit): Likewise.
29289         (La_regs): Likewise.
29290         (La_retval): Likewise.
29291         (int_retval): Likewise.
29292         Update #error for removed macros to refer only to definitions in
29293         tst-audit.h.
29294         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29295         macro.
29296         (pltexit): Likewise.
29297         (La_regs): Likewise.
29298         (La_retval): Likewise.
29299         (int_retval): Likewise.
29300         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29301         macro.
29302         (pltexit): Likewise.
29303         (La_regs): Likewise.
29304         (La_retval): Likewise.
29305         (int_retval): Likewise.
29306         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29307         macro.
29308         (pltexit): Likewise.
29309         (La_regs): Likewise.
29310         (La_retval): Likewise.
29311         (int_retval): Likewise.
29312         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29313         macro.
29314         (pltexit): Likewise.
29315         (La_regs): Likewise.
29316         (La_retval): Likewise.
29317         (int_retval): Likewise.
29318         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29319         macro.
29320         (pltexit): Likewise.
29321         (La_regs): Likewise.
29322         (La_retval): Likewise.
29323         (int_retval): Likewise.
29324         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29325         macro.
29326         (pltexit): Likewise.
29327         (La_regs): Likewise.
29328         (La_retval): Likewise.
29329         (int_retval): Likewise.
29330         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29331         macro definitions in tst-audit.h.
29332         * sysdeps/i386/tst-audit.h: New file.
29333         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29334         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29335         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29336         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29337         * sysdeps/sh/tst-audit.h: Likewise.
29338         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29339         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29340         * sysdeps/x86_64/tst-audit.h: Likewise.
29341
29342 2012-07-26  Andreas Jaeger  <aj@suse.de>
29343
29344         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29345         ptrace.
29346
29347         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29348         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29349         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29350         PTRACE_O_MASK.
29351         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29352         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29353         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29354
29355         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29356         value.
29357
29358         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29359         _sigsys.
29360         (si_call_addr, si_syscall, si_arch): Define new macro.
29361         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29362         _sigsys.
29363         (si_call_addr, si_syscall, si_arch): Define new marcro.
29364         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29365         _sigsys.
29366         (si_call_addr, si_syscall, si_arch): Define new macro.
29367         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29368         _sigsys.
29369         (si_call_addr, si_syscall, si_arch): Define new macro.
29370
29371 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29372
29373         [BZ #13717]
29374         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29375         Change to 2.4.21 where previously 2.4.1.
29376         * sysdeps/unix/sysv/linux/configure: Regenerated.
29377         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29378         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29379         Linux kernel version.
29380         (__ASSUME_STD_AUXV): Remove.
29381         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29382         kernel version.
29383         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29384         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29385         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29386         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29387         (__ASSUME_NETLINK_SUPPORT): Likewise.
29388         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29389         (__no_netlink_support): Remove conditional definition.
29390         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29391         Remove.
29392         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29393         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29394         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29395         (if_nameindex_ioctl): Remove.
29396         (if_nameindex_netlink): Do not handle __no_netlink_support.
29397         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29398         code.
29399         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29400         Remove conditional code.
29401         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29402         code.
29403         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29404         unconditional.
29405         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29406         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29407         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29408         Remove.
29409         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29410         [!__ASSUME_STD_AUXV]: Remove conditional code.
29411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29412         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29413         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29415         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29416         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29417         code.
29418         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29420         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29421         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29422         conditional code.
29423         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29425         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29426         code.
29427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29428         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29429         conditional code.
29430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29431         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29432         code unconditional.
29433         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29434         conditional code.
29435         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29436         unconditional.
29437         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29438         conditional code.
29439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29440         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29441         unconditional.
29442         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29443         conditional code.
29444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29445         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29446         code unconditional.
29447         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29448         conditional code.
29449         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29450         unconditional.
29451         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29452         conditional code.
29453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29454         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29455         code unconditional.
29456         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29457         conditional code.
29458         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29459         unconditional.
29460         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29461         conditional code.
29462
29463 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29464
29465         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29466         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29467         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29468         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29469         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29470         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29471         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29472         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29473         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29474         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29475         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29476         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29477         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29478         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29479         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29480         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29481         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29482         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29483         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29484         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29485         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29486         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29487         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29488
29489 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29490
29491         * Versions.def: Add GLIBC_2.17.
29492         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29493         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29494         Introduce __libc_secure_getenv.
29495         * stdlib/Versions (2.17): Add secure_getenv
29496         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29497         * stdlib/secure-getenv.c: Rename __secure_getenv to
29498         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29499         symbol __secure_getenv for GLIBC_2.0.
29500         * stdlib/tst-secure-getenv.c: New.
29501         * stdlib/Makefile (tests): Add testcase.
29502         * manual/startup.texi (Environment Access): Document
29503         secure_getenv.
29504         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29505         __libc_secure_getenv.
29506         * inet/ruserpass.c (ruserpass): Likewise.
29507         * malloc/mtrace.c (mtrace): Likewise.
29508         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29509         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29510         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29511         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29512         HAVE_SECURE_GETENV.
29513         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29514         __secure_getenv to __libc_secure_getenv.
29515         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29516         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29517         Likewise.
29518         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29519         Likewise.
29520         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29521         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29522         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29523         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29524         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29527
29528 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29529
29530         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29531         (struct La_i86_retval): Likewise.
29532         (struct La_x86_64_regs): Likewise.
29533         (struct La_x86_64_retval): Likewise.
29534         (struct La_x32_regs): Likewise.
29535         (struct La_x32_retval): Likewise.
29536         (struct La_ppc32_regs): Likewise.
29537         (struct La_ppc32_retval): Likewise.
29538         (struct La_ppc64_regs): Likewise.
29539         (struct La_ppc64_retval): Likewise.
29540         (struct La_sh_regs): Likewise.
29541         (struct La_sh_retval): Likewise.
29542         (struct La_s390_32_regs): Likewise.
29543         (struct La_s390_32_retval): Likewise.
29544         (struct La_s390_64_regs): Likewise.
29545         (struct La_s390_64_retval): Likewise.
29546         (struct La_sparc32_regs): Likewise.
29547         (struct La_sparc32_retval): Likewise.
29548         (struct La_sparc64_regs): Likewise.
29549         (struct La_sparc64_retval): Likewise.
29550         (struct audit_ifaces): Remove architecture-specific pltenter and
29551         pltexit members.
29552         * sysdeps/i386/ldsodefs.h: New file.
29553         * sysdeps/powerpc/ldsodefs.h: Likewise.
29554         * sysdeps/s390/ldsodefs.h: Likewise.
29555         * sysdeps/sh/ldsodefs.h: Likewise.
29556         * sysdeps/sparc/ldsodefs.h: Likewise.
29557         * sysdeps/x86_64/ldsodefs.h: Likewise.
29558
29559 2012-07-25  Marek Polacek  <polacek@redhat.com>
29560
29561         [BZ #6808]
29562         * math/libm-test.inc (yn_test): Add another test.
29563         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29564         to ERANGE when the result is +-Inf.
29565         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29566         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29567         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29568         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29569
29570 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29571
29572         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29573         equal to 0.
29574         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29575         clock_t.
29576         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29577
29578 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29579
29580         * configure.in <sysdeps resolving>: Correct printing
29581         Implies_before.
29582         * configure: Regenerate.
29583
29584 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29585
29586         * math/w_ilogb.c: Include <limits.h>.
29587         * math/w_ilogbl.c: Likewise.
29588
29589 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29590
29591         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29592         va_copy.  Document allowing for unavailable va_copy only as
29593         pre-C99 compatibility.
29594         * manual/string.texi (Copying and Concatenation): Use va_copy
29595         instead of __va_copy in concat example.
29596
29597 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29598
29599         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29600         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29601         it if not null.
29602
29603         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29604         with O_NOLINK passed to __file_name_lookup.
29605
29606         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29607         with O_NOLINK passed to __file_name_lookup.
29608
29609         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
29610         negative N or less than NGIDS.
29611
29612         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
29613         type to string_t.  Set ERANGE as errno and return it if NAME is not big
29614         enough.  Use memcpy instead of strncpy.
29615
29616 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29617
29618         * elf/Makefile (check-data): Remove.
29619         (localplt.data): New vpath directive.
29620         ($(objpfx)check-localplt.out): Use localplt.data from vpath
29621         instead of $(check-data).
29622         * scripts/data/localplt-generic.data: Move to ...
29623         * sysdeps/generic/localplt.data: ... here.
29624         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
29625         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
29626         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
29627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29628         ... here.
29629         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
29630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29631         ... here.
29632         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
29633         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
29634         ... here.
29635         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
29636         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29637         ... here.
29638         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
29639         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
29640         ... here.
29641         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
29642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
29643         ... here.
29644
29645 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29646
29647         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
29648         PPC32 and PPC64 files.
29649         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
29650         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
29651
29652 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29653
29654         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
29655         __makecontext_ret to ...
29656         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29657         ... here and call exit if uc_link is NULL.  New file.
29658         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
29659         __makecontext_ret.S.
29660         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
29661         __makecontext_ret to ...
29662         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29663         ... here and call exit if uc_link is NULL.  New file.
29664         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
29665         __makecontext_ret.S.
29666
29667 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29668
29669         * elf/elf.h (R_390_IRELATIVE): New definition.
29670         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
29671         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
29672         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
29673         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
29674         (elf_machine_lazy_rel): Likewise.
29675         * sysdeps/s390/dl-irel.h: New file.
29676         * sysdeps/s390/s390-64/memcpy.S: New asm code.
29677         * sysdeps/s390/s390-64/memset.S: New asm code.
29678         * sysdeps/s390/s390-64/memcmp.S: New asm code.
29679         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
29680         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
29681         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
29682         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
29683         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
29684         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
29685         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
29686         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
29687         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
29688         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
29689         * sysdeps/s390/s390-32/memcpy.S: New asm code.
29690         * sysdeps/s390/s390-32/memset.S: New asm code.
29691         * sysdeps/s390/s390-32/memcmp.S: New asm code.
29692
29693 2012-07-17  Marek Polacek  <polacek@redhat.com>
29694
29695         [BZ #14349]
29696         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
29697         * sysdeps/s390/s390-64/configure.in: Likewise.
29698         * sysdeps/sparc/configure.in: Likewise.
29699         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
29700         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
29701         * sysdeps/i386/configure.in: Likewise.
29702         * sysdeps/x86_64/configure.in: Likewise.
29703         * sysdeps/sh/configure.in: Likewise.
29704         * sysdeps/s390/s390-32/configure: Regenerated.
29705         * sysdeps/s390/s390-64/configure: Likewise.
29706         * sysdeps/x86_64/configure: Likewise.
29707         * sysdeps/sh/configure: Likewise.
29708         * sysdeps/powerpc/powerpc64/configure: Likewise.
29709         * sysdeps/powerpc/powerpc32/configure: Likewise.
29710         * sysdeps/sparc/configure: Likwise.
29711         * sysdeps/i386/configure: Likewise.
29712
29713         * elf/dl-open.c: Comment fixes.
29714
29715 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
29716
29717         * Makefile [CXX] (check-data): Remove.
29718         [CXX] (c++-types.data): New vpath directive.
29719         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
29720         vpath.  Do not allow for C++ type data being missing.
29721         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
29722         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
29723         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
29724         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
29725         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
29726         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
29727         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
29728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29729         ... here.
29730         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
29731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29732         ... here.
29733         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
29734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
29735         ... here.
29736         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
29737         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
29738         ... here.
29739         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
29740         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
29741         ... here.
29742         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
29743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
29744         ... here.
29745         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
29746         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
29747         ... here.
29748         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
29749         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
29750
29751         * elf/tls-macros.h (TLS_LE): Move architecture-specific
29752         definitions to architecture-specific files.
29753         (TLS_IE): Likewise.
29754         (TLS_LD): Likewise.
29755         (TLS_GD): Likewise.
29756         * sysdeps/i386/tls-macros.h: New file.
29757         * sysdeps/powerpc/tls-macros.h: Likewise.
29758         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
29759         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
29760         * sysdeps/sh/tls-macros.h: Likewise.
29761         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
29762         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
29763         * sysdeps/x86_64/tls-macros.h: Likewise.
29764
29765 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29766
29767         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
29768         zero value for regular exit case.
29769
29770         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
29771         (__start_context): Preserve zero value for regular exit case.
29772
29773 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29774             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29775
29776         * manual/setjmp.texi (setcontext): Clarify normal process
29777         termination when uc_link is the null pointer.
29778         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
29779         exit call.
29780
29781 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
29782
29783         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
29784         preprocessor.  Test for each exception mask separately.
29785
29786 2012-07-16  Andreas Jaeger  <aj@suse.de>
29787
29788         * po/ru.po: Update from translation team.
29789
29790 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
29791
29792         * conform/data/string.h-data (NULL): Use macro-constant.  Require
29793         equal to 0.
29794         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29795         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29796         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
29797         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
29798         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29799
29800 2012-07-13  Andreas Jaeger  <aj@suse.de>
29801
29802         * po/fr.po: Update from translation team.
29803
29804 2012-07-12  Marek Polacek  <polacek@redhat.com>
29805
29806         [BZ #14173]
29807         * math/libm-test.inc (yn_test): Add test for BZ #14173.
29808         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
29809         loop condition.
29810
29811 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
29812
29813         [BZ #13717]
29814         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29815         Change to 2.4.1 where previously 2.4.0.
29816         * sysdeps/unix/sysv/linux/configure: Regenerated.
29817         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
29818         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
29819         version.
29820         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
29821         (__ASSUME_AT_CLKTCK): Remove.
29822         (__ASSUME_AT_PAGESIZE): Likewise.
29823         (__ASSUME_AT_XID): Likewise.
29824         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
29825         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
29826         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
29827         unconditionally.
29828         (HAVE_AUX_PAGESIZE): Likewise.
29829         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
29830         [__ASSUME_AT_CLKTCK]: Make code unconditional.
29831         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
29832
29833 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
29834
29835         [BZ #14307]
29836         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
29837         the temporary buffer used to invoke __gethostbyname2_r,
29838         __gethostbyaddr_r and gethostbyname4_r to make room for struct
29839         host_data / struct gaih_addrtuple.
29840         * resolv/nss_dns/dns-host.c (global scope): Move definition of
29841         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
29842         header file nss/nsswitch.h.
29843         * nss/nsswitch.h (global scope): Add definition of implementation
29844         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
29845         resolv/nss_dns/dns-host.c).
29846
29847 2012-07-11  Andreas Jaeger  <aj@suse.de>
29848
29849         * po/fr.po: Update from translation team.
29850
29851         * po/sv.po: Update from translation team
29852         * po/fr.po: Another update from translation team.
29853
29854 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29855
29856         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
29857         for subnormals or multiply small sinh result by itself.
29858         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29859         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29860
29861 2012-07-11  David S. Miller  <davem@davemloft.net>
29862
29863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29864
29865 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
29866
29867         [BZ #14347]
29868         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
29869         (INTERNAL_MARK): Shift it here.
29870
29871 2012-07-10  Marek Polacek  <polacek@redhat.com>
29872
29873         [BZ #14151]
29874         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
29875         libc_cv_asm_global_directive with .globl.
29876         * configure: Regenerated.
29877         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
29878         with .globl.
29879         * sysdeps/i386/configure: Regenerated.
29880         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
29881         with .globl.
29882         * sysdeps/x86_64/configure: Regenerated.
29883         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
29884         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
29885         * elf/tst-unique2mod2.c: Likewise.
29886         * elf/tst-unique2mod1.c: Likewise.
29887         * elf/tst-unique1mod2.c: Likewise.
29888         * elf/tst-unique1mod1.c: Likewise.
29889         * sysdeps/s390/s390-32/sysdep.h: Likewise.
29890         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29891         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29892         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29893         * sysdeps/mach/sysdep.h: Likewise.
29894         * sysdeps/i386/sysdep.h: Likewise.
29895         * sysdeps/i386/i386-mcount.S: Likewise.
29896         * sysdeps/x86_64/_mcount.S: Likewise.
29897         * sysdeps/x86_64/sysdep.h: Likewise.
29898         * sysdeps/sh/_mcount.S: Likewise.
29899         * sysdeps/sh/sysdep.h: Likewise.
29900         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
29901         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
29902         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
29903         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29904         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
29905         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
29906         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
29907         * locale/localeinfo.h: Likewise.
29908         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
29909         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
29910
29911 2012-07-09  Roland McGrath  <roland@hack.frob.com>
29912
29913         [BZ #14336]
29914         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
29915         system".
29916         * manual/message.texi (The Uniforum approach): Likewise.
29917         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
29918         (glibc iconv Implementation): Likewise.
29919
29920 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
29921
29922         [BZ #14337]
29923         * math/s_clog.c (__clog): Avoid scaling a value down where that
29924         could result in underflow.
29925         * math/s_clog10.c (__clog10): Likewise.
29926         * math/s_clog10f.c (__clog10f): Likewise.
29927         * math/s_clog10l.c (__clog10l): Likewise.
29928         * math/s_clogf.c (__clogf): Likewise.
29929         * math/s_clogl.c (__clogl): Likewise.
29930         * math/libm-test.inc (clog_test): Add more tests.
29931         (clog10_test): Likewise.
29932         * sysdeps/i386/fpu/libm-test-ulps: Update.
29933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29934
29935 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
29936
29937         [BZ #14283]
29938         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
29939         by 7 not 8 to examine high bit of fractional part.
29940
29941         [BZ #14042]
29942         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
29943         for call to __mcount_internal.
29944         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
29945         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
29946         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
29947
29948 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
29949
29950         [BZ #14154]
29951         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
29952         approximation for values within 0x1p-13f of an odd multiple of
29953         pi/4.
29954         * math/libm-test.inc (tan_test): Do not allow spurious underflow
29955         exception.  Add more tests.
29956         * sysdeps/i386/fpu/libm-test-ulps: Update.
29957
29958         [BZ #6778]
29959         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
29960         inputs and return -1 for them.  Do not check for +Inf in case not
29961         reachable for +Inf.
29962         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
29963         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
29964         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29965         and return -1 for them.  Do not check for +Inf in case not
29966         reachable for +Inf.
29967         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
29968         define.
29969         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29970         and return -1 for them.  Do not check for +Inf in case not
29971         reachable for +Inf.
29972         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
29973         spurious underflow.
29974         * sysdeps/i386/fpu/libm-test-ulps: Update.
29975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29976
29977 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
29978
29979         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
29980
29981 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
29982
29983         [BZ #14157]
29984         [BZ #14331]
29985         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
29986         could result in spurious underflow.  Scale down values above
29987         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
29988         * math/s_csqrtf.c (__csqrtf): Likewise.
29989         * math/s_csqrtl.c (__csqrtl): Likewise.
29990         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
29991         spurious underflow.
29992         * sysdeps/i386/fpu/libm-test-ulps: Update.
29993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29994
29995 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
29996
29997         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
29998         xopen-msg.sed.
29999         * catgets/xopen-msg.awk: New file.
30000         * catgets/xopen-msg.sed: Removed.
30001
30002         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30003         po2text.sed.
30004         * intl/po2test.awk: New file.
30005         * intl/po2test.sed: Removed.
30006
30007 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30008
30009         [BZ #14328]
30010         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30011         or multiply small sinh result by itself.
30012         * math/s_ctanf.c (__ctanf): Likewise.
30013         * math/s_ctanh.c (__ctanh): Likewise.
30014         * math/s_ctanhf.c (__ctanhf): Likewise.
30015         * math/s_ctanhl.c (__ctanhl): Likewise.
30016         * math/s_ctanl.c (__ctanl): Likewise.
30017         * math/libm-test.inc (ctan_test_tonearest): New function.
30018         (ctan_test_towardzero): Likewise.
30019         (ctan_test_downward): Likewise.
30020         (ctan_test_upward): Likewise.
30021         (ctanh_test_tonearest): Likewise.
30022         (ctanh_test_towardzero): Likewise.
30023         (ctanh_test_downward): Likewise.
30024         (ctanh_test_upward): Likewise.
30025         (main): Call these new functions.
30026         * sysdeps/i386/fpu/libm-test-ulps: Update.
30027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30028
30029 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30030
30031         * .gitignore: Delete /ports entry.
30032
30033 2012-07-03  Andreas Jaeger  <aj@suse.de>
30034
30035         * po/bg.po: Update from translation team.
30036         * po/cs.po: Likewise.
30037         * po/de.po: Likewise.
30038         * po/hr.po: Likewise.
30039         * po/nl.pl: Likewise.
30040         * po/pl.po: Likewise.
30041         * po/vi.po: Likewise.
30042
30043 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30044
30045         * Makeconfig [!+link] (+link-before-libc): New variable.
30046         [!+link] (+link-after-libc): Likewise.
30047         [!+link] (+link-tests): Likewise.
30048         [!+link] (+link): Define in terms of $(+link-before-libc) and
30049         $(+link-after-libc).
30050         [!+link-static] (+link-static-before-libc): New variable.
30051         [!+link-static] (+link-static-after-libc): Likewise.
30052         [!+link-static] (+link-static-tests): Likewise.
30053         [!+link-static] (+link-static): Define in terms of
30054         $(+link-static-before-libc) and $(+link-static-after-libc).
30055         [build-shared] (link-libc-before-gnulib): New variable.
30056         [build-shared] (link-libc-tests): Likewise.
30057         [build-shared] (link-libc): Define in terms of
30058         $(link-libc-before-gnulib).
30059         [!build-shared] (link-libc-tests): New variable.
30060         (link-libc-static-tests): New variable.
30061         [!gnulib] (gnulib-arch): New variable.
30062         [!gnulib] (gnulib-tests): Likewise.
30063         [!gnulib] (static-gnulib-arch): Likewise.
30064         [!gnulib] (static-gnulib-tests): Likewise.
30065         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30066         Define with "=" instead of ":=".
30067         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30068         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30069         * Rules (binaries-all-notests): New variable.
30070         (binaries-all-tests): Likewise.
30071         (binaries-static-notests): Likewise.
30072         (binaries-static-tests): Likewise.
30073         (binaries-all): Define using $(binaries-all-notests) and
30074         $(binaries-all-tests).
30075         (binaries-static): Define using $(binaries-static-notests) and
30076         $(binaries-static-tests).
30077         (binaries-shared-tests): New variable.
30078         (binaries-shared-notests): Likewise.
30079         (binaries-shared): Remove variable.
30080         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30081         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30082         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30083         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30084         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30085         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30086         * elf/Makefile (sln-modules): New variable.
30087         (extra-objs): Add $(sln-modules:=.o).
30088         (ldconfig-modules): Add static-stubs.
30089         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30090         * elf/static-stubs.c: New file.
30091
30092         [BZ #14283]
30093         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30094         by 7 not 8 to examine high bit of fractional part.  Use volatile
30095         variables when splitting into final array of floats if
30096         __FLT_EVAL_METHOD__ != 0.
30097         * math/libm-test.inc (cos_test): Add another test.
30098         (sin_test): Likewise.
30099         * sysdeps/i386/fpu/libm-test-ulps: Update.
30100
30101         [BZ #14273]
30102         * math/libm-test.inc (cosh_test): Add more tests.
30103
30104         * version.h (RELEASE): Set to "development".
30105         (VERSION): Set to "2.16.90".
30106
30107 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30108
30109         * NEWS: Update copyright. Remove last-updated date.
30110         Mention math library bug fixes and timezone data changes.
30111         * README: Mention GNU/Hurd, x32, and HPPA support status.
30112
30113 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30114
30115         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30116
30117 2012-06-27  Andreas Jaeger  <aj@suse.de>
30118
30119         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30120
30121 2012-06-25  Andreas Jaeger  <aj@suse.de>
30122
30123         * sysdeps/s390/fpu/libm-test-ulps: Update.
30124
30125 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30126             Thomas Schwinge  <thomas@codesourcery.com>
30127
30128         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30129         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30130         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30131         fanotify_mark.
30132
30133 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30134
30135         * sysdeps/mach/start.c: Remove file.
30136         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30137         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30138         * sysdeps/sh/init-first.c: Likewise.
30139
30140         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30141         registers for frame unwinding purposes, add CFI directives.
30142         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30143         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30144         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30145         Likewise.
30146
30147         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30148         __fortify_fail returning.
30149         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30150
30151         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30152         sysdeps/sh/____longjmp_chk.S.
30153         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30154         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30155         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30156         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30157
30158         * sysdeps/sh/abort-instr.h: New file.
30159         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30160         process in case exit returns.
30161
30162         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30163         initialize the GOT register before use.
30164
30165         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30166         calculation of ARGC > 4.
30167
30168         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30169         meaningful names to some local labels.
30170
30171 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30172             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30173
30174         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30175         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30176         (__arch_compare_and_exchange_val_16_acq): Likewise.
30177         (__arch_compare_and_exchange_val_32_acq): Likewise.
30178         (atomic_exchange_and_add): Fix gUSA sequence.
30179         (atomic_add): Likewise.
30180         (atomic_add_negative): Likewise.
30181         (atomic_add_zero): Likewise.
30182         (atomic_bit_test_set): Likewise.
30183
30184 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30185
30186         [BZ #13579]
30187         * include/link.h (struct link_map): Add l_free_initfini.
30188         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30189         l_initfini.
30190         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30191         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30192         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30193         set.
30194
30195 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30196
30197         * configure.in: Use AC_LANG_SOURCE.
30198         * configure: Regenerate.
30199
30200 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30201
30202         * configure.in (libc_cv_localstatedir): New substituted variable.
30203         * configure: Regenerated.
30204         * config.make.in (localstatedir): New variable, substituted from
30205         libc_cv_localstatedir.
30206         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30207         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30208         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30209         * sysdeps/gnu/configure: Regenerated.
30210
30211 2012-06-21  Jeff Law  <law@redhat.com>
30212
30213         [BZ #14277]
30214         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30215         free.  Simplify list management for _LIBC case.
30216
30217 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30218
30219         [BZ #14273]
30220         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30221         Clear sign bit of 64-bit integer value before comparing against
30222         overflow value.
30223
30224         * sysdeps/mach/configure: Regenerated.
30225
30226 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30227
30228         [BZ #14278]
30229         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30230
30231 2012-06-21  Jeff Law  <law@redhat.com>
30232
30233         [BZ #13882]
30234         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30235         uint16_t for elements in the "seen" array to avoid char overflows.
30236         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30237         * elf/dl-open.c (dl_open_worker): Likewise.
30238
30239 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30240
30241         * scripts/list-sources.sh: Scan PORTS for translations.
30242         * po/libc.pot: Regenerated.
30243
30244 2012-06-21  Andreas Jaeger  <aj@suse.de>
30245
30246         [BZ #12194]
30247         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30248         warning.
30249         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30250         * bits/byteswap-16.h (__bswap_16): Likewise.
30251         * bits/byteswap.h (__bswap_constant_16): Likewise.
30252
30253 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30254
30255         [BZ #14117]
30256         * sysdeps/i386/fpu_control.h: Removed.
30257         * sysdeps/x86_64/fpu_control.h: Moved to ...
30258         * sysdeps/x86/fpu_control.h: Here.
30259
30260         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30261         (_FPU_SETCW): Likewise.
30262
30263 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30264
30265         [BZ #14117]
30266         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30267         * sysdeps/x86/fpu/bits/mathinline.h: This.
30268         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30269
30270         [BZ #14050]
30271         [BZ #14117]
30272         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30273         functions if __x86_64__ is defined.
30274
30275 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30276
30277         * string/endian.h: Add !__ASSEMBLER__ condition for including
30278         conversion interfaces.
30279
30280 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30281
30282         [BZ #14241]
30283         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30284         of ABS(x) in calculating zero to negative powers other than odd
30285         integers.
30286         * math/libm-test.inc (pow_test): Add more tests.
30287
30288 2012-06-15  Andreas Jaeger  <aj@suse.de>
30289
30290         * manual/contrib.texi (Contributors): Update entry of Liubov
30291         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30292         Machado Filho.
30293
30294 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30295
30296         * string/string.h: Add __wur to GNU version of strerror_r.
30297
30298 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30299
30300         [BZ #14229]
30301         * string/Makefile (tests): Add tst-strtok_r.
30302         * string/tst-strtok_r.c: New file.
30303         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30304         RAX_LP/RDX_LP on SAVE_PTR.
30305
30306 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30307
30308         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30309
30310 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30311
30312         * libm_test.inc (csqrt_test): Allow more spurious underflow
30313         exceptions.
30314         (j0_test): Likewise.
30315         (j1_test): Likewise.
30316         (y0_test): Likewise.
30317         (y1_test): Likewise.
30318
30319 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30320
30321         * po/Makefile (libc.pot): Use UTF-8 charset.
30322
30323 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30324
30325         [BZ #14210]
30326         Suppress sign-conversion warning from FD_SET.
30327         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30328         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30329         not unsigned long int.
30330         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30331
30332 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30333
30334         [BZ #14050]
30335         [BZ #14117]
30336         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30337         __extern_always_inline instead of __extern_inline.
30338         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30339         (__signbit): Likewise.
30340         (__signbitl): Support C++ namespace.
30341         (lrintf): New inline function.
30342         (lrint): Likewise.
30343         (llrintf): Likewise.
30344         (llrint): Likewise.
30345         (fmaxf): Likewise.
30346         (fmax): Likewise.
30347         (fminf): Likewise.
30348         (fmin): Likewise.
30349         (rint): Likewise.
30350         (rintf): Likewise.
30351         (ceil): Likewise.
30352         (ceilf): Likewise.
30353         (floor): Likewise.
30354         (floorf): Likewise.
30355         (nearbyint): Likewise.
30356         (nearbyintf): Likewise.
30357
30358 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30359
30360         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30361         non-default versions.
30362
30363 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30364
30365         [BZ #14218]
30366         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30367
30368 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30369
30370         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30371         (FE_UPWARD, FE_DOWNWARD): Don't define.
30372         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30373         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30374
30375         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30376         reading it.
30377         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30378         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30379
30380 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30381
30382         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30383         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30384         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30385         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30386
30387 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30388
30389         [BZ #14117]
30390         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30391         * sysdeps/i386/fpu/Implies: New file.
30392         * sysdeps/x86_64/fpu/Implies: Likewise.
30393         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30394         * sysdeps/x86/fpu/bits/fenv.h: This.
30395
30396         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30397         __SSE_MATH__.
30398
30399 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30400
30401         [BZ #14134]
30402         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30403         character 0xffff that matches the last element of the
30404         conversion table.
30405
30406 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30407
30408         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30409         fmodl commit.
30410
30411 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30412
30413         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30414         values higher than 25.6283.
30415
30416 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30417
30418         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30419         subnormal exponent extraction and add some __builtin_expect.
30420         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30421         Fix for subnormal mantissa calculation.
30422
30423 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30424
30425         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30426         cpu2 is -1 and errno is not ENOSYS.
30427
30428 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30429
30430         [BZ #14117]
30431         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30432         * sysdeps/x86/bits/string.h: This.
30433         * sysdeps/x86_64/bits/string.h: Removed.
30434
30435         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30436         if not compiling for x86-64, but compiling for >= i486.
30437
30438         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30439         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30440
30441         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30442         New macro from Linux kernel 3.4.0.
30443         (FP_XSTATE_MAGIC2): Likewise.
30444         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30445         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30446         (struct _fpx_sw_bytes): New struct.
30447         (struct _xsave_hdr): Likewise.
30448         (struct _ymmh_state): Likewise.
30449         (struct _xstate): Likewise.
30450
30451         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30452         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30453         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30454         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30455         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30456         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30457
30458         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30459         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30460         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30461         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30462         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30463         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30464
30465 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30466
30467         [BZ #13743]
30468         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30469         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30470         (sysdep_headers): Include sys/platform/ppc.h.
30471         * sysdeps/powerpc/test-gettimebase.c: Test for
30472         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30473         * manual/Makefile (appendices): Include platform.texi.
30474         * manual/contrib.texi (Contributors): Update @node pointers.
30475         * manual/maint.texi (Maintenance): Likewise.
30476         (Platform): New node.
30477         * manual/platform.texi: New file.  Document the new features.
30478
30479 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30480             Jakub Jelinek  <jakub@redhat.com>
30481
30482         [BZ #14188]
30483         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30484         where __builtin_expect is unavailable.
30485
30486 2012-06-03  David S. Miller  <davem@davemloft.net>
30487
30488         * stdlib/longlong.h: Updated from GCC.
30489
30490 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30491
30492         [BZ #14042]
30493         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30494         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30495         __mcount_internal.
30496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30497         (GLIBC_2.16): Likewise.
30498
30499 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30500
30501         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30502
30503 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30504
30505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30506         (default-abi): New variable.
30507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30508         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30509         variable.
30510         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30511         Likewise.
30512         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30513         Likewise.
30514         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30515         Likewise.
30516
30517         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30518         definition.  Document in comment.
30519
30520 2012-06-01  David S. Miller  <davem@davemloft.net>
30521
30522         * stdlib/longlong.h: Updated from GCC.
30523
30524 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30525
30526         [BZ #14117]
30527         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30528         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30529         sys/debugreg.h sys/io.h here.
30530         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30531         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30532         sys/io.h.
30533         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30534         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30535         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30536         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30537         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30538         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30539
30540         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30541         Define only if __x86_64__ is defined.
30542
30543 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30544
30545         [BZ #14048]
30546         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30547         Use int64_t for variable i.
30548         * math/libm-test.inc (fmod_test): Add more tests.
30549
30550         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30551         z computation is not scheduled after fetestexcept.
30552         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30553         Use math_force_eval instead of asm to ensure calculation scheduled
30554         before exception test.
30555         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30556         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30557
30558 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30559
30560         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30561         computation is not scheduled after fetestexcept.
30562
30563 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30564
30565         [BZ #14117]
30566         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30567         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30568
30569 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30570
30571         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30572         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30573
30574 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30575
30576         [BZ #14117]
30577         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30578         <bits/wordsize.h>.
30579         (__WCHAR_MIN): Support __WORDSIZE == 64.
30580         (__WCHAR_MAX): Likewise.
30581
30582         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30583         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30584
30585         [BZ #14183]
30586         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30587         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30588
30589         [BZ #14117]
30590         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30591         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30592
30593         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30594         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30595
30596         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30597         Defined to 1 if __x86_64__ isn't defined.
30598         (_STAT_VER_LINUX_OLD): New.
30599         (st_atime): Remove duplicate.
30600         (st_mtime): Likewise.
30601         (st_ctime): Likewise.
30602
30603 2012-05-31  David S. Miller  <davem@davemloft.net>
30604
30605         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30606         entries.
30607
30608 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
30609
30610         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
30611         gen-libm-test.pl.
30612
30613         [BZ #14132]
30614         * elf/dl-reloc.c: Include <_itoa.h>.
30615         (_dl_reloc_bad_type): Remove use of INTUSE.
30616         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
30617         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
30618         * stdio-common/psiginfo.c (psiginfo): Likewise.
30619         * stdio-common/psignal.c (psignal): Likewise.
30620         * string/strsignal.c (strsignal): Likewise.
30621         * include/signal.h (_sys_siglist): Declare hidden proto.
30622         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
30623         INTVARDEF with libc_hidden_data_def.
30624         * stdio-common/itoa-udigits.c: Likewise.
30625         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
30626         (_itoa_lower_digits_internal): Remove declaration.
30627         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
30628         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
30629         (_sys_sigabbrev_internal): Remove aliases.
30630         (_sys_siglist): Define hidden alias.
30631
30632 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
30633
30634         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30635         bits/sysctl.h.
30636
30637 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30638
30639         [BZ #14117]
30640         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
30641         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
30642
30643         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
30644         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
30645         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
30646         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
30647         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
30648         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
30649
30650         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
30651         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
30652         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
30653
30654         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
30655         with __addr.
30656         (insw): Likewise.
30657         (insl): Likewise.
30658         (outsb): Likewise.
30659         (outsw): Likewise.
30660         (outsl): Likewise.
30661
30662         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
30663         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
30664         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
30665
30666         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
30667         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
30668         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
30669         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
30670         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
30671         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
30672
30673         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
30674         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
30675
30676         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
30677         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
30678
30679         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
30680         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
30681         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
30682
30683         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
30684         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
30685         to ...
30686         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
30687
30688         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
30689         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
30690         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
30691
30692         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
30693         for x86-64.
30694         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
30695
30696 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
30697
30698         * math/math.h (M_El): Use two more decimal places.
30699         (M_LOG2El): Likewise.
30700         (M_LOG10El): Likewise.
30701         (M_LN2l): Likewise.
30702         (M_LN10l): Likewise.
30703         (M_PIl): Likewise.
30704         (M_PI_2l): Likewise.
30705         (M_PI_4l): Likewise.
30706         (M_1_PIl): Likewise.
30707         (M_2_PIl): Likewise.
30708         (M_2_SQRTPIl): Likewise.
30709         (M_SQRT2l): Likewise.
30710         (M_SQRT1_2l): Likewise.
30711
30712 2012-05-31  David S. Miller  <davem@davemloft.net>
30713
30714         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
30715         values between float registers.
30716         * sysdeps/sparc/sparc64/memset.S: Likewise.
30717         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30718
30719 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
30720
30721         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
30722         -D_FORTIFY_SOURCE=1.
30723         (CPPFLAGS-tst-longjmp_chk.c): Define.
30724         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
30725         (CPPFLAGS-tst-longjmp_chk2.c): Define.
30726         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
30727         CFLAGS-tst-wchar-h.c.
30728
30729 2012-05-31  Marek Polacek  <polacek@redhat.com>
30730
30731         [BZ #14132]
30732         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
30733         __endmntent_internal): Remove declaration.
30734         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
30735         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
30736         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
30737
30738 2012-05-30  David S. Miller  <davem@davemloft.net>
30739
30740         * sysdeps/sparc/sparc32/soft-fp/q_util.c
30741         (___Q_simulate_exceptions): Use real FP ops rather than writing
30742         into the %fsr.
30743         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
30744         Likewise.
30745
30746 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30747
30748         [BZ #14117]
30749         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
30750         * sysdeps/x86/bits/xtitypes.h: This.
30751
30752         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
30753         * sysdeps/x86/bits/wordsize.h: This.
30754
30755         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
30756         * sysdeps/x86/bits/huge_vall.h: This.
30757
30758         * sysdeps/i386/bits/select.h: Removed.
30759         * sysdeps/x86_64/bits/select.h: Renamed to ...
30760         * sysdeps/x86/bits/select.h: This.
30761
30762         * sysdeps/i386/bits/setjmp.h: Removed.
30763         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
30764         * sysdeps/x86/bits/setjmp.h: This.
30765
30766         * sysdeps/i386/bits/mathdef.h: Removed.
30767         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
30768         * sysdeps/x86/bits/mathdef.h: This.
30769
30770 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
30771
30772         [BZ #14132]
30773         * include/sys/socket.h (__connect_internal)
30774         (__libc_sa_len_internal): Remove declaration.
30775         (__connect, __libc_sa_len): Declare hidden_proto.
30776         (SA_LEN): Remove use of INTUSE.
30777         * socket/connect.c: Add libc_hidden_def.
30778         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
30779         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
30780         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
30781         alias.
30782         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
30783         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
30784         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
30785         of adding _internal alias.
30786
30787 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30788
30789         [BZ #14117]
30790         * sysdeps/i386/bits/link.h: Removed.
30791         * sysdeps/i386/bits/linkmap.h: Likewise.
30792         * sysdeps/x86_64/bits/link.h: Renamed to ...
30793         * sysdeps/x86/bits/link.h: This.
30794         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
30795         * sysdeps/x86/bits/linkmap.h: This.
30796
30797         * sysdeps/i386/bits/endian.h: Removed.
30798         * sysdeps/x86_64/bits/endian.h: Renamed to ...
30799         * sysdeps/x86/bits/endian.h: This.
30800
30801         * sysdeps/i386/bits/byteswap.h: Removed.
30802         * sysdeps/i386/bits/byteswap-16.h: Likewise.
30803         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
30804         * sysdeps/x86/bits/byteswap.h: This.
30805         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
30806         * sysdeps/x86/bits/byteswap-16.h: This.
30807         * sysdeps/i386/Implies: Add x86.
30808         * sysdeps/x86_64/Implies: Likewise.
30809
30810 2012-05-30  David S. Miller  <davem@davemloft.net>
30811
30812         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
30813         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
30814         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
30815         (FP_TRAPPING_EXCEPTIONS): Define.
30816         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
30817         (FP_TRAPPING_EXCEPTIONS): Define.
30818         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
30819         subnormals only when inexact has been signalled or underflow
30820         exceptions are enabled.
30821         (_FP_PACK_CANONICAL): Likewise.
30822
30823 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30824
30825         [BZ #14183]
30826         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
30827         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
30828
30829 2012-05-30  Richard Henderson  <rth@twiddle.net>
30830
30831         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
30832         with #ifndef NOT_IN_libc.
30833
30834         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
30835         marked to avoid plt entry.
30836
30837 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30838
30839         [BZ #14112]
30840         * Makeconfig (default-abi): New macro.
30841         (abi-includes): Likewise.
30842         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
30843         $(abi-$(default-abi)-lib-soname) for soname if defined.
30844         ($(common-objpfx)gnu/lib-names.stmp): Generate from
30845         abi-variants.
30846         * Makefile (installed-stubs): Likewise.
30847         * include/stubs-biarch.h: Removed.
30848         * scripts/lib-names.awk: Only handle one library at a time.
30849         * scripts/soversions.awk: Remove WORDSIZE support.
30850         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
30851         entries.
30852         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
30853         Removed.
30854         (syscall-list-default-condition): Likewise.
30855         (syscall-list-default-condition): Likewise.
30856         (syscall-list-includes): Likewise.
30857         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
30858         syscall-list-* with abi-*.  Handle undefined abi-variants.
30859         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
30860         * sysdeps/unix/sysv/linux/i386/Implies: New file.
30861         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
30862         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
30863         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
30864         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
30865         Removed.
30866         (syscall-list-32-options): Likewise.
30867         (syscall-list-32-condition): Likewise.
30868         (syscall-list-64-options): Likewise.
30869         (syscall-list-64-condition): Likewise.
30870         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
30871         macro.
30872         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
30873         Renamed to ...
30874         (abi-*): This.
30875         (abi-64-ld-soname): New macro.
30876         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
30877         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
30878         Renamed to ...
30879         (abi-*): This.
30880         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
30881         * sysdeps/x86_64/x32/shlib-versions: Likewise.
30882
30883 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
30884
30885         * sysdeps/unix/sysv/linux/kernel-features.h
30886         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
30887         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
30888         include <kernel-features.h>.
30889         [!__NR_ftruncate64]: Remove conditional code.
30890         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30891         [__NR_ftruncate64]: Make code unconditional.
30892         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30893         * sysdeps/unix/sysv/linux/truncate64.c: Do not
30894         include <kernel-features.h>.
30895         [!__NR_ftruncate64]: Remove conditional code.
30896         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30897         [__NR_ftruncate64]: Make code unconditional.
30898         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
30900         include <kernel-features.h>.
30901         [!__NR_ftruncate64]: Remove conditional code.
30902         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30903         [__NR_ftruncate64]: Make code unconditional.
30904         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
30906         include <kernel-features.h>.
30907         [!__NR_ftruncate64]: Remove conditional code.
30908         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30909         [__NR_ftruncate64]: Make code unconditional.
30910         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30911
30912         * configure.in (libc_cv_fpie): Weaken to a compile test using
30913         LIBC_TRY_CC_OPTION.
30914         * configure: Regenerated.
30915
30916 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30917
30918         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
30919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
30920         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
30921         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
30922         Refreshed.
30923         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
30924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
30925         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
30926         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
30927         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
30928         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
30929         Refreshed.
30930
30931 2012-05-27  David S. Miller  <davem@davemloft.net>
30932
30933         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
30934         (___Q_zero): New.
30935         (__Q_simulate_exceptions): Return void.  Change to simulate
30936         exceptions by writing into the %fsr.
30937         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
30938         (__Qp_handle_exceptions): Likewise.
30939         (numbers): Delete.
30940         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
30941         __Qp_handle_exceptions.
30942         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
30943         __Qp_handle_exceptions.
30944         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30945         as unused and give dummy FP_RND_NEAREST initializer.
30946         (FP_INHIBIT_RESULTS): Define.
30947         (___Q_simulate_exceptions): Update declaration.
30948         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
30949         formatting.
30950         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30951         as unused and give dummy FP_RND_NEAREST initializer.
30952         (__Qp_handle_exceptions): Update declaration.
30953         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
30954         formatting.
30955
30956 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
30957
30958         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
30959         the temporary FPU control word.
30960         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
30961         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
30962         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
30963         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30964         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
30965         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
30966         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
30967         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30968         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
30969         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
30970         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30971
30972 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30973
30974         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
30975         fields.
30976
30977 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
30978
30979         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
30980         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
30981         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
30982         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
30983         Likewise.
30984         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
30985         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
30986         Likewise.
30987
30988 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
30989
30990         * po/h.po: Update from translation team.
30991
30992 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
30993
30994         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
30995
30996         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
30997         handling of denormals.
30998         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
30999         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31000         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31001         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31002         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31003         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31004         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31005         Likewise.
31006
31007 2012-05-26  Marek Polacek  <polacek@redhat.com>
31008
31009         [BZ #14152]
31010         * math/libm-test.inc (fma_test): Don't always expect underflow
31011         exception.
31012
31013 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31014
31015         [BZ #12416]
31016         * elf/tst-execstack.c: Include stackinfo.h.
31017         (do_test): Adjust test case to ensure that pthread_getattr_np
31018         behaviour remains the same after marking stack executable.
31019
31020 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31021
31022         * sysdeps/unix/sysv/linux/kernel-features.h
31023         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31024         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31025         kernel-features.h.
31026         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31027         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31028         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31029         kernel-features.h.
31030         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31031         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31032
31033 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31034
31035         * configure.in: Define the default includes to being none.
31036         * configure: Regenerated.
31037
31038 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31039
31040         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31041         * sysdeps/x86_64/setjmp.S: Likewise.
31042         * sysdeps/i386/bsd-setjmp.S: Likewise.
31043         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31044         * sysdeps/i386/setjmp.S: Likewise.
31045         * sysdeps/i386/__longjmp.S: Likewise.
31046         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31047         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31048
31049         * include/stap-probe.h: New file.
31050         * configure.in: Handle --enable-systemtap.
31051         * configure: Regenerated.
31052         * config.h.in (USE_STAP_PROBE): New #undef.
31053         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31054         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31055         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31056
31057 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31058
31059         [BZ #13717]
31060         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31061         to 2.4.0 where earlier.
31062         * sysdeps/unix/sysv/linux/configure: Regenerated.
31063         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31064         <kernel-features.h>.
31065         [__ASSUME_32BITUIDS]: Make code unconditional.
31066         [!__ASSUME_32BITUIDS]: Remove conditional code.
31067         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31068         <kernel-features.h>.
31069         [__ASSUME_32BITUIDS]: Make code unconditional.
31070         [!__ASSUME_32BITUIDS]: Remove conditional code.
31071         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31072         [__ASSUME_32BITUIDS]: Make code unconditional.
31073         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31074         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31075         <kernel-features.h>.
31076         [__ASSUME_32BITUIDS]: Make code unconditional.
31077         [!__ASSUME_32BITUIDS]: Remove conditional code.
31078         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31079         <kernel-features.h>.
31080         [__ASSUME_32BITUIDS]: Make code unconditional.
31081         [!__ASSUME_32BITUIDS]: Remove conditional code.
31082         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31083         <kernel-features.h>.
31084         [__ASSUME_32BITUIDS]: Make code unconditional.
31085         [!__ASSUME_32BITUIDS]: Remove conditional code.
31086         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31087         <kernel-features.h>.
31088         [__ASSUME_32BITUIDS]: Make code unconditional.
31089         [!__ASSUME_32BITUIDS]: Remove conditional code.
31090         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
31091         <kernel-features.h>.
31092         [__ASSUME_32BITUIDS]: Make code unconditional.
31093         [!__ASSUME_32BITUIDS]: Remove conditional code.
31094         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
31095         <kernel-features.h>.
31096         [__ASSUME_32BITUIDS]: Make code unconditional.
31097         [!__ASSUME_32BITUIDS]: Remove conditional code.
31098         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
31099         <kernel-features.h>.
31100         [__ASSUME_32BITUIDS]: Make code unconditional.
31101         [!__ASSUME_32BITUIDS]: Remove conditional code.
31102         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
31103         <kernel-features.h>.
31104         [__ASSUME_32BITUIDS]: Make code unconditional.
31105         [!__ASSUME_32BITUIDS]: Remove conditional code.
31106         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
31107         <kernel-features.h>.
31108         [__ASSUME_32BITUIDS]: Make code unconditional.
31109         [!__ASSUME_32BITUIDS]: Remove conditional code.
31110         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31111         <kernel-features.h>.
31112         [__ASSUME_32BITUIDS]: Make code unconditional.
31113         [!__ASSUME_32BITUIDS]: Remove conditional code.
31114         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31115         <kernel-features.h>.
31116         [__NR_setresgid] (__setresgid): Do not declare.
31117         [__ASSUME_32BITUIDS]: Make code unconditional.
31118         [!__ASSUME_32BITUIDS]: Remove conditional code.
31119         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31120         <kernel-features.h>.
31121         [__NR_setresuid] (__setresuid): Do not declare.
31122         [__ASSUME_32BITUIDS]: Make code unconditional.
31123         [!__ASSUME_32BITUIDS]: Remove conditional code.
31124         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31125         <kernel-features.h>.
31126         [__ASSUME_32BITUIDS]: Make code unconditional.
31127         [!__ASSUME_32BITUIDS]: Remove conditional code.
31128         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31129         <kernel-features.h>.
31130         [__ASSUME_32BITUIDS]: Make code unconditional.
31131         [!__ASSUME_32BITUIDS]: Remove conditional code.
31132         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31133         <kernel-features.h>.
31134         [__ASSUME_32BITUIDS]: Make code unconditional.
31135         [!__ASSUME_32BITUIDS]: Remove conditional code.
31136         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31137         <kernel-features.h>.
31138         [__ASSUME_32BITUIDS]: Make code unconditional.
31139         [!__ASSUME_32BITUIDS]: Remove conditional code.
31140         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31141         <kernel-features.h>.
31142         [__ASSUME_32BITUIDS]: Make code unconditional.
31143         [!__ASSUME_32BITUIDS]: Remove conditional code.
31144         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31145         <kernel-features.h>.
31146         [__ASSUME_32BITUIDS]: Make code unconditional.
31147         [!__ASSUME_32BITUIDS]: Remove conditional code.
31148         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31149         <kernel-features.h>.
31150         [__ASSUME_32BITUIDS]: Make code unconditional.
31151         [!__ASSUME_32BITUIDS]: Remove conditional code.
31152         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
31153         <kernel-features.h>.
31154         [__ASSUME_32BITUIDS]: Make code unconditional.
31155         [!__ASSUME_32BITUIDS]: Remove conditional code.
31156         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
31157         <kernel-features.h>.
31158         [__ASSUME_32BITUIDS]: Make code unconditional.
31159         [!__ASSUME_32BITUIDS]: Remove conditional code.
31160         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31161         <kernel-features.h>.
31162         [__ASSUME_32BITUIDS]: Make code unconditional.
31163         [!__ASSUME_32BITUIDS]: Remove conditional code.
31164         * sysdeps/unix/sysv/linux/kernel-features.h
31165         (__ASSUME_SETRESUID_SYSCALL): Remove.
31166         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31167         (__ASSUME_32BITUIDS): Likewise.
31168         (__ASSUME_LDT_WORKS): Likewise.
31169         (__ASSUME_O_DIRECTORY): Likewise.
31170         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31171         architecture but not kernel version.
31172         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31173         (__ASSUME_MMAP2_SYSCALL): Likewise.
31174         (__ASSUME_STAT64_SYSCALL): Likewise.
31175         (__ASSUME_IPC64): Likewise.
31176         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31177         <kernel-features.h>.
31178         [__ASSUME_32BITUIDS]: Make code unconditional.
31179         [!__ASSUME_32BITUIDS]: Remove conditional code.
31180         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31181         <kernel-features.h>.
31182         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31183         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31184         132096]: Remove conditional code.
31185         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31186         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31187         <kernel-features.h>.
31188         [__ASSUME_32BITUIDS]: Make code unconditional.
31189         [!__ASSUME_32BITUIDS]: Remove conditional code.
31190         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31191         <kernel-features.h>.
31192         [__ASSUME_32BITUIDS]: Make code unconditional.
31193         [!__ASSUME_32BITUIDS]: Remove conditional code.
31194         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31195         <kernel-features.h>.
31196         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31197         unconditional.
31198         (__setresgid): Do not declare.
31199         [__ASSUME_32BITUIDS]: Make code unconditional.
31200         [!__ASSUME_32BITUIDS]: Remove conditional code.
31201         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31202         <kernel-features.h>.
31203         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31204         unconditional.
31205         (__setresuid): Do not declare.
31206         [__ASSUME_32BITUIDS]: Make code unconditional.
31207         [!__ASSUME_32BITUIDS]: Remove conditional code.
31208         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31209         <kernel-features.h>.
31210         [__ASSUME_32BITUIDS]: Make code unconditional.
31211         [!__ASSUME_32BITUIDS]: Remove conditional code.
31212         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31213         <kernel-features.h>.
31214         [__ASSUME_32BITUIDS]: Make code unconditional.
31215         [!__ASSUME_32BITUIDS]: Remove conditional code.
31216
31217 2012-05-25  Richard Henderson  <rth@twiddle.net>
31218
31219         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31220         dl_hwcap to ifunc resolver.
31221         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31222         elf_ifunc_invoke.
31223         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31224         dl_hwcap to ifunc resolver.
31225         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31226
31227 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31228
31229         [BZ #14153]
31230         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31231         for |x| <= 2**-26, not 2**-57.
31232         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31233         exception.
31234
31235 2012-05-24  Jeff Law  <law@redhat.com>
31236
31237         * stdio-common/Makefile (tests): Add bug25.
31238         * stdio-common/bug25.c: New test.
31239
31240 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31241
31242         [BZ #13576]
31243         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31244         multiple of MALLOC_ALIGNMENT in size.
31245         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31246
31247 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31248
31249         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31250         Require >= 256.
31251         (FILENAME_MAX): Use macro-int-constant.
31252         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31253         (_IOFBF): Use macro-int-constant.
31254         (_IOLBF): Likewise.
31255         (_IONBF): Likewise.
31256         (SEEK_CUR): Likewise.
31257         (SEEK_END): Likewise.
31258         (SEEK_SET): Likewise.
31259         (TMP_MAX): Likewise.
31260         (EOF): Use macro-int-constant.  Require < 0.
31261         (NULL): Use macro-constant.  Require == 0.
31262         (stdin): Require type to be FILE *.
31263         (stdout): Likewise.
31264         (stderr): Likewise.
31265         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31266         macro-int-constant.
31267         (EXIT_SUCCESS): Likewise.
31268         (NULL): Use macro-constant.  Require == 0.
31269         (RAND_MAX): Use macro-int-constant.
31270         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31271         [C99-based standards] (strtof): Require function.
31272         [C99-based standards] (strtold): Likewise.
31273         [C99-based standards] (strtoll): Likewise.
31274         [C99-based standards] (strtoull): Likewise.
31275         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31276         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31277         [ISO || ISO99 || ISO11] (math.h): Likewise.
31278         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31279         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31280         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31281
31282 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31283
31284         [BZ #14132]
31285         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31286         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31287         * intl/dgettext.c (DCGETTEXT): Likewise.
31288         * intl/gettext.c (DCGETTEXT): Likewise.
31289         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31290         * posix/regex_internal.h (gettext): Likewise.
31291         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31292         Remove declaration.
31293         * include/argz.h (__argz_count_internal)
31294         (__argz_stringify_internal): Remove declaration.
31295         (__argz_count, __argz_stringify): Declare hidden proto.
31296         * intl/dcgettext.c: Remove use of INTDEF.
31297         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31298         * string/argz-stringify.c: Likewise.
31299         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31300         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31301         Declare hidden proto.
31302         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31303         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31304         Declare hidden proto.
31305         * include/stdio.h (__asprintf_internal): Don't declare.
31306         (__asprintf): Don't define as macro.  Declare hidden proto.
31307         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31308         (__fsetlocking): Declare hidden proto.
31309         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31310         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31311         hidden proto.
31312         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31313         (_IO_setlinebuf): Remove use of INTUSE.
31314         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31315         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31316         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31317         Remove declaration.
31318         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31319         (_IO_do_flush): Remove use of INTUSE.
31320         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31321         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31322         (_IO_adjust_column, _IO_least_wmarker)
31323         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31324         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31325         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31326         (_IO_default_doallocate, _IO_wdefault_doallocate)
31327         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31328         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31329         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31330         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31331         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31332         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31333         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31334         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31335         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31336         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31337         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31338         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31339         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31340         proto.
31341         (_IO_flush_all_internal, _IO_adjust_column_internal)
31342         (_IO_default_uflow_internal, _IO_default_finish_internal)
31343         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31344         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31345         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31346         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31347         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31348         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31349         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31350         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31351         (_IO_file_close_internal, _IO_file_close_it_internal)
31352         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31353         (_IO_file_init_internal, _IO_file_attach_internal)
31354         (_IO_file_fopen_internal, _IO_file_read_internal)
31355         (_IO_file_sync_internal, _IO_file_seek_internal)
31356         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31357         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31358         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31359         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31360         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31361         (_IO_list_all_internal, _IO_link_in_internal)
31362         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31363         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31364         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31365         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31366         (_IO_do_write_internal, _IO_padn_internal)
31367         (_IO_getline_info_internal, _IO_getline_internal)
31368         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31369         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31370         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31371         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31372         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31373         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31374         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31375         with libc_hidden_ver, remove use of INTUSE.
31376         * libio/genops.c: Likewise.
31377         * libio/freopen.c: Likewise.
31378         * libio/freopen64.c: Likewise.
31379         * libio/iofclose.c: Likewise.
31380         * libio/iofdopen.c: Likewise.
31381         * libio/iofflush.c: Likewise.
31382         * libio/iofflush_u.c: Likewise.
31383         * libio/iofgets.c: Likewise.
31384         * libio/iofgets_u.c: Likewise.
31385         * libio/iofopen.c: Likewise.
31386         * libio/iofopncook.c: Likewise.
31387         * libio/iofread.c: Likewise.
31388         * libio/iofread_u.c: Likewise.
31389         * libio/ioftell.c: Likewise.
31390         * libio/iofwrite.c: Likewise.
31391         * libio/iogetline.c: Likewise.
31392         * libio/iogets.c: Likewise.
31393         * libio/iogetwline.c: Likewise.
31394         * libio/iopadn.c: Likewise.
31395         * libio/iopopen.c: Likewise.
31396         * libio/ioseekoff.c: Likewise.
31397         * libio/ioseekpos.c: Likewise.
31398         * libio/iosetbuffer.c: Likewise.
31399         * libio/iosetvbuf.c: Likewise.
31400         * libio/ioungetc.c: Likewise.
31401         * libio/ioungetwc.c: Likewise.
31402         * libio/iovdprintf.c: Likewise.
31403         * libio/iovsprintf.c: Likewise.
31404         * libio/iovsscanf.c: Likewise.
31405         * libio/memstream.c: Likewise.
31406         * libio/obprintf.c: Likewise.
31407         * libio/oldfileops.c: Likewise.
31408         * libio/oldiofclose.c: Likewise.
31409         * libio/oldiofdopen.c: Likewise.
31410         * libio/oldiofopen.c: Likewise.
31411         * libio/oldiopopen.c: Likewise.
31412         * libio/oldstdfiles.c: Likewise.
31413         * libio/putc.c: Likewise.
31414         * libio/setbuf.c: Likewise.
31415         * libio/setlinebuf.c: Likewise.
31416         * libio/stdfiles.c: Likewise.
31417         * libio/strops.c: Likewise.
31418         * libio/vasprintf.c: Likewise.
31419         * libio/vscanf.c: Likewise.
31420         * libio/vsnprintf.c: Likewise.
31421         * libio/vswprintf.c: Likewise.
31422         * libio/wfiledoalloc.c: Likewise.
31423         * libio/wfileops.c: Likewise.
31424         * libio/wgenops.c: Likewise.
31425         * libio/wmemstream.c: Likewise.
31426         * libio/wstrops.c: Likewise.
31427         * libio/__fpurge.c: Likewise.
31428         * libio/__fsetlocking.c: Likewise.
31429         * assert/assert.c: Likewise.
31430         * debug/fgets_chk.c: Likewise.
31431         * debug/fgets_u_chk.c: Likewise.
31432         * debug/fread_chk.c: Likewise.
31433         * debug/fread_u_chk.c: Likewise.
31434         * debug/gets_chk.c: Likewise.
31435         * debug/obprintf_chk.c: Likewise.
31436         * debug/vasprintf_chk.c: Likewise.
31437         * debug/vdprintf_chk.c: Likewise.
31438         * debug/vsnprintf_chk.c: Likewise.
31439         * debug/vsprintf_chk.c: Likewise.
31440         * malloc/mtrace.c: Likewise.
31441         * misc/error.c: Likewise.
31442         * misc/syslog.c: Likewise.
31443         * stdio-common/asprintf.c: Likewise.
31444         * stdio-common/fxprintf.c: Likewise.
31445         * stdio-common/getw.c: Likewise.
31446         * stdio-common/isoc99_fscanf.c: Likewise.
31447         * stdio-common/isoc99_scanf.c: Likewise.
31448         * stdio-common/isoc99_vfscanf.c: Likewise.
31449         * stdio-common/isoc99_vscanf.c: Likewise.
31450         * stdio-common/isoc99_vsscanf.c: Likewise.
31451         * stdio-common/printf-prs.c: Likewise.
31452         * stdio-common/printf_fp.c: Likewise.
31453         * stdio-common/printf_fphex.c: Likewise.
31454         * stdio-common/printf_size.c: Likewise.
31455         * stdio-common/putw.c: Likewise.
31456         * stdio-common/scanf.c: Likewise.
31457         * stdio-common/sprintf.c: Likewise.
31458         * stdio-common/tmpfile.c: Likewise.
31459         * stdio-common/vfprintf.c: Likewise.
31460         * stdio-common/vfscanf.c: Likewise.
31461         * stdlib/strfmon_l.c: Likewise.
31462         * sunrpc/openchild.c: Likewise.
31463         * sunrpc/xdr_stdio.c: Likewise.
31464         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31465         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31466
31467 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31468
31469         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31470
31471         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31472         in the third column, to generate for the shared library an IFUNC
31473         that uses _dl_vdso_vsym.
31474         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31475         * Makeconfig (object-suffixes-noshared): New variable.
31476
31477         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31478         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31479         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31480         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31481
31482         [BZ #14132]
31483         * include/sys/time.h (__gettimeofday): Remove macro.
31484         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31485         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31486         Remove INTDEF.
31487         (__gettimeofday): Add libc_hidden_def.
31488         (gettimeofday): Add libc_hidden_weak.
31489         * sysdeps/mach/gettimeofday.c: Likewise.
31490         * sysdeps/posix/gettimeofday.c: Likewise.
31491         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31492         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31493         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31494         (__gettimeofday_internal): Remove strong_alias.
31495         (__gettimeofday): Add libc_hidden_def.
31496         (gettimeofday): Add libc_hidden_weak.
31497         * sysdeps/unix/syscalls.list (gettimeofday):
31498         Remove __gettimeofday_internal alias.
31499
31500 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31501             H.J. Lu  <hongjiu.lu@intel.com>
31502
31503         [BZ #12495]
31504         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31505         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31506         (largebin_index_32_big): New.
31507         (largebin_index): Use it for 16-byte alignment.
31508         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31509         correction with front_misalign.
31510
31511 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31512
31513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31514         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31515         Likewise.
31516         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31517         Likewise.
31518         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31519         Likewise.
31520         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31521         Likewise.
31522         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31523         Likewise.
31524         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31525         Likewise.
31526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31527         Likewise.
31528         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31529         Likewise.
31530         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31531         Likewise.
31532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31533         Likewise.
31534         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31535         Likewise.
31536         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31537         Likewise.
31538
31539         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31540         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31541
31542 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31543
31544         [BZ #10846]
31545         [BZ #14036]
31546         * math/libm-test.inc (exp_test): Add test from bug 14036.
31547         (pow_test): Add test from bug 10846.
31548
31549         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31550         and other flags.
31551         (special_function): Do not include flags in test name.
31552         (parse_args): Likewise.
31553         * sysdeps/i386/fpu/libm-test-ulps: Update.
31554         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31555         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31556         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31558
31559         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31560         exceptions.
31561         * math/libm-test.inc ("Philosophy"): Update comment about
31562         exception testing.
31563         (UNDERFLOW_EXCEPTION): New macro.
31564         (UNDERFLOW_EXCEPTION_OK): Likewise.
31565         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31566         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31567         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31568         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31569         (INVALID_EXCEPTION_OK): Update value.
31570         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31571         (OVERFLOW_EXCEPTION_OK): Likewise.
31572         (IGNORE_ZERO_INF_SIGN): Likewise.
31573         (test_exceptions): Handle underflow exceptions.
31574         (acos_test): Update for underflow exception expectations.
31575         (cexp_test): Likewise.
31576         (clog_test): Likewise.
31577         (clog10_test): Likewise.
31578         (csqrt_test): Likewise.
31579         (ctan_test): Likewise.
31580         (ctanh_test): Likewise.
31581         (exp_test): Likewise.
31582         (exp10_test): Likewise.
31583         (exp2_test): Likewise.
31584         (expm1_test): Likewise.
31585         (fma_test): Likewise.
31586         (j0_test): Likewise.
31587         (jn_test): Likewise.
31588         (nexttoward_test): Likewise.
31589         (pow_test): Likewise.
31590         (scalbn_test): Likewise.
31591         (scalbln_test): Likewise.
31592         (tan_test): Likewise.
31593         (y1_test): Likewise.
31594         * sysdeps/i386/fpu/libm-test-ulps: Update.
31595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31596
31597 2012-05-23  David S. Miller  <davem@davemloft.net>
31598
31599         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31600         (__libc_sigaction): Remove unused local variables.
31601
31602 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31603
31604         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31605
31606 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31607
31608         mktime: avoid signed integer overflow
31609         * time/mktime.c (__mktime_internal): Do not mishandle the case
31610         where diff == INT_MIN.
31611
31612         mktime: simplify computation of average
31613         * time/mktime.c (ranged_convert): Use new time_t_avg function
31614         instead of rolling our own (probably-slower) code.
31615
31616         mktime: do not assume signed right shift propagates sign bit
31617         * time/mktime.c (isdst_differ): New static function.
31618         (__mktime_internal): No need to normalize tm_isdst now.
31619         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
31620         tm_isdst values.
31621
31622         mktime: merge another wrapv change from gnulib
31623         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
31624         from some compilers.
31625
31626         mktime: remove incorrect attempt at unusual arithmetics
31627         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
31628         The code didn't really work on such machines anyway.
31629         (TYPE_MINIMUM): Assume two's complement.
31630         (twos_complement_arithmetic): Verify that long_int and time_t
31631         are two's complement (or unsigned, in the latter case).
31632
31633         mktime: check signed shifts on long_int and time_t, too
31634         * time/mktime.c (SHR): Check that shifts work as desired
31635         on the types long_int and time_t too, as SHR is used on
31636         such types.
31637
31638         mktime: do not assume 'long' is wide enough
31639         * time/mktime.c (verify): Move decl up.
31640         (long_int): New type.
31641         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
31642         to remove assumption in the code that 'long' is wide enough to
31643         store year values.  This assumption is not true on x32 and on
31644         some non-glibc platforms.
31645
31646         mktime: merge wrapv change from gnulib
31647         * time/mktime.c (WRAPV): New macro.
31648         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
31649         (guess_time_tm, __mktime_internal): Do not assume that signed
31650         integer overflow wraps around; modern compilers generate code
31651         where this assumption is no longer valid.
31652
31653 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31654
31655         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31656         Replace "jmp L(pseudo_end)" with "ret".
31657         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
31658         Likewise.
31659
31660 2012-05-23  Andreas Jaeger  <aj@suse.de>
31661
31662         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
31663         * sysdeps/unix/sysv/linux/poll.c: Remove file.
31664
31665 2012-05-23  Andreas Jaeger  <aj@suse.de>
31666             Maximilian Attems  <max@stro.at>
31667
31668         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
31669         New macros.
31670
31671 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31672
31673         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
31674         code so that pseudo_end is just ret and the stack pointer is
31675         correct also for static library in error case.
31676
31677 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
31678
31679         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
31680         move to syscalls.list.
31681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
31682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31685
31686         * manual/install.texi (Running make install): Do not mention Linux
31687         kernel version for which pt_chown is not needed.
31688         (Linux): Do not mention problems with nscd with 2.0 kernels.
31689         * INSTALL: Regenerated.
31690
31691 2012-05-23  Andreas Jaeger  <aj@suse.de>
31692
31693         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
31694         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
31695         macro.
31696         * sysdeps/unix/sysv/linux/s390/bits/mman.h
31697         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31698         * sysdeps/unix/sysv/linux/sh/bits/mman.h
31699         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31700         * sysdeps/unix/sysv/linux/i386/bits/mman.h
31701         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31702         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
31703         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31704         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
31705         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31706         * sysdeps/unix/sysv/linux/bits/in.h
31707         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
31708
31709 2012-05-22  Roland McGrath  <roland@hack.frob.com>
31710
31711         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
31712         (PREPARE_VERSION): Just use assert instead, it will be elided
31713         under [NDEBUG] anyway.
31714
31715 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31716
31717         * sysdeps/unix/sysv/linux/Makefile: Include
31718         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
31719         (sysdep_routines): Remove sysctl.
31720         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
31721         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
31722         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
31723         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
31724         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
31725
31726 2012-05-22  Andreas Jaeger  <aj@suse.de>
31727
31728         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
31729         that pseudo_end is just ret and the stack pointer is correct also
31730         for static library in error case.
31731
31732 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
31733
31734         [BZ #14122]
31735         * nss/nsswitch.c (defconfig_entries): New variable.
31736         (__nss_database_lookup): Don't leak defconfig entries.
31737         (nss_parse_service_list): Don't leak on error paths.
31738         (free_database_entries): New function.
31739         (free_defconfig): New function.
31740         (free_mem): Move common code to free_database_entries.
31741
31742 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31743
31744         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
31745         Add arch_prctl.
31746         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
31747
31748         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
31749         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
31750         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
31751         New macro.
31752         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
31753         (INTERNAL_SYSCALL_TYPES): Likewise.
31754         (LOAD_ARGS_TYPES_[1-6]): Likewise.
31755         (LOAD_REGS_TYPES_[1-6]): Likewise.
31756         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
31757         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
31758
31759 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31760
31761         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
31762         copysignl for GLIBC_2_0.
31763         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
31764         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
31765         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
31766         logbl for GLIBC_2_0.
31767         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31768         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
31769
31770 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31771
31772         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
31773         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31774
31775         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31776         Use "neg %eax".
31777
31778         * time/mktime.c: Update copyright years.
31779
31780 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31781
31782         mktime: merge comment-quoting-style change from gnulib
31783         * time/mktime.c: Quote 'like this' in comments.
31784         The GNU coding standards suggest that we no longer quote `like this',
31785         as "`" and "'" are typically rendered asymmetrically nowadays.
31786         The typical gnulib style is to quote 'like this' when quoting
31787         code, and "like this" when quoting English.
31788
31789         * time/mktime.c (compile-command): Add "-I.".
31790
31791         mktime: merge mktime-internal.h change from gnulib
31792         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
31793
31794         mktime: merge time_r change from gnulib
31795         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
31796
31797         mktime: merge DEBUG change from gnulib
31798         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
31799         case system <time.h> has a #define.
31800
31801         mktime: merge <sys/types.h> change from gnulib
31802         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
31803         since <time.t> is now guaranteed to define time_t.
31804
31805         mktime: merge HAVE_CONFIG_H change from gnulib
31806         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
31807
31808 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31809
31810         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31811         Use "neg %eax".
31812
31813         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
31814         __rlim_t cast.
31815         (struct rusage): Use anonymous union to pad each field to
31816         __syscall_slong_t.
31817
31818 2012-05-21  David S. Miller  <davem@davemloft.net>
31819
31820         * Makefules (o-iterator): Remove .s cases.
31821         (compile-command.s): Delete.
31822         (COMPILE.s): Delete.
31823         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
31824
31825 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
31826
31827         * configure.in (libc_cv_predef_stack_protector): Only consider
31828         "foobar" and "__stack_chk_fail" lines in libc_undefs.
31829         * configure: Regenerated.
31830
31831 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31832
31833         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31834         New macro.  Use R*LP on int and pointer.
31835         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
31836         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
31837         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
31838         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
31839
31840         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
31841         [__WORDSIZE_TIME64_COMPAT32] instead of
31842         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
31843         (struct utmp): Likewise.
31844         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
31845         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
31846         Renamed to ...
31847         (__WORDSIZE_TIME64_COMPAT32): This.
31848         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
31849         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
31850         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
31851         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
31852         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
31853         (__WORDSIZE_TIME64_COMPAT32): New macro.
31854
31855 2012-05-21  Andreas Jaeger  <aj@suse.de>
31856
31857         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
31858         only if [SHARED]. Add prototype for __wcschr_ia32.
31859
31860 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31861
31862         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
31863         of %rbp unmolested in the jmp_buf while mangling the low bits.
31864         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
31865         unmolested high bits of %rbp while demangling the low bits.
31866         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31867
31868 2012-05-21  Andreas Jaeger  <aj@suse.de>
31869
31870         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
31871         * sunrpc/svc_simple.c: Use it for registerrpc.
31872         * sunrpc/xcrypt.c: Use it for passwd2des.
31873
31874         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
31875
31876 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31877
31878         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
31879         Don't define if [__SYSCALL_WORDSIZE != 32].
31880         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
31881         New macro.
31882
31883 2012-05-21  Bruno Haible  <bruno@clisp.org>
31884             Andreas Jaeger  <aj@suse.de>
31885
31886         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
31887         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
31888         inptr and inend for must_buffer_ch.
31889         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
31890         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
31891         * stdio-common/Makefile (tests): Remove bug15.
31892         (bug15-ENV): Remove macro.
31893         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
31894         anymore.
31895
31896 2012-05-19  Andreas Jaeger  <aj@suse.de>
31897             Roland McGrath  <roland@hack.frob.com>
31898
31899         * manual/contrib.texi: Completely rewritten. It contains now an
31900         alphabetical list of contributors and their contributions.
31901
31902 2012-05-21  Richard Henderson  <rth@twiddle.net>
31903
31904         * misc/getauxval.c (__getauxval): Use unsigned long int.
31905         * misc/sys/auxv.h: Include <sys/cdefs.h>.
31906         (getauxval): Use unsigned long int.
31907
31908 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31909
31910         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31911
31912 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31913
31914         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
31915         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
31916         __alignof__ (long double).
31917
31918 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31919
31920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31921
31922 2012-05-20  Richard Henderson  <rth@twiddle.net>
31923
31924         * misc/getauxval.c: New file.
31925         * misc/sys/auxv.h: New file.
31926         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
31927         (routines): Add getauxval.
31928         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
31929         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
31930         * elf/dl-sysdep.c (_dl_auxv): Remove.
31931         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
31932         * elf/dl-support.c (_dl_auxv): New variable.
31933         (_dl_aux_init): Initialize it.
31934         * manual/startup.texi (Auxiliary Vector): New node.
31935         * sysdeps/generic/bits/hwcap.h: New file.
31936         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
31937         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
31938         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
31939         * sysdeps/sparc/sysdep.h: ... here.  Include it.
31940         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
31941         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
31942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
31943         Update.
31944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
31945         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
31946         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
31947         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
31948         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31949         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31950         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
31951         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
31952
31953 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31954
31955         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31956
31957 2012-05-19  David S. Miller  <davem@davemloft.net>
31958
31959         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31960
31961 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31962
31963         [BZ #14123]
31964         * math/s_ccosh.c: Include <float.h>
31965         (__ccosh): Avoid internal overflow calculating sinh and cosh
31966         values before multiplying by sin and cos values.
31967         * math/s_ccoshf.c: Likewise.
31968         * math/s_ccoshl.c: Likewise.
31969         * math/s_csin.c: Likewise.
31970         * math/s_csinf.c: Likewise.
31971         * math/s_csinl.c: Likewise.
31972         * math/s_csinh.c: Likewise.
31973         * math/s_csinhf.c: Likewise.
31974         * math/s_csinhl.c: Likewise.
31975         * math/libm-test.inc (ccos_test): Add more tests.
31976         (ccosh_test): Likewise.
31977         (csin_test): Likewise.
31978         (csinh_test): Likewise.
31979         * sysdeps/i386/fpu/libm-test-ulps: Update.
31980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31981
31982 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
31983
31984         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
31985         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
31986
31987         * sysdeps/x86_64/x32/_itoa.h: Add comment.
31988
31989 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31990
31991         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
31992         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
31993         * sysdeps/powerpc/soft-fp/Versions: Likewise.
31994         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
31995         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
31996         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
31997         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
31998         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
31999         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32000         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32001         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32002         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32003         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32004         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32005         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32006         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32007         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32008         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32009         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32010         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32011         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32012         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32013         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32014         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32015         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32016         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32017         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32018         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32019         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32020         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32021         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32022
32023 2012-05-18  Andreas Jaeger  <aj@suse.de>
32024
32025         * csu/.gitignore: Delete.
32026
32027 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32028
32029         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32030         (timex): Use __syscall_slong_t.
32031
32032 2012-05-18  Andreas Jaeger  <aj@suse.de>
32033             Carlos O'Donell  <carlos_odonell@mentor.com>
32034
32035         * manual/install.texi (Configuring and compiling): Update
32036         description about files modified in the source directory.
32037         * INSTALL: Regenerated.
32038
32039 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32040
32041         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32042         value.  Use "or" to set return value to -1.
32043         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32044         negate return value.
32045
32046 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32047
32048         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32049         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32050         failure if the compiler has Graphite support disabled.
32051         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32052         Likewise.
32053         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32054         (CFLAGS-memmove.c): Likewise.
32055         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32056         Likewise.
32057
32058 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32059
32060         * sysdeps/x86_64/x32/_itoa.h: New file.
32061
32062         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32063         getdents system call only if kernel and user dirents have the
32064         same d_ino and d_off.
32065
32066         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32067         LLONG_MAX != LONG_MAX.
32068         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32069         (_fitoa_word): Likewise.
32070
32071         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32072         years.
32073         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32074         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32075         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32076
32077         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32078         include <bits/wordsize.h>.  Check __x86_64__ instead of
32079         __WORDSIZE.
32080         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32081         if __x86_64__ is defined.  Use anonymous union on fpstate.
32082
32083         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32084         anonymous union.
32085
32086 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32087
32088         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32089         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32090         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32091         Refer to _rtld_local_ro instead of _rtld_global_ro.
32092         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32093         Likewise.
32094         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32095         Likewise.
32096         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32097         Likewise.
32098         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32099         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32100         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32101
32102         * sysdeps/powerpc/powerpc32/dl-machine.c
32103         (__elf_machine_runtime_setup) [PROF]: Don't reference
32104         _dl_prof_resolve.
32105
32106 2012-05-18  Andreas Jaeger  <aj@suse.de>
32107
32108         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32109         function only available for GCCs before 3.4 since GCC 3.4
32110         introduced a builtin.
32111         (lrint): Likewise.
32112         (llrintf): Likewise.
32113         (llrint): Likewise.
32114         (fmaxf): Likewise.
32115         (fmax): Likewise.
32116         (fminf): Likewise.
32117         (fmin): Likewise.
32118         (rint): Likewise.
32119         (rintf): Likewise.
32120         (nearbyint): Likewise.
32121         (nearbyintf): Likewise.
32122         (ceil): Likewise.
32123         (ceilf): Likewise.
32124         (floor): Likewise.
32125         (floorf): Likewise.
32126
32127 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32128
32129         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32130         on both fields and cast pointer to __syscall_ulong_t.
32131
32132         * bits/types.h (__fsword_t): New type.
32133         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32134         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32135         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32136         (__FSWORD_T_TYPE): Likewise.
32137         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32138         (__FSWORD_T_TYPE): Likewise.
32139         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32140         (__FSWORD_T_TYPE): Likewise.
32141         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32142         (__FSWORD_T_TYPE): Likewise.
32143         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32144         __SWORD_TYPE with __fsword_t.
32145         (statfs64): Likewise.
32146
32147 2012-05-17  David S. Miller  <davem@davemloft.net>
32148
32149         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32150
32151 2012-05-17  Andreas Jaeger  <aj@suse.de>
32152
32153         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32154         warning.
32155
32156 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32157
32158         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32159
32160 2012-05-17  Andreas Jaeger  <aj@suse.de>
32161
32162         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32163         when it is used.
32164
32165 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32166
32167         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32168
32169 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32170
32171         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32172         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32173
32174 2012-05-17  Andreas Jaeger  <aj@suse.de>
32175             Carlos O'Donell  <carlos_odonell@mentor.com>
32176
32177         [BZ #14059]
32178         * sysdeps/x86_64/multiarch/init-arch.h
32179         (bit_YMM_Usable): Rename to...
32180         (bit_AVX_Usable): ... this.
32181         (bit_FMA4_Usable): New macro.
32182         (bit_XMM_state): New macro.
32183         (bit_YMM_state): New macro.
32184         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32185         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32186         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32187         (CPUID_OSXSAVE): New macro.
32188         (CPUID_AVX): New macro.
32189         (CPUID_FMA4): New macro.
32190         (index_YMM_Usable): Rename to...
32191         (index_AVX_Usable): ... this.
32192         (HAS_AVX): Use HAS_ARCH_FEATURE.
32193         (HAS_FMA4): Likewise.
32194         (HAS_YMM_USABLE): Remove.
32195         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32196         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32197         are present.
32198         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32199         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32200         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32201         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32202         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32203
32204 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32205
32206         * math/libm-test.c: Support platforms without multiple rounding modes.
32207         * math/bug-nextafter.c: Support platforms without FP exceptions.
32208         * math/bug-nexttoward.c: Likewise.
32209         * math/test-fenv.c: Likewise.
32210         * math/test-misc.c: Likewise.
32211         * stdlib/bug-getcontext.c: Likewise.
32212
32213 2012-05-17  Andreas Jaeger  <aj@suse.de>
32214
32215         * manual/examples/search.c (critter_cmp): Change signature to
32216         avoid warnings.
32217         * manual/string.texi (Collation Functions): Likewise.
32218
32219 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32220
32221         * bits/types.h: Fold copyright years.
32222         * bits/typesizes.h: Likewise.
32223         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32224         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32225         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32226         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32227         * time/time.h: Likewise.
32228
32229 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32230
32231         [BZ #208]
32232         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32233         in instead of returning them.  Return void.
32234         (__libc_mallinfo): Accumulate over all arenas.
32235         (__malloc_stats): Adjust for change in int_mallinfo interface.
32236
32237 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32238
32239         [BZ #10375]
32240         * configure.in (NM): Add AC_CHECK_TOOL for it.
32241         (libc_extra_cflags): New substituted variable.
32242         Check for -fstack-protector being used implicitly.
32243         * configure: Regenerated.
32244         * config.make.in (config-extra-cflags): New variable,
32245         gets @libc_extra_cflags@.
32246         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32247
32248         [BZ #10375]
32249         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32250         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32251         * configure: Regenerated.
32252         * config.make.in (CPPUNDEFS): New substituted variable.
32253         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32254         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32255         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32256
32257 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32258
32259         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32260         (mq_attr): Use __syscall_slong_t.
32261
32262 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32263
32264         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32265         Check __x86_64__ instead of __WORDSIZE.
32266         (_STAT_VER_LINUX): Likewise.
32267         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32268         __syscall_ulong_t and __syscall_slong_t.
32269         (stat64): Likewise.
32270
32271 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32272
32273         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32274
32275 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32276
32277         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32278
32279 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32280
32281         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32282         __syscall_ulong_t.
32283
32284         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32285         include <bits/wordsize.h>.  Check __x86_64__ instead of
32286         __WORDSIZE.
32287         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32288         defined.
32289         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32290
32291         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32292         include <bits/wordsize.h>.  Check __x86_64__ instead of
32293         __WORDSIZE.
32294         (user_regs_struct): Use "__extension__ unsigned long long"
32295         instead of "unsigned long" if __x86_64__ is defined.
32296         (user): Likewise.  Pad after pointer field if __ILP32__ is
32297         defined.
32298
32299 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32300
32301         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32302         versions 5 to 9.
32303         * configure: Regenerated.
32304         * manual/install.texi (texinfo): Increase version requirement to
32305         4.5 or later.
32306         * INSTALL: Regenerated.
32307
32308         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32309
32310 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32311
32312         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32313
32314         * sysdeps/x86_64/x32/ffs.c: New file.
32315
32316         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32317         __syscall_ulong_t.
32318         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32319         defined.  Use __syscall_ulong_t.
32320         (shminfo): Use __syscall_ulong_t.
32321         (shm_info): Likewise.
32322
32323         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32324         __syscall_ulong_t.
32325
32326         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32327         <bits/wordsize.h>.
32328         (msgqnum_t): Use __syscall_ulong_t.
32329         (msglen_t): Likewise.
32330         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32331         __syscall_ulong_t.
32332
32333         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32334         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32335
32336         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32337
32338         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32339         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32340
32341         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32342         __syscall_slong_t.
32343
32344         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32345         include <bits/wordsize.h>.  Check __x86_64__ instead of
32346         __WORDSIZE.
32347
32348         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32349         "unsigned long long int" if __x86_64__ is defined.
32350         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32351
32352         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32353         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32354         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32355
32356         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32357         <stdint.h>.
32358         (GET_PC): Cast to uintptr_t first.
32359         (GET_FRAME): Likewise.
32360         (GET_STACK): Likewise.
32361
32362         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32363         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32364         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32365         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32366         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32367         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32368         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32369         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32370         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32371         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32372         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32373         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32374         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32375         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32376         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32377         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32378         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32379         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32380         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32381         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32382         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32383         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32384         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32385         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32386         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32387         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32388         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32389         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32390         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32391
32392 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32393
32394         * Makerules (+depfiles): Also collect depfiles from .oS in
32395         $(extra-objs).
32396         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32397         .oS, $(libnldbl-routines)).
32398
32399         * Makerules (native-compile-mkdep-flags): Define.
32400         * sunrpc/Makefile (extra-objs): Add $(addprefix
32401         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32402         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32403         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32404         calling $(make-target-directory).
32405
32406 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32407
32408         * bits/types.h (__snseconds_t): Removed.
32409         * time/time.h (struct timespec): Replace __snseconds_t with
32410         __syscall_slong_t.
32411         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32412         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32413         Likewise.
32414         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32415         (__SNSECONDS_T_TYPE): Likewise.
32416         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32417         (__SNSECONDS_T_TYPE): Likewise.
32418         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32419         (__SNSECONDS_T_TYPE): Likewise.
32420
32421 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32422
32423         * sysdeps/mach/hurd/bits/typesizes.h
32424         (__SYSCALL_SLONG_TYPE): New macro.
32425         (__SYSCALL_ULONG_TYPE): Likewise.
32426
32427 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32428
32429         * bits/types.h (__syscall_slong_t): New type.
32430         (__syscall_ulong_t): Likewise.
32431
32432         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32433         (__SYSCALL_ULONG_TYPE): Likewise.
32434         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32435         (__SYSCALL_SLONG_TYPE): Likewise.
32436         (__SYSCALL_ULONG_TYPE): Likewise.
32437         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32438         (__SYSCALL_SLONG_TYPE): Likewise.
32439         (__SYSCALL_ULONG_TYPE): Likewise.
32440         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32441         (__SYSCALL_SLONG_TYPE): Likewise.
32442         (__SYSCALL_ULONG_TYPE): Likewise.
32443
32444 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32445
32446         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32447         Add sigaltstack-offsets.sym.
32448         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32449         <sigaltstack-offsets.h>.
32450         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32451         longjmp_msg pointer.
32452         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32453         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32454         signal stack.
32455         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32456
32457 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32458
32459         * elf/stackguard-macros.h: Remove file.
32460         * sysdeps/generic/stackguard-macros.h: New file.
32461         * sysdeps/i386/stackguard-macros.h: Likewise.
32462         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32463         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32464         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32465         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32466         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32467         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32468         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32469         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32470         <elf/stackguard-macros.h>.
32471
32472         [BZ #14109]
32473         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32474         __aligned__ in attribute.
32475         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32476         (gregset_t): Likewise.
32477
32478 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32479
32480         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32481         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32482         * sysdeps/x86_64/x32/Implies-after: New file.
32483
32484 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32485
32486         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32487         and access return value for _dl_profile_fixup.  Use R10_LP to
32488         load frame size.
32489
32490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32491
32492         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32493
32494 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32495
32496         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32497         * sysdeps/x86_64/x32/sysdep.h: New file.
32498
32499 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32500
32501         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32502         * sysdeps/x86_64/setjmp.S: Likewise.
32503
32504 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32505
32506         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32507         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32508         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32509         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32510         remove unused global constant.
32511
32512 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32513
32514         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32515         include of <not-cancel.h>.
32516
32517 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32518
32519         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32520
32521 2012-05-15  Jeff Law  <law@redhat.com>
32522             Andreas Jaeger  <aj@suse.de>
32523
32524         [BZ #13594]
32525         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32526         out from...
32527         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32528         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32529         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32530         code changing __hst_map_handle.map.
32531
32532 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32533
32534         * configure.in (sysnames): Look for Implies-before and Implies-after
32535         files.
32536         * configure: Regenerated.
32537
32538 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32539
32540         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32541         8-byte data alignment with LP_SIZE alignment.
32542
32543 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32544
32545         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32546         into R10_LP.
32547
32548 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32549
32550         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32551
32552 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32553
32554         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32555         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32556         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32557         Likewise.
32558         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32559
32560 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32561
32562         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32563         (stackinfo_sub_sp): Likewise.
32564
32565 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32566
32567         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32568         RAX_LP.
32569
32570 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32571
32572         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32573         into R*_LP.
32574
32575 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32576
32577         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32578         sizes into R*_LP.
32579
32580 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32581
32582         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32583
32584 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32585
32586         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32587         into R11_LP and load __x86_64_shared_cache_size_half into
32588         R8_LP.
32589
32590 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32591
32592         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32593         R8_LP.
32594
32595 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32596
32597         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32598         logb for POWER7.
32599         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32600         logbf for POWER7.
32601         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32602         logbl for POWER7.
32603         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32604         powerpc32/power7/fpu/s_logb.c via #include.
32605         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32606         powerpc32/power7/fpu/s_logbf.c via #include.
32607         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
32608         powerpc32/power7/fpu/s_logbl.c via #include.
32609
32610 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32611
32612         * README.libm: Remove file.
32613
32614 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32615
32616         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
32617         count for x32.  Use R*_LP and omit operand-size suffix.
32618
32619 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32620
32621         * shlib-versions: Move x86_64-.*-linux.* entries to ...
32622         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
32623         * sysdeps/x86_64/x32/shlib-versions: New file.
32624
32625 2012-05-14  Roland McGrath  <roland@hack.frob.com>
32626
32627         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
32628         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
32629         Use _dl_fatal_printf instead.
32630
32631 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32632
32633         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
32634         set if not set by the user.  Do not allow for being unset.
32635         * sysdeps/unix/sysv/linux/configure: Regenerated.
32636
32637 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32638
32639         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
32640         the `q' suffix from lea and replace .quad with ASM_ADDR.
32641
32642 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32643
32644         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
32645         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
32646         instead of $17.
32647         (PTR_DEMANGLE): Likewise.
32648
32649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32650
32651         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
32652         (LP_OP): Likewise.
32653         (ASM_ADDR): Likewise.
32654         (RAX_LP): Likewise.
32655         (RBP_LP): Likewise.
32656         (RBX_LP): Likewise.
32657         (RCX_LP): Likewise.
32658         (RDI_LP): Likewise.
32659         (RSI_LP): Likewise.
32660         (RSP_LP): Likewise.
32661         (R8_LP): Likewise.
32662         (R9_LP): Likewise.
32663         (R10_LP): Likewise.
32664         (R10_LP): Likewise.
32665         (R11_LP): Likewise.
32666         (R12_LP): Likewise.
32667         (R13_LP): Likewise.
32668         (R14_LP): Likewise.
32669         (R15_LP): Likewise.
32670
32671 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32672
32673         * sysdeps/x86_64/x32/dl-machine.h: New file.
32674
32675 2012-05-14  Andreas Jaeger  <aj@suse.de>
32676
32677         * manual/Makefile (subdir): Remove export of subdir.
32678         (all): Remove target.
32679         (.PHONY): Remove all from list.
32680         (mkinstalldirs): Remove.
32681         (.PHONY): Remove installdirs from list.
32682         ($(inst_infodir)/libc.info): Use make-target-directory.
32683         (installdirs): Remove.
32684         (subdir_%): Remove.
32685         (glibc-targets): Remove.
32686         (lib): Remove.
32687         (stubs): Remove.
32688         ($(objpfx)stubs ../po/manual.pot): Remove.
32689         ($(objpfx)stamp%): Remove.
32690         (make-target-directory): Remove.
32691         (subdir_install): Remove.
32692         (routines): Remove.
32693         (aux): Remove.
32694         (sources): Remove.
32695         (objects): Remove.
32696         (headers): Remove.
32697
32698         [BZ #13750]
32699         * manual/.gitignore: Remove, it's not needed anymore.
32700         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
32701         all files in it.
32702         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
32703         directory.
32704         (texis): Renamed to $(objpfx)texis.
32705         (texis-path): New, contains path to generated files.
32706         (chapters.%): Use texis-path for complete path, add extra argument
32707         libc-texinfo.sh.
32708         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
32709         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
32710         (summary,texi, stamp-summary): Use complete path of
32711         files. Generate files in build dir.
32712         (dir-add.texi): Build in build dir.
32713         (libm-err.texi,stamp-libm-err): Likewise.
32714         (version.texi, stamp-version): Likewise.
32715         (.%c.texi): Likewise.
32716         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
32717         (mostlyclean): Remove target.
32718         (realclean): Remove target.
32719         (generated): Add new variable with contents from mostlyclean and
32720         realclean, remove entries duplicated in common-mostlyclean, add
32721         stamp-libm-err and stamp-version.
32722         (generated-dirs): Add libc directory.
32723         ($(inst_infodir)/libc.info): Install files from build dir.
32724
32725         * manual/install.texi (Configuring and compiling): Adjust since
32726         the info files are not part of the tar ball anymore.
32727
32728 2012-05-14  Andreas Jaeger  <aj@suse.de>
32729
32730         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
32731         variable.
32732
32733 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32734
32735         [BZ #13717]
32736         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32737         to 2.2.0 where earlier.
32738         * sysdeps/unix/sysv/linux/configure: Regenerated.
32739         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
32740         Remove conditional code.
32741         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
32742         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
32743         Remove conditional code.
32744         [!__NR_lchown]: Likewise.
32745         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32746         [__NR_lchown]: Likewise.
32747         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
32748         comment referencing __ASSUME_LCHOWN_SYSCALL.
32749         * sysdeps/unix/sysv/linux/i386/sigaction.c
32750         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32751         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32752         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
32753         Remove conditional code.
32754         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
32755         (__protocol_available): Remove #if 0 code.
32756         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
32757         conditional code.
32758         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
32759         * sysdeps/unix/sysv/linux/kernel-features.h
32760         (__ASSUME_GETCWD_SYSCALL): Don't define.
32761         (__ASSUME_REALTIME_SIGNALS): Likewise.
32762         (__ASSUME_PREAD_SYSCALL): Likewise.
32763         (__ASSUME_PWRITE_SYSCALL): Likewise.
32764         (__ASSUME_POLL_SYSCALL): Likewise.
32765         (__ASSUME_LCHOWN_SYSCALL): Likewise.
32766         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
32767         non-SPARC.
32768         (__ASSUME_SIOCGIFNAME): Don't define.
32769         (__ASSUME_MSG_NOSIGNAL): Likewise.
32770         (__ASSUME_SENDFILE): Define unconditionally.
32771         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
32772         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
32773         conditional code.
32774         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
32775         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
32776         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32777         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32778         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
32779         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32780         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
32782         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32783         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32784         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
32785         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32786         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32787         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
32788         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32789         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
32791         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32792         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32793         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
32794         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32795         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32796         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
32797         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32798         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
32800         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32801         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
32803         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32804         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32805         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
32806         Remove conditional code.
32807         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32808         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32809         Remove conditional code.
32810         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32811         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
32812         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
32813         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32814         Remove conditional code.
32815         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32816         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
32817         Remove conditional code.
32818         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32819         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
32820         Remove conditional code.
32821         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32822         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32823         Remove conditional code.
32824         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32825         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32826         Remove conditional code.
32827         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32828         * sysdeps/unix/sysv/linux/sh/pwrite64.c
32829         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32830         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32831         * sysdeps/unix/sysv/linux/sigaction.c
32832         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32833         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32834         * sysdeps/unix/sysv/linux/sigpending.c
32835         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32836         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32837         * sysdeps/unix/sysv/linux/sigprocmask.c
32838         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32839         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32840         * sysdeps/unix/sysv/linux/sigsuspend.c
32841         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32842         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32843         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32844         (__libc_missing_rt_sigs): Remove.
32845         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
32846         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
32847         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
32848         Remove conditional code.
32849         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
32850         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
32851         return 1.
32852         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
32853         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
32854         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
32855         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
32856
32857 2012-05-14  Andreas Jaeger  <aj@suse.de>
32858
32859         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
32860         it's not used in glibc.
32861         (__coshm1): Likewise.
32862         (__acosh1p): Likewise.
32863         (__sgn): Likewise.
32864
32865         * manual/string.texi (Copying and Concatenation): Add missing
32866         variable in concat example.
32867         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
32868
32869 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32870
32871         [BZ #14103]
32872         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
32873         __builtin_clzl with __builtin_clzll.
32874
32875 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32876
32877         [BZ #14104]
32878         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
32879         libc_freeres_ptr.
32880
32881 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32882
32883         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
32884         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
32885         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
32886         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
32887
32888 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
32889
32890         * NEWS: Update ia64 info.
32891
32892 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
32893
32894         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
32895         used as bcopy.
32896
32897 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
32898
32899         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
32900         * sysdeps/unix/syscalls.list (dup3): Likewise.
32901         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
32902         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
32903
32904 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32905
32906         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
32907         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
32908
32909 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32910
32911         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
32912         thread pointer.
32913         (TLS_IE): Use mov/add instead of movq/addq to load thread
32914         pointer.
32915         (TLS_GD_PREFIX): New.
32916         (TLS_GD): Use it.
32917
32918 2012-05-11  David S. Miller  <davem@davemloft.net>
32919
32920         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
32921         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
32922         (_FPU_SETCW): Likewise.
32923
32924 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32925
32926         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
32927         is 32-byte aligned.
32928
32929 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
32930
32931         [BZ #11837]
32932         * iconvdata/gb18030.c: Update tables.
32933         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
32934         characters specially.
32935         (BODY for TO_LOOP): Add encoding of missing ranges.
32936
32937 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
32938
32939         [BZ #13673]
32940         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
32941         * sysdeps/mach/hurd/dup3.c: Likewise.
32942         * sysdeps/mach/hurd/readlinkat.c: Likewise.
32943         * sysdeps/powerpc/memmove.c:: Likewise.
32944
32945 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32946
32947         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
32948         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
32949
32950 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32951
32952         * elf/elf.h (R_X86_64_RELATIVE64): New.
32953         (R_X86_64_NUM): Updated.
32954         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
32955         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
32956         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
32957         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
32958         tst-quad1pie tst-quad2pie
32959         (modules-names): Add tst-quadmod1 tst-quadmod2.
32960         ($(objpfx)tst-quad1): New dependency.
32961         ($(objpfx)tst-quad2): Likewise.
32962         ($(objpfx)tst-quad1pie): Likewise.
32963         ($(objpfx)tst-quad2pie): Likewise.
32964         * sysdeps/x86_64/tst-quad1.c: New file.
32965         * sysdeps/x86_64/tst-quad1pie.c: New file.
32966         * sysdeps/x86_64/tst-quad2.c: Likewise.
32967         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
32968         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
32969         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
32970         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
32971         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
32972
32973 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32974
32975         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
32976         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
32977         * streams/stropts.h (t_scalar_t): Define type.
32978
32979         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
32980         (_PATH_PRESERVE): Set to "/var/lib".
32981         (_PATH_RWHODIR): Set to "/var/spool/rwho".
32982
32983         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
32984         instead of int.
32985
32986         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
32987         if __dir_mkfile succeeded.
32988
32989         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
32990         checking for _hurd_dtablesize.  Unlock it right after having
32991         finished _hurd_dtable allocation.
32992
32993 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32994
32995         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
32996         * sysdeps/mach/hurd/configure: Regenerated.
32997         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
32998         special-casing to...
32999         * sysdeps/gnu/configure.in: ... this new file.
33000         * sysdeps/unix/sysv/linux/configure: Regenerated.
33001         * sysdeps/gnu/configure: New generated file.
33002
33003         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33004         for Linux: use nsec instead of usec, as well as:
33005         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33006         members of type struct timespec.
33007         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33008         New macros.
33009         (struct stat64): Likewise.
33010         (_STATBUF_ST_NSEC): New macro.
33011         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33012
33013         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33014         __strtoul_internal rather than strtoul.
33015
33016 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33017
33018         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33019         and reject them.
33020
33021 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33022
33023         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33024         which preserves existing values.
33025         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33026
33027 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33028
33029         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33030         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33031         greater than FD_SETSIZE.
33032
33033 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33034
33035         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33036         allocated, call __vm_protect to finish enabling the existing space, and
33037         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33038         allocate the remainder.
33039
33040 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33041
33042         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33043         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33044
33045 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33046
33047         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33048         sysdeps/mach/hurd/readlink.c.
33049
33050         * posix/tst-sysconf.c (posix_options): Only use
33051         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33052         _POSIX_SYNCHRONIZED_IO when they are defined
33053         * sysdeps/mach/hurd/bits/posix_opt.h:
33054         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33055         (_XOPEN_REALTIME): Undefine macro.
33056         (_XOPEN_REALTIME_THREADS): Undefine macro.
33057         (_XOPEN_SHM): Undefine macro.
33058         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33059         macro to -1.
33060         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33061         macro to -1.
33062         (_POSIX_ASYNC_IO): Undefine macro.
33063         (_POSIX_PRIORITIZED_IO): Undefine macro.
33064         (_POSIX_SPIN_LOCKS): Define macro to -1.
33065
33066         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33067         SA_NODEFER, SA_RESETHAND.
33068         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33069         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33070         F_DUPFD_CLOEXEC.
33071
33072 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33073
33074         * elf/Makefile (pldd-modules): Define unconditionally.
33075
33076 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33077
33078         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33079
33080 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33081
33082         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33083         Return ENOENT when name is empty.
33084         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33085
33086 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33087
33088         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33089
33090         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33091
33092 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33093
33094         Fix mlock in all cases except non-readable pages.
33095         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33096         instead of VM_PROT_ALL as parameter to __vm_wire function.
33097
33098         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33099         (__mkdir): When path is `/', just fail with EEXIST.
33100         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33101
33102 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33103
33104         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33105         <sys/uio.h> (for writev).
33106         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33107         and <sys/param.h> (for MIN).
33108
33109 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33110
33111         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33112         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33113         if interrupted.
33114
33115 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33116
33117         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33118         Depend on against $(link-rpcuserlibs).
33119
33120 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33121
33122         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33123         (__libc_stack_end): Do not use attribute_relro.
33124         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33125         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33126         to libthread-provided value.
33127         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33128         attribute_relro.
33129
33130 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33131
33132         [BZ #3748]
33133         * bits/libc-lock.h (__libc_once_get): New macro.
33134         * sysdeps/mach/bits/libc-lock.h: Likewise.
33135         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33136         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33137         instead of using implementation details.
33138
33139         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33140         * libio/freopen.c: Likewise.
33141         * libio/freopen64.c: Likewise.
33142         * misc/syslog.c: Likewise.
33143         * nscd/connections.c: Likewise.
33144         * nscd/netgroupcache.c: Likewise.
33145         * sysdeps/posix/getcwd.c: Likewise.
33146
33147 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33148
33149         * math/w_ilogbf.c: Add #include <limits.h>.
33150
33151 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33152
33153         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33154         path instead of returning without unlocking.
33155
33156         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33157         immediate-write ioctls.
33158         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33159
33160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33161
33162         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33163         __builtin_frame_address instead of making assumptions about the
33164         location of the return address relative to DATA.  Force early load of
33165         the return address.
33166         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33167         __builtin_frame_address.
33168
33169         dup3 for GNU Hurd.
33170         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33171         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33172         implement dup3 and do some further code clean-ups.
33173         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33174         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33175
33176 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33177
33178         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33179
33180         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33181         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33182         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33183         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33184         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33185         d->port.lock.
33186
33187         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33188         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33189         when handler == SIG_ERR, not when handler != SIG_ERR.
33190
33191 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33192
33193         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33194         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33195         definitions.
33196
33197         accept4 for GNU Hurd.
33198         * include/sys/socket.h (__libc_accept4): New prototype.
33199         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33200         to implement __libc_accept4.
33201         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33202         __libc_accept4.
33203         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33204
33205         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33206         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33207         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33208         signal-defines.sym.
33209
33210 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33211
33212         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33213
33214 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33215
33216         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33217         assertion on O_CLOEXEC flag.
33218         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33219         * hurd/intern-fd.c: Likewise.
33220         * hurd/port2fd.c: Likewise.
33221
33222 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33223
33224         [BZ #3906]
33225         * bits/in.h (IPV6_PKTINFO): Define new macro.
33226         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33227
33228 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33229
33230         [BZ #13954]
33231         [BZ #13955]
33232         [BZ #13956]
33233         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33234         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33235         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33236         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33237         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33238         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33239         * math/libm-test.inc (logb_test) : Additional logb tests.
33240
33241 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33242             Andreas Jaeger  <aj@suse.de>
33243
33244         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33245         * configure: Regenerated.
33246         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33247         * config.make.in (link-obsolete-rpc): New substituted variable.
33248         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33249         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33250         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33251         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33252         so that libc.a contains the symbols.
33253         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33254         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33255         * sunrpc/auth_none.c: Likewise.
33256         * sunrpc/auth_unix.c: Likewise.
33257         * sunrpc/authdes_prot.c: Likewise.
33258         * sunrpc/authuxprot.c: Likewise.
33259         * sunrpc/clnt_gen.c: Likewise.
33260         * sunrpc/clnt_perr.c: Likewise.
33261         * sunrpc/clnt_raw.c: Likewise.
33262         * sunrpc/clnt_simp.c: Likewise.
33263         * sunrpc/clnt_tcp.c: Likewise.
33264         * sunrpc/clnt_udp.c: Likewise.
33265         * sunrpc/clnt_unix.c: Likewise.
33266         * sunrpc/des_crypt.c: Likewise.
33267         * sunrpc/des_soft.c: Likewise.
33268         * sunrpc/get_myaddr.c: Likewise.
33269         * sunrpc/key_call.c: Likewise.
33270         * sunrpc/key_prot.c: Likewise.
33271         * sunrpc/netname.c: Likewise.
33272         * sunrpc/pm_getmaps.c: Likewise.
33273         * sunrpc/pm_getport.c: Likewise.
33274         * sunrpc/pmap_clnt.c: Likewise.
33275         * sunrpc/pmap_prot.c: Likewise.
33276         * sunrpc/pmap_prot2.c: Likewise.
33277         * sunrpc/pmap_rmt.c: Likewise.
33278         * sunrpc/publickey.c: Likewise.
33279         * sunrpc/rpc_cmsg.c: Likewise.
33280         * sunrpc/rpc_common.c: Likewise.
33281         * sunrpc/rpc_dtable.c: Likewise.
33282         * sunrpc/rpc_prot.c: Likewise.
33283         * sunrpc/rpc_thread.c: Likewise.
33284         * sunrpc/rtime.c: Likewise.
33285         * sunrpc/svc.c: Likewise.
33286         * sunrpc/svc_auth.c: Likewise.
33287         * sunrpc/svc_raw.c: Likewise.
33288         * sunrpc/svc_run.c: Likewise.
33289         * sunrpc/svc_tcp.c: Likewise.
33290         * sunrpc/svc_udp.c: Likewise.
33291         * sunrpc/svc_unix.c: Likewise.
33292         * sunrpc/svcauth_des.c: Likewise.
33293         * sunrpc/xcrypt.c: Likewise.
33294         * sunrpc/xdr.c: Likewise.
33295         * sunrpc/xdr_array.c: Likewise.
33296         * sunrpc/xdr_float.c: Likewise.
33297         * sunrpc/xdr_intXX_t.c: Likewise.
33298         * sunrpc/xdr_mem.c: Likewise.
33299         * sunrpc/xdr_rec.c: Likewise.
33300         * sunrpc/xdr_ref.c: Likewise.
33301         * sunrpc/xdr_sizeof.c: Likewise.
33302         * sunrpc/xdr_stdio.c: Likewise.
33303
33304 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33305
33306         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33307         change.  Update copyright years.
33308
33309 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33310
33311         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33312
33313 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33314             Joseph Myers  <joseph@codesourcery.com>
33315             Paul Pluzhnikov  <ppluzhnikov@google.com>
33316
33317         [BZ #14012]
33318         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33319         requiring rpcgen.
33320         [cross-compiling] (extra-libs): Likewise.
33321         [cross-compiling] (extra-libs-others): Likewise.
33322         [cross-compiling] (librpcsvc-routines): Likewise.
33323         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33324         [cross-compiling] (omit-deps): Likewise.
33325         (sunrpc-CPPFLAGS): New variable.
33326         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33327         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33328         (cross-rpcgen-objs): New variable.
33329         (extra-objs): Append $(cross-rpcgen-objs).
33330         ($(cross-rpcgen-objs)): New rule.
33331         ($(objpfx)cross-rpcgen): Likewise.
33332         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33333         comment.
33334         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33335         ($(objpfx)x%.stmp): Likewise.
33336         * sunrpc/proto.h [IS_IN_build] (_): Define.
33337         [IS_IN_build] (_libc_intl_domainname): Likewise.
33338
33339 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33340
33341         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33342         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33343         and R_X86_64_TPOFF64.
33344
33345 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33346
33347         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33348         sysdeps/unix/sysv/syscalls.list.
33349         (stime): Likewise.
33350         (utime): Likewise.
33351         * sysdeps/unix/sysv/syscalls.list: Remove file.
33352
33353 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33354
33355         [BZ #3440]
33356         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33357         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33358         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33359         (__LC_IDENTIFICATION): Make these macros useful in #if
33360         expressions, as required by C99.
33361
33362 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33363
33364         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33365         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33366         after this.
33367
33368 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33369
33370         * stdlib/longlong.h: Updated from GCC.
33371
33372 2012-05-09  Andreas Jaeger  <aj@suse.de>
33373
33374         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33375         default is first entry.
33376         (run_mode): Set type.
33377         (main): Remove informal message about syslog.
33378         (options): Fix typo.
33379
33380         [BZ #14053]
33381         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33382         to asm.
33383         (lrint): Likewise.
33384         (llrintf): Likewise.
33385         (llrint): Likewise.
33386         (rint): Likewise.
33387         (rintf): Likewise.
33388         (nearbyint): Likewise.
33389         (nearbyintf): Likewise.
33390
33391 2012-05-09  Andreas Jaeger  <aj@suse.de>
33392             Pedro Alves  <palves@redhat.com>
33393
33394         * nscd/nscd.c (run_mode): Use enum.
33395         (main): Cleanup coding style issue.
33396
33397 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33398             Andreas Jaeger  <aj@suse.de>
33399
33400         * nscd/nscd.c (go_background): Replaced with...
33401         (run_mode): ... this.
33402         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33403         (options): Add -F --foreground.
33404         (main): Implement it.
33405         (parse_opt): Parse it.
33406
33407 2012-05-09  Andreas Jaeger  <aj@suse.de>
33408
33409         [BZ #14083]
33410         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33411         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33412         -Wconversion warning.
33413         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33414         Likewise.
33415
33416 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33417
33418         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33419         == 0.
33420         (LC_ALL): Use macro-int-constant.
33421         (LC_COLLATE): Likewise.
33422         (LC_CTYPE): Likewise.
33423         (LC_MESSAGES): Likewise.
33424         (LC_MONETARY): Likewise.
33425         (LC_NUMERIC): Likewise.
33426         (LC_TIME): Likewise.
33427         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33428         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33429         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33430         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33431         Specify type.
33432         [C99-based standards] (float_t): Expect type.
33433         [C99-based standards] (double_t): Expect type.
33434         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33435         type.
33436         [C99-based standards] (HUGE_VALL): Likewise.
33437         [C99-based standards] (INFINITY): Likewise.
33438         [C99-based standards] (NAN): Likewise.
33439         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33440         [C99-based standards] (FP_NAN): Likewise.
33441         [C99-based standards] (FP_NORMAL): Likewise.
33442         [C99-based standards] (FP_SUBNORMAL): Likewise.
33443         [C99-based standards] (FP_ZERO): Likewise.
33444         [C99-based standards] (FP_FAST_FMA): Use
33445         optional-macro-int-constant.  Specify type.  Require == 1.
33446         [C99-based standards] (FP_FAST_FMAF): Likewise.
33447         [C99-based standards] (FP_FAST_FMAL): Likewise.
33448         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33449         [C99-based standards] (FP_ILOGBNAN): Likewise.
33450         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33451         Specify type.
33452         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33453         [C99-based standards] (math_errhandling): Specify type.
33454         [ISO99 || ISO11] (signgam): Do not allow.
33455         [non-C99-based standards] (copysignf): Do not allow.
33456         [non-C99-based standards] (exp2f): Likewise.
33457         [non-C99-based standards] (log2f): Likewise.
33458         [non-C99-based standards] (modff): Allow.
33459         [non-C99-based standards] (erff): Do not allow.
33460         [non-C99-based standards] (erfcf): Likewise.
33461         [non-C99-based standards] (gammaf): Likewise.
33462         [non-C99-based standards] (hypotf): Likewise.
33463         [non-C99-based standards] (j0f): Likewise.
33464         [non-C99-based standards] (j1f): Likewise.
33465         [non-C99-based standards] (jnf): Likewise.
33466         [non-C99-based standards] (lgammaf): Likewise.
33467         [non-C99-based standards] (tgammaf): Likewise.
33468         [non-C99-based standards] (y0f): Likewise.
33469         [non-C99-based standards] (y1f): Likewise.
33470         [non-C99-based standards] (ynf): Likewise.
33471         [non-C99-based standards] (isnanf): Likewise.
33472         [non-C99-based standards] (acoshf): Likewise.
33473         [non-C99-based standards] (asinhf): Likewise.
33474         [non-C99-based standards] (atanhf): Likewise.
33475         [non-C99-based standards] (cbrtf): Likewise.
33476         [non-C99-based standards] (expm1f): Likewise.
33477         [non-C99-based standards] (ilogbf): Likewise.
33478         [non-C99-based standards] (log1pf): Likewise.
33479         [non-C99-based standards] (logbf): Likewise.
33480         [non-C99-based standards] (nextafterf): Likewise.
33481         [non-C99-based standards] (remainderf): Likewise.
33482         [non-C99-based standards] (rintf): Likewise.
33483         [non-C99-based standards] (scalbf): Likewise.
33484         [non-C99-based standards] (copysignl): Likewise.
33485         [non-C99-based standards] (exp2l): Likewise.
33486         [non-C99-based standards] (log2l): Likewise.
33487         [non-C99-based standards] (modfl): Allow.
33488         [non-C99-based standards] (erfl): Do not allow.
33489         [non-C99-based standards] (erfcl): Likewise.
33490         [non-C99-based standards] (gammal): Likewise.
33491         [non-C99-based standards] (hypotl): Likewise.
33492         [non-C99-based standards] (j0l): Likewise.
33493         [non-C99-based standards] (j1l): Likewise.
33494         [non-C99-based standards] (jnl): Likewise.
33495         [non-C99-based standards] (lgammal): Likewise.
33496         [non-C99-based standards] (tgammal): Likewise.
33497         [non-C99-based standards] (y0l): Likewise.
33498         [non-C99-based standards] (y1l): Likewise.
33499         [non-C99-based standards] (ynl): Likewise.
33500         [non-C99-based standards] (isnanl): Likewise.
33501         [non-C99-based standards] (acoshl): Likewise.
33502         [non-C99-based standards] (asinhl): Likewise.
33503         [non-C99-based standards] (atanhl): Likewise.
33504         [non-C99-based standards] (cbrtl): Likewise.
33505         [non-C99-based standards] (expm1l): Likewise.
33506         [non-C99-based standards] (ilogbl): Likewise.
33507         [non-C99-based standards] (log1pl): Likewise.
33508         [non-C99-based standards] (logbl): Likewise.
33509         [non-C99-based standards] (nextafterl): Likewise.
33510         [non-C99-based standards] (remainderl): Likewise.
33511         [non-C99-based standards] (rintl): Likewise.
33512         [non-C99-based standards] (scalbl): Likewise.
33513         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33514         [non-C99-based standards] (FP_*): Do not allow.
33515         [C99-based standards] (FP_*): Change to
33516         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33517         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33518         allow.
33519         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33520         (SIG_ERR): Likewise.
33521         [X/Open-based standards] (SIG_HOLD): Likewise.
33522         (SIG_IGN): Likewise.
33523         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33524         positive value.
33525         (SIGFPE): Likewise.
33526         (SIGILL): Likewise.
33527         (SIGINT): Likewise.
33528         (SIGSEGV): Likewise.
33529         (SIGTER): Likewise.
33530         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33531         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33532         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33533         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33534         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33535         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33536         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33537         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33538         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33539         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33540         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33541         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33542         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33543         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33544         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33545         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33546         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33547         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33548         [X/Open-based standards] (SIGTRAP): Likewise.
33549         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33550         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33551         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33552         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33553         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33554         allow.
33555
33556 2012-05-08  Ian Wienand  <ianw@vmware.com>
33557
33558         [BZ #14080]
33559         * time/tzset.c (__tzset_parse_tz): Update default rules for
33560         daylight time changes in the Energy Policy Act of 2005.
33561
33562 2012-05-09  Andreas Jaeger  <aj@suse.de>
33563
33564         [BZ #13983]
33565         * elf/ldconfig.c (parse_conf): Change string to make clear that
33566         ldconfig only issued a warning if ld.so.conf does not exist.
33567
33568 2012-05-08  David S. Miller  <davem@davemloft.net>
33569
33570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33571         movxtod instead of popping the value on the stack.
33572
33573         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33574
33575 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33576
33577         * config.h.in: Add HAVE_ARM_PCS_VFP.
33578
33579 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33580
33581         [BZ #13979]
33582         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33583         checking but the checks are disabled for any reason.
33584
33585 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33586
33587         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33588         and ELF64_R_TYPE with ELFW(R_TYPE).
33589
33590 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33591
33592         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33593         (ulimit): Likewise.
33594
33595         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33596         (settimeofday): Likewise.
33597
33598 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33599
33600         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33601         a struct th_u2 inside the union, and move tu_block/tu_code into
33602         a new th_u3 union of tu_block/tu_code inside of that.  Move
33603         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33604         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33605         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33606         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33607         (th_stuff): Change to th_u1.tu_stuff.
33608         (th_data): Define.
33609         (th_msg): Change to th_u1.th_u2.tu_data.
33610
33611 2012-05-07  David S. Miller  <davem@davemloft.net>
33612
33613         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33614
33615         [BZ #14074]
33616         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
33617         (SETUP_PIC_REG): Use it.
33618         (SETUP_PIC_REG_LEAF): Use it.
33619
33620 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
33621
33622         [BZ #13885]
33623         [BZ #13923]
33624         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33625         USE_AS_EXPM1L.
33626         (EXPL_FINITE): Likewise.
33627         (FLDLOG): Likewise.
33628         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33629         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33630         e_expl.S.
33631         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33632         USE_AS_EXPM1L.
33633         (EXPL_FINITE): Likewise.
33634         (FLDLOG): Likewise.
33635         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33636         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33637         e_expl.S.
33638         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
33639         test of -max_value argument for long double.
33640         * sysdeps/i386/fpu/libm-test-ulps: Update.
33641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33642
33643 2012-05-06  David S. Miller  <davem@davemloft.net>
33644
33645         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
33646         quad soft-float symbols whose references which are compiler
33647         generated.
33648         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33649
33650 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
33651
33652         [BZ #13884]
33653         [BZ #13914]
33654         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33655         USE_AS_EXP10L.
33656         (EXPL_FINITE): Likewise.
33657         (FLDLOG): Likewise.
33658         (c0): Likewise.
33659         (c1): Likewise.
33660         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33661         Adjust comments for base varying.
33662         (__expl_finite): Change alias to EXPL_FINITE.
33663         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
33664         e_expl.S.
33665         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
33666         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
33667         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
33668         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
33669         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33670         USE_AS_EXP10L.
33671         (EXPL_FINITE): Likewise.
33672         (FLDLOG): Likewise.
33673         (c0): Likewise.
33674         (c1): Likewise.
33675         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33676         Adjust comments for base varying.
33677         (__expl_finite): Change alias to EXPL_FINITE.
33678         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
33679         tests for bugs.
33680         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33681
33682         [BZ #14064]
33683         * math/libm-test.inc (check_float_internal): Correct ulp
33684         calculation for subnormal expected results.
33685
33686 2012-05-06  Andreas Jaeger  <aj@suse.de>
33687
33688         * Makeconfig (+math-flags): New, set to -frounding-math.
33689         (+cflags): Add +math-flags so that all of glibc gets compiled with
33690         it.
33691
33692         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
33693
33694 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
33695
33696         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
33697         Disable one test.
33698
33699         [BZ #13787]
33700         [BZ #13922]
33701         [BZ #14036]
33702         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
33703         (__ieee754_expl): Allow for and saturate large arguments.
33704         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
33705         (u_threshold): Likewise.
33706         (__exp): Call __ieee754_exp before checking for overflow and
33707         underflow.
33708         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
33709         (u_threshold): Likewise.
33710         (__expf): Call __ieee754_expf before checking for overflow and
33711         underflow.
33712         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
33713         (u_threshold): Likewise.
33714         (__expl): Call __ieee754_expl before checking for overflow and
33715         underflow.
33716         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
33717         (__ieee754_expl): Allow for and saturate large arguments.
33718         * math/libm-test.inc (exp_test): Add another test.  Do not allow
33719         missing overflow exception on overflow.
33720         (expm1_test): Do not allow missing overflow exception on overflow.
33721
33722         * sysdeps/i386/fpu/e_expl.c: Move to ...
33723         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
33724         rather than using inline asm.
33725         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
33726         * sysdeps/x86_64/fpu/e_expl.S: Copy from
33727         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
33728
33729         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
33730         (nice): Likewise.
33731         (poll): Likewise.
33732         (signal): Likewise.
33733         (time): Likewise.
33734         (times): Likewise.
33735
33736 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33737
33738         * sysdeps/unix/syscalls.list (adjtime): Add entry from
33739         sysdeps/unix/common/syscalls.list.
33740         (fchmod): Likewise.
33741         (fchown): Likewise.
33742         (ftruncate): Likewise.
33743         (getrusage): Likewise.
33744         (gettimeofday): Likewise.
33745         (setpgid): Likewise.
33746         (setregid): Likewise.
33747         (setreuid): Likewise.
33748         (sigaction): Likewise.
33749         (truncate): Likewise.
33750         (vhangup): Likewise.
33751         * sysdeps/unix/common/syscalls.list: Remove file.
33752         * sysdeps/unix/bsd/Implies: Don't include unix/common.
33753         * sysdeps/unix/sysv/linux/Implies: Likewise.
33754
33755 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
33756
33757         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
33758         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
33759         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
33760         Moved to ...
33761         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33762         Here.
33763         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
33764         to ...
33765         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
33766         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
33767         to ...
33768         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
33769         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
33770         to ...
33771         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
33772         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
33773         to ...
33774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
33775         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
33776         to ...
33777         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
33778         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
33779         to ...
33780         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
33781         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
33782         to ...
33783         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
33784         Here.
33785         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
33786         to ...
33787         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
33788         Here.
33789         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
33790         to ...
33791         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
33792         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
33793         Moved to ...
33794         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
33795         Here.
33796         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
33797         to ...
33798         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
33799
33800 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33801
33802         * sysdeps/unix/common/bits/dirent.h: Remove file.
33803         * sysdeps/unix/common/bits/fcntl.h: Likewise.
33804
33805         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
33806         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
33807         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
33808         * sysdeps/unix/bsd/isatty.c: Likewise.
33809         * sysdeps/unix/bsd/tcdrain.c: Likewise.
33810         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
33811         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
33812
33813 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33814
33815         [BZ #13563]
33816         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
33817         long double comparison inaccuracies.
33818         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
33819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33820
33821 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
33822
33823         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
33824         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
33825
33826 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33827
33828         [BZ #14049]
33829         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
33830         nonzero digits before rounding a hex value.
33831         * stdlib/tst-strtod.c (tests): Add another test.
33832
33833 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33834
33835         * sysdeps/s390/fpu/libm-test-ulps: Update.
33836
33837 2012-05-03  Andreas Jaeger  <aj@suse.de>
33838
33839         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
33840         does not get optimized out.
33841         (malloc_opt_barrier): New.
33842
33843 2012-05-03  Andreas Jaeger  <aj@suse.de>
33844             Roland McGrath  <roland@hack.frob.com>
33845
33846         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
33847         intermediate file deletion.
33848         (generated): Add .symlist files.
33849
33850 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
33851
33852         [BZ #13775]
33853         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
33854         Redirect under this condition.
33855         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33856         [__USE_GNU] (__dprintf_chk): Not under this condition.
33857         [__USE_GNU] (__vdprintf_chk): Likewise.
33858         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
33859         under this condition.
33860         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33861         [__USE_XOPEN2K8] (dprintf): Define under this condition.
33862         [__USE_XOPEN2K8] (vdprintf): Likewise.
33863         [__USE_GNU] (__dprintf_chk): Not under this condition.
33864         [__USE_GNU] (__vdprintf_chk): Likewise.
33865         [__USE_GNU] (dprintf): Likewise.
33866         [__USE_GNU] (vdprintf): Likewise.
33867
33868 2012-05-03  Roland McGrath  <roland@hack.frob.com>
33869
33870         * elf/Makefile (common-generated): Set this instead of generated for
33871         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
33872         $(all-built-dso)-derived lists.
33873
33874 2012-05-03  Andreas Jaeger  <aj@suse.de>
33875
33876         * sysdeps/i386/fpu/libm-test-ulps: Update.
33877
33878         * FAQ: Removed.
33879         * FAQ.in: Likewise.
33880         * scripts/gen-FAQ.pl: Likewise.
33881         * manual/install.texi (Installation): Point to online location of
33882         FAQ.
33883         * Makefile (files-for-dist): Remove FAQ.
33884         (FAQ): Remove.
33885
33886 2012-05-02  Allan McRae  <allan@archlinux.org>
33887
33888         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
33889         (LDFLAGS-reldepmod5.so): Likewise.
33890         (LDFLAGS-reldep6mod1.so): Likewise.
33891         (LDFLAGS-reldep6mod4.so): Likewise.
33892         (LDFLAGS-reldep8mod3.so): Likewise.
33893         (LDFLAGS-unload4mod1.so): Likewise.
33894         (LDFLAGS-unload4mod2.so): Likewise.
33895         (LDFLAGS-tst-initorder): Likewise.
33896         (LDFLAGS-tst-initordera2.so): Likewise.
33897         (LDFLAGS-tst-initordera3.so): Likewise.
33898         (LDFLAGS-tst-initordera4.so): Likewise.
33899         (LDFLAGS-tst-initorderb2.so): Likewise.
33900         (LDFLAGS-noload): Likewise.
33901         (LDFLAGS-next): Likewise.
33902         (LDFLAGS-order2mod1.so): Likewise.
33903         (LDFLAGS-order2mod2.so): Likewise.
33904         (LDFLAGS-tst-initorder2): Likewise.
33905         (LDFLAGS-tst-initorder2a.so): Likewise.
33906         (LDFLAGS-tst-initorder2b.so): Likewise.
33907         (LDFLAGS-tst-initorder2c.so): Likewise.
33908         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
33909
33910 2012-05-02  David S. Miller  <davem@davemloft.net>
33911
33912         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33913
33914 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33915
33916         [BZ #14055]
33917         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
33918
33919 2012-05-02  Andreas Jaeger  <aj@suse.de>
33920
33921         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
33922         since we manipulate rounding mode.
33923         (CPPFLAGS-test-idouble.c): Likewise.
33924         (CPPFLAGS-test-ifloat.c): Likewise.
33925         (CFLAGS-test-ldouble.c): Likewise.
33926         (CFLAGS-test-double.c): Likewise.
33927         (CFLAGS-test-float.c): Likewise.
33928         (CFLAGS-test-misc.c): Likewise.
33929         (CFLAGS-test-test-fenv.c): Likewise.
33930
33931 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33932
33933         [BZ #2550]
33934         [BZ #2570]
33935         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
33936         comparisons to determine direction to adjust input.
33937
33938 2012-05-01  Roland McGrath  <roland@hack.frob.com>
33939
33940         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
33941         output to the target.
33942
33943         * scripts/localplt.awk: New file.
33944         * elf/Makefile ($(objpfx)check-localplt): Target removed.
33945         (check-localplt-CFLAGS): Variable removed.
33946         ($(all-built-dso:=.jmprel)): New static pattern rule.
33947         (generated): Add those targets.
33948         (localplt-built-dso): New variable.
33949         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
33950
33951         * elf/check-localplt.c: File removed.
33952
33953         * scripts/check-execstack.awk: New file.
33954         * elf/Makefile ($(objpfx)check-execstack): Target removed.
33955         (check-execstack-CFLAGS): Variable removed.
33956         ($(objpfx)check-execstack.h): Target removed.
33957         ($(objpfx)execstack-default): New target.
33958         (generated): Add that instead of check-execstack.h.
33959         ($(all-built-dso:=.phdr)): New static pattern rule.
33960         (generated): Add those targets.
33961         * elf/check-execstack.c: File removed.
33962
33963         * scripts/check-textrel.awk: New file.
33964         * elf/Makefile ($(objpfx)check-textrel): Target removed.
33965         (check-textrel-CFLAGS): Variable removed.
33966         (all-built-dso): Use := to define.o
33967         ($(all-built-dso:=.dyn)): New static pattern rule.
33968         (generated): Add those targets.
33969         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
33970         * config.make.in (READELF): New substituted variable.
33971         * elf/check-textrel.c: File removed.
33972
33973 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
33974
33975         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33976         allow.
33977         * conform/data/ctype.h-data [C99-based standards] (isblank):
33978         Expect function.
33979         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
33980         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
33981         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33982         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
33983         Specify type.  Require positive value.
33984         (EILSEQ): Likewise.
33985         (ERANGE): Likewise.
33986         [ISO || POSIX] (EILSEQ): Do not expect.
33987         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
33988         Specify type.  Require positive value.
33989         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
33990         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
33991         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
33992         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
33993         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
33994         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
33995         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
33996         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
33997         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
33998         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
33999         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34000         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34001         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34002         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34003         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34004         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34005         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34006         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34007         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34008         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34009         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34010         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34011         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34012         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34013         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34014         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34015         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34016         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34017         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34018         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34019         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34020         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34021         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34022         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34023         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34024         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34025         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34026         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34027         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34028         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34029         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34030         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34031         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34032         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34033         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34034         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34035         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34036         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34037         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34038         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34039         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34040         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34041         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34042         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34043         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34044         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34045         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34046         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34047         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34048         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34049         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34050         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34051         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34052         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34053         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34054         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34055         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34056         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34057         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34058         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34059         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34060         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34061         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34062         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34063         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34064         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34065         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34066         Require >= 2.
34067         (FLT_ROUNDS): Expect as macro, not constant.
34068         (FLT_MANT_DIG): Use macro-int-constant.
34069         (DBL_MANT_DIG): Likewise.
34070         (LDBL_MANT_DIG): Likewise.
34071         (FLT_DIG): Likewise.
34072         (DBL_DIG): Likewise.
34073         (LDBL_DIG): Likewise.
34074         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34075         (DBL_MIN_EXP): Likewise.
34076         (LDBL_MIN_EXP): Likewise.
34077         (FLT_MAX_EXP): Use macro-int-constant.
34078         (DBL_MAX_EXP): Likewise.
34079         (LDBL_MAX_EXP): Likewise.
34080         (FLT_MAX_10_EXP): Likewise.
34081         (DBL_MAX_10_EXP): Likewise.
34082         (LDBL_MAX_10_EXP): Likewise.
34083         (FLT_MAX): Use macro-constant.
34084         (DBL_MAX): Likewise.
34085         (LDBL_MAX): Likewise.
34086         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34087         (DBL_EPSILON): Likewise.
34088         (LDBL_EPSILON): Likewise.
34089         (FLT_MIN): Likewise.
34090         (DBL_MIN): Likewise.
34091         (LDBL_MIN): Likewise.
34092         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34093         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34094         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34095         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34096         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34097         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34098         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34099         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34100         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34101         [ISO11] (FLT_TRUE_MIN): Likewise.
34102         [ISO11] (LDBL_TRUE_MIN): Likewise.
34103         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34104         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34105         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34106         (SCHAR_MAX): Likewise.
34107         (UCHAR_MAX): Likewise.
34108         (CHAR_MIN): Likewise.
34109         (CHAR_MAX): Likewise.
34110         (MB_LEN_MAX): Use macro-int-constant.
34111         (SHRT_MIN): Use macro-int-constant.  Specify type.
34112         (SHRT_MAX): Likewise.
34113         (USHRT_MAX): Likewise.
34114         (INT_MAX): Likewise.
34115         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34116         bound negative.
34117         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34118         bound with "U".
34119         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34120         bound with "L".
34121         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34122         bound negative.  Suffix upper bound with "L".
34123         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34124         bound with "UL".
34125         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34126         Specify type.
34127         [C99-based standards] (LLONG_MAX): Likewise.
34128         [C99-based standards] (ULLONG_MAX): Likewise.
34129         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34130         == 0.
34131         [ISO11] (max_align_t): Require type.
34132         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34133
34134         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34135         from $CFLAGS, without defining away __attribute__ calls.
34136         (checknamespace): Use $CFLAGS_namespace.
34137
34138         * conform/conformtest.pl (@keywords): Only include C99 keywords
34139         for standards based on C99 or C11.
34140
34141         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34142         Disable tests.
34143         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34144         UNIX98]: Likewise.
34145
34146         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34147         usability of symbols in #if.
34148
34149         * conform/conformtest.pl: If macro or constant types start
34150         "promoted:", expect the symbol to be of the following type
34151         promoted by the integer promotions.
34152
34153         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34154         in one place.  Also handle "macro-constant".
34155
34156         * conform/conformtest.pl: Only accept expected macro values with
34157         "==".  Parse all "macro" lines in one place.
34158         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34159
34160         * conform/conformtest.pl: Handle braced types on "constant" lines
34161         instead of handling "typed-constant".
34162         * conform/data/signal.h-data: Use "constant" instead of
34163         "typed-constant".
34164
34165         * conform/conformtest.pl: Handle "optional-" at start of lines in
34166         one place rather than duplicating several cases.  Handle each
34167         format of "macro" line with initial "optional-".
34168
34169         * conform/conformtest.pl: Only accept expected constant or
34170         optional-constant values with "==".  Parse all "constant" lines in
34171         one place.  Parse all "optional-constant" lines in one place.
34172         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34173         * conform/data/fmtmsg.h-data: Likewise.
34174         * conform/data/netinet/in.h-data: Likewise.
34175         * conform/data/tar.h-data: Likewise.
34176         * conform/data/limits.h-data: Use "==" form on "constant" and
34177         "optional-constant" lines.
34178
34179         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34180         Use -std=c99 for XOPEN2K.
34181         (@knownproblems): Remove.
34182         (newtoken): Don't check %isknown.
34183
34184         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34185         Do not expect macro.
34186         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34187         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34188         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34189         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34190         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34191         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34192         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34193         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34194         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34195         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34196         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34197         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34198         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34199         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34200         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34201         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34202         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34203         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34204         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34205         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34206         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34207         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34208         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34209         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34210         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34211         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34212         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34213         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34214         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34215         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34216         [XPG3] (acosh): Likewise.
34217         [XPG3] (asinh): Likewise.
34218         [XPG3] (atanh): Likewise.
34219         [XPG3] (cbrt): Likewise.
34220         [XPG3] (expm1): Likewise.
34221         [XPG3] (ilogb): Likewise.
34222         [XPG3] (log1p): Likewise.
34223         [XPG3] (logb): Likewise.
34224         [XPG3] (nextafter): Likewise.
34225         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34226         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34227         [XPG3] (remainder): Likewise.
34228         [XPG3] (rint): Likewise.
34229         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34230         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34231         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34232         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34233         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34234         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34235         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34236         [UNIX98 || XOPEN2K] (scalb): Expect.
34237         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34238         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34239         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34240         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34241         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34242         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34243         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34244         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34245         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34246         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34247         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34248         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34249         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34250         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34251         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34252         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34253         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34254         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34255         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34256         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34257         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34258         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34259         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34260         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34261         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34262         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34263         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34264         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34265         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34266         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34267         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34268         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34269         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34270         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34271         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34272         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34273         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34274         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34275         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34276         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34277         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34278         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34279         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34280         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34281         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34282         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34283         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34284         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34285         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34286         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34287         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34288         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34289         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34290         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34291         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34292         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34293         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34294         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34295         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34296         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34297         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34298         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34299         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34300         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34301         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34302         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34303         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34304         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34305         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34306         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34307         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34308         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34309         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34310         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34311         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34312         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34313         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34314         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34315         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34316         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34317         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34318         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34319         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34320         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34321         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34322         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34323         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34324         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34325         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34326         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34327         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34328         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34329         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34330         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34331         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34332         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34333         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34334         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34335         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34336         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34337         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34338         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34339         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34340         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34341         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34342         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34343         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34344         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34345         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34346         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34347         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34348         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34349         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34350         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34351         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34352         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34353         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34354         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34355         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34356         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34357         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34358         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34359         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34360         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34361         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34362         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34363         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34364         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34365         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34366         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34367         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34368         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34369         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34370         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34371         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34372         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34373         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34374
34375         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34376         _XOPEN_SOURCE_EXTENDED for XPG4.
34377
34378         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34379
34380         * Makeconfig (localtime): Remove variable.
34381         (inst_localtime-file): Likewise.
34382
34383 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34384
34385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34386         Update.
34387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34388         Update.
34389         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34390         Update.
34391         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34392         Update.
34393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34394         Update.
34395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34396         Update.
34397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34398         Update.
34399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34400         Update.
34401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34402         Update.
34403
34404 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34405
34406         [BZ #2550]
34407         [BZ #2570]
34408         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34409         comparisons to determine direction to adjust input.
34410         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34411         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34412         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34413         Likewise.
34414         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34415         Likewise.
34416         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34417         Likewise.
34418         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34419         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34420         Likewise.
34421         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34422         Likewise.
34423         * math/libm-test.inc (nexttoward_test): Add more tests.
34424
34425 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34426
34427         [BZ #14040]
34428         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34429         in version GLIBC_2.1, not GLIBC_2.0.
34430         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34431         Likewise.
34432
34433 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34434
34435         [BZ #13942]
34436         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34437         (1 - x) * (1 + x).
34438         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34439         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34440         * math/libm-test.inc (acos_test): Add more tests.
34441         (asin_test): Likewise.
34442         * sysdeps/i386/fpu/libm-test-ulps: Update.
34443         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34444
34445         [BZ #14034]
34446         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34447         of square root.
34448         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34449         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34450         * math/libm-test.inc (acos_test_tonearest): New function.
34451         (acos_test_towardzero): Likewise.
34452         (acos_test_downward): Likewise.
34453         (acos_test_upward): Likewise.
34454         (asin_test_tonearest): Likewise.
34455         (asin_test_towardzero): Likewise.
34456         (asin_test_downward): Likewise.
34457         (asin_test_upward): Likewise.
34458         (main): Call the new functions.
34459         * sysdeps/i386/fpu/libm-test-ulps: Update.
34460         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34461
34462         [BZ #13884]
34463         [BZ #13924]
34464         * math/e_exp10.c: Include <float.h>.
34465         (__ieee754_exp10): Handle underflow here rather than multiplying
34466         large negative argument by M_LN10.
34467         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34468         of __ieee754_expf.
34469         * math/e_exp10l.c: Include <float.h>.
34470         (__ieee754_exp10l): Handle underflow here rather than multiplying
34471         large negative argument by M_LN10l.
34472         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34473         spurious overflow exception on underflow.
34474
34475 2012-04-29  Marek Polacek  <polacek@redhat.com>
34476
34477         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34478         (__fortify_function): New macro.
34479         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34480         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34481         __extern_always_inline.
34482         * libio/bits/stdio2.h: Likewise.
34483         * libio/bits/stdio.h: Likewise.
34484         * string/string.h: Likewise.
34485         * string/bits/string3.h: Likewise.
34486         * include/stdio.h: Likewise.
34487         * stdlib/bits/stdlib.h: Likewise.
34488         * stdlib/stdlib.h: Likewise.
34489         * rt/bits/mqueue2.h: Likewise.
34490         * rt/mqueue.h: Likewise.
34491         * posix/bits/unistd.h: Likewise.
34492         * posix/unistd.h: Likewise.
34493         * io/bits/poll2.h: Likewise.
34494         * io/bits/fcntl2.h: Likewise.
34495         * io/fcntl.h: Likewise.
34496         * io/sys/poll.h: Likewise.
34497         * misc/bits/syslog.h: Likewise.
34498         * misc/bits/syslog-ldbl.h: Likewise.
34499         * misc/sys/syslog.h: Likewise.
34500         * socket/bits/socket2.h: Likewise.
34501         * socket/sys/socket.h: Likewise.
34502         * debug/tst-chk1.c: Likewise.
34503         * wcsmbs/bits/wchar2.h: Likewise.
34504         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34505         * wcsmbs/wchar.h: Likewise.
34506
34507 2012-04-29  Andreas Jaeger  <aj@suse.de>
34508
34509         * Makerules (tests): Remove enable-check-abi protection.
34510         (check-abi-warn): Remove.
34511         (check-abi-%): Remove check-abi-warn usage.
34512
34513         * configure.in: Remove check-abi configure option.
34514         * configure: Regenerated.
34515         * config.make.in (enable-check-abi): Remove.
34516
34517 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34518
34519         [BZ #14033]
34520         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34521         double functions to double *_finite functions.
34522
34523         [BZ #13941]
34524         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34525         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34526         LDBL_MIN_EXP.
34527         * stdio-common/Makefile (tests): Add tst-sprintf3.
34528         * stdio-common/tst-sprintf3.c: New file.
34529
34530         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34531         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34532
34533 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34534
34535         * conform/conformtest.pl: Remove duplicate typed-constant
34536         handling.
34537
34538 2012-04-28  David S. Miller  <davem@davemloft.net>
34539
34540         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34541         (check-abi-%): Remove AWK script prerequisite and explicit
34542         abilist directory.
34543         (check-abi): Rewrite to just diff the symlist with the abilist.
34544         (config-tls, config-abi-config): Delete, no longer used.
34545         (update-abi-%): Remove AWK script and explicit abilist directory.
34546         (update-abi): Rewrite to simply compare and conditionally copy the
34547         symlist and the sysdep abilist file.  Remove update-abi-config
34548         checks.
34549         * abilist/ld.abilist: Remove.
34550         * abilist/libBrokenLocale.abilist: Remove.
34551         * abilist/libanl.abilist: Remove.
34552         * abilist/libcrypt.abilist: Remove.
34553         * abilist/libdl.abilist: Remove.
34554         * abilist/librt.abilist: Remove.
34555         * abilist/libthread_db.abilist: Remove.
34556         * abilist/libutil.abilist: Remove.
34557         * scripts/extract-abilist.awk: Remove.
34558         * scripts/merge-abilist.awk: Remove.
34559         * sysdeps/generic/libcidn.abilist: New file.
34560         * sysdeps/generic/libnss_compat.abilist: New file.
34561         * sysdeps/generic/libnss_db.abilist: New file.
34562         * sysdeps/generic/libnss_dns.abilist: New file.
34563         * sysdeps/generic/libnss_files.abilist: New file.
34564         * sysdeps/generic/libnss_hesiod.abilist: New file.
34565         * sysdeps/generic/libnss_nis.abilist: New file.
34566         * sysdeps/generic/libnss_nisplus.abilist: New file.
34567         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34568         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34569         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34570         file.
34571         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34572         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34573         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34574         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34575         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34576         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34577         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34578         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34579         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34580         file.
34581         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34582         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34583         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34584         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34585         file.
34586         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34587         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34588         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34589         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34590         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34591         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34592         file.
34593         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34594         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34595         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34596         file.
34597         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34598         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34599         New file.
34600         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34601         New file.
34602         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34603         New file.
34604         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34605         New file.
34606         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34607         New file.
34608         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
34609         New file.
34610         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
34611         New file.
34612         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
34613         New file.
34614         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
34615         New file.
34616         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
34617         New file.
34618         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
34619         New file.
34620         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
34621         New file.
34622         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
34623         New file.
34624         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
34625         file.
34626         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
34627         New file.
34628         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
34629         New file.
34630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
34631         file.
34632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
34633         New file.
34634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
34635         New file.
34636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
34637         file.
34638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
34639         New file.
34640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34641         New file.
34642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
34643         New file.
34644         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
34645         New file.
34646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
34647         New file.
34648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
34649         New file.
34650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
34651         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
34652         file.
34653         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
34654         New file.
34655         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
34656         file.
34657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
34658         file.
34659         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
34660         file.
34661         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
34662         file.
34663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
34664         file.
34665         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
34666         New file.
34667         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
34668         file.
34669         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
34670         file.
34671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
34672         New file.
34673         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
34674         file.
34675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
34676         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
34677         file.
34678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
34679         New file.
34680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
34681         file.
34682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
34683         file.
34684         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
34685         file.
34686         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
34687         file.
34688         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
34689         file.
34690         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
34691         New file.
34692         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
34693         file.
34694         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
34695         file.
34696         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
34697         New file.
34698         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
34699         file.
34700         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
34701         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
34702         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
34703         file.
34704         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
34705         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
34706         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
34707         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
34708         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
34709         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
34710         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
34711         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
34712         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
34713         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
34714         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
34715         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
34716         file.
34717         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
34718         New file.
34719         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
34720         file.
34721         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
34722         file.
34723         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
34724         file.
34725         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
34726         file.
34727         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
34728         file.
34729         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
34730         New file.
34731         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
34732         New file.
34733         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
34734         file.
34735         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
34736         New file.
34737         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
34738         file.
34739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
34740         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
34741         file.
34742         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
34743         New file.
34744         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
34745         file.
34746         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
34747         file.
34748         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
34749         file.
34750         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
34751         file.
34752         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
34753         file.
34754         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
34755         New file.
34756         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
34757         New file.
34758         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
34759         file.
34760         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
34761         New file.
34762         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
34763         file.
34764
34765 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34766
34767         * conform/conformtest.pl: Fix typo in handling typed-constant from
34768         allow-header.
34769
34770 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34771
34772         * README: Cut down references to pre-2.6 Linux kernels and
34773         Linuxthreads.  Update lists of configurations in libc and ports
34774         and sort alphabetically.  Say "or newer" with Linux kernel version
34775         requirements.
34776
34777         * config.h.in [IS_IN_build]: Allow compiling without optimization.
34778
34779 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
34780
34781         [BZ #887]
34782         * math/libm-test.inc (logb_test_downward): New test to expose
34783         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
34784         rounding mode.
34785
34786 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34787
34788         [BZ #14027]
34789         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
34790         to be done.
34791         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
34792         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
34793
34794 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
34795
34796         * sysdeps/unix/i386/brk.S: Remove file.
34797         * sysdeps/unix/i386/dl-brk.S: Likewise.
34798         * sysdeps/unix/i386/pipe.S: Likewise.
34799         * sysdeps/unix/i386/sigreturn.S: Likewise.
34800         * sysdeps/unix/i386/syscall.S: Likewise.
34801         * sysdeps/unix/i386/vfork.S: Likewise.
34802         * sysdeps/unix/i386/wait.S: Likewise.
34803
34804         * sysdeps/unix/common/tcsendbrk.c: Move to ...
34805         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
34806
34807         * configure.in (arm*-none*): Do not allow without
34808         --enable-hacker-mode.
34809         (netbsd*): Remove case setting base_os.
34810         (386bsd*): Likewise.
34811         (freebsd*): Likewise.
34812         (bsdi*): Likewise.
34813         (osf*): Likewise.
34814         (sunos*): Likewise.
34815         (ultrix*): Likewise.
34816         (newsos*): Likewise.
34817         (dynix*): Likewise.
34818         (*bsd*): Likewise.
34819         (sysv*): Likewise.
34820         (isc*): Likewise.
34821         (esix*): Likewise.
34822         (sco*): Likewise.
34823         (minix*): Likewise.
34824         (irix4*): Likewise.
34825         (irix6*): Likewise.
34826         (solaris[2-9]*): Likewise.
34827         (none): Likewise.
34828         * configure: Regenerated.
34829
34830 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34831
34832         [BZ #11521]
34833         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
34834         overflow or cancellation in calculating denominator.
34835         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
34836         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
34837         down expression to avoid unexpected rounding in newer GCCs.
34838         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
34839
34840 2012-04-26  David S. Miller  <davem@davemloft.net>
34841
34842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
34843         long-double compat symbols.
34844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
34848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
34850         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
34851         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
34852         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
34853         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
34854         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
34855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
34856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
34857
34858 2012-04-25  David S. Miller  <davem@davemloft.net>
34859
34860         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
34861         HWCAP_* values only after the memory barriers have been defined.
34862         (atomic_full_barrier): Define.
34863         (atomic_read_barrier): Define.
34864         (atomic_write_barrier): Define.
34865
34866 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34867
34868         * shlib-versions: Add libgcc_s version information.
34869         * sysdeps/generic/libgcc_s.h: Remove.
34870         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
34871         libgcc_s.h.
34872         * sysdeps/gnu/unwind-resume.c: Likewise.
34873         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
34874
34875 2012-04-25  David S. Miller  <davem@davemloft.net>
34876
34877         * sysdeps/unix/sparc/brk.S: Delete.
34878         * sysdeps/unix/sparc/dl-brk.S: Delete.
34879         * sysdeps/unix/sparc/pipe.S: Delete.
34880         * sysdeps/unix/sparc/sysdep.S: Delete.
34881         * sysdeps/unix/sparc/sysdep.h: Delete.
34882         * sysdeps/unix/sparc/vfork.S: Delete.
34883         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
34884         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
34885         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
34886         (ret_ERRVAL, r0, r1, MOVE): Define.
34887         (JUMPTARGET): Remove.
34888         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
34889         sysdeps/unix/sparc/sysdep.h
34890         (ENTRY, END): Remove.
34891         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34892
34893 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
34894
34895         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
34896         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
34897         -DIS_IN_build.
34898
34899         * timezone/README: Update upstream location and email address for
34900         tzcode and tzdata.
34901         * timezone/zdump.c: Update from tzcode 2012b.
34902         * timezone/zic.c: Likewise.
34903
34904         * configure.in (libc_cv_as_needed): Remove test.
34905         * configure: Regenerated.
34906         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
34907         conditional definition.
34908         [$(have-as-needed) != yes] (no-as-needed): Likewise.
34909         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
34910         * config.make.in (have-as-needed): Remove variable.
34911
34912 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
34913             Paul Pluzhnikov  <ppluzhnikov@google.com>
34914
34915         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
34916         strings correctly.
34917
34918 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
34919
34920         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
34921         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
34922         * sysdeps/sh/strlen.S: Likewise.
34923
34924 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34925
34926         * sysdeps/unix/fork.S: Remove file.
34927         * sysdeps/unix/i386/fork.S: Likewise.
34928         * sysdeps/unix/sparc/fork.S: Likewise.
34929
34930         * sysdeps/unix/system.c: Remove file.
34931         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
34932
34933         * sysdeps/unix/getegid.S: Remove file.
34934         * sysdeps/unix/geteuid.S: Likewise.
34935
34936 2012-04-24  Roland McGrath  <roland@hack.frob.com>
34937
34938         * scripts/check-localplt.awk: New file.
34939         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
34940         of diff.
34941         * scripts/data/localplt-generic.data: Add a comment.
34942
34943         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
34944         NODE when __dir_mkfile failed.
34945         * sysdeps/mach/hurd/symlinkat.c: Likewise.
34946         Reported by Ludovic Courtès <ludo@gnu.org>.
34947
34948 2012-04-24  Andreas Jaeger  <aj@suse.de>
34949
34950         * Makerules (common-clean): Also remove gen-as-const-headers
34951         files.
34952
34953 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34954
34955         * Makerules (native-compile): Do not change working directory for
34956         build.  Use $(OUTPUT_OPTION) in command.
34957         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
34958
34959 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34960
34961         [BZ #13886]
34962         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
34963         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
34964         * math/libm-test.inc (floor_test): Add more tests.
34965         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
34966
34967 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34968
34969         * sysdeps/unix/getdents.c: Remove file.
34970         * sysdeps/unix/sysv/getdents.c: Likewise.
34971         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
34972
34973         * sysdeps/unix/syscalls.list (madvise): Add syscall from
34974         sysdeps/unix/mman/syscalls.list.
34975         (mmap): Likewise.
34976         (mprotect): Likewise.
34977         (msync): Likewise.
34978         (munmap): Likewise.
34979         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
34980         * sysdeps/unix/mman/syscalls.list: Remove.
34981         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
34982
34983         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
34984         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
34985         * configure: Regenerated.
34986         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
34987         $(libgcc_s_suffix).
34988         * config.make.in (libgcc_s_suffix): Remove variable.
34989
34990 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
34991
34992         * sysdeps/unix/sysv/gethostname.c: Move to ...
34993         * sysdeps/posix/gethostname.c: ... here.
34994
34995         * sysdeps/unix/execve.S: Remove file.
34996
34997         * sysdeps/unix/_exit.S: Remove file.
34998
34999 2012-04-23  Andreas Jaeger  <aj@suse.de>
35000
35001         [BZ #13739]
35002         * manual/Makefile: Remove make dist support, there's no
35003         need for a stand-alone documentation tar ball.
35004         (TEXI2DVI): Define always, it's not in Makeconfig.
35005         (dist): Removed.
35006         (tar-it): Removed.
35007         (edition): Removed.
35008         (glibc-doc-$(edition).tar): Removed
35009         (%.Z): Removed.
35010         (%.gz): Removed.
35011         (%.uu): Removed.
35012         (ETAGS): Remove, it's in Makeconfig.
35013         (move-if-change): Remove, it's in Makeconfig.
35014
35015 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35016
35017         [BZ #13970]
35018         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35019         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35020         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35021         (strtod_l, strtof_l, strtold_l): Remove __wur.
35022         It is not necessarily an error to ignore strtol's return value.
35023         One can reliably look at the stored endptr to decide whether
35024         the number had valid syntax.
35025
35026 2012-04-21  Andreas Jaeger  <aj@suse.de>
35027
35028         [BZ #13739]
35029         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35030
35031 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35032
35033         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35034         * sysdeps/unix/sysv/Versions: Remove file.
35035
35036 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35037
35038         [BZ #13927]
35039         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35040
35041 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35042
35043         [BZ #7064]
35044         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35045         version from __vm86.
35046
35047 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35048
35049         * sysdeps/unix/common/lxstat.c: Remove file.
35050         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35051
35052         * sysdeps/unix/sysv/Makefile: Remove file.
35053
35054         * sysdeps/unix/sysv/direct.h: Remove file.
35055
35056         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35057         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35058         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35059         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35060         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35061         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35062         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35063
35064         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35065
35066         * sysdeps/unix/xmknod.c: Remove file.
35067         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35068
35069         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35070
35071         * sysdeps/unix/sysv/i386/time.S: Remove file.
35072
35073         * sysdeps/unix/fxstat.c: Remove file.
35074         * sysdeps/unix/xstat.c: Likewise.
35075         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35076
35077         * sysdeps/unix/sysv/sigaction.c: Remove file.
35078
35079         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35080         (sysdep_headers): Remove variable.
35081         [termio.h not in sysdep_headers] (generated): Likewise.
35082         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35083         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35084         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35085         * sysdeps/unix/sysv/tcflow.c: Likewise.
35086         * sysdeps/unix/sysv/tcflush.c: Likewise.
35087         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35088         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35089         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35090         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35091         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35092
35093         * sysdeps/unix/siglist.c: Remove file.
35094
35095         * sysdeps/unix/getppid.S: Remove file.
35096
35097         * sysdeps/unix/mkdir.c: Remove file.
35098         * sysdeps/unix/rmdir.c: Likewise.
35099
35100 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35101
35102         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35103         ERR_MAX value.
35104         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35105         errlist-compat value.
35106
35107 2012-04-18  David S. Miller  <davem@davemloft.net>
35108
35109         * sysdeps/generic/memcopy.h (reg_char): Delete.
35110         * debug/strcat_chk.c: Use char, not reg_char.
35111         * debug/strcpy_chk.c: Likewise.
35112         * debug/strncat_chk.c: Likewise.
35113         * debug/strncpy_chk.c: Likewise.
35114         * string/memchr.c: Likewise.
35115         * string/memrchr.c: Likewise.
35116         * string/rawmemchr.c: Likewise.
35117         * string/strcat.c: Likewise.
35118         * string/strchr.c: Likewise.
35119         * string/strchrnul.c: Likewise.
35120         * string/strcmp.c: Likewise.
35121         * string/strcpy.c: Likewise.
35122         * string/strncat.c: Likewise.
35123         * string/strncmp.c: Likewise.
35124         * string/strncpy.c: Likewise.
35125
35126 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35127
35128         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35129         __builtin_memcopy is called when src and dest ranges are known to not
35130         overlap.
35131
35132 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35133
35134         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35135         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35136         fwd_align_merge macro call.
35137         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35138         bwd_align_merge macro call.
35139         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35140
35141 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35142
35143         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35144         bwd_align_merge macros.
35145         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35146         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35147         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35148
35149 2012-04-18  David S. Miller  <davem@davemloft.net>
35150
35151         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35152
35153 2012-04-18  Andreas Jaeger  <aj@suse.de>
35154
35155         [BZ# 6794]
35156         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35157         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35158         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35159
35160         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35161         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35162         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35163
35164         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35165         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35166         Adjust for changed ldbl-128 files.
35167
35168         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35169         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35170         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35171
35172 2012-04-17  David S. Miller  <davem@davemloft.net>
35173
35174         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35175
35176 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35177
35178         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35179         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35180         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35181         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35182         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35183         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35184
35185 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35186
35187         [BZ #6794]
35188         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35189         * math/libm-test.inc: Add ilogb errno and exception tests.
35190         * math/w_ilogb.c: New file: ilogb wrapper.
35191         * math/w_ilogbf.c: New file: ilogbf wrapper.
35192         * math/w_ilogbl.c: New file: ilogbl wrapper.
35193         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35194         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35195         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35196         exception being thrown with 0.0 as argument.
35197         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35198         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35199         exception being thrown with 0.0 as argument.
35200         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35201         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35202         exception being thrown with 0.0 as argument.
35203         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35204         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35205         exception being thrown with 0.0 as argument.
35206         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35207         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35208         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35209         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35210         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35211         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35212         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35213         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35214         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35215
35216 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35217
35218         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35219         with altivec.
35220
35221 2012-04-16  Marek Polacek  <polacek@redhat.com>
35222
35223         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35224
35225 2012-04-16  Marek Polacek  <polacek@redhat.com>
35226
35227         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35228         operands of fdivp instruction.
35229
35230 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35231
35232         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35233         * elf/tst-auditmod3b.c: Likewise.
35234         * elf/tst-auditmod4b.c: Likewise.
35235         * elf/tst-auditmod5b.c: Likewise.
35236         * elf/tst-auditmod6b.c: Likewise.
35237         * elf/tst-auditmod6c.c: Likewise.
35238         * elf/tst-auditmod7b.c: Likewise.
35239         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35240         * sysdeps/x86_64/preconfigure.in: Likewise.
35241         * sysdeps/x86_64/preconfigure: Regenerated.
35242
35243 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35244
35245         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35246         __ILP32__.
35247
35248 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35249
35250         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35251         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35252
35253 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35254
35255         [BZ #13973]
35256         * locale/iso-639.def: Fix gl language name. Spotted by
35257         Yaron Shahrabani.
35258
35259 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35260
35261         [BZ #2074]
35262         * libio/libio.h (__io_write_fn): Update comment.
35263
35264 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35265
35266         [BZ #2074]
35267         * stdio.texi (Hook Functions): The user provided writer function
35268         is not allowed to return -1.
35269
35270 2012-04-11  David S. Miller  <davem@davemloft.net>
35271
35272         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35273
35274 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35275
35276         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35277         Add a leading slash to rtkaio.
35278
35279 2012-04-11  Jim Meyering  <meyering@redhat.com>
35280
35281         [BZ #11959]
35282         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35283         It is not necessarily an error to ignore fwrite's return
35284         value.  One can reliably use ferror to test for errors after
35285         the fact.
35286
35287 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35288
35289         * bits/types.h (__snseconds_t): New type.
35290         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35291
35292         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35293         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35294         (__SNSECONDS_T_TYPE): Likewise.
35295         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35296         (__SNSECONDS_T_TYPE): Likewise.
35297         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35298         (__SNSECONDS_T_TYPE): Likewise.
35299
35300 2012-04-10  Andreas Jaeger  <aj@suse.de>
35301
35302         [BZ #2636]
35303         * manual/time.texi (Processor Time): Return type of times is
35304         elapsed real time since an arbitrary point in the past.
35305         (CPU Time): Move CLK_TCK from here...
35306         (Processor Time): ...to here.  Correct description.
35307         * manual/conf.texi (Constants for Sysconf): Correct description of
35308         _SC_CLK_TCK.
35309
35310 2012-04-10  David S. Miller  <davem@davemloft.net>
35311
35312         [BZ #13967]
35313         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35314         where the is a gap between DT_REL(A) and DT_JMPREL.
35315
35316 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35317
35318         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35319         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35320         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35321
35322 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35323
35324         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35325         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35326         (dl_main): Handle --inhibit-cache.
35327         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35328         _dl_inhibit_cache.
35329         * elf/dl-load.c (_dl_map_object): Use it.
35330         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35331
35332 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35333
35334         [BZ #13872]
35335         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35336         (__ieee754_powl): Saturate large exponents rather than testing for
35337         overflow of y*log2(x).
35338         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35339         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35340         exceptions.
35341
35342         [BZ #11521]
35343         * math/s_ctan.c: Include <float.h>.
35344         (__ctan): Avoid internal overflow or cancellation in calculating
35345         denominator.
35346         * math/s_ctanf.c: Likewise.
35347         * math/s_ctanl.c: Likewise.
35348         * math/s_ctanh.c: Likewise.
35349         * math/s_ctanhf.c: Likewise.
35350         * math/s_ctanhl.c: Likewise.
35351         * math/libm-test.inc (ctan_test): Add more tests.
35352         (ctanh_test): Likewise.
35353         * sysdeps/i386/fpu/libm-test-ulps: Update.
35354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35355
35356 2012-04-09  Andreas Jaeger  <aj@suse.de>
35357
35358         [BZ #6894]
35359         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35360         is an optional BSD extension.
35361
35362         [BZ #10254]
35363         * manual/stdio.texi (Opening Streams): Document additional fopen
35364         parameters.
35365
35366 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35367
35368         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35369         %eax without telling the compiler.
35370
35371 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35372
35373         [BZ # 13963]
35374         * manual/install.texi: Use sourceware.org.
35375
35376 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35377
35378         [BZ #13873]
35379         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35380         (__ieee754_pow): Generate overflow and underflow using huge*huge
35381         and tiny*tiny rather than just returning constant infinity or zero
35382         for large exponents.
35383         * math/libm-test.inc (pow_test): Require overflow exceptions for
35384         applicable cases of large exponents.
35385
35386         [BZ #706]
35387         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35388         (__ieee754_pow): Use iterative multiplication algorithm only for
35389         integer exponents with absolute value below 1024.  Check for odd
35390         integer exponents when using algorithm for real exponents.
35391         * math/libm-test.inc (pow_test): Add more tests.
35392         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35393
35394 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35395
35396         [BZ #13705]
35397         * math/libm-test.inc (exp_test): Do not allow overflow exception
35398         on underflow test.
35399
35400 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35401
35402         [BZ #13705]
35403         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35404         instead of __kernel_standard_f.
35405
35406 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35407
35408         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35409         * sysdeps/x86_64/memset_chk.S: Likewise.
35410
35411 2012-04-08  Andreas Jaeger  <aj@suse.de>
35412
35413         [BZ #10153]
35414         * manual/startup.texi (Environment Access): Describe return value
35415         for putenv and setenv.
35416
35417         [BZ #6895]
35418         * manual/filesys.texi (Directory Entries): Add description for
35419         DT_LNK.
35420
35421         [BZ #6890]
35422         * manual/filesys.texi (Directory Entries): Clarify that it's file
35423         system not operating system in the description of DT_UNKNOWN.
35424
35425         [BZ #6578]
35426         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35427
35428 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35429
35430         [BZ #6649]
35431         * manual/llio.texi (Opening and Closing Files): Add cross
35432         reference to explain mode argument.
35433
35434 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35435
35436         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35437         * sysdeps/x86_64/memset_chk.S: Likewise.
35438
35439 2012-04-07  David S. Miller  <davem@davemloft.net>
35440
35441         * elf/elf.h (R_SPARC_WDISP10): Define.
35442         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35443         R_SPARC_SIZE32.
35444         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35445         R_SPARC_SIZE64 and R_SPARC_H34.
35446
35447 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35448
35449         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35450         conditions and remove no longer applicable assertion.
35451
35452 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35453
35454         * bits/byteswap.h: Include <features.h>.
35455         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35456         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35457
35458 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35459
35460         * bits/byteswap.h (__bswap_16): Removed.
35461         Include <bits/byteswap-16.h> to get __bswap_16.
35462         * sysdeps/i386/bits/byteswap.h: Likewise.
35463         * sysdeps/s390/bits/byteswap.h: Likewise.
35464         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35465         * bits/byteswap-16.h: New file.
35466         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35467         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35468         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35469         * string/Makefile (headers): Add bits/byteswap-16.h.
35470
35471 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35472
35473         [BZ #13895]
35474         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35475         extra indirection.
35476         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35477         * nss/tst-nss-static.c: New.
35478
35479 2012-04-06  Robert Millan  <rmh@gnu.org>
35480
35481         [BZ #6486]
35482         * manual/llio.texi (File Position Primitive): lseek
35483         refers to WHENCE when it really means OFFSET.
35484
35485 2012-04-06  Andreas Jaeger  <aj@suse.de>
35486
35487         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35488         strncmp declarations.
35489
35490         * abilist/libc.abilist: Add __poll and __ppoll.
35491
35492 2012-04-05  David S. Miller  <davem@davemloft.net>
35493
35494         * scripts/check-local-headers.sh: Accept a host triplet in the
35495         path matched by the exclude regexp.
35496
35497         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35498         definition.
35499         * sysdeps/powerpc/powerpc32/dl-machine.h
35500         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35501         * sysdeps/s390/s390-32/dl-machine.h
35502         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35503         * sysdeps/sparc/sparc32/dl-machine.h
35504         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35505         * sysdeps/sparc/sparc64/dl-machine.h
35506         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35507
35508         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35509         lazy binding.
35510         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35511         undefined symbol errors.
35512
35513         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35514         DT_NEEDED entries.
35515
35516 2012-04-05  Michael Matz  <matz@suse.de>
35517
35518         [BZ #13592]
35519         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35520
35521 2012-04-05  Andreas Jaeger  <aj@suse.de>
35522
35523         [BZ #13908]
35524         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35525         comment.
35526
35527 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35528
35529         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35530         which ROUND is no valid rounding mode.
35531
35532 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35533
35534         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35535         read again.
35536         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35537
35538 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35539
35540         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35541         an exception using FPU order intentionally.
35542
35543 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35544
35545         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35546         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35547         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35548         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35549
35550 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35551
35552         [BZ #12340]
35553         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35554         EINVAL when BUFLEN is too smal.
35555
35556 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35557
35558         [BZ #13553]
35559         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35560         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35561
35562 2012-04-03  Andreas Jaeger  <aj@suse.de>
35563
35564         [BZ #13938]
35565         * manual/setjmp.texi (System V contexts): Fix sentence.
35566
35567         [BZ #13926]
35568         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35569         New macro for this case.
35570         [!__GNUC__] (__bswap_64): New inline function for this case.
35571         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35572         * bits/byteswap.h: Likewise.
35573         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35574         ull, guard with __GLIBC_HAVE_LONG_LONG.
35575
35576         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35577         __GLIBC_HAVE_LONG_LONG.
35578
35579         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35580         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35581
35582 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35583
35584         [BZ #13691]
35585         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35586         inptr and inend, rather than using last_ch.
35587
35588 2012-04-02  David S. Miller  <davem@davemloft.net>
35589
35590         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35591         * stdio-common/printf-parse.h (read_int): Change return type to
35592         'int', return -1 on INT_MAX overflow.
35593         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35594         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35595         overflows INT_MAX.  Check for overflow of in-format-string precision
35596         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35597         SIZE_MAX not INT_MAX for integer overflow test.
35598         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35599         skip the construct in the format string but do not record anything.
35600         * stdio-common/bug22.c: Adjust to test both width/prevision
35601         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35602         explicitly for proper errno values.
35603
35604 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35605
35606         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35607         CHAR_MAX.
35608         * string/test-strcmp.c [! WIDE]: Likewise.
35609         * time/tst-mktime2.c: Likewise for INT_MAX.
35610         * string/test-string.h: #include <sys/param.h> for MIN.
35611
35612         * csu/init-first.c (__libc_init_first): Call __ctype_init.
35613         * sysdeps/i386/init-first.c (init): Likewise.
35614         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
35615         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
35616         * sysdeps/sh/init-first.c (init): Likewise.
35617
35618 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
35619
35620         * po/ru.po: Update from translation team.
35621         * po/vi.po: Likewise.
35622
35623 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35624
35625         * resolv/nss_dns/dns-host.c: Merge copyright years.
35626
35627 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35628
35629         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
35630         Optimize memcpy with prefetch if
35631         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
35632         src, dst pointers have unequal 16 byte alignments.
35633
35634 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35635
35636         [BZ #13928]
35637         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
35638         from a CNAME entry and return the minimum ttl for the query.
35639         (gaih_getanswer_slice): Likewise.
35640
35641 2012-03-30  Jeff Law  <law@redhat.com>
35642
35643         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
35644         due to long keys.
35645         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
35646         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
35647
35648         * resolv/nss_dns/dns-host.c: Update copyright year.
35649
35650 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
35651
35652         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
35653         requests to save a system call.  Fix check that all bytes are sent.
35654
35655         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
35656         comments for sendmmsg.
35657
35658 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
35659
35660         [BZ #13691]
35661         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
35662         with only 1 character between 0x0041 and 0x01b0.
35663         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
35664         * wcsmbs/tst-mbsnrtowcs.c: New file.
35665
35666 2012-03-29  David S. Miller  <davem@davemloft.net>
35667
35668         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
35669         small copies by hand.
35670
35671 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35672
35673         [BZ #13761]
35674         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
35675         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
35676         group memberships.
35677
35678 2012-03-28  David S. Miller  <davem@davemloft.net>
35679
35680         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
35681         that branches into memcpy.
35682         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
35683         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
35684         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
35685         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
35686         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
35687         bits.
35688         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
35689         implementation too.
35690         * sysdeps/sparc/mempcpy.S: New file.
35691
35692         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
35693         the IFUNC routine in the libc case.
35694         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
35695
35696         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
35697         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
35698         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
35699         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
35700         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
35701         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
35702         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
35703         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
35704
35705         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
35706         loop to 256 bytes instead of 64 bytes and fix test signedness.
35707
35708         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
35709         * sysdeps/sparc/sparc32/Makefile: rather than here...
35710         * sysdeps/sparc/sparc64/Makefile: and here.
35711
35712 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
35713
35714         * malloc/mallocbug.c: Avoid warnings about unused variables.
35715
35716 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35717
35718         [BZ #13760]
35719         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
35720         in the right place. Discard and retry query if response is
35721         larger than input buffer size.
35722
35723 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
35724
35725         [BZ #369]
35726         [BZ #2678]
35727         [BZ #3866]
35728         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
35729         x for large integer exponent.
35730         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
35731         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
35732         sign of result as needed afterwards.
35733         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
35734         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
35735         result for underflowing pow the same as for overflow.
35736         (__kernel_standard_l): Handle powl overflow and underflow here
35737         rather than calling __kernel_standard.
35738         * math/libm-test.inc (pow_test): Add more tests.
35739
35740         [BZ #3868]
35741         [BZ #13879]
35742         [BZ #13910]
35743         [BZ #13911]
35744         [BZ #13912]
35745         [BZ #13913]
35746         [BZ #13915]
35747         [BZ #13916]
35748         [BZ #13917]
35749         [BZ #13918]
35750         [BZ #13919]
35751         [BZ #13920]
35752         [BZ #13921]
35753         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
35754         * sysdeps/ieee754/k_standard.c: Include <float.h>.
35755         (__kernel_standard_l): New function.
35756         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
35757         __kernel_standard.
35758         * math/w_acosl.c (__acosl): Likewise.
35759         * math/w_asinl.c (__asinl): Likewise.
35760         * math/w_atan2l.c (__atan2l): Likewise.
35761         * math/w_atanhl.c (__atanhl): Likewise.
35762         * math/w_coshl.c (__coshl): Likewise.
35763         * math/w_exp10l.c (__exp10l): Likewise.
35764         * math/w_exp2l.c (__exp2l): Likewise.
35765         * math/w_fmodl.c (__fmodl): Likewise.
35766         * math/w_hypotl.c (__hypotl): Likewise.
35767         * math/w_j0l.c (__j0l, __y0l): Likewise.
35768         * math/w_j1l.c (__j1l, __y1l): Likewise.
35769         * math/w_jnl.c (__jnl, __ynl): Likewise.
35770         * math/w_lgammal.c (__lgammal): Likewise.
35771         * math/w_log10l.c (__log10l): Likewise.
35772         * math/w_log2l.c (__log2l): Likewise.
35773         * math/w_logl.c (__logl): Likewise.
35774         * math/w_powl.c (__powl): Likewise.
35775         * math/w_remainderl.c (__remainderl): Likewise.
35776         * math/w_scalbl.c (sysv_scalbl): Likewise.
35777         * math/w_sinhl.c (__sinhl): Likewise.
35778         * math/w_sqrtl.c (__sqrtl): Likewise.
35779         * math/w_tgammal.c (__tgammal): Likewise.
35780         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
35781         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
35782         * math/libm-test.inc (acos_test): Add more tests.
35783         (acosh_test): Likewise.
35784         (asin_test): Likewise.
35785         (atanh_test): Likewise.
35786         (exp_test): Likewise.
35787         (exp10_test): Likewise.
35788         (exp2_test): Likewise.
35789         (expm1_test): Likewise.
35790         (lgamma_test): Likewise.
35791         (log_test): Likewise.
35792         (log10_test): Likewise.
35793         (log1p_test): Likewise.
35794         (log2_test): Likewise.
35795         (pow_test): Do not allow some spurious overflow exceptions.
35796         (sqrt_test): Add more tests.
35797         (tgamma_test): Likewise.
35798         (y0_test): Likewise.
35799         (y1_test): Likewise.
35800         (yn_test): Likewise.
35801
35802 2012-03-27  Anton Blanchard  <anton@samba.org>
35803
35804         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
35805         MAP_HUGETLB.
35806         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
35807         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
35808         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
35809
35810 2012-03-27  David S. Miller  <davem@davemloft.net>
35811
35812         * conform/Makefile: Run run-conformtest.sh using $(BASH).
35813
35814         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
35815         have-as-vis3 check.
35816
35817 2012-03-27  Andreas Jaeger  <aj@suse.de>
35818
35819         * sysdeps/x86_64/elf/configure.in: Moved to ...
35820         * sysdeps/x86_64/configure.in: ... here.
35821         * sysdeps/x86_64/elf/start.S: Moved to ...
35822         * sysdeps/x86_64/start.S: ... here.
35823         * sysdeps/x86_64/elf/configure: Delete.
35824
35825         * sysdeps/x86_64/configure.in: Merge contents from
35826         sysdeps/i386/configure.in (without i686 check).
35827
35828         * sysdeps/i386/elf/Versions: Merge into ...
35829         * sysdeps/i386/Versions: ... this.
35830         * sysdeps/i386/elf/Versions: Delete file.
35831         * sysdeps/i386/elf/start.S: Moved to ...
35832         * sysdeps/i386/start.S: ...here.
35833         * sysdeps/i386/elf/configure.in: Merge into...
35834         * sysdeps/i386/configure.in: ...here.
35835         * sysdeps/i386/elf/configure.in: Delete file.
35836         * sysdeps/i386/elf/configure: Delete file.
35837
35838         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
35839         * debug/backtracesyms.c: ... here.
35840         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
35841         * debug/backtracesymsfd.c: ... here.
35842         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
35843         * sysdeps/generic/ifunc-sel.h: ... here.
35844
35845         * sysdeps/unix/i386/start.c: Delete file.
35846         * sysdeps/unix/sparc/start.c: Delete file.
35847         * sysdeps/unix/start.c: Delete file.
35848
35849         * sysdeps/sh/elf/configure.in: Moved to ...
35850         * sysdeps/sh/configure.in: ... here.
35851         * sysdeps/sh/elf/start.S: Moved to ...
35852         * sysdeps/sh/start.S: ... here.
35853         * sysdeps/sh/elf/configure: Delete file.
35854
35855         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
35856         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
35857         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
35858         * sysdeps/powerpc/powerpc64/entry.h: ... here.
35859         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
35860         * sysdeps/powerpc/powerpc64/start.S: here.
35861         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
35862         * sysdeps/powerpc/powerpc64/Makefile: ... this.
35863         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
35864         * sysdeps/powerpc/powerpc64/configure.in: ... this.
35865         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
35866
35867         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
35868         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
35869         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
35870         * sysdeps/powerpc/powerpc32/start.S: ... here.
35871         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
35872         * sysdeps/powerpc/powerpc32/configure.in: ... this.
35873         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
35874
35875         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
35876         * sysdeps/powerpc/ifunc-sel.h: ... here.
35877         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
35878         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
35879
35880         * sysdeps/sparc/elf/configure.in: Moved to ...
35881         * sysdeps/sparc/configure.in: ... here.
35882         * sysdeps/sparc/elf/configure: Delete file.
35883         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
35884         * sysdeps/sparc/sparc32/start.S: ... here.
35885         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
35886         * sysdeps/sparc/sparc64/start.S: ... here.
35887         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
35888         * sysdeps/sparc/sparc32/Makefile: ... this.
35889         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
35890         * sysdeps/sparc/sparc64/Makefile: ... this.
35891
35892         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
35893         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
35894         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
35895         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
35896         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
35897         * sysdeps/s390/s390-32/setjmp.S: ... here.
35898         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
35899         * sysdeps/s390/s390-32/configure.in: ... here.
35900         * sysdeps/s390/s390-32/elf/configure: Delete file.
35901         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
35902         * sysdeps/s390/s390-32/start.S: ... here.
35903
35904         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
35905         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
35906         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
35907         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
35908         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
35909         * sysdeps/s390/s390-64/setjmp.S: ... here.
35910         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
35911         * sysdeps/s390/s390-64/configure.in: ... here
35912         * sysdeps/s390/s390-64/elf/configure: Delete file.
35913         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
35914         * sysdeps/s390/s390-64/start.S: ... here.
35915         * sysdeps/s390/s390-64/elf/configure: Delete.
35916
35917         * configure.in: Remove support for elf directories in sysdeps.
35918
35919         * configure: Regenerated.
35920         * sysdeps/i386/configure: Regenerated.
35921         * sysdeps/powerpc/powerpc32/configure: Regenerated.
35922         * sysdeps/powerpc/powerpc64/configure: Regenerated.
35923         * sysdeps/s390/s390-32/configure: Regenerated.
35924         * sysdeps/s390/s390-64/configure: Regenerated.
35925         * sysdeps/sh/configure: Regenerated.
35926         * sysdeps/sparc/configure: Regenerated.
35927         * sysdeps/x86_64/configure: Regenerated.
35928
35929 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
35930
35931         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35932
35933         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
35934         denormal result into account.
35935
35936 2012-03-25  Roland McGrath  <roland@hack.frob.com>
35937
35938         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
35939         Reported by Allan McRae <allan@archlinux.org>.
35940
35941 2012-03-23  Jeff Law  <law@redhat.com>
35942
35943         * nss/getnssent.c (__nss_getent): Fix typo.
35944
35945 2012-03-23  David S. Miller  <davem@davemloft.net>
35946
35947         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35948
35949 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
35950
35951         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
35952         to pad to uint64_t for each field.
35953         (dl_tls_index): Replace unsigned long with uint64_t.
35954
35955 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
35956         Paul Pluzhnikov  <ppluzhnikov@google.com>
35957
35958         [BZ #6528]
35959         * grp/Makefile (otherlibs): Don't set it.
35960         * inet/Makefile (otherlibs): Likewise.
35961         * login/Makefile (otherlibs): Likewise.
35962         * nscd/Makefile (otherlibs): Likewise.
35963         * posix/Makefile (otherlibs): Likewise.
35964         * pwd/Makefile (otherlibs): Likewise.
35965         * rt/Makefile (otherlibs): Likewise.
35966         * sunrpc/Makefile (otherlibs): Likewise.
35967         * nss/Makefile (otherlibs): Likewise.
35968         Add libnss_files to routines and static-only-routines.
35969         ($(objpfx)getent): Remove rule.
35970         * resolv/Makefile: Add libnss_dns and libresolv to routines and
35971         static-only-routines.
35972
35973 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35974
35975         [BZ #13892]
35976         * math/s_cexp.c: Include <float.h>.
35977         (__cexp): Handle exp result overflowing not necessarily
35978         overflowing both real and imaginary parts of result.
35979         * math/s_cexpf.c: Likewise.
35980         * math/s_cexpl.c: Likewise.
35981         * math/libm-test.inc (cexp_test): Add more tests.
35982         * sysdeps/i386/fpu/libm-test-ulps: Update.
35983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35984
35985 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35986
35987         * include/link.h (ELFW): New macro.
35988         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
35989         Replace ELF64_R_TYPE with ELFW(R_TYPE).
35990
35991 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35992
35993         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
35994         with uint64_t.
35995
35996 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35997
35998         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
35999         declaration.
36000         (struct La_x32_retval): Likewise.
36001
36002 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36003
36004         * sysdeps/x86_64/preconfigure.in: New file.
36005         * sysdeps/x86_64/preconfigure: New generated file.
36006
36007 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36008
36009         [BZ #13824]
36010         * math/e_exp2l.c: Include <float.h>.
36011         (__ieee754_exp2l): Handle overflow and underflow cases
36012         separately.  Only pass fractional part of argument to
36013         __ieee754_expl.
36014         * math/libm-test.inc (exp2_test): Add more tests.
36015
36016         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36017         negating x to take absolute value.
36018         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36019         Likewise.
36020         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36021         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36022         Likewise.
36023         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36024         computing low part if x was negated.
36025         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36026
36027 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36028
36029         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36030         la_x32_gnu_pltexit.
36031         (pltexit): Cast int_retval to ptrdiff_t.
36032         * elf/tst-auditmod3b.c: Likewise.
36033         * elf/tst-auditmod4b.c: Likewise.
36034         * elf/tst-auditmod5b.c: Likewise.
36035         * elf/tst-auditmod6b.c: Likewise.
36036         * elf/tst-auditmod6c.c: Likewise.
36037         * elf/tst-auditmod7b.c: Likewise.
36038
36039         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36040         and x32_gnu_pltexit.
36041
36042         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36043         __ELF_NATIVE_CLASS.
36044         (La_x32_regs): New macro.
36045         (La_x32_retval): Likewise.
36046         (la_x32_gnu_pltenter): New function prototype.
36047         (la_x32_gnu_pltexit): Likewise.
36048
36049 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36050
36051         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36052         exponent.
36053
36054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36055
36056         * configure.in (libc_cv_cc_nofma): Check for option to disable
36057         generation of FMA instructions.
36058         * configure: Regenerate.
36059         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36060         * sysdeps/ieee754/dbl-64/Makefile: New file.
36061         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36062         Remove brandred-fma4.
36063         (CFLAGS-brandred-fma4.c): Remove.
36064         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36065         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36066         define.
36067         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36068         define.
36069
36070 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36071
36072         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36073         LLONG_MAX != LONG_MAX.
36074         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36075         (_fitoa_word): Likewise.
36076         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36077         LLONG_MAX != LONG_MAX.
36078         * stdio-common/_itowa.h: Include <_itoa.h>.
36079         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36080         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36081         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36082         only if not defined.
36083         (_ITOA_WORD_TYPE): Likewise.
36084         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36085         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36086
36087 2012-03-21  David S. Miller  <davem@davemloft.net>
36088
36089         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36090
36091 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36092
36093         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36094         of x86_64 when setting libc_cv_slibdir, libdir and
36095         libc_cv_localedir.
36096         * sysdeps/unix/sysv/linux/configure: Regenerated.
36097
36098 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36099
36100         * manual/lang.texi (Old Varargs): Remove section.
36101         (How Variadic): Update menu.
36102         (va_start): Do not mention varargs.h.
36103
36104 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36105             Joseph Myers  <joseph@codesourcery.com>
36106
36107         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36108         link test.
36109         * configure: Regenerated.
36110
36111 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36112
36113         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36114         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36115         conformtest.pl
36116
36117 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36118
36119         * NOTES: Remove.
36120         * Makefile (files-for-dist): Remove NOTES.
36121         (NOTES): Remove rule.
36122         * README: Don't refer to NOTES.
36123         * manual/creature.texi: Don't include macros.texi.
36124         * manual/intro.texi (creature.texi): Remove comment referring to
36125         NOTES.
36126
36127         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36128         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36129         * configure: Regenerated.
36130         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36131         LIBC_TRY_CC_OPTION.
36132         (libc_cv_as_i686): Likewise.
36133         (libc_cv_cc_avx): Likewise.
36134         (libc_cv_cc_sse2avx): Likewise.
36135         (libc_cv_cc_fma4): Likewise.
36136         (libc_cv_cc_novzeroupper): Likewise.
36137         * sysdeps/i386/configure: Regenerated.
36138
36139         [BZ #13883]
36140         * sysdeps/i386/fpu/s_cexp.S: Remove.
36141         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36142         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36143         * math/libm-test.inc (cexp_test): Add more tests.
36144         * sysdeps/i386/fpu/libm-test-ulps: Update.
36145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36146
36147 2012-03-21  Allan McRae  <allan@archlinux.org>
36148
36149         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36150
36151 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36152
36153         [BZ #13871]
36154         * math/w_exp2.c: Do not include <float.h>.
36155         (o_threshold, u_threshold): Remove.
36156         (__exp2): Calculate result before checking finiteness and calling
36157         __kernel_standard.
36158         * math/w_exp2f.c: Likewise.
36159         * math/w_exp2l.c: Likewise.
36160         * math/libm-test.inc (exp2_test): Require overflow exception for
36161         1e6 input.
36162
36163         [BZ #3866]
36164         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36165         range of signed 64-bit integers before using fistpll.  Remove
36166         checks for whether integers fit in mantissa bits.
36167         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36168         the range of signed 32-bit integers before using fistpl.  Remove
36169         checks for whether integers fit in mantissa bits.
36170         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36171         (__ieee754_powl): Test for y outside the range of signed 64-bit
36172         integers before using fistpll.  Reduce 64-bit values to 63-bit
36173         ones as needed.
36174         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36175         divide-by-zero is raised for zero to large negative powers.
36176         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36177         (__ieee754_powl): Test for y outside the range of signed 64-bit
36178         integers before using fistpll.  Reduce 64-bit values to 63-bit
36179         ones as needed.
36180         * math/libm-test.inc (pow_test): Add more tests.
36181
36182 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36183
36184         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36185         <stdio-common/_itoa.h>.
36186         * debug/segfault.c: Likewise.
36187         * elf/dl-cache.c: Likewise.
36188         * elf/dl-minimal.c: Likewise.
36189         * elf/dl-misc.c: Likewise.
36190         * elf/dl-sysdep.c: Likewise.
36191         * elf/dl-version.c: Likewise.
36192         * elf/rtld.c: Likewise.
36193         * hurd/hurdsock.c: Likewise.
36194         * hurd/lookup-retry.c: Likewise.
36195         * malloc/malloc.c: Likewise.
36196         * malloc/mtrace.c: Likewise.
36197         * nscd/nscd_getgr_r.c: Likewise.
36198         * nscd/nscd_getpw_r.c: Likewise.
36199         * nscd/nscd_getserv_r.c: Likewise.
36200         * posix/getopt_init.c: Likewise.
36201         * posix/wordexp.c: Likewise.
36202         * stdio-common/_itoa.c: Likewise.
36203         * stdio-common/printf_fphex.c: Likewise.
36204         * stdio-common/vfprintf.c: Likewise.
36205         * string/_strerror.c: Likewise.
36206         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36207         * sysdeps/i386/i686/hp-timing.h: Likewise.
36208         * sysdeps/mach/_strerror.c: Likewise.
36209         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36210         * sysdeps/mach/hurd/sethostid.c: Likewise.
36211         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36212         * sysdeps/mach/xpg-strerror.c: Likewise.
36213         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36214         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36215         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36216         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36217         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36218         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36219         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36220         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36221         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36222         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36223         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36224         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36225         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36226         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36227         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36228         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36229         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36230         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36231         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36232         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36233         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36234
36235         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36236
36237         * stdio-common/_itoa.h: Moved to ...
36238         * sysdeps/generic/_itoa.h: Here.
36239
36240         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36241
36242         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36243         instead of "_itoa.h" and "_itowa.h".
36244         * stdio-common/vfprintf.: Likewise.
36245
36246 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36247
36248         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36249         <bits/wordsize.h>.
36250         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36251         (__signbit): Likwise.
36252         (llrintf): Likwise.
36253         (llrint): Likwise.
36254
36255 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36256
36257         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36258         __WORDSIZE != 64.
36259
36260 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36261
36262         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36263         OVERFLOW_EXCEPTION_OK.
36264         * math/libm-test.inc ("Philosophy"): Update comment about
36265         exception testing.
36266         (OVERFLOW_EXCEPTION): Define.
36267         (OVERFLOW_EXCEPTION_OK): Likewise.
36268         (INVALID_EXCEPTION_OK): Renumber.
36269         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36270         (IGNORE_ZERO_INF_SIGN): Likewise.
36271         (test_exceptions): Handle FE_OVERFLOW.
36272         (exp10_test): Expect overflow exceptions.
36273         (exp2_test): Likewise.
36274         (expm1_test): Likewise.
36275         (nextafter_test): Likewise.
36276         (pow_test): Likewise.
36277         (scalbn_test): Likewise.
36278         (scalbln_test): Likewise.
36279
36280 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36281
36282         * sysdeps/x86_64/bits/atomic.h
36283         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36284         64bit integer.
36285         (atomic_exchange_acq): Likewise.
36286         (__arch_exchange_and_add_body): Likewise.
36287         (__arch_add_body): Likewise.
36288         (atomic_add_negative): Likewise.
36289         (atomic_add_zero): Likewise.
36290
36291 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36292
36293         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36294         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36295
36296 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36297
36298         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36299         Check __x86_64__ instead of __WORDSIZE.
36300
36301 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36302
36303         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36304
36305 2012-03-19  David S. Miller  <davem@davemloft.net>
36306
36307         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36308
36309         * sysdeps/sparc/fpu/fenv_private.h: New file.
36310         * sysdeps/sparc/fpu/math_private.h: Use it.
36311         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36312         Remove.
36313         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36314         (libc_feholdexcept_setroundl): Remove.
36315         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36316         Remove.
36317         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36318         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36319
36320 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36321
36322         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36323         int64_t instead of long int.
36324         (INSERT_WORDS64): Likwise.
36325
36326 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36327
36328         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36329         _Unwind_GetCFA return to _Unwind_Ptr first.
36330
36331 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36332
36333         [BZ #13629]
36334         * math/s_clog.c: Include <float.h>.
36335         (__clog): Scale large or subnormal inputs.
36336         * math/s_clogf.c: Likewise.
36337         * math/s_clogl.c: Likewise.
36338         * math/s_clog10.c: Include <float.h>.
36339         (M_LOG10_2): Define.
36340         (__clog10): Scale large or subnormal inputs.
36341         * math/s_clog10f.c: Likewise.
36342         * math/s_clog10l.c: Likewise.
36343         * math/libm-test.inc (clog_test): Add more tests.
36344         (clog10_test): Likewise.
36345         * sysdeps/i386/fpu/libm-test-ulps: Update.
36346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36347
36348         [BZ #11451]
36349         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36350         x and y.
36351         * math/libm-test.inc (atan2_test): Add another test.
36352
36353         * Makerules (common-objdir-compile): Remove.
36354         * sysdeps/unix/Makefile (config-generated): Do not add
36355         $(unix-generated) to variable.
36356         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36357         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36358         Remove rule.
36359         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36360         Likewise.
36361         [generic bits/local_lim.h] (before-compile): Do not append to
36362         variable.
36363         [generic bits/local_lim.h] (common-generated): Likewise.
36364         [generic sys/param.h] (before-compile): Do not append to variable.
36365         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36366         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36367         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36368         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36369         include.
36370         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36371         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36372         [generic sys/param.h] ($(addprefix
36373         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36374         [generic sys/param.h] (common-generated): Do not append to
36375         variable.
36376         [generic sys/param.h] (sysdep_headers): Likewise.
36377         [generic bits/errno.h] (before-compile): Do not append to
36378         variable.
36379         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36380         rule.
36381         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36382         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36383         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36384         [generic bits/errno.h] (common-generated): Do not append to
36385         variable.
36386         [generic bits/ioctls.h] (before-compile): Do not append to
36387         variable.
36388         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36389         rule.
36390         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36391         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36392         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36393         rule.
36394         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36395         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36396         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36397         [generic bits/ioctls.h] (common-generated): Do not append to
36398         variable.
36399         [generic sys/syscall.h] (syscall.h): Remove variable.
36400         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36401         rule.
36402         [generic sys/syscall.h] (before-compile): Do not append to
36403         variable.
36404         [generic sys/syscall.h] (common-generated): Likewise.
36405         * sysdeps/unix/errnos-tmpl.c: Remove file.
36406         * sysdeps/unix/errnos.awk: Likewise.
36407         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36408         * sysdeps/unix/ioctls.awk: Likewise.
36409         * sysdeps/unix/mk-local_lim.c: Likewise.
36410         * sysdeps/unix/snarf-ioctls: Likewise.
36411
36412 2012-03-19  Richard Henderson  <rth@twiddle.net>
36413
36414         * sysdeps/i386/fpu/fenv_private.h: New file.
36415         * sysdeps/i386/fpu/math_private.h: Use it.
36416         (math_opt_barrier, math_force_eval): Remove.
36417         (libc_feholdexcept_setround_53bit): Remove.
36418         (libc_feupdateenv_53bit): Remove.
36419         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36420         (math_opt_barrier, math_force_eval): Remove.
36421         (libc_feholdexcept): Remove.
36422         (libc_feholdexcept_setround): Remove.
36423         (libc_fetestexcept, libc_fesetenv): Remove.
36424         (libc_feupdateenv_test): Remove.
36425         (libc_feupdateenv, libc_feholdsetround): Remove.
36426         (libc_feresetround): Remove.
36427
36428         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36429         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36430
36431         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36432         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36433         (libc_feupdateenv_testl): New.
36434         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36435         (libc_feupdateenv_testf): New.
36436         (libc_feupdateenv): Use libc_feupdateenv_test.
36437         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36438         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36439
36440         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36441         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36442         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36443         (libc_feresetround_noex): New.
36444         (libc_feresetround_noexf): New.
36445         (libc_feresetround_noexl): New.
36446         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36447         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36448         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36449         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36450         SET_RESTORE_ROUND.
36451         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36452         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36453         (__cos): Likewise.
36454         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36455         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36456         SET_RESTORE_ROUND_NOEX.
36457         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36458         SET_RESTORE_ROUND_NOEXF.
36459         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36460         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36461         (libc_feholdsetroundf): New.
36462         (libc_feresetround, libc_feresetroundf): New.
36463
36464         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36465         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36466         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36467
36468         * sysdeps/generic/math_private.h: Include <fenv.h>.
36469         (default_libc_feholdexcept): New.
36470         (default_libc_feholdexcept_setround): New.
36471         (default_libc_fesetenv, default_libc_feupdateenv): New.
36472         (libc_feholdexcept): Only define if undefined.
36473         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36474         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36475         (libc_feholdexcept_setroundl): Likewise.
36476         (libc_feholdexcept_setround_53bit): Likewise.
36477         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36478         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36479         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36480         (libc_feupdateenv_53bit): Likewise.
36481         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36482         (libc_feholdexcept): Convert from macro to inline function.
36483         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36484         (libc_fesetenv, libc_feupdateenv): Likewise.
36485
36486         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36487         not previously defined.
36488         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36489         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36490         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36491         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36492         * sysdeps/ieee754/flt-32/math_private.h: New file.
36493         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36494         math_private.h below SET_FLOAT_WORD.
36495         (__isnan, __isinf_ns, __finite): Remove.
36496         (__isnanf, __isinf_nsf, __finitef): Remove.
36497
36498 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36499
36500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36501
36502 2012-03-17  David S. Miller  <davem@davemloft.net>
36503
36504         [BZ #6471]
36505         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36506         for 2.16.
36507
36508 2012-03-16  David S. Miller  <davem@davemloft.net>
36509
36510         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36511         warnings.
36512
36513         [BZ #6471]
36514         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36515         properly.
36516         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36517         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36518         sysdep_routines when subdir is sysvipc.
36519         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36520         __getshmlba helper.
36521
36522         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36523
36524 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36525
36526         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36527         [__LP64__].
36528
36529 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36530
36531         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36532         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36533         (__lround): Renamed to ...
36534         (__llround): This.  Replace long int with long long int.
36535         Define lround functions as aliases of llround functions.
36536         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36537
36538 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36539
36540         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36541         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36542         adresses to uintptr_t.  Replace "long int" and "unsigned long
36543         int" with "greg_t" on va_arg.
36544
36545 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36546
36547         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36548         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36549
36550         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36551         Move e_machine check before EI_CLASS check.  Handle x32
36552         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36553         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36554         SKIP_EM_IA_64 and include
36555         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36556
36557         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36558         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36559         (add_system_dir): New macro.
36560
36561         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36562         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36563
36564 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36565
36566         [BZ #2551]
36567         [BZ #2552]
36568         [BZ #2553]
36569         [BZ #2554]
36570         [BZ #2562]
36571         [BZ #2563]
36572         [BZ #2565]
36573         [BZ #2566]
36574         [BZ #2576]
36575         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36576         (y0): Likewise.
36577         * math/w_j0f.c (j0f): Likewise.
36578         (y0f): Likewise.
36579         * math/w_j0l.c (__j0l): Likewise.
36580         (__y0l): Likewise.
36581         * math/w_j1.c (j1): Likewise.
36582         (y1): Likewise.
36583         * math/w_j1f.c (j1f): Likewise.
36584         (y1f): Likewise.
36585         * math/w_j1l.c (__j1l): Likewise.
36586         (__y1l): Likewise.
36587         * math/w_jn.c (jn): Likewise.
36588         (yn): Likewise.
36589         * math/w_jnf.c (jnf): Likewise.
36590         (ynf): Likewise.
36591         * math/w_jnl.c (__jnl): Likewise.
36592         (__ynl): Likewise.
36593         * math/libm-test.inc (j0_test): Add more tests.
36594         (j1_test): Likewise.
36595         (jn_test): Likewise.  Add trailing semicolon to existing test.
36596         (y0_test): Likewise.
36597         (y1_test): Likewise.
36598         * sysdeps/i386/fpu/libm-test-ulps: Update.
36599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36600
36601         [BZ #13851]
36602         [BZ #13854]
36603         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36604         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36605         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36606         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36607         (__tanl): Set errno for infinite argument.
36608         * sysdeps/i386/fpu/mptan.c: Remove.
36609         * sysdeps/i386/fpu/s_tan.S: Likewise.
36610         * sysdeps/i386/fpu/s_tanl.S: Likewise.
36611         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
36612         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
36613         * math/libm-test.inc (tan_test): Add more tests and enable more
36614         tests for double and long double.
36615         * sysdeps/i386/fpu/libm-test-ulps: Update.
36616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36617
36618 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
36619
36620         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
36621         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
36622
36623 2012-03-16  Roland McGrath  <roland@hack.frob.com>
36624
36625         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
36626         * configure.in: Use it for both main tree and add-ons.
36627         * configure: Regenerated.
36628
36629 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36630
36631         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
36632
36633 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36634
36635         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
36636         in comment.
36637
36638         [BZ #13851]
36639         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
36640         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
36641         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
36642         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
36643         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
36644         infinite argument.
36645         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
36646         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
36647         != 0 for prec == 2.
36648         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
36649         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
36650         * sysdeps/i386/fpu/s_cosl.S: Likewise.
36651         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
36652         * sysdeps/i386/fpu/s_sinl.S: Likewise.
36653         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
36654         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
36655         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
36656         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
36657         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
36658         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
36659         * math/libm-test.inc (cos_test): Add more tests and enable more
36660         tests for long double.
36661         (sin_test): Likewise.
36662         (sincos_test): Likewise.
36663         * sysdeps/i386/fpu/libm-test-ulps: Update.
36664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36665
36666 2012-03-16  David S. Miller  <davem@davemloft.net>
36667
36668         * sysdeps/sparc/fpu/math_private.h: New file.
36669
36670 2012-03-15  David S. Miller  <davem@davemloft.net>
36671
36672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
36673         file.
36674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
36675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
36676         file.
36677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
36678         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
36679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
36680         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
36681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
36682         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
36683         sysdep routines.
36684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36685
36686         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
36687         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
36688
36689         * sysdeps/sparc/sparc-ifunc.h: New file.
36690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
36691         sparc-ifunc.h
36692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
36693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
36694         Likewise.
36695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
36696         Likewise.
36697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
36698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
36699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
36700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
36701         Likewise.
36702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
36703         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
36704         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
36705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
36706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
36707         Likewise.
36708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
36709         Likewise.
36710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
36711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
36712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
36713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
36714         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
36715         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
36716         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
36717         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
36718         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
36719         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
36720         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
36721         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
36722         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
36723         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
36724         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
36725         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
36726         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
36727         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
36728         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
36729         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
36730         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
36731         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
36732         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
36733         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
36734
36735 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36736
36737         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
36738         scaling.
36739         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36740
36741 2012-03-15  Andreas Jaeger  <aj@suse.de>
36742
36743         [BZ #13852]
36744         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
36745         ieee754/flt-32 implementation for sin, cos and sincos.
36746         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
36747         * sysdeps/i386/fpu/s_cosf.S: Likewise.
36748         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
36749         * sysdeps/i386/fpu/s_sinf.S: Likewise.
36750         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
36751         ieee754/flt-32 implementation for tan.
36752
36753         * math/libm-test.inc (cos_test): Enable some large input tests for
36754         float as well
36755         (sin_test): Likewise.
36756         (sincos_test): Likewise.
36757         (tan_test): Add tests for large input.
36758
36759         * sysdeps/i386/fpu/libm-test-ulps: Update.
36760
36761 2012-03-15  Andreas Jaeger  <aj@suse.de>
36762
36763         [BZ #13658]
36764         * math/libm-test.inc (cos_test): Add more test cases.
36765         (sin_test): Likewise.
36766         (sincos_test): Likewise.
36767
36768 2012-03-15  Andreas Jaeger  <aj@suse.de>
36769
36770         [BZ #13837]
36771         * math/libm-test.inc (cos_test): Add a test case for large input
36772         value.
36773         (sin_test): Likewise.
36774         (sincos_test): Likewise.
36775
36776 2012-03-15  Andreas Jaeger  <aj@suse.de>
36777             Joseph Myers  <joseph@codesourcery.com>
36778
36779         [BZ #13658]
36780         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
36781         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
36782         * sysdeps/i386/fpu/branred.c: Likewise.
36783         * sysdeps/i386/fpu/dosincos.c: Likewise.
36784         * sysdeps/i386/fpu/mpa.c: Likewise.
36785         * sysdeps/i386/fpu/s_cos.S: Likewise.
36786         * sysdeps/i386/fpu/s_sin.S: Likewise.
36787         * sysdeps/i386/fpu/s_sincos.S: Likewise.
36788         * sysdeps/i386/fpu/sincos32.c: Likewise.
36789
36790         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
36791         Define.
36792         (libc_feupdateenv_53bit): Define.
36793         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
36794         Define.
36795         (libc_feupdateenv_53bit): Define.
36796
36797         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
36798         53 bit (without extend i386 double precision).
36799
36800         * math/libm-test.inc (sincos_test): Add tests for large input.
36801         (sin): Likewise.
36802         (cos): Likewise.
36803
36804         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
36805
36806 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36807
36808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36809
36810 2012-03-15  David S. Miller  <davem@davemloft.net>
36811
36812         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
36813         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
36814         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
36815         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
36816         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
36817         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
36818         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
36819         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
36820         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
36821         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
36822         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
36823         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
36824         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
36825         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
36826         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
36827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
36828         file.
36829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
36830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
36831         file.
36832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
36833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
36834         file.
36835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
36836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
36837         file.
36838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
36839         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
36840         fmin/fmax sysdep routines.
36841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36842
36843 2012-03-14  David S. Miller  <davem@davemloft.net>
36844
36845         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
36846         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
36847         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
36848         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
36849         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
36850         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
36851         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
36852         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
36853         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
36854         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
36855         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
36856         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
36857         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
36858         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
36859         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
36860         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
36861         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
36862         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
36863         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
36864         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
36865         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
36866         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
36867         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
36868         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
36869         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
36870         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
36871         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
36872         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
36873         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
36874         routines.
36875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
36876         file.
36877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
36878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
36879         file.
36880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
36881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
36882         file.
36883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
36884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
36885         file.
36886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
36887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
36888         file.
36889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
36890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
36891         file.
36892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
36893         file.
36894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
36895         file.
36896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
36897         file.
36898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
36899         New file.
36900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
36901         file.
36902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
36903         file.
36904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
36905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
36906         file.
36907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
36908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
36909         file.
36910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
36911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
36912         file.
36913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
36914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
36915         VIS3 routines.
36916
36917         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
36918         New file.
36919
36920         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36921
36922         * sysdeps/sparc/configure.in: New file.
36923         * sysdeps/sparc/configure: Generate.
36924         * configure.in (libc_cv_sparc_as_vis3): Substitute.
36925         * configure: Regenerate.
36926         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
36927         * config.make.in (have-as-vis3): New.
36928         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
36929         available use -Av9d instead of -Av9a.
36930         * sysdeps/sparc/sparc64/Makefile: Likewise.
36931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
36932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
36933         New file.
36934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
36935         file.
36936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
36937         New file.
36938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
36939         file.
36940         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
36941         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
36942         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
36943         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
36944         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
36945
36946         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
36947         fzeros/fnegs to load 0x80000000 into a float register instead of
36948         using the stack.
36949         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
36950
36951 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36952
36953         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36954         bits/syscall.h.
36955         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
36956         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
36957         ($(inst_includedir)/bits/syscall.h): Remove rule.
36958         ($(objpfx)bits/syscall.d): Include instead of
36959         $(objpfx)syscall-list.d.
36960         (generated): Change syscall-list.h and syscall-list.d to
36961         bits/syscall.h and bits/syscall.d.
36962
36963 2012-03-14  Roland McGrath  <roland@hack.frob.com>
36964
36965         [BZ #13846]
36966         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
36967
36968 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36969
36970         [BZ #13841]
36971         * math/s_csqrt.c: Include <float.h>.
36972         (__csqrt): Scale large or subnormal inputs.
36973         * math/s_csqrtf.c: Likewise.
36974         * math/s_csqrtl.c: Likewise.
36975         * math/libm-test.inc (csqrt_test): Add more tests.
36976         * sysdeps/i386/fpu/libm-test-ulps: Update.
36977         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36978
36979         [BZ #13840]
36980         * math/libm-test.inc (hypot_test): Add more tests.
36981
36982 2012-03-13  David S. Miller  <davem@davemloft.net>
36983
36984         [BZ #13840]
36985         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
36986         double-precision for the calculation instead of scaling.
36987
36988 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
36989
36990         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
36991         manipulate bits before adding and subtracting TWO52[sx].
36992         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
36993         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
36994         Likewise.
36995         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
36996
36997 2012-03-13  David S. Miller  <davem@davemloft.net>
36998
36999         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37000         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37001         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37002         rtld-global-offsets.h
37003         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37004
37005         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37006         large parameters.
37007
37008         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37009
37010         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37011         'err' in the ifdef scope in which it is actually used.
37012
37013         * nss/nss_db/db-init.c: Include string.h
37014
37015 2012-03-12  David S. Miller  <davem@davemloft.net>
37016
37017         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37018         masking out of the most significant byte of random value used.
37019         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37020         Fix coding style in previous change.
37021
37022         * sysdeps/unix/sysv/linux/kernel-features.h
37023         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37024         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37025         expression.
37026         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37027         later.
37028
37029 2012-03-11  David S. Miller  <davem@davemloft.net>
37030
37031         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37032         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37033         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37034         for 'resultvar' otherwise things get truncated on 64-bit.
37035
37036         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37037         Fix masking out of the most significant byte of random value used.
37038
37039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37040
37041 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37042
37043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37044
37045 2012-03-09  David S. Miller  <davem@davemloft.net>
37046
37047         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37048         variables with appropriate CPP guards.
37049         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37050         from the frame pointer, not the stack pointer.  Correct layout
37051         comments.  Fix test on resulting framesize and the management of
37052         the outregs buffer for pltexit.  Preserve floating point return
37053         values across _dl_call_pltexit call.
37054         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37055         framesize and the management of the outregs buffer for pltexit.
37056         Preserve floating point return values across _dl_call_pltexit
37057         call.
37058         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37059         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37060         (la_sparc64_gnu_pltexit): New functions.
37061         (print_exit): Fix format string for return register value.
37062
37063 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37064
37065         * sunrpc/Makefile (others): Add rpcgen.
37066         ($(objpfx)rpcgen): Remove special build rule and dependency on
37067         libc.
37068         * sunrpc/rpcgen.c: New file.
37069
37070 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37071
37072         [BZ #13673]
37073         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37074         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37075         * sysdeps/i386/crti.S: Likewise.
37076         * sysdeps/i386/crtn.S: Likewise.
37077         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37078         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37079         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37080         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37081         * sysdeps/sh/crti.S: Likewise.
37082         * sysdeps/sh/crtn.S: Likewise.
37083         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37084
37085         [BZ #13673]
37086         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37087         with URL.
37088         * locale/programs/locfile-kw.gperf: Likewise.
37089         * locale/programs/charmap-kw.h: Regenerated.
37090         * locale/programs/locfile-kw.h: Likewise.
37091
37092         [BZ #13673]
37093         * intl/plural.y: Replace FSF snail mail address with URL.
37094         * intl/plural.c: Regenerated.
37095
37096 2012-03-09  Richard Henderson  <rth@twiddle.net>
37097
37098         * include/math_private.h: Remove file.
37099         * math/math_private.h: Move file ...
37100         * sysdeps/generic/math_private.h: ... here.
37101
37102         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37103         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37104         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37105
37106         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37107         and <math_private.h>.
37108         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37109         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37110         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37111         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37112         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37113         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37114         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37115         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37116         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37117         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37118         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37119         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37120         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37121         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37122         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37123         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37124         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37125         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37126         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37127         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37128         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37129         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37130         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37131         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37132         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37133         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37134         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37135         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37136         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37137         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37138         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37139         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37140         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37141         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37142         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37143         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37144         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37145         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37146         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37147         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37148         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37149         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37150         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37151         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37152         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37153         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37154         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37155         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37156         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37157         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37158         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37159         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37160         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37161         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37162         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37163         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37164         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37165         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37166         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37167         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37168         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37169         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37170         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37171         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37172         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37173         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37174         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37175         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37176         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37177         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37178         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37179         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37180         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37181         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37182         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37183         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37184         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37185         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37186         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37187         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37188         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37189         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37190         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37191         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37192         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37193         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37194         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37195         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37196         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37197         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37198         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37199         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37200         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37201         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37202         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37203         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37204         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37205         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37206         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37207         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37208         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37209         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37210         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37211         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37212         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37213         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37214         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37215         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37216         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37217         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37218         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37219         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37220         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37221         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37222         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37223         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37224         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37225         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37226         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37227         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37228         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37229         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37230         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37231         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37232         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37233         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37234         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37235         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37236         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37237         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37238         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37239         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37240         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37241         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37242         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37243         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37244         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37245         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37246         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37247         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37248         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37249         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37250         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37251         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37252         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37253         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37254         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37255         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37256         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37257         * sysdeps/ieee754/k_standard.c: Likewise.
37258         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37259         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37260         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37261         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37262         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37263         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37264         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37265         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37266         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37267         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37268         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37269         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37270         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37271         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37272         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37273         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37274         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37275         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37276         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37277         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37278         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37279         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37280         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37281         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37282         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37283         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37284         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37285         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37286         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37287         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37288         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37289         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37290         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37291         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37292         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37293         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37294         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37295         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37296         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37297         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37298         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37299         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37300         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37301         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37302         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37303         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37304         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37305         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37306         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37307         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37308         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37309         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37310         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37311         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37312         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37313         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37314         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37315         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37316         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37317         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37318         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37319         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37320         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37321         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37322         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37323         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37324         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37325         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37326         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37327         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37328         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37329         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37330         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37331         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37332         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37333         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37334         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37335         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37336         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37337         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37338         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37339         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37340         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37341         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37342         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37343         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37344         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37345         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37346         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37347         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37348         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37349         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37350         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37351         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37352         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37353         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37354         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37355         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37356         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37357         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37358         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37359         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37360         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37361         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37362         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37363         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37364         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37365         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37366         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37367         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37368         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37369         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37370         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37371         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37372         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37373         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37374         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37375         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37376         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37377         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37378         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37379         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37380         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37381         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37382         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37383         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37384         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37385         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37386         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37387         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37388         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37389         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37390         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37391         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37392         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37393         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37394         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37395         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37396         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37397         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37398         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37399         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37400         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37401         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37402         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37403         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37404         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37405         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37406         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37407         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37408         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37409         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37410         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37411         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37412         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37413         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37414         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37415         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37416         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37417         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37418         * sysdeps/ieee754/s_lib_version.c: Likewise.
37419         * sysdeps/ieee754/s_matherr.c: Likewise.
37420         * sysdeps/ieee754/s_signgam.c: Likewise.
37421         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37422         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37423         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37424         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37425         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37426         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37427         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37428         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37429         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37430         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37431         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37432         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37433         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37434         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37435         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37436         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37437         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37438         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37439         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37440         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37441         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37442
37443 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37444
37445         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37446         * sunrpc/rpc_main.c: Likewise.
37447         * sunrpc/rpc_svcout.c: Likewise.
37448
37449 2012-03-09  David S. Miller  <davem@davemloft.net>
37450
37451         * include/math_private.h: New file.
37452
37453 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37454
37455         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37456         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37457         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37458         from <bits/socket_type.h>.
37459         (enum __socket_type): Don't define here.
37460         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37461         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37462         bits/socket_type.h.
37463
37464         [BZ #13566]
37465         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37466         checking __USE_GNU.
37467
37468         * Makerules ($(inst_includedir)/%.h): New rule.
37469         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37470         (install-others): Remove variable setting.
37471         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37472
37473 2012-03-08  Richard Henderson  <rth@twiddle.net>
37474
37475         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37476         from macro to inline function; merge with the
37477         !__LIBC_INTERNAL_MATH_INLINES version.
37478         (__ieee754_sqrtf): Likewise.
37479
37480         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37481         to inline function.
37482         (__rintf, __floor, __floorf): Likewise.
37483
37484         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37485         macro to inline function.
37486         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37487
37488         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37489         not <math/math_private.h>.
37490
37491 2012-03-08  David S. Miller  <davem@davemloft.net>
37492
37493         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37494         copyright year.
37495         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37496
37497 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37498
37499         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37500         normalization.
37501         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37502         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37503
37504 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37505
37506         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37507         be defined individually, they must be defined as a block.  Define
37508         S for printing a string instead of hidint the different by using a
37509         macro for adding the 'l'.
37510         * stdio-common/tst-fphex-wide.c: Adjust.
37511
37512 2012-03-07  Marek Polacek  <polacek@redhat.com>
37513
37514         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37515
37516 2012-03-08  Marek Polacek  <polacek@redhat.com>
37517
37518         [BZ #13806]
37519         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37520         * stdio-common/tst-fphex.c: Define a few macros to make the
37521         test reusable.  Use them.
37522         * stdio-common/tst-fphex-wide.c: New file.
37523
37524 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37525
37526         [BZ #6911]
37527         * manual/macros.texi (gnusystems): New macro.
37528         (nongnusystems): Likewise.
37529         (gnulinuxhurdsystems): Likewise.
37530         (gnuhurdsystems): Likewise..
37531         (gnulinuxsystems): Likewise.
37532         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37533         variants of the GNU system, not "GNU system".
37534         * manual/conf.texi: Likewise.
37535         * manual/errno.texi: Likewise.  Update example of errno macro
37536         expansion.
37537         * manual/filesys.texi: Likewise.
37538         (getumask): Document as specific to GNU/Hurd.
37539         * manual/install.texi: Likewise.  Reword some references to
37540         GNU/Linux.
37541         * manual/intro.texi: Likewise.
37542         * manual/io.texi: Likewise.
37543         (File Name Portability): Detail which constraints are inapplicable
37544         to all GNU systems and which are only inapplicable to GNU/Hurd.
37545         * manual/job.texi: Likewise.
37546         * manual/llio.texi: Likewise.
37547         (O_NOCTTY): Document as present on GNU/Linux.
37548         * manual/maint.texi: Likewise.
37549         * manual/memory.texi: Likewise.
37550         * manual/pattern.texi: Likewise.
37551         * manual/pipe.texi: Likewise.
37552         * manual/process.texi: Likewise.
37553         * manual/resource.texi: Likewise.
37554         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37555         child on GNU/Hurd.
37556         * manual/setjmp.texi: Likewise.
37557         * manual/signal.texi: Likewise.
37558         * manual/startup.texi: Likewise.
37559         * manual/stdio.texi: Likewise.
37560         * manual/terminal.texi: Likewise.
37561         (ONLCR): Document as POSIX.
37562         (OXTABS): Document availability on GNU/Linux as XTABS.
37563         (ONOEOT): Document availability separately from other bits.
37564         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37565         * manual/time.texi: Likewise.
37566         * manual/users.texi: Likewise.
37567         * INSTALL: Regenerated.
37568         * sysdeps/gnu/errlist.c: Regenerated.
37569
37570         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37571         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37572         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37573         puts.
37574         * configure: Regenerated.
37575
37576 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37577
37578         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37579         default includes instead of AC_HEADER_CHECK.
37580         * sysdeps/i386/configure: Regenerated.
37581
37582         [BZ #10716]
37583         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37584         * math/s_cacoshf.c (__cacoshf): Likewise.
37585         * math/s_cacoshl.c (__cacoshl): Likewise.
37586         * math/s_casinh.c (__casinh): Set signs of result from argument.
37587         * math/s_casinhf.c (__casinhf): Likewise.
37588         * math/s_casinhl.c (__casinhl): Likewise.
37589         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37590         (casinh_test): Add more tests.
37591         * sysdeps/i386/fpu/libm-test-ulps: Update.
37592         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37593
37594 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37595
37596         * po/zh_TW.po: Update from translation team.
37597
37598         * login/Makefile (distribute): Remove variable.
37599         * catgets/Makefile: Likewise.
37600         * mach/Makefile: Likewise.
37601         * malloc/Makefile: Likewise.
37602         * misc/Makefile: Likewise.
37603         * iconv/Makefile: Likewise.
37604         * nscd/Makefile: Likewise.
37605         * hurd/Makefile: Likewise.
37606         * manual/Makefile: Likewise.
37607         * locale/Makefile: Likewise.
37608         * intl/Makefile: Likewise.
37609         * conform/Makefile: Likewise.
37610         * nss/Makefile: Likewise.
37611         * time/Makefile: Likewise.
37612         * soft-fp/Makefile: Likewise.
37613         * dirent/Makefile: Likewise.
37614         * gmon/Makefile: Likewise.
37615         * po/Makefile: Likewise.
37616         * rt/Makefile: Likewise.
37617         * socket/Makefile: Likewise.
37618         * math/Makefile: Likewise.
37619         * signal/Makefile: Likewise.
37620         * debug/Makefile: Likewise.
37621         * elf/Makefile: Likewise.
37622         * timezone/Makefile: Likewise.
37623         * stdlib/Makefile: Likewise.
37624         * iconvdata/Makefile: Likewise.
37625         * sunrpc/Makefile: Likewise.
37626         * io/Makefile: Likewise.
37627         * argp/Makefile: Likewise.
37628         * inet/Makefile: Likewise.
37629         * hesiod/Makefile: Likewise.
37630         * grp/Makefile: Likewise.
37631         * csu/Makefile: Likewise.
37632         * wctype/Makefile: Likewise.
37633         * crypt/Makefile: Likewise.
37634         * libio/Makefile: Likewise.
37635         * string/Makefile: Likewise.
37636         * nis/Makefile: Likewise.
37637         * resolv/Makefile: Likewise.
37638         * stdio-common/Makefile: Likewise.
37639         * wcsmbs/Makefile: Likewise.
37640         * dlfcn/Makefile: Likewise.
37641         * posix/Makefile: Likewise.
37642
37643         [BZ #6959]
37644         * timezone/Makefile: Don't install timezone files, just the programs
37645         and scripts.
37646
37647 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
37648
37649         * nss/databases.def: Add missing gshadow entry.
37650
37651         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
37652
37653 2012-03-06  Marek Polacek  <polacek@redhat.com>
37654
37655         [BZ #13726]
37656         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
37657         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
37658         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
37659         * stdio-common/tst-long-dbl-fphex.c: New file.
37660
37661 2012-03-06  David S. Miller  <davem@davemloft.net>
37662
37663         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
37664         (set_obp_int): New function.
37665         (get_obp_int): New function.
37666         (__get_clockfreq_via_dev_openprom): Likewise.
37667         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
37668         Avoid unused variable warnings on 'val' and use builtin_expect.
37669         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
37670         __builtin_expect.
37671         (INLINE_CLONE_SYSCALL): Likewise.
37672
37673 2012-03-05  David S. Miller  <davem@davemloft.net>
37674
37675         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37676
37677 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
37678
37679         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37680
37681         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
37682         only for |x| >= 40.
37683         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37684
37685 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
37686
37687         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
37688         Replace gettimeofday with __vdso_gettimeofday.
37689
37690         * sysdeps/unix/sysv/linux/x86_64/init-first.c
37691         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
37692         __vdso_clock_gettime and __vdso_getcpu.
37693
37694         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
37695         time with __vdso_time.
37696
37697 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37698
37699         * manual/lang.texi (size_t): Note types to which size_t may be
37700         equivalent with the GNU C Library, but do not describe when
37701         differences between them are significant.
37702
37703 2012-03-05  Andreas Jaeger  <aj@suse.de>
37704
37705         * sysdeps/i386/fpu/libm-test-ulps: Update.
37706
37707 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37708
37709         [BZ #3976]
37710         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
37711         (__ieee754_pow): Save and restore rounding mode and use
37712         round-to-nearest for main computations.
37713         * math/libm-test.inc (pow_test_tonearest): New function.
37714         (pow_test_towardzero): Likewise.
37715         (pow_test_downward): Likewise.
37716         (pow_test_upward): Likewise.
37717         (main): Call the new functions.
37718         * sysdeps/i386/fpu/libm-test-ulps: Update.
37719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37720
37721         [BZ #3976]
37722         * math/libm-test.inc (cosh_test_tonearest): New function.
37723         (cosh_test_towardzero): Likewise.
37724         (cosh_test_downward): Likewise.
37725         (cosh_test_upward): Likewise.
37726         (sinh_test_tonearest): Likewise.
37727         (sinh_test_towardzero): Likewise.
37728         (sinh_test_downward): Likewise.
37729         (sinh_test_upward): Likewise.
37730         (main): Call the new functions.
37731         * sysdeps/i386/fpu/libm-test-ulps: Update.
37732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37733
37734 2012-03-05  Tom de Vries  <tom@codesourcery.com>
37735
37736         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
37737         default stack guard is set in last bytes.
37738         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
37739
37740 2012-03-05  Kees Cook  <keescook@chromium.org>
37741
37742         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
37743
37744         [BZ #13656]
37745         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
37746         possibly allocate from heap instead of stack.
37747         * stdio-common/bug-vfprintf-nargs.c: New file.
37748         * stdio-common/Makefile (tests): Add nargs overflow test.
37749
37750 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
37751
37752         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37753
37754 2012-03-03  Marek Polacek  <polacek@redhat.com>
37755
37756         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
37757         * math/math_private.h: Likewise.
37758         * stdlib/tst-strtod.c: Likewise.
37759         * sysdeps/i386/i486/bits/atomic.h: Likewise.
37760         * sysdeps/x86_64/bits/atomic.h: Likewise.
37761
37762 2012-03-02  David S. Miller  <davem@davemloft.net>
37763
37764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
37765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
37766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
37767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
37768         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
37769         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
37770         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
37771         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
37772
37773 2012-03-02  Roland McGrath  <roland@hack.frob.com>
37774
37775         [BZ #13792]
37776         * manual/examples/README: New file, says the example source files
37777         can be used under GPL>=2.
37778         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
37779         line containing just "*/".
37780         * manual/examples/add.c: Add copyright header (GPL>=2).
37781         * manual/examples/argp-ex1.c: Likewise.
37782         * manual/examples/argp-ex2.c: Likewise.
37783         * manual/examples/argp-ex3.c: Likewise.
37784         * manual/examples/argp-ex4.c: Likewise.
37785         * manual/examples/atexit.c: Likewise.
37786         * manual/examples/db.c: Likewise.
37787         * manual/examples/dir.c: Likewise.
37788         * manual/examples/dir2.c: Likewise.
37789         * manual/examples/execinfo.c: Likewise.
37790         * manual/examples/filecli.c: Likewise.
37791         * manual/examples/filesrv.c: Likewise.
37792         * manual/examples/fmtmsgexpl.c: Likewise.
37793         * manual/examples/genpass.c: Likewise.
37794         * manual/examples/inetcli.c: Likewise.
37795         * manual/examples/inetsrv.c: Likewise.
37796         * manual/examples/isockad.c: Likewise.
37797         * manual/examples/longopt.c: Likewise.
37798         * manual/examples/memopen.c: Likewise.
37799         * manual/examples/memstrm.c: Likewise.
37800         * manual/examples/mkfsock.c: Likewise.
37801         * manual/examples/mkisock.c: Likewise.
37802         * manual/examples/mygetpass.c: Likewise.
37803         * manual/examples/pipe.c: Likewise.
37804         * manual/examples/popen.c: Likewise.
37805         * manual/examples/rprintf.c: Likewise.
37806         * manual/examples/search.c: Likewise.
37807         * manual/examples/select.c: Likewise.
37808         * manual/examples/setjmp.c: Likewise.
37809         * manual/examples/sigh1.c: Likewise.
37810         * manual/examples/sigusr.c: Likewise.
37811         * manual/examples/stpcpy.c: Likewise.
37812         * manual/examples/strdupa.c: Likewise.
37813         * manual/examples/strftim.c: Likewise.
37814         * manual/examples/strncat.c: Likewise.
37815         * manual/examples/subopt.c: Likewise.
37816         * manual/examples/swapcontext.c: Likewise.
37817         * manual/examples/termios.c: Likewise.
37818         * manual/examples/testopt.c: Likewise.
37819         * manual/examples/testpass.c: Likewise.
37820         * manual/examples/timeval_subtract.c: Likewise.
37821
37822         [BZ #13792]
37823         * manual/time.texi (Elapsed Time): Move timeval_subtract example
37824         function to ...
37825         * manual/timeval_subtract.c.texi: ... here, new file.
37826
37827 2012-03-02  David S. Miller  <davem@davemloft.net>
37828
37829         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
37830
37831 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
37832
37833         [BZ #3976]
37834         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
37835         (__sin): Save and restore rounding mode and use round-to-nearest
37836         for all computations.
37837         (__cos): Save and restore rounding mode and use round-to-nearest
37838         for all computations.
37839         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
37840         <fenv.h>.
37841         (tan): Save and restore rounding mode and use round-to-nearest for
37842         all computations.
37843         * math/libm-test.inc (cos_test_tonearest): New function.
37844         (cos_test_towardzero): Likewise.
37845         (cos_test_downward): Likewise.
37846         (cos_test_upward): Likewise.
37847         (sin_test_tonearest): Likewise.
37848         (sin_test_towardzero): Likewise.
37849         (sin_test_downward): Likewise.
37850         (sin_test_upward): Likewise.
37851         (tan_test_tonearest): Likewise.
37852         (tan_test_towardzero): Likewise.
37853         (tan_test_downward): Likewise.
37854         (tan_test_upward): Likewise.
37855         (main): Call the new functions.
37856         * sysdeps/i386/fpu/libm-test-ulps: Update.
37857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37858
37859         [BZ #10135]
37860         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
37861         small n, then large n, before computing and testing k+n.
37862         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37863         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
37864         Likewise.
37865         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
37866         Likewise.
37867         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
37868         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
37869         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
37870         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
37871         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
37872         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
37873         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
37874         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
37875         * math/libm-test.inc (scalbn_test): Add more tests.
37876         (scalbln_test): Likewise.
37877
37878         * manual/filesys.texi (mode_t): Describe constraints on size and
37879         signedness, not exact equivalence to a particular type.
37880         (ino_t): Likewise.
37881         (ino64_t): Likewise.
37882         (dev_t): Likewise.
37883         (nlink_t): Likewise.
37884         (blkcnt_t): Likewise.
37885         (blkcnt64_t): Likewise.
37886         * manual/llio.texi (off_t): Likewise.
37887
37888         [BZ #3976]
37889         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
37890         (__ieee754_exp): Save and restore rounding mode and use
37891         round-to-nearest for all computations.
37892         * math/libm-test.inc (exp_test_tonearest): New function.
37893         (exp_test_towardzero): Likewise.
37894         (exp_test_downward): Likewise.
37895         (exp_test_upward): Likewise.
37896         (main): Call the new functions.
37897         * sysdeps/i386/fpu/libm-test-ulps: Update.
37898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37899
37900 2012-03-01  Chris Demetriou  <cgd@google.com>
37901
37902         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
37903         have predictable order.
37904
37905 2012-03-01  David S. Miller  <davem@davemloft.net>
37906
37907         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
37908
37909         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
37910         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
37911         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
37912         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
37913
37914         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
37915         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
37916         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
37917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
37918         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
37919         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
37920         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
37921         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
37922         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
37923
37924         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37925
37926         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
37927         * sysdeps/sparc/fpu/libm-test-ulps: to here.
37928         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
37929
37930         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
37931         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
37932         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
37933         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
37934         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
37935         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
37936         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
37937         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
37938         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
37939         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
37940         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
37941         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37942         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37943         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
37944         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37945         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37946         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
37947         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
37948         * sysdeps/sparc/elf/configure: Regenerated.
37949
37950 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
37951
37952         * configure.in (AS, LD): Require binutils 2.20 or later.
37953         * configure: Regenerated.
37954         * manual/install.texi (Tools for Compilation): Give binutils 2.20
37955         as required minimum version.
37956         * INSTALL: Regenerated.
37957
37958         [BZ #2541]
37959         [BZ #4108]
37960         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
37961         before squaring exponent.
37962         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
37963         bottom long double and 27 bits of top long double before squaring
37964         exponent.
37965         * math/libm-test.inc (erfc_test): Add more tests.
37966         * sysdeps/i386/fpu/libm-test-ulps: Update.
37967         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37969
37970 2012-03-01  Kai Tietz  <ktietz@redhat.com>
37971
37972         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
37973         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
37974         containing bit-fields.
37975         * soft-fp/extended.h (_FP_UNION_E): Likewise.
37976         * soft-fp/single.h (_FP_UNION_S): Likewise.
37977         * soft-fp/double.h (_FP_UNION_D): Likewise.
37978
37979 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37980
37981         [BZ #13786]
37982         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
37983         not include ../strcmp.S.
37984         [USE_AS_STRNCASECMP_L]: Likewise.
37985         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
37986         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
37987         * sysdeps/i386/i686/multiarch/strncase_l-c.c
37988         (__strncasecmp_l_ia32): Define as alias to
37989         __strncasecmp_l_nonascii.
37990
37991         [BZ #5794]
37992         * math/libm-test.inc (expm1_test): Add test for bug 5794.
37993         * sysdeps/i386/fpu/libm-test-ulps: Update.
37994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37995
37996         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
37997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37998
37999 2012-02-29  Jeff Law  <law@redhat.com>
38000
38001         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38002         out of bounds read.
38003
38004 2012-02-29  Marek Polacek  <polacek@redhat.com>
38005
38006         [BZ #13706]
38007         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38008         * elf/Makefile: Add rules to run tst-unused-dep.out.
38009
38010 2012-02-28  David S. Miller  <davem@davemloft.net>
38011
38012         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38013         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38014         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38015         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38016         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38017         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38018
38019 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38020
38021         * math/libm-test.inc (llround_test): Move one test from
38022         lround_test.  Use TEST_f_L in moved test.
38023         (lround_test): Move misplaced test to llround_test.  Add testcase
38024         from bug 2561.
38025
38026 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38027
38028         * sysdeps/x86_64/fpu/e_expf.S: New file.
38029         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38030
38031 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38032
38033         [BZ #13637]
38034         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38035         of remain_len that may cause incomplete multi-byte character and
38036         false match.
38037         * posix/bug-regex33.c: New file.
38038         * posix/Makefile (tests): Add bug-regex33.
38039
38040 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38041
38042         * manual/macros.texi: New file.
38043         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38044         * manual/libc.texinfo: Include macros.texi.
38045         * manual/creatute.texi: Likewise.
38046         * manual/install.texi: Likewise.
38047         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38048         @glibcadj{} in references to the GNU C Library.
38049         * manual/charset.texi: Likewise.
38050         * manual/conf.texi: Likewise.
38051         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38052         when not using those macros.
38053         * manual/creature.texi: Likewise.
38054         * manual/crypt.texi: Likewise.
38055         * manual/errno.texi: Likewise.
38056         * manual/filesys.texi: Likewise.
38057         * manual/header.texi: Likewise.
38058         * manual/install.texi: Likewise.
38059         * manual/intro.texi: Likewise.
38060         * manual/io.texi: Likewise.
38061         * manual/job.texi: Likewise.
38062         * manual/lang.texi: Likewise.
38063         * manual/libc.texiinfo: Likewise.
38064         * manual/llio.texi: Likewise.
38065         * manual/locale.texi: Likewise.
38066         * manual/maint.texi: Likewise.
38067         * manual/math.texi: Likewise.
38068         * manual/memory.texi: Likewise.
38069         * manual/message.texi: Likewise.
38070         * manual/nss.texi: Likewise.
38071         * manual/pattern.texi: Likewise.
38072         * manual/process.texi: Likewise.
38073         * manual/resource.texi: Likewise.
38074         * manual/search.texi: Likewise.
38075         * manual/setjmp.texi: Likewise.
38076         * manual/signal.texi: Likewise.
38077         * manual/socket.texi: Likewise.
38078         * manual/startup.texi: Likewise.
38079         * manual/stdio.texi: Likewise.
38080         * manual/string.texi: Likewise.
38081         * manual/sysinfo.texi: Likewise.
38082         * manual/syslog.texi: Likewise.
38083         * manual/terminal.texi: Likewise.
38084         * manual/time.texi: Likewise.
38085         * manual/users.texi: Likewise.
38086         * INSTALL: Regenerated.
38087         * NOTES: Regenerated.
38088         * sysdeps/gnu/errlist.c: Regenerated.
38089
38090 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38091
38092         * include/dirent.h: Include <dirstream.h> before
38093         <dirent/dirent.h>.
38094
38095 2012-02-28  David S. Miller  <davem@davemloft.net>
38096
38097         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38098         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38099         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38100         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38101
38102 2012-02-27  David S. Miller  <davem@davemloft.net>
38103
38104         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38105         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38106         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38107         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38108
38109         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38110         frame pointer instead of stack pointer relative arg slot.
38111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38112         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38113         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38114
38115 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38116
38117         [BZ #3992]
38118         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38119
38120 2012-02-27  David S. Miller  <davem@davemloft.net>
38121
38122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38126         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38127         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38128         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38129         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38130
38131 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38132
38133         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38134         later.  Allow versions 5-9.
38135         * configure: Regenerated.
38136         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38137         required minimum version and 4.6 as recommended version.  Do not
38138         mention bugs in GCC 2.7 and 2.8.
38139         * INSTALL: Regenerated.
38140
38141 2012-02-27  David S. Miller  <davem@davemloft.net>
38142
38143         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38144         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38145         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38147         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38148         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38149         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38150         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38151
38152         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38153         manipulate bits before adding and subtracting TWO112[sx].
38154         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38155
38156 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38157
38158         [BZ #13775]
38159         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38160         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38161         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38162         being in POSIX, because they are in 1003.1-2008.
38163
38164         * rt/tst-aio.c: Include <fcntl.h>.
38165         * rt/tst-aio7.c: Likewise.
38166         * rt/tst-aio64.c: Likewise.
38167
38168         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38169
38170 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38171
38172         * manual/install.texi (--with-headers): Describe headers as
38173         interface headers, not private headers.
38174         (Specific advice for GNU/Linux systems): Describe use of headers
38175         from "make headers_install", not private headers from older
38176         kernels.
38177         * INSTALL: Regenerated.
38178         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38179         Change to 2.6.19.
38180         * sysdeps/unix/sysv/linux/configure: Regenerated.
38181
38182         * manual/llio.texi (fclean): Remove documentation.
38183
38184         * manual/Makefile (libc-texi-generated): New variable.  Include
38185         version.texi.
38186         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38187         $(libc-texi-generated), not duplicated list of files.
38188         (version.texi, stamp-version): New rules.
38189         (realclean): Remove $(libc-texi-generated), not individual files
38190         from that list.  Do not remove dir-add.texinfo.
38191         * manual/libc.texinfo: Comment out uses of edition numbers and
38192         references to printed manual.  Remove last-updated dates.
38193         (EDITION): Comment out.
38194         (ISBN): Likewise.
38195         (VERSION, UPDATED): Remove.
38196         (version.texi): Include.
38197
38198 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38199
38200         * sysdeps/posix/spawni.c: Include <signal.h>.
38201         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38202         * sysdeps/pthread/aio_fsync.c: Likewise.
38203
38204 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38205
38206         * conform/Makefile (tests): Run only when not cross-compiling and
38207         when fast-check is not defined.
38208
38209         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38210         * conform/data/limits.h-data: Fixes for POSIX2008.
38211         * conform/run-conformtest.sh: Run all tests.
38212         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38213         headers.
38214         * include/bits/dlfcn.h: Likewise.
38215         * include/langinfo.h: Likewise.
38216         * include/monetary.h: Likewise.
38217         * include/sys/poll.h: Likewise.
38218
38219         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38220         for __USE_GNU.
38221         * posix/spawn.h: Define __need_sigset_t.
38222         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38223         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38224         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38225         to get sigevent_t only.
38226         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38227         only for __USE_GNU.
38228         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38229         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38230         process_vm_writev only for __USE_GNU.
38231         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38232
38233         * conform/Makefile: For now ignore errors from run-conformtest.
38234         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38235         POSIX to avoid namespace pollution.  Don't prepend headers.
38236         * conform/data/aio.h-data: Fixes for POSIX testing.
38237         * conform/data/fcntl.h-data: Likewise.
38238         * conform/data/glob.h-data: Likewise.
38239         * conform/data/grp.h-data: Likewise.
38240         * conform/data/pthread.h-data: Likewise.
38241         * conform/data/pwd.h-data: Likewise.
38242         * conform/data/signal.h-data: Likewise.
38243         * conform/data/spawn.h-data: Likewise.
38244         * conform/data/stdio.h-data: Likewise.
38245         * conform/data/stdlib.h-data: Likewise.
38246         * conform/data/stropts.h-data: Likewise.
38247         * conform/data/sys/mman.h-data: Likewise.
38248         * conform/data/sys/stat.h-data: Likewise.
38249         * conform/data/sys/types.h-data: Likewise.
38250         * conform/data/sys/wait.h-data: Likewise.
38251         * conform/data/time.h-data: Likewise.
38252         * conform/data/unistd.h-data: Likewise.
38253         * conform/data/utime.h-data: Likewise.
38254
38255         * io/sys/stat.h: fchmod was always in POSIX.
38256         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38257         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38258         * rt/aio.h: Define __need_timespec before including <time.h>.
38259         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38260         struct.  Add forward declaration of pthread_attr_t and use it in
38261         sigevent.
38262         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38263         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38264         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38265         always remove CLK_TCK definition.
38266
38267 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38268
38269         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38270
38271 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38272
38273         * conform/run-conformtest.sh: New file.
38274         * conform/Makefile: Run run-conformtest for tests.
38275         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38276         support.
38277
38278         * conform/data/uchar.h-data: New file.
38279         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38280         * conform/data/arpa/inet.h-data: Likewise.
38281         * conform/data/assert.h-data: Likewise.
38282         * conform/data/complex.h-data: Likewise.
38283         * conform/data/cpio.h-data: Likewise.
38284         * conform/data/ctype.h-data: Likewise.
38285         * conform/data/dirent.h-data: Likewise.
38286         * conform/data/dlfcn.h-data: Likewise.
38287         * conform/data/errno.h-data: Likewise.
38288         * conform/data/fcntl.h-data: Likewise.
38289         * conform/data/float.h-data: Likewise.
38290         * conform/data/fmtmsg.h-data: Likewise.
38291         * conform/data/fnmatch.h-data: Likewise.
38292         * conform/data/ftw.h-data: Likewise.
38293         * conform/data/glob.h-data: Likewise.
38294         * conform/data/grp.h-data: Likewise.
38295         * conform/data/iconv.h-data: Likewise.
38296         * conform/data/inttypes.h-data: Likewise.
38297         * conform/data/langinfo.h-data: Likewise.
38298         * conform/data/libgen.h-data: Likewise.
38299         * conform/data/limits.h-data: Likewise.
38300         * conform/data/locale.h-data: Likewise.
38301         * conform/data/math.h-data: Likewise.
38302         * conform/data/monetary.h-data: Likewise.
38303         * conform/data/mqueue.h-data: Likewise.
38304         * conform/data/ndbm.h-data: Likewise.
38305         * conform/data/net/if.h-data: Likewise.
38306         * conform/data/netdb.h-data: Likewise.
38307         * conform/data/netinet/in.h-data: Likewise.
38308         * conform/data/nl_types.h-data: Likewise.
38309         * conform/data/poll.h-data: Likewise.
38310         * conform/data/pthread.h-data: Likewise.
38311         * conform/data/pwd.h-data: Likewise.
38312         * conform/data/regex.h-data: Likewise.
38313         * conform/data/sched.h-data: Likewise.
38314         * conform/data/search.h-data: Likewise.
38315         * conform/data/semaphore.h-data: Likewise.
38316         * conform/data/setjmp.h-data: Likewise.
38317         * conform/data/signal.h-data: Likewise.
38318         * conform/data/spawn.h-data: Likewise.
38319         * conform/data/stdarg.h-data: Likewise.
38320         * conform/data/stdio.h-data: Likewise.
38321         * conform/data/stdlib.h-data: Likewise.
38322         * conform/data/string.h-data: Likewise.
38323         * conform/data/strings.h-data: Likewise.
38324         * conform/data/stropts.h-data: Likewise.
38325         * conform/data/sys/ipc.h-data: Likewise.
38326         * conform/data/sys/mman.h-data: Likewise.
38327         * conform/data/sys/msg.h-data: Likewise.
38328         * conform/data/sys/resource.h-data: Likewise.
38329         * conform/data/sys/select.h-data: Likewise.
38330         * conform/data/sys/sem.h-data: Likewise.
38331         * conform/data/sys/shm.h-data: Likewise.
38332         * conform/data/sys/socket.h-data: Likewise.
38333         * conform/data/sys/stat.h-data: Likewise.
38334         * conform/data/sys/statvfs.h-data: Likewise.
38335         * conform/data/sys/time.h-data: Likewise.
38336         * conform/data/sys/timeb.h-data: Likewise.
38337         * conform/data/sys/times.h-data: Likewise.
38338         * conform/data/sys/types.h-data: Likewise.
38339         * conform/data/sys/uio.h-data: Likewise.
38340         * conform/data/sys/un.h-data: Likewise.
38341         * conform/data/sys/utsname.h-data: Likewise.
38342         * conform/data/sys/wait.h-data: Likewise.
38343         * conform/data/syslog.h-data: Likewise.
38344         * conform/data/tar.h-data: Likewise.
38345         * conform/data/termios.h-data: Likewise.
38346         * conform/data/utime.h-data: Likewise.
38347         * conform/data/utmpx.h-data: Likewise.
38348         * conform/data/varargs.h-data: Likewise.
38349         * conform/data/wchar.h-data: Likewise.
38350         * conform/data/wctype.h-data: Likewise.
38351         * conform/data/wordexp.h-data: Likewise.
38352
38353         * include/stropts.h: New file.
38354         * include/uchar.h: New file.
38355         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38356         * include/assert.h: Likewise.
38357         * include/ctype.h: Likewise.
38358         * include/dirent.h: Likewise.
38359         * include/dlfcn.h: Likewise.
38360         * include/fcntl.h: Likewise.
38361         * include/fnmatch.h: Likewise.
38362         * include/glob.h: Likewise.
38363         * include/grp.h: Likewise.
38364         * include/libio.h: Likewise.
38365         * include/locale.h: Likewise.
38366         * include/math.h: Likewise.
38367         * include/net/if.h: Likewise.
38368         * include/netdb.h: Likewise.
38369         * include/netinet/in.h: Likewise.
38370         * include/pthread.h: Likewise.
38371         * include/pwd.h: Likewise.
38372         * include/regex.h: Likewise.
38373         * include/sched.h: Likewise.
38374         * include/search.h: Likewise.
38375         * include/setjmp.h: Likewise.
38376         * include/signal.h: Likewise.
38377         * include/stdio.h: Likewise.
38378         * include/stdlib.h: Likewise.
38379         * include/string.h: Likewise.
38380         * include/sys/cdefs.h: Likewise.
38381         * include/sys/mman.h: Likewise.
38382         * include/sys/msg.h: Likewise.
38383         * include/sys/resource.h: Likewise.
38384         * include/sys/select.h: Likewise.
38385         * include/sys/socket.h: Likewise.
38386         * include/sys/stat.h: Likewise.
38387         * include/sys/statvfs.h: Likewise.
38388         * include/sys/time.h: Likewise.
38389         * include/sys/times.h: Likewise.
38390         * include/sys/uio.h: Likewise.
38391         * include/sys/utsname.h: Likewise.
38392         * include/sys/wait.h: Likewise.
38393         * include/termios.h: Likewise.
38394         * include/time.h: Likewise.
38395         * include/ulimit.h: Likewise.
38396         * include/unistd.h: Likewise.
38397         * include/utime.h: Likewise.
38398         * include/wchar.h: Likewise.
38399         * include/wctype.h: Likewise.
38400         * include/wordexp.h: Likewise.
38401
38402         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38403
38404         * time/time.h: TIME_UTC must be a macro.
38405         Make timespec_get available for ISO C11 only as well.
38406
38407 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38408
38409         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38410         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38411
38412 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38413
38414         * configure.in: Use -o not -a in test for unsupported multi-arch.
38415
38416 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38417
38418         * manual/texinfo.tex: Update to version 2012-01-19.16.
38419
38420 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38421
38422         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38423
38424 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38425
38426         [BZ #13738]
38427         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38428         * manual/fdl-1.3.texi: New file.
38429         * manual/fdl-1.1.texi: File removed.
38430
38431         [BZ #13738]
38432         * manual/libc.texinfo (FDL_VERSION): New @set.
38433         Use it for mention of FDL in cover text.
38434         (Documentation License): Use it in @include file name.
38435
38436 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38437             Roland McGrath  <roland@hack.frob.com>
38438
38439         [BZ #5461]
38440         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38441         (not LONG_LONG_MAX and LONG_LONG_MIN.
38442         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38443         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38444         name.
38445         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38446
38447 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38448
38449         [BZ #2547]
38450         [BZ #11365]
38451         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38452         manipulate bits before adding and subtracting TWO23[sx].
38453         * math/libm-test.inc (nearbyint_test): Add more tests.
38454
38455 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38456
38457         [BZ #2548]
38458         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38459         bits before adding and subtracting TWO23[sx].
38460         * math/libm-test.inc (rint_test): Add more tests.
38461         (rint_test_tonearest): Likewise.
38462         (rint_test_towardzero): Likewise.
38463         (rint_test_downward): Likewise.
38464         (rint_test_upward: Likewise.
38465
38466 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38467
38468         [BZ #10110]
38469         * include/stdc-predef.h: New file.  Extracted from features.h.
38470         * include/features.h: Include stdc-predef.h.
38471         * Makefile (headers): Add stdc-predef.h.
38472         * CONFORMANCE (Compiler limitations): Update.
38473
38474 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38475
38476         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38477
38478 2012-02-21  David S. Miller  <davem@davemloft.net>
38479
38480         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38481         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38482
38483 2012-02-20  David S. Miller  <davem@davemloft.net>
38484
38485         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38486         using a normal save/restore sequence, rather than allocating a
38487         dummy stack frame just to store a frame pointer and restore.
38488         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38489
38490 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38491
38492         * manual/install.texi: Fix stray word in line-wrapped comment.
38493
38494 2012-02-20  David S. Miller  <davem@davemloft.net>
38495
38496         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38497         both binutils and gcc support GOTDATA.
38498
38499         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38500         "rd %pc" in the PIC register setup sequences.
38501
38502         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38503         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38504         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38505         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38506         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38507         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38508         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38509         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38510         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38511         (SYSCALL_ERROR_HANDLER): Likewise.
38512         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38513         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38514         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38515         (SYSCALL_ERROR_HANDLER): Likewise.
38516
38517         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38518         (HAVE_GCC_GOTDATA): New.
38519         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38520         relocation support in both binutils and gcc.
38521         * sysdeps/sparc/elf/configure: Regenerate.
38522
38523         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38524         * sysdeps/sparc/sparc32/elf/configure: Delete.
38525         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38526         * sysdeps/sparc/sparc64/elf/configure: Delete.
38527         * sysdeps/sparc/elf/configure.in: New file.
38528         * sysdeps/sparc/elf/configure: Generate.
38529
38530         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38531         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38532         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38533         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38534         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38535
38536 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38537
38538         * manual/install.texi: Do not mention specific glibc version
38539         numbers.
38540         * manual/libc.texinfo (VERSION, UPDATED): Update.
38541         (@copying): Use @copyright{} and range of years.
38542
38543 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38544
38545         [BZ #13695]
38546         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38547         [crti.S not in sysdirs] (generated): Do not append.
38548         [crti.S not in sysdirs] (omit-deps): Likewise.
38549         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38550         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38551         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38552         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38553         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38554         Likewise.
38555         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38556         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38557         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38558         * csu/defs.awk: Remove file.
38559         * sysdeps/generic/initfini.c: Likewise.
38560         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38561         variable.
38562         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38563         Likewise.
38564
38565 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38566
38567         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38568         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38569         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38570         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38571         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38572         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38573         <bits/epoll.h>.
38574         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38575         (__EPOLL_PACKED): Define to empty if not defined by
38576         <bits/epoll.h>.
38577         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38578         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38579         bits/epoll.h.
38580
38581 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38582
38583         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38584         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38585         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38586         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38587         <bits/timerfd.h>.
38588         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38589         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38590         bits/timerfd.h.
38591
38592 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38593
38594         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38595         in C locale.
38596         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38597         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38598         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38599         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38600
38601 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38602
38603         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38604         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38605
38606 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38607
38608         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
38609         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
38610         defined.
38611         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
38612         Likewise.
38613         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
38614         entry for 2.16.
38615
38616 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
38617
38618         * math/w_acos.c: Use non-signaling floating-point comparisons.
38619         * math/w_acosf.c: Likewise.
38620         * math/w_acosh.c: Likewise.
38621         * math/w_acoshf.c: Likewise.
38622         * math/w_acoshl.c: Likewise.
38623         * math/w_acosl.c: Likewise.
38624         * math/w_asin.c: Likewise.
38625         * math/w_asinf.c: Likewise.
38626         * math/w_asinl.c: Likewise.
38627         * math/w_atanh.c: Likewise.
38628         * math/w_atanhf.c: Likewise.
38629         * math/w_atanhl.c: Likewise.
38630         * math/w_exp2.c: Likewise.
38631         * math/w_exp2f.c: Likewise.
38632         * math/w_exp2l.c: Likewise.
38633         * math/w_j0.c: Likewise.
38634         * math/w_j0f.c: Likewise.
38635         * math/w_j0l.c: Likewise.
38636         * math/w_j1.c: Likewise.
38637         * math/w_j1f.c: Likewise.
38638         * math/w_j1l.c: Likewise.
38639         * math/w_jn.c: Likewise.
38640         * math/w_jnf.c: Likewise.
38641         * math/w_log.c: Likewise.
38642         * math/w_log10.c: Likewise.
38643         * math/w_log10f.c: Likewise.
38644         * math/w_log10l.c: Likewise.
38645         * math/w_log2.c: Likewise.
38646         * math/w_log2f.c: Likewise.
38647         * math/w_log2l.c: Likewise.
38648         * math/w_logf.c: Likewise.
38649         * math/w_logl.c: Likewise.
38650         * math/w_sqrt.c: Likewise.
38651         * math/w_sqrtf.c: Likewise.
38652         * math/w_sqrtl.c: Likewise.
38653         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38654         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
38655         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38656         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
38657         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
38658
38659 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38660
38661         [BZ #9739]
38662         * manual/string.texi (strnlen): Use correct parameter name in
38663         equivalent expression.
38664
38665 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38666
38667         [BZ #11174]
38668         * manual/users.texi (seteuid): Consistently use neweuid for
38669         argument name.
38670
38671 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38672
38673         [BZ #13704]
38674         * manual/nss.texi (Services in the NSS configuration): Correct
38675         list of services in example configuration file.
38676
38677 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
38678
38679         [BZ #11322]
38680         * manual/arith.texi: Remove statements about negative zero
38681         behaving identically to zero.
38682
38683 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38684
38685         [BZ #5993]
38686         * manual/install.texi: Do not document upgrading from libc5.
38687
38688 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38689
38690         [BZ #4596]
38691         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
38692
38693 2012-02-18  David S. Miller  <davem@davemloft.net>
38694
38695         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
38696         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
38697         %o7 across the call.
38698         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
38699         instead.
38700         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
38701         SETUP_PIC_REG_LEAF.
38702         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38703         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
38704         * sysdeps/sparc/crtn.S: Likewise.
38705
38706 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
38707
38708         * aout/Makefile: Remove.
38709
38710 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
38711
38712         [BZ #13058]
38713         * manual/examples/argp-ex1.c (main): Format definition in GNU
38714         style.
38715         * manual/examples/argp-ex2.c (main): Likewise.
38716         * manual/examples/argp-ex3.c (main): Likewise.
38717         * manual/examples/argp-ex4.c (main): Likewise.
38718         * manual/examples/longopt.c (main): Use new-style prototype
38719         definition.
38720         * manual/examples/strncat.c (main): Specify return type and use
38721         (void) for arguments.
38722         * manual/examples/subopt.c (main): Use char **argv argument.
38723
38724 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38725
38726         [BZ #5077]
38727         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
38728         rounding modes.
38729
38730 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
38731
38732         [BZ #6907]
38733         * manual/string.texi (strchr): Change when strchrnul is
38734         recommended.
38735
38736 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
38737
38738         [BZ #174]
38739         * manual/locale.texi (setlocale): Document LOCPATH.
38740
38741 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38742
38743         [BZ #10210]
38744         * manual/process.texi (execle): Move @dots{} before last argument.
38745
38746 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
38747
38748         [BZ #12047]
38749         * manual/charset.texi (Generic Charset Conversion): Fix typo
38750         (LC_TYPE -> LC_CTYPE).
38751
38752 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
38753
38754         [BZ #5805]
38755         * manual/arith.texi (scalbn): Use @var{} on parameter names.
38756         (scalbnf): Likewise.
38757         (scalbnl): Likewise.
38758         (scalbln): Likewise.
38759         (scalblnf): Likewise.
38760         (scalblnl): Likewise.
38761         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
38762         (vwarnx): Likewise.
38763         (verr): Likewise.
38764         (verrx): Likewise.
38765         * manual/filesys.texi (telldir): Use braces around return type.
38766         * manual/llio.texi (mmap): Add space after comma.
38767         (mmap64): Likewise.
38768         * manual/math.texi (jn): Use @var{} on parameter names.
38769         (jnf): Likewise.
38770         (jnl): Likewise.
38771         (yn): Likewise.
38772         (ynf): Likewise.
38773         (ynl): Likewise.
38774         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
38775         line.
38776         * manual/resource.texi (ulimit): Use @dots{} instead of literal
38777         "...".
38778         (sched_get_priority_min): Remove semicolon on @deftypefun line.
38779         (sched_get_priority_max): Likewise.
38780         * manual/signal.texi (sigvec): Add space after comma.
38781         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
38782         names.
38783         (if_indextoname): Likewise.
38784         (if_freenameindex): Likewise.
38785         (sendto): Use ',' instead of '.' in prototype.
38786         * manual/startup.texi (syscall): Use @dots{} instead of literal
38787         "...".
38788         * manual/stdio.texi (__fpending): Separate initial words of
38789         paragraph from @deftypefun line.
38790         * manual/syslog.texi (syslog): Use @dots{} instead of literal
38791         "...".
38792         (vsyslog): Use @var{} on parameter names.
38793         * manual/terminal.texi (stty): Use @var{} on parameter names.
38794         * manual/users.texi (getutmp): Use @var{} on parameter names.
38795         (getutmpx): Likewise.
38796
38797 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38798
38799         [BZ #6884]
38800         * manual/stdio.texi (fopen): Fix typos in description of
38801         ",ccs=STRING".
38802
38803 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
38804
38805         [BZ #4026]
38806         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
38807         get clock_id definition.
38808
38809 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
38810
38811         [BZ #4822]
38812         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
38813         (madvise): Cast every argument to void on its own.
38814
38815 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38816
38817         [BZ #9902]
38818         * manual/startup.texi (Exit Status): Fix typo.
38819
38820 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38821
38822         [BZ #10140]
38823         * manual/examples/argp-ex1.c: Include <stdlib.h>.
38824         * manual/examples/argp-ex2.c: Likewise.
38825         * manual/examples/argp-ex3.c: Likewise.
38826
38827 2012-02-16  Richard Henderson  <rth@redhat.com>
38828
38829         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
38830         * sysdeps/s390/s390-32/initfini.c: Remove.
38831         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
38832         * sysdeps/s390/s390-64/initfini.c: Remove.
38833
38834 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38835
38836         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
38837         compiler output for sysdeps/generic/initfini.c.
38838         * sysdeps/sh/elf/initfini.c: Remove file.
38839
38840 2012-02-16  David S. Miller  <davem@davemloft.net>
38841
38842         [BZ #11494]
38843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
38844
38845         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
38846         * sysdeps/sparc/crti.S: New file.
38847         * sysdeps/sparc/crtn.S: New file.
38848         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
38849         * sysdeps/sparc/sparc64/Makefile: Likewise.
38850
38851 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
38852
38853         [BZ #3335]
38854         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
38855
38856 2012-02-15  Roland McGrath  <roland@hack.frob.com>
38857
38858         [BZ #4822]
38859         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
38860
38861         * mach/devstream.c (cookie_io_functions_t): Macro removed.
38862         (write, read, close): Likewise.
38863         Patch by Aurelien Jarno <aurelien@aurel32.net>.
38864
38865 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
38866
38867         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
38868         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
38869         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
38870         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
38871         <bits/signalfd.h>.
38872         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
38873         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38874         bits/signalfd.h.
38875
38876 2012-02-14  Marek Polacek  <polacek@redhat.com>
38877
38878         * sysdeps/x86_64/crti.S: New file.
38879         * sysdeps/x86_64/crtn.S: New file.
38880         * sysdeps/x86_64/elf/initfini.c: Remove file.
38881
38882 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38883
38884         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
38885         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
38886         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
38887         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
38888         <bits/inotify.h>.
38889         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
38890         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38891         bits/inotify.h.
38892
38893 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38894
38895         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
38896         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
38897         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
38898         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
38899         <bits/eventfd.h>.
38900         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
38901         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38902         bits/eventfd.h.
38903
38904 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
38905
38906         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
38907         __feraiseexcept instead of feraiseexcept.
38908
38909         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
38910         nanosleep invocations.
38911         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
38912         strings, and add error checking for a nanosleep invocations.
38913
38914 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38915
38916         Replace FSF snail mail address with URLs, as per GNU coding standards.
38917         Most of the snail mail addresses were wrong anyway, and omitting
38918         them makes the source code easier to maintain.  Almost all of the
38919         changes are to license notices and to locale LC_IDENTIFICATION
38920         addresses, except for this one:
38921         * manual/libc.texinfo: In "Published by", give the FSF's URL,
38922         not its snail mail address.
38923
38924 2012-02-09  Richard Henderson  <rth@twiddle.net>
38925
38926         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
38927         of kernel-features.h.
38928
38929         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
38930
38931 2012-02-08  Marek Polacek  <polacek@redhat.com>
38932
38933         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
38934         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
38935         * sysdeps/gnu/_G_config.h: Likewise.
38936         * sysdeps/generic/_G_config.h: Likewise.
38937
38938 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
38939
38940         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
38941         tests.
38942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38943
38944         * sysdeps/powerpc/powerpc32/crti.S: New file.
38945         * sysdeps/powerpc/powerpc32/crtn.S: New file.
38946         * sysdeps/powerpc/powerpc64/crti.S: New file.
38947         * sysdeps/powerpc/powerpc64/crtn.S: New file.
38948
38949         * Makeconfig (have-initfini): Don't set.
38950         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
38951         * configure.in (nopic_initfini): Don't substitute.
38952         * config.h.in (HAVE_INITFINI): Don't #undef.
38953         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
38954         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
38955
38956 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
38957
38958         Support crti.S and crtn.S provided directly by architectures.
38959         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
38960         [crti.S in sysdirs] (omit-deps): Likewise.
38961         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
38962         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
38963         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
38964         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
38965         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
38966         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
38967         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
38968         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
38969         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
38970         compiler output for sysdeps/generic/initfini.c.
38971         * sysdeps/i386/elf/Makefile: Remove file.
38972         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
38973
38974 2012-02-07  Marek Polacek  <polacek@redhat.com>
38975
38976         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
38977         * sysdeps/gnu/_G_config.h: Likewise.
38978         * sysdeps/mach/hurd/_G_config.h: Likewise.
38979
38980 2012-02-07  Marek Polacek  <polacek@redhat.com>
38981
38982         * math/Makefile (tests): Add tst-CMPLX2.
38983         * math/tst-CMPLX2.c: New file.
38984
38985 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
38986
38987         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38988
38989         * math/libm-test.inc (jn_test): Add missing L suffix.
38990
38991 2012-02-06  Marek Polacek  <polacek@redhat.com>
38992
38993         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
38994         * sysdeps/i386/fpu/e_powf.S: Likewise.
38995         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
38996         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
38997         * sysdeps/i386/fpu/e_acosh.S: Likewise.
38998         * sysdeps/i386/fpu/e_pow.S: Likewise.
38999         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39000         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39001         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39002         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39003         * sysdeps/i386/fpu/e_log2.S: Likewise.
39004         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39005         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39006         * sysdeps/i386/fpu/e_powl.S: Likewise.
39007         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39008         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39009         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39010         * sysdeps/i386/fpu/e_logl.S: Likewise.
39011         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39012         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39013         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39014         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39015         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39016         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39017         * sysdeps/i386/fpu/e_log.S: Likewise.
39018         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39019         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39020         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39021         * sysdeps/i386/fpu/e_logf.S: Likewise.
39022         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39023         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39024         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39025         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39026         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39027         * sysdeps/i386/fpu/e_log10.S: Likewise.
39028         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39029         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39030         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39031         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39032         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39033         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39034         * sysdeps/i386/asm-syntax.h: Likewise.
39035         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39036         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39037         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39038         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39039         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39040         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39041         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39042         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39043         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39044         * sysdeps/powerpc/sysdep.h: Likewise.
39045         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39046         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39047
39048 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39049
39050         [BZ #411]
39051         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39052
39053 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39054
39055         * sysdeps/i386/sysdep.h: Include <features.h>.
39056         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39057         version.
39058
39059 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39060
39061         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39062         Define.
39063         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39064         LOAD_PIC_REG_STR.
39065
39066 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39067
39068         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39069         (SETUP_PIC_REG): Use GET_PC_THUNK.
39070         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39071         macro.
39072
39073 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39074
39075         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39076         for non-PIC compilation.
39077         (SETUP_PIC_REG): Add .p2align directive.
39078         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39079         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39080         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39081         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39082         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39083         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39084         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39085         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39086         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39087         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39088         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39089         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39090         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39091         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39092         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39093         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39094         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39095         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39096         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39097         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39098         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39099         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39100         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39101         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39102         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39103         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39104         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39105         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39106         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39107         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39108         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39109         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39110         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39111         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39112         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39113         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39114         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39115         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39116         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39117         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39118         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39119
39120 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39121
39122         * math/tst-CMPLX.c: Include <stdio.h>.
39123
39124 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39125
39126         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39127         float.
39128         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39129         * sysdeps/sparc/bits/mathdef.h: Likewise.
39130
39131 2012-01-31  Marek Polacek  <polacek@redhat.com>
39132
39133         * libio/libio.h: Don't define _PARAMS.
39134         * locale/programs/config.h: Don't define PARAMS.
39135         * stdlib/strtol_l.c: Likewise.
39136         (__strtol_l): Remove PARAMS from the prototype.
39137
39138 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39139
39140         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39141         names.  Just use the correct names.  Remove unnecessary wrapper
39142         functions.
39143         * malloc/arena.c: Likewise.
39144         * malloc/hooks.c: Likewise.
39145
39146         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39147         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39148         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39149
39150 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39151
39152         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39153         into tail calls.
39154         (update_get_addr): New function.
39155         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39156         GET_ADDR_MODULE parameter.
39157
39158 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39159
39160         * crypt/cert.c: Remove __STDC__ conditionals.
39161         * crypt/crypt-entry.c: Likewise.
39162         * crypt/crypt_util.c: Likewise.
39163         * libio/filedoalloc.c: Likewise.
39164         * libio/fileops.c: Likewise.
39165         * libio/genops.c: Likewise.
39166         * libio/iofclose.c: Likewise.
39167         * libio/iofdopen.c: Likewise.
39168         * libio/iofopen.c: Likewise.
39169         * libio/iofopen64.c: Likewise.
39170         * libio/iogetdelim.c: Likewise.
39171         * libio/iopopen.c: Likewise.
39172         * libio/obprintf.c: Likewise.
39173         * libio/oldfileops.c: Likewise.
39174         * libio/oldiofclose.c: Likewise.
39175         * libio/oldiofdopen.c: Likewise.
39176         * libio/oldiofopen.c: Likewise.
39177         * libio/oldiopopen.c: Likewise.
39178         * libio/wfiledoalloc.c: Likewise.
39179         * libio/wgenops.c: Likewise.
39180         * locale/programs/xmalloc.c: Likewise.
39181         * misc/syslog.c: Likewise.
39182         * stdio-common/xbug.c: Likewise.
39183         * string/memchr.c: Likewise.
39184         * string/memcmp.c: Likewise.
39185         * string/memrchr.c: Likewise.
39186         * string/rawmemchr.c: Likewise.
39187         * sysdeps/posix/getcwd.c: Likewise.
39188         * time/strftime_l.c: Likewise.
39189
39190 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39191
39192         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39193         * config.make.in (config-cflags-sse2avx): Define.
39194         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39195         Fix typo.
39196
39197 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39198
39199         * scripts/config.guess: Update from upstream config git repository.
39200         * scripts/config.sub: Likewise.
39201
39202 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39203
39204         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39205         (EM_NUM): Update.
39206         (R_TILEPRO_*, R_TILEGX_*): New macros.
39207
39208         * scripts/firstversions.awk: Fix bug in version range handling.
39209
39210         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39211
39212         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39213
39214         * include/sys/epoll.h: New file.
39215         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39216         libc_hidden_def.
39217
39218 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39219
39220         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39221         Avoid unnecessary __WORDSIZE == 64 test.
39222         (fmaxf): Use VEX format if possible.
39223         (fmax): Likewise.
39224         (fminf): Likewise.
39225         (fmin): Likewise.
39226
39227         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39228         * math/math_private.h: Remove libc_fegetround* and
39229         libc_fesetround*.
39230         * sysdeps/i386/configure.in: Check for -msse2avx.
39231         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39232         also if SSE2AVX is defined.
39233         Remove libc_fegetround* and libc_fesetround*.
39234         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39235         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39236         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39237         of HAS_YMM_USABLE.
39238         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39239         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39240         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39241         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39242         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39243
39244         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39245
39246 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39247
39248         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39249         size is not set.
39250         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39251
39252 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39253
39254         [BZ #13618]
39255         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39256         relocation.
39257         * Makeconfig (libm): Define.
39258         * elf/Makefile: Add rules to build and run tst-relsort1.
39259         * elf/tst-relsort1.c: New file.
39260         * elf/tst-relsort1mod1.c: New file.
39261         * elf/tst-relsort1mod2.c: New file.
39262
39263 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39264
39265         * math/s_ldexp.c: Remove __STDC__ conditionals.
39266         * math/s_ldexpf.c: Likewise.
39267         * math/s_ldexpl.c: Likewise.
39268         * math/s_nextafter.c: Likewise.
39269         * math/s_nexttowardf.c: Likewise.
39270         * math/s_significand.c: Likewise.
39271         * math/s_significandf.c: Likewise.
39272         * math/s_significandl.c: Likewise.
39273         * math/w_jnl.c: Likewise.
39274         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39275         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39276         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39277         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39278         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39279         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39280         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39281         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39282         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39283         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39284         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39285         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39286         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39287         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39288         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39289         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39290         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39291         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39292         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39293         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39294         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39295         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39296         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39297         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39298         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39299         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39300         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39301         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39302         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39303         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39304         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39305         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39306         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39307         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39308         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39309         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39310         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39311         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39312         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39313         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39314         * sysdeps/ieee754/k_standard.c: Likewise.
39315         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39316         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39317         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39318         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39319         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39320         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39321         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39322         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39323         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39324         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39325         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39326         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39327         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39328         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39329         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39330         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39331         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39332         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39333         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39334         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39335         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39336         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39337         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39338         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39339         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39340         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39341         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39342         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39343         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39344         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39345         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39346         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39347         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39348         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39349         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39350         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39351         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39352         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39353         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39354         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39355         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39356         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39357         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39358         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39359         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39360         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39361         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39362         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39363         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39364         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39365         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39366         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39367         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39368         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39369         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39370         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39371         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39372         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39373         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39374         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39375         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39376         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39377         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39378         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39379         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39380         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39381         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39382         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39383         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39384         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39385         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39386         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39387         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39388         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39389         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39390         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39391         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39392         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39393         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39394         * sysdeps/ieee754/s_matherr.c: Likewise.
39395         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39396         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39397         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39398         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39399
39400 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39401
39402         * crypt/md5.h: Remove __STDC__ conditionals.
39403         * libio/libioP.h: Likewise.
39404         * locale/programs/config.h: Likewise.
39405         * sysdeps/generic/sysdep.h: Likewise.
39406         * sysdeps/i386/asm-syntax.h: Likewise.
39407         * sysdeps/s390/asm-syntax.h: Likewise.
39408         * sysdeps/unix/sysdep.h: Likewise.
39409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39411
39412 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39413
39414         * libio/libio.h: Remove __STDC__ conditionals.
39415         * malloc/obstack.h: Likewise.
39416         * math/complex.h: Likewise.
39417         * math/math.h: Likewise.
39418         * sysdeps/generic/_G_config.h: Likewise.
39419         * sysdeps/gnu/_G_config.h: Likewise.
39420         * sysdeps/mach/hurd/_G_config.h: Likewise.
39421         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39422         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39423         * sysdeps/sparc/bits/mathdef.h: Likewise.
39424
39425 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39426
39427         [BZ #13583]
39428         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39429         Clean up HAS_* macros.
39430         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39431         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39432         possible.
39433         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39434         HAS_AVX.
39435         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39436         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39437         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39438         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39439         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39440
39441 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39442
39443         * elf/tst-unique3.cc (gets): Remove declaration.
39444         * elf/tst-unique3lib.cc (gets): Likewise.
39445         * elf/tst-unique3lib2.cc (gets): Likewise.
39446         * elf/tst-unique4.cc (gets): Likewise.
39447
39448 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39449
39450         * include/stdio.h: Add C++ protection.  Add gets declarations and
39451         definitions.
39452         * debug/tst-chk1.c: Don't declare gets here.
39453         * stdio-common/tst-gets.c: Likewise.
39454
39455 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39456
39457         * posix/glob: Remove directory.
39458
39459 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39460
39461         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39462
39463 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39464
39465         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39466         of the non-standard EPFNOSUPPORT.
39467
39468 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39469
39470         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39471         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39472         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39473
39474 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39475
39476         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39477
39478 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39479
39480         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39481         transient errors.
39482         * nscd/grpcache.c (cache_addgr): Likewise.
39483         * nscd/hstcache.c (cache_addhst): Likewise.
39484         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39485         * nscd/pwdcache.c (cache_addpw): Likewise.
39486         * nscd/servicescache.c (cache_addserv): Likewise.
39487
39488 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39489
39490         * malloc/malloc.c: Various cleanups.
39491         * malloc/hooks.c: Likewise.
39492
39493         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39494         * stdlib/bug-fmtmsg1.c: New file.
39495
39496         * stdlib/fmtmsg.c (init): Add missing unlock.
39497         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39498
39499 2012-01-12  Marek Polacek  <polacek@redhat.com>
39500
39501         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39502         and _GNU_SOURCE.
39503
39504 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39505
39506         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39507         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39508         macro to ensure uniqueness of label name.
39509         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39510         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39511
39512 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39513
39514         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39515
39516         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39517         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39518         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39519         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39520
39521 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39522
39523         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39524
39525         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39526         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39527         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39528
39529         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39530
39531         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39532         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39533         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39534         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39535
39536         * math/bits/math-finite.h: Add ldexp support.
39537
39538 2012-01-10  Marek Polacek  <polacek@redhat.com>
39539
39540         * locale/programs/localedef.h (show_archive_content): Add noreturn
39541         attribute.
39542
39543 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39544
39545         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39546
39547 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39548
39549         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39550
39551         * io/Makefile (headers): Add bits/poll2.h.
39552
39553 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39554
39555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39556         typo #include statement.
39557
39558 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39559
39560         * include/sys/cdefs.h: Define __attribute_alloc_size.
39561         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39562         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39563         * elf/pldd.c: Likewise.
39564         * iconv/iconv_charmap.c: Likewise.
39565         * iconv/iconvconfig.c: Likewise.
39566         * iconv/strtab.c: Likewise.
39567         * locale/programs/locale.c: Likewise.
39568         * locale/programs/localedef.h: Likewise.
39569         * locale/programs/simple-hash.c: Likewise.
39570         * nscd/nscd.h: Likewise.
39571         * nss/makedb.c: Likewise.
39572         * sysdeps/generic/ldconfig.h: Likewise.
39573         * locale/programs/localedef.c: Remove xmalloc prototype.
39574         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39575
39576 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39577
39578         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39579         appropriate.
39580
39581 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39582
39583         * math/Makefile (tests): Add tst-CMPLX.
39584         * math/tst-CMPLX.c: New file.
39585
39586         * math/complex.h (CMPLXL): Fix typo.
39587
39588         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39589         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39590         GLIBC_2.16.
39591         * debug/tst-chk1.c: Add poll and ppoll tests.
39592         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39593         * include/sys/poll.h: Add hidden proto for ppoll.
39594         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39595         * sysdeps/mach/hurd/ppoll.c: Likewise.
39596         * io/ppoll.c: Likewise.
39597         * debug/poll_chk.c: New file.
39598         * debug/ppoll_chk.c: New file.
39599         * include/bits/poll2.h: New file.
39600         * io/bits/poll2.h: New file.
39601
39602         [BZ #1350]
39603         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39604
39605         * configure.in: static is always set to yes.  Remove.
39606         * config.make.in: Don't set build-static.
39607         * Makeconfig: Remove use of build-static.
39608         * dlfcn/Makefile: Likewise.
39609         * elf/Makefile: Likewise.
39610         * math/Makefile: Likewise.
39611         * misc/Makefile: Likewise.
39612         * nptl/Makefile: Likewise.
39613         * sysdeps/mach/hurd/Makefile: Likewise.
39614
39615         * configure.in: PWD_P is not used anymore.
39616         * config.make.in: Remove PWD_P entry.
39617
39618         * configure.in: Remove last remnants of RANLIB.
39619         No need to check for signed size_t anymore.
39620         Don't set libc_commonpagesize and libc_relro_required here for Alpha
39621         and IA-64.
39622         Remove __builtin_expect test because we require at least gcc 3.4.
39623         * aclocal.m4: Likewise.
39624
39625         * wcsmbs/mbrtoc16.c: Implement using towc function.
39626         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
39627         * wcsmbs/wcsmbsload.c: Likewise.
39628         * iconv/gconv_simple.c: Likewise.
39629         * iconv/gconv_int.h: Likewise.
39630         * iconv/gconv_builtin.h: Likewise.
39631         * iconv/iconv_prog.c: Remove CHAR16 handling.
39632
39633         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
39634
39635         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
39636
39637         * configure.in: Remove --with-elf and --enable-bounded options.
39638         Dont set base_machine for ia64.  More non-ELF conditions removed.
39639         Remove testing and setting of leading underscore information.
39640         * config.make.in (build-bounded): Set to no.
39641         * config.h.in: Remove NO_UNDERSCORES entry.
39642         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
39643         them.
39644         * csu/start.c: Remove !NO_UNDERSCORE code.
39645         * locale/localeinfo.h: Likewise.
39646         * sysdeps/generic/machine-gmon.h: Likewise.
39647         * sysdeps/generic/sysdep.h: Likewise.
39648         * sysdeps/i386/sysdep.h: Likewise.
39649         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39650         * sysdeps/mach/sysdep.h: Likewise.
39651         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39652         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39653         * sysdeps/sh/sysdep.h: Likewise.
39654         * sysdeps/sparc/sparc32/alloca.S: Likewise.
39655         * sysdeps/unix/i386/sysdep.S: Likewise.
39656         * sysdeps/unix/sparc/start.c: Likewise.
39657         * sysdeps/unix/sparc/sysdep.S: Likewise.
39658         * sysdeps/unix/sparc/sysdep.h: Likewise.
39659         * sysdeps/unix/start.c: Likewise.
39660         * sysdeps/unix/x86_64/sysdep.S: Likewise.
39661         * sysdeps/x86_64/sysdep.h: Likewise.
39662
39663 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
39664
39665         [BZ #13553]
39666         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
39667         for non-gcc.
39668         * argp/argp-fmtstream.h: Use const instead __const.
39669         * argp/argp.h: Likewise.
39670         * assert/assert.h: Likewise.
39671         * bits/fenv.h: Likewise.
39672         * bits/sched.h: Likewise.
39673         * bits/sigset.h: Likewise.
39674         * bits/sigthread.h: Likewise.
39675         * catgets/nl_types.h: Likewise.
39676         * conform/data/pthread.h-data: Likewise.
39677         * crypt/crypt-private.h: Likewise.
39678         * crypt/crypt.h: Likewise.
39679         * crypt/crypt_util.c: Likewise.
39680         * ctype/ctype.h: Likewise.
39681         * debug/execinfo.h: Likewise.
39682         * debug/mbsnrtowcs_chk.c: Likewise.
39683         * debug/mbsrtowcs_chk.c: Likewise.
39684         * debug/wcsnrtombs_chk.c: Likewise.
39685         * debug/wcsrtombs_chk.c: Likewise.
39686         * debug/wcstombs_chk.c: Likewise.
39687         * dirent/dirent.h: Likewise.
39688         * dlfcn/dlfcn.h: Likewise.
39689         * elf/neededtest4.c: Likewise.
39690         * grp/grp.h: Likewise.
39691         * gshadow/gshadow.h: Likewise.
39692         * iconv/gconv.h: Likewise.
39693         * iconv/gconv_int.h: Likewise.
39694         * iconv/gconv_simple.c: Likewise.
39695         * iconv/iconv.h: Likewise.
39696         * iconv/loop.c: Likewise.
39697         * iconv/skeleton.c: Likewise.
39698         * include/aio.h: Likewise.
39699         * include/aliases.h: Likewise.
39700         * include/argz.h: Likewise.
39701         * include/arpa/inet.h: Likewise.
39702         * include/assert.h: Likewise.
39703         * include/dirent.h: Likewise.
39704         * include/dlfcn.h: Likewise.
39705         * include/execinfo.h: Likewise.
39706         * include/fcntl.h: Likewise.
39707         * include/fenv.h: Likewise.
39708         * include/glob.h: Likewise.
39709         * include/grp.h: Likewise.
39710         * include/libintl.h: Likewise.
39711         * include/mntent.h: Likewise.
39712         * include/netdb.h: Likewise.
39713         * include/pwd.h: Likewise.
39714         * include/rpc/netdb.h: Likewise.
39715         * include/sched.h: Likewise.
39716         * include/search.h: Likewise.
39717         * include/shadow.h: Likewise.
39718         * include/signal.h: Likewise.
39719         * include/stdio.h: Likewise.
39720         * include/stdlib.h: Likewise.
39721         * include/string.h: Likewise.
39722         * include/sys/socket.h: Likewise.
39723         * include/sys/stat.h: Likewise.
39724         * include/sys/statfs.h: Likewise.
39725         * include/sys/statvfs.h: Likewise.
39726         * include/sys/syslog.h: Likewise.
39727         * include/sys/time.h: Likewise.
39728         * include/sys/uio.h: Likewise.
39729         * include/time.h: Likewise.
39730         * include/unistd.h: Likewise.
39731         * include/utmp.h: Likewise.
39732         * include/wchar.h: Likewise.
39733         * include/wctype.h: Likewise.
39734         * inet/aliases.h: Likewise.
39735         * inet/arpa/inet.h: Likewise.
39736         * inet/netinet/ether.h: Likewise.
39737         * inet/netinet/in.h: Likewise.
39738         * intl/libintl.h: Likewise.
39739         * io/bits/fcntl2.h: Likewise.
39740         * io/fcntl.h: Likewise.
39741         * io/ftw.h: Likewise.
39742         * io/sys/poll.h: Likewise.
39743         * io/sys/stat.h: Likewise.
39744         * io/sys/statfs.h: Likewise.
39745         * io/sys/statvfs.h: Likewise.
39746         * io/utime.h: Likewise.
39747         * libio/bits/stdio.h: Likewise.
39748         * libio/bits/stdio2.h: Likewise.
39749         * libio/libio.h: Likewise.
39750         * libio/libioP.h: Likewise.
39751         * libio/stdio.h: Likewise.
39752         * locale/lc-ctype.c: Likewise.
39753         * locale/locale.h: Likewise.
39754         * login/utmp.h: Likewise.
39755         * malloc/arena.c: Likewise.
39756         * malloc/malloc.c: Likewise.
39757         * malloc/malloc.h: Likewise.
39758         * malloc/mcheck.c: Likewise.
39759         * malloc/mtrace.c: Likewise.
39760         * math/bits/mathcalls.h: Likewise.
39761         * math/fenv.h: Likewise.
39762         * math/math_private.h: Likewise.
39763         * misc/bits/error.h: Likewise.
39764         * misc/bits/syslog.h: Likewise.
39765         * misc/err.h: Likewise.
39766         * misc/error.h: Likewise.
39767         * misc/fstab.h: Likewise.
39768         * misc/mntent.h: Likewise.
39769         * misc/regexp.h: Likewise.
39770         * misc/search.h: Likewise.
39771         * misc/sgtty.h: Likewise.
39772         * misc/sys/mman.h: Likewise.
39773         * misc/sys/syslog.h: Likewise.
39774         * misc/sys/uio.h: Likewise.
39775         * misc/sys/xattr.h: Likewise.
39776         * misc/ttyent.h: Likewise.
39777         * nis/rpcsvc/ypclnt.h: Likewise.
39778         * nss/nss.h: Likewise.
39779         * posix/bits/unistd.h: Likewise.
39780         * posix/fnmatch.h: Likewise.
39781         * posix/glob.h: Likewise.
39782         * posix/sched.h: Likewise.
39783         * posix/spawn.h: Likewise.
39784         * posix/sys/wait.h: Likewise.
39785         * posix/unistd.h: Likewise.
39786         * posix/wordexp.h: Likewise.
39787         * pwd/pwd.h: Likewise.
39788         * resolv/netdb.h: Likewise.
39789         * resource/sys/resource.h: Likewise.
39790         * rt/aio.h: Likewise.
39791         * rt/bits/mqueue2.h: Likewise.
39792         * rt/mqueue.h: Likewise.
39793         * shadow/shadow.h: Likewise.
39794         * signal/signal.h: Likewise.
39795         * socket/send.c: Likewise.
39796         * socket/sendto.c: Likewise.
39797         * socket/sys/socket.h: Likewise.
39798         * stdio-common/printf.h: Likewise.
39799         * stdlib/bits/stdlib.h: Likewise.
39800         * stdlib/fmtmsg.h: Likewise.
39801         * stdlib/monetary.h: Likewise.
39802         * stdlib/stdlib.h: Likewise.
39803         * stdlib/ucontext.h: Likewise.
39804         * streams/stropts.h: Likewise.
39805         * string/argz.h: Likewise.
39806         * string/bits/string2.h: Likewise.
39807         * string/string.h: Likewise.
39808         * string/strings.h: Likewise.
39809         * sunrpc/rpc/auth.h: Likewise.
39810         * sunrpc/rpc/auth_des.h: Likewise.
39811         * sunrpc/rpc/clnt.h: Likewise.
39812         * sunrpc/rpc/netdb.h: Likewise.
39813         * sunrpc/rpc/pmap_clnt.h: Likewise.
39814         * sunrpc/rpc/xdr.h: Likewise.
39815         * sysdeps/generic/inttypes.h: Likewise.
39816         * sysdeps/generic/net/if.h: Likewise.
39817         * sysdeps/generic/sys/swap.h: Likewise.
39818         * sysdeps/gnu/net/if.h: Likewise.
39819         * sysdeps/gnu/utmpx.h: Likewise.
39820         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
39821         * sysdeps/i386/i486/bits/string.h: Likewise.
39822         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
39823         * sysdeps/s390/bits/string.h: Likewise.
39824         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
39825         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
39826         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
39827         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
39828         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
39829         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
39830         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
39831         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
39832         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
39833         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
39834         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
39835         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
39836         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
39837         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
39838         * sysdeps/unix/sysv/linux/readv.c: Likewise.
39839         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
39840         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
39841         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39842         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
39843         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
39844         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39845         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
39846         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
39847         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
39848         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
39849         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
39850         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
39851         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39852         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
39853         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
39854         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
39855         * sysvipc/sys/ipc.h: Likewise.
39856         * sysvipc/sys/msg.h: Likewise.
39857         * sysvipc/sys/sem.h: Likewise.
39858         * sysvipc/sys/shm.h: Likewise.
39859         * termios/termios.h: Likewise.
39860         * time/sys/time.h: Likewise.
39861         * time/time.h: Likewise.
39862         * wcsmbs/bits/wchar2.h: Likewise.
39863         * wcsmbs/uchar.h: Likewise.
39864         * wcsmbs/wchar.h: Likewise.
39865         * wctype/wctype.h: Likewise.
39866
39867         [BZ #13551]
39868         * Makeconfig: Remove all but ELF support including AIX support.
39869         * Makerules: Likewise.
39870         * config.h.in: Likewise.
39871         * config.make.in: Likewise.
39872         * configure: Likewise.
39873         * configure.in: Likewise.
39874         * csu/Makefile: Likewise.
39875         * csu/version.c: Likewise.
39876         * debug/Makefile: Likewise.
39877         * dlfcn/Makefile: Likewise.
39878         * elf/Makefile: Likewise.
39879         * extra-lib.mk: Likewise.
39880         * iconv/Makefile: Likewise.
39881         * include/libc-symbols.h: Likewise.
39882         * include/shlib-compat.h: Likewise.
39883         * resolv/Makefile: Likewise.
39884         * resolv/res_libc.c: Likewise.
39885         * rt/Makefile: Likewise.
39886         * sysdeps/i386/asm-syntax.h: Likewise.
39887         * sysdeps/i386/sysdep.h: Likewise.
39888         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39889         * sysdeps/mach/sysdep.h: Likewise.
39890         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
39891         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
39892         * sysdeps/s390/asm-syntax.h: Likewise.
39893         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39894         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39895         * sysdeps/sh/sysdep.h: Likewise.
39896         * sysdeps/unix/sparc/sysdep.h: Likewise.
39897         * sysdeps/wordsize-32/divdi3.c: Likewise.
39898         * sysdeps/x86_64/sysdep.h: Likewise.
39899
39900         * argp/Versions: Remove _argp_unlock_xxx.
39901
39902         [BZ #13559]
39903         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
39904         * abilist/libBrokenLocale.abilist: Likewise.
39905         * abilist/libanl.abilist: Likewise.
39906         * abilist/libc.abilist: Likewise.
39907         * abilist/libcrypt.abilist: Likewise.
39908         * abilist/libdl.abilist: Likewise.
39909         * abilist/libm.abilist: Likewise.
39910         * abilist/libnsl.abilist: Likewise.
39911         * abilist/libpthread.abilist: Likewise.
39912         * abilist/libresolv.abilist: Likewise.
39913         * abilist/librt.abilist: Likewise.
39914         * abilist/libthread_db.abilist: Likewise.
39915         * abilist/libutil.abilist: Likewise.
39916         * abilist/libnss_db.abilist: New file.
39917
39918         * scripts/abilist.awk: Add support for indirect functions.
39919
39920         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
39921
39922         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
39923
39924         * shlib-versions: Remove entries for ports architectures.
39925
39926         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
39927         files in ports.
39928         * elf/stackguard-macros.h: Remove support for IA-64.
39929         * elf/tst-auditmod1.c: Likewise.
39930         * sysdeps/generic/ldsodefs.h: Likewise.
39931
39932         * sysdeps/unix/sysv/linux/configure.in: Ports should define
39933         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
39934         configure files.
39935
39936         [BZ #13552]
39937         * configure.in: Remove --enable-omitfp support.
39938         * FAQ.in: Adjust.
39939         * config.make.in: Likewise.
39940         * Makeconfig: Likewise.
39941         * manual/install.texi: Likewise.
39942
39943         In case anyone cares, the IA-64 architecture could move to ports.
39944         * sysdeps/ia64/*: Removed.
39945         * sysdeps/unix/sysv/linux/ia64/*: Removed.
39946         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
39947
39948         [BZ #13555]
39949         * configure.in: Remove entries for unsupported architectures.
39950
39951         [BZ #13533]
39952         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
39953         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
39954         routines.
39955         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
39956         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
39957         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
39958         fall back to using wcrtomb.
39959         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
39960         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
39961         renaming.
39962         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
39963         * wcsmbs/tst-c16c32-1.c: New file.
39964
39965         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
39966         local variable.
39967
39968         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
39969
39970         * elf/tst-unique3.cc: Add explicit declaration of gets.
39971         * elf/tst-unique3lib.cc: Likewise.
39972         * elf/tst-unique3lib2.cc: Likewise.
39973         * elf/tst-unique4.cc: Likewise.
39974
39975         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
39976
39977 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
39978
39979         [BZ #13566]
39980         * assert/assert.h (static_assert): Don't define for C++.
39981         * libio/stdio.h (gets): Do declare for C++ <= C++11.
39982         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
39983
39984 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
39985
39986         * iconv/loop.c (single loop): Fix assertion in storing of
39987         remaining bytes.
39988
39989         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
39990
39991 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
39992
39993         * posix/getconf.c: Update copyright year.
39994         * nss/getent.c: Likewise.
39995         * nss/makedb.c: Likewise.
39996         * iconv/iconvconfig.c: Likewise.
39997         * iconv/iconv_prog.c: Likewise.
39998         * elf/ldconfig.c: Likewise.
39999         * elf/pldd.c: Likewise.
40000         * elf/sotruss.ksh: Likewise.
40001         * catgets/gencat.c: Likewise.
40002         * csu/version.c: Likewise.
40003         * elf/ldd.bash.in: Likewise.
40004         * elf/sprof.c (print_version): Likewise.
40005         * locale/programs/locale.c: Likewise.
40006         * locale/programs/localedef.c: Likewise.
40007         * login/programs/pt_chown.c: Likewise.
40008         * nscd/nscd.c (print_version): Likewise.
40009         * debug/xtrace.sh: Likewise.
40010         * malloc/memusage.sh: Likewise.
40011         * malloc/mtrace.pl: Likewise.
40012         * debug/catchsegv.sh: Likewise.
40013
40014 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40015
40016         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40017         pure attribute.
40018
40019 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40020
40021         [BZ #13533]
40022         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40023         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40024         transformations.
40025         * iconv/gconv_int.h: Likewise.
40026         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40027         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40028         from libc for GLIBC_2.16.
40029         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40030         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40031         * wcsmbs/uchar.h: Really define mbstate_t.
40032         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40033         * wcsmbs/c16rtomb.c: New file.
40034         * wcsmbs/mbrtoc16.c: New file.
40035         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40036         for C/POSIX locale.
40037         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40038         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40039
40040         * wcsmbs/wchar.h: Add missing __restrict.
40041
40042 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40043
40044         [BZ #13532]
40045         * time/Makefile (routines): Add timespec_get.
40046         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40047         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40048         timespec for ISO C11.
40049         * time/timespec_get.c: New file.
40050         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40051         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40052
40053         [BZ #13531]
40054         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40055         * stdlib/stdlib.h: Declare aligned_alloc.
40056         * Versions.def: Add GLIBC_2.16 for libc.
40057         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40058
40059         [BZ 13527]
40060         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40061         ISO C11.
40062
40063         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40064         code.
40065
40066         [BZ #13528]
40067         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40068
40069         [BZ #13529]
40070         * assert/assert.h (static_assert): Define.
40071
40072         * version.h: Update for 2.16 development version.
40073
40074         [BZ #13526]
40075         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40076         _ISOC11_SOURCE.
40077
40078         * version.h (RELEASE): Bump for 2.15 release.
40079         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40080
40081         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40082         Patch by Marek Polacek <mpolacek@redhat.com>.
40083
40084         * bits/byteswap.h: Protect long long constants with __extension__.
40085         * sysdeps/i386/bits/byteswap.h: Likewise.
40086         * sysdeps/ia64/bits/byteswap.h: Likewise.
40087         * sysdeps/s390/bits/byteswap.h: Likewise.
40088         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40089
40090 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40091
40092         [BZ #13540]
40093         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40094         destination buffer.
40095         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40096
40097 2011-12-23  Marek Polacek  <polacek@redhat.com>
40098
40099         * elf/dl-addr.c (determine_info): Add inline keyword.
40100         * elf/tst-auditmod4b.c (check_avx): Likewise.
40101         * elf/tst-auditmod6b.c (check_avx): Likewise.
40102         * elf/tst-auditmod6c.c (check_avx): Likewise.
40103         * elf/tst-auditmod7b.c (check_avx): Likewise.
40104
40105 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40106
40107         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40108         !__SSE_MATH__.
40109
40110 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40111
40112         [BZ #13540]
40113         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40114         processing for last bytes.
40115
40116 2011-08-06  Bruno Haible  <bruno@clisp.org>
40117
40118         [BZ #13061]
40119         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40120         U+0385, not to U+1FEE.
40121
40122         [BZ #13062]
40123         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40124         entry for U+00A5 U+0301.
40125
40126 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40127
40128         [BZ #13166]
40129         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40130         buffer for the output is too small.
40131
40132         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40133         optimization.
40134
40135         [BZ #13185]
40136         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40137         SSE flags if possible.
40138
40139 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40140
40141         [BZ #13540]
40142         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40143         processing for last bytes.
40144
40145 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40146
40147         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40148         (syscall-list-default-options, syscall-list-default-condition)
40149         (syscall-list-includes): Define.
40150         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40151         list of ABIs and options and #if conditions for each ABI.  Do not
40152         handle common syscalls between ABIs specially.
40153         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40154         Remove.
40155         (syscall-list-variants, syscall-list-32bit-options)
40156         (syscall-list-32bit-condition, syscall-list-64bit-options)
40157         (syscall-list-64bit-condition): Define.
40158         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40159         (syscall-list-variants, syscall-list-32bit-options)
40160         (syscall-list-32bit-condition, syscall-list-64bit-options)
40161         (syscall-list-64bit-condition): Define.
40162         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40163         Remove.
40164         (syscall-list-variants, syscall-list-32bit-options)
40165         (syscall-list-32bit-condition, syscall-list-64bit-options)
40166         (syscall-list-64bit-condition): Define.
40167         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40168         Remove.
40169         (syscall-list-variants, syscall-list-32bit-options)
40170         (syscall-list-32bit-condition, syscall-list-64bit-options)
40171         (syscall-list-64bit-condition): Define.
40172
40173 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40174
40175         * locale/iso-639.def: Add brx entry.
40176
40177         [BZ #13328]
40178         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40179         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40180
40181         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40182         __feraiseexcept_renamed.
40183
40184 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40185
40186         [BZ #13538]
40187         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40188         EPOLLET with unsigned values.
40189         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40190         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40191
40192         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40193         to large cancellation.
40194         * math/s_cacoshf.c: Likewise.
40195         * math/s_cacoshl.c: Likewise.
40196
40197 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40198
40199         [BZ #13305]
40200         [BZ #12786]
40201         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40202         * math/s_cacoshf.c: Likewise.
40203         * math/s_cacoshl.c: Likewise.
40204
40205 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40206
40207         [BZ #13439]
40208         * iconv/gconv.h: Define __GCONV_SWAP.
40209         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40210         * iconvdata/utf-16.c: Likewise.
40211         * iconvdata/utf-32.c: Likewise.
40212
40213 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40214
40215         [BZ #13524]
40216         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40217         numerator after shifting it by one limb.
40218
40219 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40220
40221         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40222         under [__USE_EXTERN_INLINES].
40223
40224 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40225
40226         [BZ #13446]
40227         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40228
40229 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40230
40231         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40232         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40233         optimized code.
40234         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40235         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40236         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40237         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40238         for strncasecmp/strncasecmp_l compilation.
40239         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40240         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40241
40242 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40243
40244         [BZ #13484]
40245         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40246         of __asm__.
40247
40248 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40249
40250         [BZ #13506]
40251         * time/tzfile.c (__tzfile_read): Check values from file header.
40252
40253 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40254
40255         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40256         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40257         * powerpc/powerpc32/dl-start.S: Likewise.
40258         * powerpc/powerpc32/elf/start.S: Likewise.
40259         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40260         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40261         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40262         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40263         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40264         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40265         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40266         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40267         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40268         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40269         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40270         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40271         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40272         * powerpc/powerpc32/memset.S: Likewise.
40273         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40274         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40275         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40276         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40277         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40278         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40279         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40280         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40281         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40282         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40283         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40284         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40285         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40286
40287 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40288
40289         * math/libm-test.inc: Added more nearbyint tests.
40290         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40291         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40292         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40293         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40294
40295 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40296
40297         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40298         FD_CLOEXEC.
40299
40300 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40301
40302         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40303         Add wcscpy-ssse3 wcscpy-c.
40304         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40305         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40306         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40307         * sysdeps/x86_64/wcschr.S: New file.
40308         * sysdeps/x86_64/wcsrchr.S: New file.
40309         * string/test-strcmp.c: Remove checking of wcscmp function for
40310         wrong alignments.
40311         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40312         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40313         wcsrchr-sse2 wcsrchr-c.
40314         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40315         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40316         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40317         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40318         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40319         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40320         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40321         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40322         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40323         * wcsmbc/wcschr.c (WCSCHR): New macro.
40324
40325 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40326
40327         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40328         * wcsmbs/test-wcsrchr.c: New file.
40329         * string/test-strrchr.c: Add wcsrchr support.
40330         (WIDE): New macro.
40331         * wcsmbs/test-wcscpy.c: New file.
40332         * string/test-strcpy.c: Add wcscpy support.
40333         (WIDE): New macro.
40334
40335 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40336
40337         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40338         the inner loop.
40339
40340 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40341
40342         [BZ #13472]
40343         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40344
40345 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40346
40347         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40348         Minor optimizations.
40349
40350         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40351         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40352         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40353
40354 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40355
40356         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40357         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40358         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40359         for gcc to avoid warnings.
40360         * inet/Makefile (tests): Add tst-checks.
40361         * inet/tst-checks.c: New file.
40362
40363         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40364         warning.
40365
40366         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40367         __wmemcmp_sse2.
40368
40369         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40370         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40371
40372         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40373
40374 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40375
40376         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40377         problem.
40378
40379         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40380
40381 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40382
40383         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40384         conditional on GCC version.
40385         (__arch_compare_and_exchange_val_8_acq)
40386         (__arch_compare_and_exchange_val_16_acq)
40387         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40388         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40389         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40390
40391 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40392
40393         * sysdeps/sh/backtrace.c: New file.
40394
40395 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40396
40397         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40398         parenthesis.
40399
40400 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40401
40402         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40403         falling back to utime.
40404
40405 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40406
40407         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40408         expectations for float.
40409
40410 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40411
40412         * locale/weight.h (findidx): Add parameter len.
40413         * locale/weightwc.h (findidx): Likewise.
40414         * posix/fnmatch_loop.c (FCT): Adjust caller.
40415         * posix/regcomp.c (build_equiv_class): Likewise.
40416         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40417         * posix/regexec.c (check_node_accept_bytes): Likewise.
40418         * string/strcoll_l.c (STRCOLL): Likewise.
40419         * string/strxfrm_l.c (STRXFRM): Likewise.
40420
40421 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40422
40423         * Makefile.in: Remove CVSOPT handling.
40424         * configure.in: Remove use of AC_REVISION.
40425         * iconvdata/Makefile (distribute): No need to filter out CVS.
40426         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40427         handling.
40428
40429 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40430
40431         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40432         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40433         [USE_AS_STRNCASECMP_L]: Likewise.
40434         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40435         NO_TLS_DIRECT_SEG_REFS.
40436         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40437         Fix argument offsets for non-PIC.
40438         [USE_AS_STRNCASECMP_L]: Likewise.
40439         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40440         NO_TLS_DIRECT_SEG_REFS.
40441
40442 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40443
40444         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40445         O_CLOEXEC.
40446         * locale/loadlocale.c (_nl_load_locale): Likewise.
40447
40448 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40449
40450         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40451         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40452         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40453         (SYSCALL_GETTIME): Set errno on error.
40454
40455         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40456         count references to noai6ai_cached.
40457
40458 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40459
40460         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40461
40462         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40463         FD_CLOEXEC for /proc/self/maps.
40464
40465         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40466         FD_CLOEXEC for /proc/meminfo.
40467
40468         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40469         gai.conf.
40470
40471         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40472         FD_CLOEXEC for given file.
40473
40474         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40475
40476         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40477         FD_CLOEXEC for /etc/hosts.
40478         (_gethtent): Likewise.
40479
40480         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40481
40482         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40483         cancellation and set FD_CLOEXEC for /etc/netgroup.
40484
40485         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40486         reading /etc/publickey.
40487
40488         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40489         allow cancellation when reading /etc/group.
40490
40491         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40492         cancellation.
40493         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40494
40495         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40496         when using data file.
40497
40498         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40499
40500         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40501         (write_nis_obj): Use "c" and "e" in fopen.
40502
40503         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40504
40505         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40506
40507         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40508
40509         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40510
40511         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40512         locale.alias.
40513
40514         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40515
40516         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40517
40518         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40519
40520         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40521         file parsing and set FD_CLOEXEC.
40522
40523 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40524
40525         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40526
40527 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40528
40529         * malloc/arena.c (arena_get2): Don't call reused_arena when
40530         _int_new_arena failed.
40531
40532 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40533
40534         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40535         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40536         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40537         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40538         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40539         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40540         to compile strcasecmp and strncasecmp.
40541         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40542         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40543
40544         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40545
40546 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40547
40548         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40549         locale-defines.sym to gen-as-const-headers.
40550         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40551         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40552         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40553         to compile strcasecmp and strncasecmp.
40554         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40555         strcasecmp_l and strncasecmp_l.
40556         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40557         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40558         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40559         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40560         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40561         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40562         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40563         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40564         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40565         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40566         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40567
40568 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40569
40570         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40571         result of SYSDEP_GETTIME_CPU to retval.
40572         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40573         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40574
40575         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40576         variable.
40577
40578         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40579         mantissa words.
40580         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40581
40582         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40583         from unused variable.
40584
40585         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40586         DWARF definitions.
40587         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40588         for assembling.
40589
40590         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40591         over namespaces.
40592
40593         * sunrpc/rpc_prot.c (rejected): Fix case value.
40594
40595         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40596         unsigned long long int to avoid warnings in shift.
40597
40598         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40599         of use of trans.
40600         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40601         variable tmp.
40602
40603         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40604         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40605         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40606
40607         * nis/nis_table.c (nis_list): Use variable of correct type for
40608         result of __follow_path call.
40609
40610 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40611
40612         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
40613         of math functions ceil, trunc, floor, round, and sqrt, when
40614         avaliable on the platform.
40615         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
40616         name clash.
40617         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
40618         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
40619         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
40620
40621 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
40622
40623         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
40624         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
40625
40626 2011-11-11  Roland McGrath  <roland@hack.frob.com>
40627
40628         * include/unistd.h: Fix __readlink return type.
40629         Reported by Chris Metcalf <cmetcalf@tilera.com>.
40630
40631 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
40632
40633         * stdlib/ucontext.h: Undo last change for makecontext.
40634
40635 2011-11-11  Andreas Schwab  <schwab@redhat.com>
40636
40637         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
40638
40639         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
40640         * setjmp/setjmp.h: Mark functions as non-leaf.
40641         * setjmp/bits/setjmp2.h: Likewise.
40642         * stdlib/ucontext.h: Likewise.
40643
40644 2011-11-10  Andreas Schwab  <schwab@redhat.com>
40645
40646         * malloc/arena.c (_int_new_arena): Don't increment narenas.
40647         (reused_arena): Don't check arena limit.
40648         (arena_get2): Atomically check arena limit.
40649
40650 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
40651
40652         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
40653         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
40654
40655         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
40656         instructions.
40657
40658 2011-11-07  Andreas Schwab  <schwab@redhat.com>
40659
40660         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
40661         handler when locking.
40662
40663         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40664         Fix size of allocated buffer.
40665
40666 2011-11-04  Andreas Schwab  <schwab@redhat.com>
40667
40668         [BZ #10103]
40669         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
40670         declarations for long double functions.
40671         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
40672
40673         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
40674
40675 2011-11-03  Andreas Schwab  <schwab@redhat.com>
40676
40677         * nscd/nscd.c (main): Don't start AVC thread until credentials are
40678         installed.
40679
40680         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
40681         is disabled.
40682
40683 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40684
40685         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
40686
40687 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
40688
40689         * include/alloca.h (stackinfo_alloca_round): Define.
40690         (extend_alloca): Use it.
40691         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
40692         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
40693         here.
40694
40695         * scripts/check-local-headers.sh: Ignore libaudit.h.
40696
40697         * nscd/Makefile (extra-objs): Make recursively expanded.
40698
40699 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
40700
40701         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
40702         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
40703
40704         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
40705         * posix/tst-rfc3484-2.c: Likewise.
40706         * posix/tst-rfc3484-3.c: Likewise.
40707
40708         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
40709         process_vm_writev.
40710         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
40711         process_vm_writev.
40712         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
40713         process_vm_writev from libc using GLIBC_2.15 version.
40714
40715         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
40716
40717 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
40718
40719         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
40720         stack usage.
40721
40722 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
40723
40724         [BZ #13367]
40725         * nss/getent.c (initgroups_keys): Show error message in case no group
40726         names are given.
40727
40728         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
40729         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
40730         __bump_nl_timestamp.
40731         * nscd/connections (nscd_init): When host database is served open
40732         netlink socket and request notification about configuration changes.
40733         (main_loop_poll): Track netlink file descriptor and bump timestamp
40734         in case data becomes available.
40735         (main_loop_epoll): Likewise.
40736         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
40737         (database_pers_head): Add extra_data fileds.
40738         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
40739         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
40740         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
40741         Adjust caller.
40742         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
40743         in6ai data, call __free_in6ai.
40744         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
40745         Add -DHAVE_NETLINK.
40746         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
40747         interface information.  Reuse previous data if netlink timestamp
40748         is not changed.
40749         (__bump_nl_timestamp): New function.
40750         (__free_in6ai): New function.
40751
40752 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
40753
40754         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
40755         close_not_cancel_no_status here.
40756         (__check_pf): Reorganize code a bit to not call close twice if OOM.
40757
40758 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40759
40760         [BZ #13276]
40761         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
40762         return value.
40763
40764         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
40765         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
40766         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
40767
40768 2011-07-03  Andreas Jaeger  <aj@suse.de>
40769
40770         [BZ #10709]
40771         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
40772         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
40773         * math/libm-test.inc (sin_test): Add test case.
40774
40775 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40776
40777         [BZ #13337]
40778         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
40779         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40780
40781         * elf/chroot_canon.c (chroot_canon): Cleanups.
40782
40783         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
40784
40785         [BZ #13335]
40786         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
40787         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40788
40789         * string/test-strchr.c: Make usable for strchrnul testing.
40790         * string/test-strchrnul.c: New file.
40791         * string/Makefile (strop-tests): Add strchrnul.
40792
40793         * po/it.po: Update from translation team.
40794         * po/es.po: Likewise.
40795
40796 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
40797
40798         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
40799         the three constants needed as parameters.  Drop the others.
40800         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
40801         __m128i_strloadu_tolower.
40802         Create and initialize variable zero and use it in all the places
40803         where _mm_setzero_si128 was used.
40804
40805         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
40806         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
40807         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
40808         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
40809         anymore.
40810         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
40811         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
40812         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
40813         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
40814         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
40815         __mpranred, __mptan.
40816         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
40817         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
40818         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
40819         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
40820         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
40821         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
40822         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
40823         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
40824         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
40825
40826 2011-10-28  Andreas Schwab  <schwab@redhat.com>
40827
40828         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
40829         redefine if SHARED.
40830         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
40831
40832         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
40833         wide char related routines to wcsmbs subdir.
40834
40835 2011-10-27  Andreas Schwab  <schwab@redhat.com>
40836
40837         [BZ #13344]
40838         * misc/sys/cdefs.h (__THROWNL): Define.
40839         * posix/unistd.h: Use __THREADNL instead of __THREAD
40840         for memory synchronization functions.
40841
40842 2011-10-26  Roland McGrath  <roland@hack.frob.com>
40843
40844         [BZ #13349]
40845         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
40846         doesn't exist.
40847         * manual/stdio.texi (Obstack Streams): Node removed.
40848
40849 2011-10-26  Andreas Schwab  <schwab@redhat.com>
40850
40851         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
40852         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40853         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40854
40855         * math/math_private.h (math_force_eval): Allow non-addressable
40856         arguments.
40857         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
40858
40859 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40860
40861         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
40862         file is not needed.
40863
40864         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
40865         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
40866         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40867         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40868         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40869         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40870         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40871         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
40872         Add AVX variants.
40873         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
40874         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
40875         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
40876         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
40877         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
40878         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
40879         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
40880         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
40881         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
40882         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
40883         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
40884         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
40885         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
40886         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
40887         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
40888         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
40889         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
40890         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
40891         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
40892
40893         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
40894         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
40895
40896         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
40897         place.  Use VEX encoding when compiling for AVX.
40898
40899 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40900
40901         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
40902         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
40903
40904         * string/test-strchr.c (do_test): Don't generate NUL bytes.
40905
40906 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40907
40908         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
40909         useless if() expression.
40910         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
40911         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
40912         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
40913         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40914         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
40915         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40916         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
40917         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
40918         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
40919         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
40920         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
40921         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
40922         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
40923         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
40924         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
40925         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40926         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
40927         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
40928         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
40929
40930         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
40931
40932 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40933
40934         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
40935         condition.
40936         * elf/dl-fini.c (_dl_sort_fini): Likewise.
40937
40938 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40939
40940         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
40941         .text section.  Avoid duplicate constants.
40942         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
40943         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40944         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
40945         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40946         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40947         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40948         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40949         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40950         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
40951         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
40952         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
40953         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
40954         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
40955         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
40956         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
40957         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
40958         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
40959         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
40960         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
40961         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40962         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
40963         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
40964         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
40965         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
40966         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
40967         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
40968         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
40969         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
40970         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
40971         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
40972         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
40973         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
40974         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
40975         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
40976         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
40977         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
40978         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
40979         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
40980         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
40981         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
40982         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
40983         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
40984         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
40985         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
40986         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
40987
40988 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
40989
40990         * sysdeps/x86_64/dla.h: Move to ...
40991         * sysdeps/x86_64/fpu/dla.h: ...here.
40992         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
40993         situations.  Use __builtin_fma only for gcc 4.6 and up.
40994
40995         * config.make.in: Add have-mfma4 entry.
40996         * configure.in: Substitute libc_cv_cc_fma4.
40997         * math/Makefile (dbl-only-routines): Add sincostab.
40998         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
40999         Use __sincostab not sincos.
41000         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41001         name is a macro.
41002         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41003         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41004         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41005         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41006         using __copysign.
41007         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41008         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41009         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41010         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41011         and __inv.
41012         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41013         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41014         __copysign.
41015         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41016         define aliases when function name is a macro.
41017         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41018         sysdeps/ieee754/dbl-64/sincos.tbl.
41019         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41020         fma4-enabled routines.
41021         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41022         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41023         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41024         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41025         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41026         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41027         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41028         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41029         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41030         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41031         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41032         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41033         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41034         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41035         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41036         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41037         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41038         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41039         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41040         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41041         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41042         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41043         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41044         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41045         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41046         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41047         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41048         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41049         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41050         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41051
41052         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41053         rename.
41054         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41055         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41056         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41057         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41058         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41059         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41060         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41061         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41062
41063 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41064
41065         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41066
41067 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41068
41069         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41070
41071         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41072         prediction.
41073         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41074
41075         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41076         Remove unused variable magic_bits.
41077         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41078
41079         * string/strnlen.c: Define and use STRNLEN macro.
41080         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41081         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41082         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41083         * wcsmbs/wcslen.c: Define and use WCSLEN.
41084         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41085         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41086         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41087         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41088         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41089         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41090         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41091
41092 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41093
41094         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41095         strnlen-sse2-no-bsf.
41096         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41097         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41098         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41099         Add strnlen support.
41100         (USE_AS_STRNLEN): New macro.
41101         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41102         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41103         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41104         * sysdeps/x86_64/wcslen.S: New file.
41105
41106 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41107
41108         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41109         XMM-moves are used for copying on small sizes.
41110
41111 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41112
41113         * wcsmbs/Makefile (strop-tests): Add wcschr.
41114         * wcsmbs/test-wcschr.c: New file.
41115         * string/test-strchr.c: Update.
41116         Add wcschr support.
41117         (WIDE): New macro.
41118
41119 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41120
41121         * wcsmbs/Makefile (strop-tests): Add wcslen.
41122         * wcsmbs/test-wcslen.c: New file.
41123         * string/test-strlen.c: Update.
41124         Add wcslen support.
41125         (WIDE): New macro.
41126
41127 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41128
41129         * po/it.po: Update from translation team.
41130
41131 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41132
41133         * sysdeps/x86_64/wcscmp.S: Update.
41134         Fix wrong comparison semantics.
41135         wcscmp shall use signed comparison not unsigned.
41136         Don't use substraction to avoid overflow bug.
41137         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41138         * wcsmbc/wcscmp.c: Likewise.
41139         * string/test-strcmp.c: Likewise.
41140         Add new tests to check cases with negative values.
41141
41142 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41143
41144         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41145         * sysdeps/x86_64/dla.h: ...here.  New file.
41146         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41147         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41148         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41149         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41150         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41151         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41152         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41153         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41154         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41155
41156 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41157
41158         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41159         __ynl_finite aliases.
41160
41161 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41162
41163         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41164
41165         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41166         define DLA_FMA.
41167         [DLA_FMA] (EMULV): Use DLA_FMA.
41168         [DLA_FMA] (MUL12): Use EMULV.
41169         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41170         that are not needed.
41171         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41172         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41173         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41174         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41175         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41176         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41177         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41178
41179 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41180
41181         * math/s_nan.c: Undef __nan.
41182         * math/s_nanf.c: Undef __nanf.
41183         * math/s_nanl.c: Undef __nanl.
41184         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41185         "math_private.h".
41186
41187 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41188
41189         * math/s_catan.c: Add branch predictions.
41190         * math/s_catanf.c: Likewise.
41191         * math/s_catanh.c: Likewise.
41192         * math/s_catanhf.c: Likewise.
41193         * math/s_catanhl.c: Likewise.
41194         * math/s_catanl.c: Likewise.
41195         * math/s_cexp.c: Likewise.
41196         * math/s_cexpf.c: Likewise.
41197         * math/s_cexpl.c: Likewise.
41198         * math/s_clog.c: Likewise.
41199         * math/s_clog10.c: Likewise.
41200         * math/s_clog10f.c: Likewise.
41201         * math/s_clog10l.c: Likewise.
41202         * math/s_clogf.c: Likewise.
41203         * math/s_clogl.c: Likewise.
41204         * math/s_csqrt.c: Likewise.
41205         * math/s_csqrtf.c: Likewise.
41206         * math/s_csqrtl.c: Likewise.
41207         * math/s_ctanf.c: Likewise.
41208         * math/s_ctanh.c: Likewise.
41209         * math/s_ctanhf.c: Likewise.
41210         * math/s_ctanhl.c: Likewise.
41211         * math/s_ctanl.c: Likewise.
41212
41213         * math/math_private.h: Define __nan, __nanf, __nanl.
41214         * math/s_cacosh.c: Include <math_private.h>.
41215         * math/s_cacoshl.c: Likewise.
41216         * math/s_casinh.c: Likewise.
41217         * math/s_casinhf.c: Likewise.
41218         * math/s_casinhl.c: Likewise.
41219         * math/s_ccos.c: Rely entire on ccosh.
41220         * math/s_ccosf.c: Rely entire on ccoshf.
41221         * math/s_ccosl.c: Rely entirely on ccoshl.
41222         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41223         Remove tests for FE_INVALID.
41224         * math/s_ccoshf.c: Likewise.
41225         * math/s_ccoshl.c: Likewise.
41226         * math/s_csin.c: Likewise.
41227         * math/s_csinf.c: Likewise.
41228         * math/s_csinh.c Likewise.
41229         * math/s_csinhf.c: Likewise.
41230         * math/s_csinhl.c: Likewise.
41231         * math/s_csinl.c: Likewise.
41232         * math/s_ctan.c: Likewise.
41233         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41234         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41235         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41236
41237 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41238
41239         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41240         compilation problems.
41241
41242         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41243         __builtin_expect.
41244
41245 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41246
41247         * sysdeps/i386/configure.in: Test for -mfma4 option.
41248         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41249         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41250         COMMON_CPUID_INDEX_80000001.
41251         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41252         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41253         use it if FMA3 is not supported.
41254         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41255
41256         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41257         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41258
41259 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41260
41261         [BZ #12892]
41262         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41263         it would create a cycle with a link time dependency.
41264
41265 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41266
41267         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41268         instruction.
41269         * string/Makefile (strop-tests): Add rawmemchr.
41270         * string/test-rawmemchr.c: New file.
41271
41272         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41273         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41274         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41275         when compiling str{,n}casecmp and when AVX is available.  Hook up
41276         new optimized code in initializers.
41277
41278 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41279
41280         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41281         __feraiseexcept instead of feraiseexcept.
41282
41283 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41284
41285         * math/math_private.h: Define defaults for libc_fetestexcept and
41286         libc_feupdateenv.
41287         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41288         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41289         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41290         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41291         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41292         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41293         libc_fetestexcept and libc_feupdateenv.
41294
41295         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41296         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41297         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41298         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41299         libc_feholdexcept_setround.
41300
41301         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41302         Add s_nearbyint-c and s_nearbyintf-c.
41303         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41304         nearbyintf inlines.
41305         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41306         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41307         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41308         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41309
41310         * math/math_private.h: Define defaults for libc_fegetround,
41311         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41312         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41313         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41314         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41315         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41316         standard functions.
41317         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41318         Remove comments and hacks for old compiler versions.
41319         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41320         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41321         libc_feholdexceptl.
41322
41323 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41324
41325         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41326         (__feraiseexcept_renamed): Add __NTH.
41327         (feraiseexcept): Add __NTH.  Rename local variables to fix
41328         namespace violations.
41329
41330 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41331
41332         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41333
41334         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41335
41336         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41337         recently added interfaces.
41338         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41339
41340         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41341         about macro parameter expansion.
41342
41343         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41344         __NO_MATH_INLINES is defined.  Cleanups.
41345
41346         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41347         and __floorf is target has SSE4.1.
41348         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41349         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41350         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41351         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41352
41353         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41354         name.
41355         (floorf): Likewise.
41356
41357         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41358
41359 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41360
41361         * misc/sys/cdefs.h: Fix last change.
41362
41363         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41364         database lookup.
41365
41366 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41367
41368         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41369
41370         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41371         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41372         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41373         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41374         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41375         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41376         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41377         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41378         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41379         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41380         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41381         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41382         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41383         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41384         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41385         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41386         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41387         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41388         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41389         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41390         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41391         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41392
41393         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41394         ceil, ceilf, floor, floorf.
41395
41396         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41397         Perform IRELATIVE relocations last.
41398
41399         * elf/do-rel.h: Add another parameter nrelative, replacing the
41400         local variable with the same name.  Change name of the function
41401         to end in Rel or Rela (uppercase).
41402         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41403         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41404         elf_dynamic_do_##reloc function.
41405
41406 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41407
41408         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41409         is sufficient, at least on modern CPUs.
41410
41411         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41412
41413         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41414         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41415
41416         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41417         __expl_finite.
41418         * math/bits/math-finite.h: Add entries for exp.
41419         * math/e_expl.c: Add __*_finite alias.
41420         * sysdeps/i386/fpu/e_exp.S: Likewise.
41421         * sysdeps/i386/fpu/e_expf.S: Likewise.
41422         * sysdeps/i386/fpu/e_expl.c: Likewise.
41423         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41424         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41425         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41426         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41427         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41428         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41429         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41430
41431         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41432         is sufficient, at least on modern CPUs.
41433
41434         * ctype/ctype-info.c (__ctype_init): Define.
41435         * include/ctype.h (__ctype_init): Declare.
41436         (__ctype_b_loc): The variable is always initialized.
41437         (__ctype_toupper_loc): Likewise.
41438         (__ctype_tolower_loc): Likewise.
41439         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41440         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41441
41442 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41443
41444         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41445
41446         * configure.in: Also look in $cxxmachine/include for C++ system
41447         headers.
41448
41449 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41450
41451         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41452         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41453         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41454         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41455         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41456         (USE_AS_WMEMCMP): New macro.
41457         Fixing indents.
41458         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41459         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41460         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41461         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41462         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41463         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41464         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41465         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41466         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41467         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41468         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41469         (USE_AS_WMEMCMP): New macro.
41470         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41471         * sysdeps/string/test-memcmp.c: Update.
41472         Fix simple_wmemcmp.
41473         Add new tests.
41474         * wcsmbs/wmemcmp.c: Update.
41475         (WMEMCMP): New macro.
41476         Fix overflow bug.
41477
41478 2011-10-12  Andreas Jaeger  <aj@suse.de>
41479
41480         [BZ #13268]
41481         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41482
41483 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41484
41485         * libio/iofwide.c (do_length): Avoid warning.
41486
41487         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41488
41489 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41490
41491         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41492
41493         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41494         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41495         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41496         * sysdeps/i386/i686/fpu/e_log.S: New file.
41497         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41498         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41499
41500         * ctype/ctype.h: Add support for inlined isXXX functions when
41501         compiling C++ code.
41502
41503 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41504
41505         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41506
41507         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41508
41509 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41510
41511         [BZ #13291]
41512         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41513
41514 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41515
41516         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41517         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41518         feraiseexcept.
41519
41520         * sysdeps/x86_64/memrchr.S: Check for zero size.
41521
41522         * string/stratcliff.c: Add memrchr tests.
41523
41524 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41525
41526         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41527         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41528         rawmemchr-sse2 rawmemchr-sse2-bsf.
41529         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41530         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41531         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41532         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41533         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41534         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41535         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41536         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41537         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41538         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41539         * string/memrchr.c (MEMRCHR): New macro.
41540
41541 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41542
41543         Add integration with gcc's -ffinite-math-only and optimize wrapper
41544         functions in libm.
41545         * Versions.def: Define GLIBC_2.15 version for libm.
41546         * math/Makefile (headers): Add bits/math-finite.h.
41547         * math/bits/math-finite.h: New file.
41548         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41549         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41550         * math/e_acoshl.c: Add __*_finite alias.
41551         * math/e_acosl.c: Likewise.
41552         * math/e_asinl.c: Likewise.
41553         * math/e_atan2l.c: Likewise.
41554         * math/e_atanhl.c: Likewise.
41555         * math/e_coshl.c: Likewise.
41556         * math/e_exp10.c: Likewise.
41557         * math/e_exp10f.c: Likewise.
41558         * math/e_exp10l.c: Likewise.
41559         * math/e_exp2l.c: Likewise.
41560         * math/e_fmodl.c: Likewise.
41561         * math/e_gammal_r.c: Likewise.
41562         * math/e_hypotl.c: Likewise.
41563         * math/e_j0l.c: Likewise.
41564         * math/e_j1l.c: Likewise.
41565         * math/e_jnl.c: Likewise.
41566         * math/e_lgammal_r.c: Likewise.
41567         * math/e_log10l.c: Likewise.
41568         * math/e_log2l.c: Likewise.
41569         * math/e_logl.c: Likewise.
41570         * math/e_powl.c: Likewise.
41571         * math/e_sinhl.c: Likewise.
41572         * math/e_sqrtl.c: Likewise.
41573         * math/e_scalb.c: Completely rewritten and optimized.
41574         * math/e_scalbf.c: Likewise.
41575         * math/e_scalbl.c: Likewise.
41576         * math/w_acos.c: Likewise.
41577         * math/w_acosf.c: Likewise.
41578         * math/w_acosl.c: Likewise.
41579         * math/w_acosh.c: Likewise.
41580         * math/w_acoshf.c: Likewise.
41581         * math/w_acoshl.c: Likewise.
41582         * math/w_asin.c: Likewise.
41583         * math/w_asinf.c: Likewise.
41584         * math/w_asinl.c: Likewise.
41585         * math/w_atan2.c: Likewise.
41586         * math/w_atan2f.c: Likewise.
41587         * math/w_atan2l.c: Likewise.
41588         * math/w_atanh.c: Likewise.
41589         * math/w_atanhf.c: Likewise.
41590         * math/w_atanhl.c: Likewise.
41591         * math/w_exp10.c: Likewise.
41592         * math/w_exp10f.c: Likewise.
41593         * math/w_exp10l.c: Likewise.
41594         * math/w_fmod.c: Likewise.
41595         * math/w_fmodf.c: Likewise.
41596         * math/w_fmodl.c: Likewise.
41597         * math/w_j0.c: Likewise.
41598         * math/w_j0f.c: Likewise.
41599         * math/w_j0l.c: Likewise.
41600         * math/w_j1.c: Likewise.
41601         * math/w_j1f.c: Likewise.
41602         * math/w_j1l.c: Likewise.
41603         * math/w_jn.c: Likewise.
41604         * math/w_jnf.c: Likewise.
41605         * math/w_log.c: Likewise.
41606         * math/w_logf.c: Likewise.
41607         * math/w_logl.c: Likewise.
41608         * math/w_log10.c: Likewise.
41609         * math/w_log10f.c: Likewise.
41610         * math/w_log10l.c: Likewise.
41611         * math/w_log2.c: Likewise.
41612         * math/w_log2f.c: Likewise.
41613         * math/w_log2l.c: Likewise.
41614         * math/w_pow.c: Likewise.
41615         * math/w_powf.c: Likewise.
41616         * math/w_powl.c: Likewise.
41617         * math/w_remainder.c: Likewise.
41618         * math/w_remainderf.c: Likewise.
41619         * math/w_remainderl.c: Likewise.
41620         * math/w_scalb.c: Likewise.
41621         * math/w_scalbf.c: Likewise.
41622         * math/w_scalbl.c: Likewise.
41623         * math/w_sqrt.c: Likewise.
41624         * math/w_sqrtf.c: Likewise.
41625         * math/w_sqrtl.c: Likewise.
41626         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
41627         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
41628         used.
41629         * math/math_private.h: Declare __kernel_standard_f.
41630         * math/w_cosh.c: Remove cruft and optimize a bit.
41631         * math/w_coshf.c: Likewise.
41632         * math/w_coshl.c: Likewise.
41633         * math/w_exp2.c: Likewise.
41634         * math/w_exp2f.c: Likewise.
41635         * math/w_exp2l.c: Likewise.
41636         * math/w_hypot.c: Likewise.
41637         * math/w_hypotf.c: Likewise.
41638         * math/w_hypotl.c: Likewise.
41639         * math/w_lgamma.c: Likewise.
41640         * math/w_lgamma_r.c: Likewise.
41641         * math/w_lgammaf.c: Likewise.
41642         * math/w_lgammaf_r.c: Likewise.
41643         * math/w_lgammal.c: Likewise.
41644         * math/w_lgammal_r.c: Likewise.
41645         * math/w_sinh.c: Likewise.
41646         * math/w_sinhf.c: Likewise.
41647         * math/w_sinhl.c: Likewise.
41648         * math/w_tgamma.c: Likewise.
41649         * math/w_tgammaf.c: Likewise.
41650         * math/w_tgammal.c: Likewise.
41651         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
41652         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41653         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
41654         Minor optimizations.  Pretty printing.  Remove cruft.
41655         * sysdeps/i386/fpu/e_acosf.S: Likewise.
41656         * sysdeps/i386/fpu/e_acosh.S: Likewise.
41657         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
41658         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
41659         * sysdeps/i386/fpu/e_acosl.c: Likewise.
41660         * sysdeps/i386/fpu/e_asin.S: Likewise.
41661         * sysdeps/i386/fpu/e_asinf.S: Likewise.
41662         * sysdeps/i386/fpu/e_atan2.S: Likewise.
41663         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
41664         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
41665         * sysdeps/i386/fpu/e_atanh.S: Likewise.
41666         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
41667         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
41668         * sysdeps/i386/fpu/e_exp10.S: Likewise.
41669         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
41670         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
41671         * sysdeps/i386/fpu/e_exp2.S: Likewise.
41672         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
41673         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
41674         * sysdeps/i386/fpu/e_fmod.S: Likewise.
41675         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
41676         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
41677         * sysdeps/i386/fpu/e_hypot.S: Likewise.
41678         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
41679         * sysdeps/i386/fpu/e_log.S: Likewise.
41680         * sysdeps/i386/fpu/e_log10.S: Likewise.
41681         * sysdeps/i386/fpu/e_log10f.S: Likewise.
41682         * sysdeps/i386/fpu/e_log10l.S: Likewise.
41683         * sysdeps/i386/fpu/e_log2.S: Likewise.
41684         * sysdeps/i386/fpu/e_log2f.S: Likewise.
41685         * sysdeps/i386/fpu/e_log2l.S: Likewise.
41686         * sysdeps/i386/fpu/e_logf.S: Likewise.
41687         * sysdeps/i386/fpu/e_logl.S: Likewise.
41688         * sysdeps/i386/fpu/e_pow.S: Likewise.
41689         * sysdeps/i386/fpu/e_powf.S: Likewise.
41690         * sysdeps/i386/fpu/e_powl.S: Likewise.
41691         * sysdeps/i386/fpu/e_remainder.S: Likewise.
41692         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
41693         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
41694         * sysdeps/i386/fpu/e_scalb.S: Likewise.
41695         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
41696         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
41697         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
41698         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
41699         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
41700         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
41701         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41702         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41703         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
41704         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41705         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
41706         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
41707         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
41708         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41709         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
41710         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
41711         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
41712         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41713         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
41714         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
41715         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41716         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
41717         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
41718         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41719         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41720         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
41721         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
41722         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
41723         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
41724         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
41725         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
41726         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41727         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
41728         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
41729         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
41730         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41731         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
41732         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41733         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
41734         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
41735         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
41736         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
41737         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
41738         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
41739         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
41740         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
41741         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
41742         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
41743         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
41744         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
41745         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
41746         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
41747         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
41748         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
41749         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
41750         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
41751         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
41752         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
41753         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41754         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
41755         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
41756         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
41757         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
41758         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
41759         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
41760         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
41761         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
41762         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
41763         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
41764         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
41765         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
41766         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
41767         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
41768         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
41769         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
41770         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
41771         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
41772         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
41773         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
41774         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
41775         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
41776         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
41777         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
41778         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
41779         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
41780         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41781         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
41782         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
41783         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
41784         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41785         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
41786         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41787         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
41788         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41789         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
41790         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
41791         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
41792         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
41793         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
41794         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41795         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41796         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41797         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
41798         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
41799         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
41800         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
41801         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
41802         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
41803         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
41804         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
41805         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
41806         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
41807         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
41808         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
41809         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
41810         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
41811         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
41812         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
41813         (__isnanf): Likewise.
41814         (__isinf_ns): Likewise.
41815         (__isinf_nsf): Likewise.
41816         (__finite): Likewise.
41817         (__finitef): Likewise.
41818         (__ieee754_sqrt): Define as macro.
41819         (__ieee754_sqrtf): Define as macro.
41820         (__ieee754_sqrtl): Define as macro.
41821         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
41822         inlined copy.
41823         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
41824         __FINITE_MATH_ONLY__ consistent.
41825         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
41826
41827 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
41828
41829         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
41830         of rawmemchr.
41831
41832         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
41833
41834 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
41835
41836         * po/ja.po: Update from translation team.
41837
41838 2011-10-08  Roland McGrath  <roland@hack.frob.com>
41839
41840         * locale/programs/locarchive.c (prepare_address_space): New function.
41841         (create_archive, enlarge_archive, open_archive): Use it.
41842
41843         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
41844         inside [SHARED], where it is used.
41845
41846         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
41847
41848         * nss/getent.c (netgroup_keys): Remove unused variable.
41849         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
41850
41851 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
41852
41853         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
41854         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
41855         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
41856         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
41857         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
41858         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
41859         * math/Makefile (libm-calls): Add s_isinf_ns.
41860         * math/divtc3.c: Use __isinf_nsl instead of isinf.
41861         * math/multc3.c: Likewise.
41862         * math/s_casin.c: Likewise.
41863         * math/s_casinf.c: Likewise.
41864         * math/s_casinl.c: Likewise.
41865         * math/s_ccos.c: Likewise.
41866         * math/s_ccosf.c: Likewise.
41867         * math/s_ccosl.c: Likewise.
41868         * math/s_ctan.c: Likewise.
41869         * math/s_ctanf.c: Likewise.
41870         * math/s_ctanh.c: Likewise.
41871         * math/s_ctanhf.c: Likewise.
41872         * math/s_ctanhl.c: Likewise.
41873         * math/s_ctanl.c: Likewise.
41874         * math/w_fmod.c: Likewise.
41875         * math/w_fmodf.c: Likewise.
41876         * math/w_fmodl.c: Likewise.
41877         * math/w_remainder.c: Likewise.
41878         * math/w_remainderf.c: Likewise.
41879         * math/w_remainderl.c: Likewise.
41880         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
41881         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
41882         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
41883         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
41884         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
41885         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
41886         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
41887         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
41888
41889         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
41890         of the number.
41891         * stdio-common/printf_fphex.c: Likewise.
41892         * stdio-common/printf_size.c: Likewise.
41893
41894         * math/e_exp10.c: Include math_private.h using <...> not "...".
41895         * math/e_exp10f.c: Likewise.
41896         * math/e_exp10l.c: Likewise.
41897         * math/e_exp2l.c: Likewise.
41898         * math/e_j0l.c: Likewise.
41899         * math/e_j1l.c: Likewise.
41900         * math/e_jnl.c: Likewise.
41901         * math/e_lgammal_r.c: Likewise.
41902         * math/e_rem_pio2l.c: Likewise.
41903         * math/e_scalb.c: Likewise.
41904         * math/e_scalbf.c: Likewise.
41905         * math/e_scalbl.c: Likewise.
41906         * math/k_cosl.c: Likewise.
41907         * math/k_sinl.c: Likewise.
41908         * math/k_tanl.c: Likewise.
41909         * math/s_cacoshf.c: Likewise.
41910         * math/s_catan.c: Likewise.
41911         * math/s_catanf.c: Likewise.
41912         * math/s_catanh.c: Likewise.
41913         * math/s_catanhf.c: Likewise.
41914         * math/s_catanhl.c: Likewise.
41915         * math/s_catanl.c: Likewise.
41916         * math/s_ccosh.c: Likewise.
41917         * math/s_ccoshf.c: Likewise.
41918         * math/s_ccoshl.c: Likewise.
41919         * math/s_cexp.c: Likewise.
41920         * math/s_cexpf.c: Likewise.
41921         * math/s_cexpl.c: Likewise.
41922         * math/s_clog.c: Likewise.
41923         * math/s_clog10.c: Likewise.
41924         * math/s_clog10f.c: Likewise.
41925         * math/s_clog10l.c: Likewise.
41926         * math/s_clogf.c: Likewise.
41927         * math/s_clogl.c: Likewise.
41928         * math/s_csin.c: Likewise.
41929         * math/s_csinf.c: Likewise.
41930         * math/s_csinh.c: Likewise.
41931         * math/s_csinhf.c: Likewise.
41932         * math/s_csinhl.c: Likewise.
41933         * math/s_csinl.c: Likewise.
41934         * math/s_csqrt.c: Likewise.
41935         * math/s_csqrtf.c: Likewise.
41936         * math/s_csqrtl.c: Likewise.
41937         * math/s_ctan.c: Likewise.
41938         * math/s_ctanf.c: Likewise.
41939         * math/s_ctanh.c: Likewise.
41940         * math/s_ctanhf.c: Likewise.
41941         * math/s_ctanhl.c: Likewise.
41942         * math/s_ctanl.c: Likewise.
41943         * math/s_ldexp.c: Likewise.
41944         * math/s_ldexpf.c: Likewise.
41945         * math/s_ldexpl.c: Likewise.
41946         * math/s_significand.c: Likewise.
41947         * math/s_significandf.c: Likewise.
41948         * math/s_significandl.c: Likewise.
41949         * math/w_acos.c: Likewise.
41950         * math/w_acosf.c: Likewise.
41951         * math/w_acosh.c: Likewise.
41952         * math/w_acoshf.c: Likewise.
41953         * math/w_acoshl.c: Likewise.
41954         * math/w_acosl.c: Likewise.
41955         * math/w_asin.c: Likewise.
41956         * math/w_asinf.c: Likewise.
41957         * math/w_asinl.c: Likewise.
41958         * math/w_atan2.c: Likewise.
41959         * math/w_atan2f.c: Likewise.
41960         * math/w_atan2l.c: Likewise.
41961         * math/w_atanh.c: Likewise.
41962         * math/w_atanhf.c: Likewise.
41963         * math/w_atanhl.c: Likewise.
41964         * math/w_cosh.c: Likewise.
41965         * math/w_coshf.c: Likewise.
41966         * math/w_coshl.c: Likewise.
41967         * math/w_dremf.c: Likewise.
41968         * math/w_exp10.c: Likewise.
41969         * math/w_exp10f.c: Likewise.
41970         * math/w_exp10l.c: Likewise.
41971         * math/w_exp2.c: Likewise.
41972         * math/w_exp2f.c: Likewise.
41973         * math/w_fmod.c: Likewise.
41974         * math/w_fmodf.c: Likewise.
41975         * math/w_fmodl.c: Likewise.
41976         * math/w_hypot.c: Likewise.
41977         * math/w_hypotf.c: Likewise.
41978         * math/w_hypotl.c: Likewise.
41979         * math/w_j0.c: Likewise.
41980         * math/w_j0f.c: Likewise.
41981         * math/w_j0l.c: Likewise.
41982         * math/w_j1.c: Likewise.
41983         * math/w_j1f.c: Likewise.
41984         * math/w_j1l.c: Likewise.
41985         * math/w_jn.c: Likewise.
41986         * math/w_jnf.c: Likewise.
41987         * math/w_jnl.c: Likewise.
41988         * math/w_lgamma.c: Likewise.
41989         * math/w_lgamma_r.c: Likewise.
41990         * math/w_lgammaf.c: Likewise.
41991         * math/w_lgammaf_r.c: Likewise.
41992         * math/w_lgammal.c: Likewise.
41993         * math/w_lgammal_r.c: Likewise.
41994         * math/w_log.c: Likewise.
41995         * math/w_log10.c: Likewise.
41996         * math/w_log10f.c: Likewise.
41997         * math/w_log10l.c: Likewise.
41998         * math/w_log2.c: Likewise.
41999         * math/w_log2f.c: Likewise.
42000         * math/w_log2l.c: Likewise.
42001         * math/w_logf.c: Likewise.
42002         * math/w_logl.c: Likewise.
42003         * math/w_pow.c: Likewise.
42004         * math/w_powf.c: Likewise.
42005         * math/w_powl.c: Likewise.
42006         * math/w_remainder.c: Likewise.
42007         * math/w_remainderf.c: Likewise.
42008         * math/w_remainderl.c: Likewise.
42009         * math/w_scalb.c: Likewise.
42010         * math/w_scalbf.c: Likewise.
42011         * math/w_scalbl.c: Likewise.
42012         * math/w_sinh.c: Likewise.
42013         * math/w_sinhf.c: Likewise.
42014         * math/w_sinhl.c: Likewise.
42015         * math/w_sqrt.c: Likewise.
42016         * math/w_sqrtf.c: Likewise.
42017         * math/w_sqrtl.c: Likewise.
42018         * math/w_tgamma.c: Likewise.
42019         * math/w_tgammaf.c: Likewise.
42020         * math/w_tgammal.c: Likewise.
42021
42022         * po/ja.po: Update from translation team.
42023
42024 2011-09-29  Andreas Jaeger  <aj@suse.de>
42025
42026         [BZ #13179]
42027         * sunrpc/netname.c (netname2host): Fix logic.
42028
42029         [BZ #6779]
42030         [BZ #6783]
42031         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42032         correctly.
42033         * math/w_remainder.c (__remainder): Likewise.
42034         * math/w_remainderf.c (__remainderf): Likewise.
42035         * math/libm-test.inc (remainder_test): Add test cases.
42036
42037 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42038
42039         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42040         sdiv_qrnnd.
42041
42042 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42043
42044         * string/test-memcmp.c: Avoid unncessary #defines.
42045         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42046
42047 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42048
42049         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42050         Use new sse2 version for core i3 - i7 as it's faster
42051         than sse42 version.
42052         (bit_Prefer_PMINUB_for_stringop): New.
42053         * sysdeps/x86_64/rawmemchr.S: Update.
42054         Replace with faster SSE2 version.
42055         * sysdeps/x86_64/memrchr.S: New file.
42056         * sysdeps/x86_64/memchr.S: Update.
42057         Replace with faster SSE2 version.
42058
42059 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42060
42061         * elf/dl-load.c (lose): Add cast to avoid warning.
42062
42063 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42064
42065         * po/ca.po: Update from translation team.
42066
42067         * inet/getnetgrent_r.c: Hook up nscd.
42068         * nscd/Makefile (routines): Add nscd_netgroup.
42069         (nscd-modules): Add netgroupcache.
42070         (CFLAGS-netgroupcache.c): Define.
42071         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42072         (cache_search): Add const to second parameter.
42073         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42074         INNETGR.
42075         (dbs): Add netgrdb entry.
42076         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42077         (verify_persistent_db): Handle netgrdb.
42078         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42079         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42080         GETFDNETGR.
42081         (netgroup_response_header): Define.
42082         (innetgroup_response_header): Define.
42083         (datahead): Add netgroup_response_header and innetgroup_response_header
42084         elements.
42085         * nscd/nscd.conf: Add entries for netgroup cache.
42086         * nscd/nscd.h (dbtype): Add netgrdb.
42087         (_PATH_NSCD_NETGROUP_DB): Define.
42088         (netgroup_iov_disabled): Declare.
42089         (xmalloc, xcalloc, xrealloc): Move declarations here.
42090         (cache_search): Adjust prototype.
42091         Add netgroup-related prototypes.
42092         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42093         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42094         (__nscd_innetgr): Declare.
42095         * nscd/selinux.c (perms): Use access_vector_t as element type and
42096         add netgroup-related initializers.
42097         * nscd/netgroupcache.c: New file.
42098         * nscd/nscd_netgroup.c: New file.
42099         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42100         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42101         For four parameters use innetgr.
42102         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42103         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42104         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42105         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42106
42107         * nscd/connections.c (register_traced_file): Don't register file
42108         for disabled databases.
42109
42110 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42111
42112         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42113
42114         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42115         from tree and freeing node.
42116
42117 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42118
42119         * nss/nsswitch.c (__nss_database_lookup): Handle
42120         nss_parse_service_list out of memory case.
42121
42122 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42123
42124         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42125         out of memory case.
42126
42127 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42128
42129         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42130         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42131         pass it down.
42132         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42133         elf_machine_rela, elf_machine_lazy_rel.
42134         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42135         (ELF_DYNAMIC_DO_REL): Likewise.
42136         (ELF_DYNAMIC_DO_RELA): Likewise.
42137         (ELF_DYNAMIC_RELOCATE): Likewise.
42138         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42139         to ELF_DYNAMIC_DO_REL.
42140         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42141         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42142         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42143         elf_machine_rela.
42144         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42145         skip_ifunc, don't call ifunc function if non-zero.
42146         (elf_machine_rela): Likewise.
42147         (elf_machine_lazy_rel): Likewise.
42148         (elf_machine_lazy_rela): Likewise.
42149         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42150         (elf_machine_lazy_rel): Likewise.
42151         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42152         Likewise.
42153         (elf_machine_lazy_rel): Likewise.
42154         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42155         Likewise.
42156         (elf_machine_lazy_rel): Likewise.
42157         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42158         (elf_machine_lazy_rel): Likewise.
42159         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42160         (elf_machine_lazy_rel): Likewise.
42161         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42162         (elf_machine_lazy_rel): Likewise.
42163         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42164         (elf_machine_lazy_rel): Likewise.
42165         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42166         (elf_machine_lazy_rel): Likewise.
42167         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42168         (elf_machine_lazy_rel): Likewise.
42169
42170 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42171
42172         * nss/nss_files/files-init.c (_nss_files_init): Use static
42173         initialization for all the *_traced_file variables.
42174
42175 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42176
42177         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42178
42179 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42180
42181         [BZ #13226]
42182         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42183
42184 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42185
42186         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42187         Reread the line before reparsing it.
42188
42189 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42190
42191         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42192
42193 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42194             Maxim Kuvyrkov  <maxim@codesourcery.com>
42195             Joseph Myers  <joseph@codesourcery.com>
42196
42197         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42198         if needed for __stack_chk_guard.
42199
42200 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42201
42202         * sysdeps/posix/spawni.c (script_execute): Always define it.
42203         It will be optimized away if unused.
42204         (maybe_script_execute): New function.
42205         (__spawni): Call it.
42206
42207         * Makerules: Don't include tls.make.
42208         (config-tls): Always set to thread.
42209         * tls.make.c: File removed.
42210
42211 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42212
42213         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42214         * config.make.in (CPPFLAGS-config): New substituted variable.
42215
42216 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42217
42218         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42219
42220         [BZ #13192]
42221         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42222         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42223
42224 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42225
42226         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42227         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42228         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42229         (CALL_FAIL): Likewise.
42230         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42231         (CALL_FAIL): Macro removed.
42232         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42233
42234 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42235
42236         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42237         for __FINITE_MATH_ONLY__ == 1.
42238
42239 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42240
42241         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42242         __ieee754_sqrt instead of sqrt.
42243         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42244         __ieee754_sqrtf instead of sqrtf.
42245         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42246         __floorf instead of floorf.
42247         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42248         __floorf, __truncf instead of floorf, truncf.
42249
42250 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42251
42252         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42253
42254         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42255         __extern_always_inline.
42256         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42257         32-bit.
42258
42259 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42260
42261         * elf/rtld.c (dl_main): Also relocate in dependency order when
42262         doing symbol dependency testing.
42263
42264 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42265
42266         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42267         Always define `refsym'.
42268
42269 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42270
42271         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42272         (__FD_ELT): Renamed from __FDELT.
42273         * misc/bits/select2.h (__FD_ELT): Likewise.
42274         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42275         __FD_MASK instead of __FDELT, __FDMASK.
42276         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42277         Likewise.
42278         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42279         Likewise.
42280
42281         * elf/Makefile (gen-ldd): Fix pattern.
42282
42283         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42284         (init_tls): Likewise.
42285
42286 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42287
42288         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42289
42290 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42291
42292         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42293         `struct cmsghdr *' instead of `void *'.
42294         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42295         Likewise.
42296
42297 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42298
42299         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42300         if non-absolute.
42301         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42302         ldd_rewrite_script.
42303
42304 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42305
42306         * configure.in: Remove --with-tls option.
42307         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42308         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42309         out in case it is missing.
42310         * sysdeps/ia64/elf/configure.in: Likewise.
42311         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42312         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42313         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42314         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42315         * sysdeps/sh/elf/configure.in: Likewise.
42316         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42317         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42318         * sysdeps/x86_64/elf/configure.in: Likewise.
42319         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42320         * sysdeps/mach/hurd/tls.h: Likewise.
42321
42322         [BZ #13067]
42323         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42324
42325         [BZ #13090]
42326         * configure.in: Fix use of AC_INIT.
42327
42328         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42329
42330 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42331
42332         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42333         __set_errno.
42334         * malloc/hooks.c: Likewise.
42335
42336         [BZ #11929]
42337         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42338         variables statically.
42339         (narenas): Initialize.
42340         (list_lock): Initialize.
42341         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42342         initializtion of main_arena and list_lock.  Small cleanups.
42343         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42344         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42345         Add initializers to main_arena and mp_.
42346         (malloc_state): Remove pagesize member.  Change all users to use
42347         GLRO(dl_pagesize).
42348
42349         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42350         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42351         is always initialized.
42352
42353         * malloc/malloc.c: Removed unused configurations and dead code.
42354         * malloc/arena.c: Likewise.
42355         * malloc/hooks.c: Likewise.
42356         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42357
42358         * include/tls.h: Removed.  USE___THREAD must always be defined.
42359         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42360         * elf/dl-libc.c: Likewise.
42361         * elf/dl-tsd.c: Likewise.
42362         * include/errno.h: Likewise.
42363         * include/netdb.h: Likewise.
42364         * include/resolv.h: Likewise.
42365         * inet/herrno-loc.c: Likewise.
42366         * inet/herrno.c: Likewise.
42367         * malloc/arena.c: Likewise.
42368         * malloc/hooks.c: Likewise.
42369         * malloc/malloc.c: Likewise.
42370         * resolv/res-state.c: Likewise.
42371         * resolv/res_libc.c: Likewise.
42372         * sysdeps/i386/dl-machine.h: Likewise.
42373         * sysdeps/ia64/dl-machine.h: Likewise.
42374         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42375         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42376         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42377         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42378         * sysdeps/sh/dl-machine.h: Likewise.
42379         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42380         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42381         * sysdeps/unix/i386/sysdep.S: Likewise.
42382         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42383         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42384         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42385         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42386         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42387         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42388         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42389         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42390         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42391         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42392         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42393         * sysdeps/x86_64/dl-machine.h: Likewise.
42394         * tls.make.c: Likewise.
42395
42396         * configure.in: Remove --with-__thread option.  Make tests for
42397         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42398         tls_model attribute fail if no support is available.  Remove
42399         USE_IN_LIBIO.
42400         * Makeconfig: Adjust for dropped configure option.  All features are
42401         now mandatory.
42402         * Makerules: Likewise.
42403         * Versions.def: Likewise.
42404         * argp/argp-fmtstream.c: Likewise.
42405         * argp/argp-fmtstream.h: Likewise.
42406         * argp/argp-help.c: Likewise.
42407         * assert/assert.c: Likewise.
42408         * config.h.in: Likewise.
42409         * config.make.in: Likewise.
42410         * configure: Likewise.
42411         * configure.in: Likewise.
42412         * csu/Versions: Likewise.
42413         * csu/init.c: Likewise.
42414         * elf/tst-audit2.c: Likewise.
42415         * elf/tst-tls10.c: Likewise.
42416         * elf/tst-tls10.h: Likewise.
42417         * elf/tst-tls11.c: Likewise.
42418         * elf/tst-tls12.c: Likewise.
42419         * elf/tst-tls14.c: Likewise.
42420         * elf/tst-tlsmod11.c: Likewise.
42421         * elf/tst-tlsmod12.c: Likewise.
42422         * elf/tst-tlsmod13.c: Likewise.
42423         * elf/tst-tlsmod13a.c: Likewise.
42424         * elf/tst-tlsmod14a.c: Likewise.
42425         * elf/tst-tlsmod15b.c: Likewise.
42426         * elf/tst-tlsmod16a.c: Likewise.
42427         * elf/tst-tlsmod16b.c: Likewise.
42428         * elf/tst-tlsmod7.c: Likewise.
42429         * elf/tst-tlsmod8.c: Likewise.
42430         * elf/tst-tlsmod9.c: Likewise.
42431         * gmon/gmon.c: Likewise.
42432         * grp/fgetgrent_r.c: Likewise.
42433         * grp/putgrent.c: Likewise.
42434         * hurd/fopenport.c: Likewise.
42435         * include/libc-symbols.h: Likewise.
42436         * include/tls.h: Likewise.
42437         * intl/gettextP.h: Likewise.
42438         * intl/loadinfo.h: Likewise.
42439         * locale/global-locale.c: Likewise.
42440         * locale/localeinfo.h: Likewise.
42441         * mach/devstream.c: Likewise.
42442         * malloc/arena.c: Likewise.
42443         * malloc/set-freeres.c: Likewise.
42444         * misc/err.c: Likewise.
42445         * misc/getttyent.c: Likewise.
42446         * misc/mntent_r.c: Likewise.
42447         * posix/getopt.c: Likewise.
42448         * posix/wordexp.c: Likewise.
42449         * pwd/fgetpwent_r.c: Likewise.
42450         * resolv/Versions: Likewise.
42451         * resolv/res_hconf.c: Likewise.
42452         * shadow/fgetspent_r.c: Likewise.
42453         * shadow/putspent.c: Likewise.
42454         * stdio-common/printf_fphex.c: Likewise.
42455         * stdio-common/tmpfile.c: Likewise.
42456         * stdlib/abort.c: Likewise.
42457         * stdlib/fmtmsg.c: Likewise.
42458         * sunrpc/auth_unix.c: Likewise.
42459         * sunrpc/clnt_perr.c: Likewise.
42460         * sunrpc/clnt_tcp.c: Likewise.
42461         * sunrpc/clnt_udp.c: Likewise.
42462         * sunrpc/clnt_unix.c: Likewise.
42463         * sunrpc/openchild.c: Likewise.
42464         * sunrpc/svc_simple.c: Likewise.
42465         * sunrpc/svc_tcp.c: Likewise.
42466         * sunrpc/svc_udp.c: Likewise.
42467         * sunrpc/svc_unix.c: Likewise.
42468         * sunrpc/xdr.c: Likewise.
42469         * sunrpc/xdr_array.c: Likewise.
42470         * sunrpc/xdr_rec.c: Likewise.
42471         * sunrpc/xdr_ref.c: Likewise.
42472         * sunrpc/xdr_stdio.c: Likewise.
42473
42474 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42475
42476         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42477
42478 2011-07-03  Andreas Jaeger  <aj@suse.de>
42479
42480         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42481         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42482         regenerate with gen-libm-tests.pl.
42483
42484 2010-05-12  Petr Baudis  <pasky@suse.cz>
42485
42486         [BZ #11589]
42487         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42488         around j0() zero points by switching to j1().
42489         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42490         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42491         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42492         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42493
42494 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42495
42496         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42497         instead of 0.
42498         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42499         instead of 0.
42500         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42501         Patch in part by Pavel Roskin <proski@gnu.org>.
42502
42503         [BZ #13138]
42504         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42505         realloc.
42506         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42507         Free memory block if necessary.
42508
42509         [BZ #12847]
42510         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42511         be NULL.  Don't lock in this case.
42512
42513 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42514
42515         * elf/elf.h (ELFOSABI_GNU): New macro.
42516         (ELFOSABI_LINUX): Define to that.
42517
42518 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42519
42520         * string/strncat.c (strncat): Undef the symbol in case it has been
42521         defined in bits/string.h.
42522
42523 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42524
42525         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42526
42527         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42528         link map.
42529
42530 2011-08-17  Andreas Jaeger  <aj@suse.de>
42531
42532         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42533
42534 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42535             Ian Lance Taylor  <iant@google.com>
42536
42537         * math/libm-test.inc (lround_test): New testcase.
42538         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42539
42540 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42541
42542         * Makefile: Remove support for automatic cvs check-ins.
42543         * Makerules: Likewise.
42544         * config.make.in: Likewise.
42545         * configure.in: Likewise.
42546         * intl/Makefile: Likewise.
42547         * locale/Makefile: Likewise.
42548         * po/Makefile: Likewise.
42549         * posix/Makefile: Likewise.
42550         * sysdeps/gnu/Makefile: Likewise.
42551         * sysdeps/mach/hurd/Makefile: Likewise.
42552         * sysdeps/sparc/sparc32/Makefile: Likewise.
42553
42554         [BZ #13118]
42555         * posix/Makefile (bug-regex32-ENV): Define.
42556         Patch by John Stanley <jpsinthemix@verizon.net>.
42557
42558         * misc/Makefile (headers): Add bits/select2.h.
42559         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42560         * misc/bits/select2.h: New file.
42561         * include/bits/select2.h: New file.
42562         * debug/Makefile (routines): Add fdelt_chk.
42563         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42564         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42565         FD_ISSET.
42566         * debug/fdelt_chk.c: New file.
42567
42568         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42569         * wcsmbs/test-wmemcmp.c: Likewise.
42570         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42571         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42572
42573 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42574
42575         * string/Makefile (strop-tests): Add memcmp.
42576         * string/test-wmemcmp.c: New file.
42577         * string/test-memcmp.c: Add wmemcmp support.
42578
42579 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42580
42581         [BZ #13153]
42582         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42583         2011-07-19 change.
42584
42585         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42586         garbage value in a __mach_port_mod_refs call in the cases of the
42587         task-self and thread-self ports.
42588
42589 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42590
42591         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42592
42593 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42594
42595         * elf/dl-load.c (lose): Check for non-null L.
42596
42597 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42598
42599         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42600
42601         * elf/dl-libc.c (dlerror_run): Pass back error code from
42602         dl_catch_error.
42603
42604         [BZ #13123]
42605         * elf/dl-load.c (lose): Free l_origin if it is valid.
42606
42607         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
42608         names.
42609         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
42610         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42611         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42612         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42613         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
42614         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
42615
42616 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42617
42618         * sysdeps/powerpc/fpu/e_hypot.c: New file.
42619         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
42620         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
42621         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
42622         * sysdeps/powerpc/fpu/k_cosf.c: New file.
42623         * sysdeps/powerpc/fpu/k_sinf.c: New file.
42624         * sysdeps/powerpc/fpu/s_cosf.c: New file.
42625         * sysdeps/powerpc/fpu/s_sinf.c: New file.
42626         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
42627         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
42628
42629 2011-08-15  Alan Modra  <amodra@gmail.com>
42630
42631         [BZ #13092]
42632         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
42633         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
42634         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
42635         ppc_mcount to static-only-routines.
42636         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
42637         __mcount_internal.
42638         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
42639         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
42640
42641 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
42642
42643         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
42644         for finite and infinity parameters.
42645
42646 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
42647
42648         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
42649         and add nop instructions for throughput optimization.
42650         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42651
42652 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
42653
42654         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
42655         aligned copy for power7 with vector-scalar instructions.
42656         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42657
42658 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
42659
42660         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
42661         AVX check.
42662
42663 2011-09-07  Andreas Schwab  <schwab@redhat.com>
42664
42665         [BZ #13144]
42666         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
42667         last change.
42668
42669 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42670
42671         * sysdeps/unix/sysv/linux/x86_64/init-first.c
42672         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
42673         syscall wrapper around clock_gettime in __vdso_clock_gettime.
42674         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
42675         clock_gettime.
42676
42677 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42678
42679         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
42680         Forgot to demangle the pointer.
42681
42682         * sysdeps/i386/sysdep.h: Define atom_text_section.
42683         * sysdeps/x86_64/sysdep.h: Likewise.
42684         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
42685         section with atom_text_section.
42686         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42687         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42688         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
42689         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42690         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
42691
42692         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
42693         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
42694         already be defined.  Change to take two parameters and don't assign
42695         result to variable.  Adjust all users.
42696         Define INTERNAL_GETTIME if not already defined.
42697         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
42698         call.
42699         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
42700         HAVE_CLOCK_GETTIME_VSYSCALL.
42701         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
42702
42703         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
42704         gettimeofday vsyscall, just use time.
42705
42706 2011-09-06  Andreas Schwab  <schwab@redhat.com>
42707
42708         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
42709         <errno.h>.
42710
42711 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42712
42713         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
42714         syscall on x86-64.
42715         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
42716         syscall.
42717         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
42718         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
42719         syscall if possible.
42720
42721 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42722
42723         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
42724         e_ident.  Don't pass to find_mapsXX.
42725         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
42726
42727 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42728
42729         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42730         strchr-sse2-no-bsf strrchr-sse2-no-bsf
42731         * sysdeps/x86_64/multiarch/strchr.S: Update.
42732         Check bit_slow_BSF bit.
42733         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
42734         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
42735         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
42736
42737 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42738
42739         [BZ #13134]
42740         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
42741         before glibc 2.15.
42742         (tryshell): Define.
42743         (__spawni): Change last parameter to be flag.  Test
42744         SPAWN_XFLAGS_USE_PATH flag to use path or not.
42745         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
42746         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
42747         * posix/spawni.c: Likewise.
42748         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
42749         * posix/spawnp.c: Likewise.  Change normal version to use
42750         SPAWN_XFLAGS_USE_PATH.
42751         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
42752         SPAWN_XFLAGS_TRY_SHELL.
42753
42754         [BZ #13150]
42755         * posix/glob.h: Remove gcc 1.x support.
42756
42757         [BZ #13068]
42758         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
42759
42760 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42761
42762         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42763         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
42764         strrchr-sse2-bsf
42765         * sysdeps/i386/i686/multiarch/strchr.S: New file.
42766         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
42767         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
42768         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
42769         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
42770         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
42771
42772 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42773
42774         * sysdeps/x86_64/wcscmp.S: New file.
42775
42776         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
42777         wcscmp-c wcscmp-sse2
42778         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
42779         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
42780         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
42781         * wcsmbs/wcscmp.c: Allow renaming.
42782
42783 2011-09-05  David S. Miller  <davem@davemloft.net>
42784
42785         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
42786         stack slot, rather than the struct return pointer slot.
42787         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
42788         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
42789         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
42790         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
42791
42792 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42793
42794         * po/ja.po: Update from translation team.
42795
42796         [BZ #13144]
42797         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
42798         kernel in 64-bit binaries.
42799
42800 2011-09-01  David S. Miller  <davem@davemloft.net>
42801
42802         * elf/elf.h (HWCAP_SPARC_*): Move to..
42803         * sysdeps/sparc/sysdep.h: this new file and add new values.
42804         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
42805         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
42806         _DL_HWCAP_COUNT to 24.
42807         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
42808         entries.
42809         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
42810         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
42811         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
42812         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
42813         instead of magic constants.
42814         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
42815
42816 2011-08-31  David S. Miller  <davem@davemloft.net>
42817
42818         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
42819         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
42820         Reimplement to do errno handling inline.
42821         (SYSCALL_ERROR_HANDLER): New macro.
42822         (__SYSCALL_STRING): Do not do errno handling in asm.
42823         (__CLONE_SYSCALL_STRING): Delete.
42824         (__INTERNAL_SYSCALL_STRING): Delete.
42825         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
42826         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
42827         (PSEUDO): Reimplement to do errno handling inline.
42828         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
42829         (SYSCALL_ERROR_HANDLER): New macro.
42830         (__SYSCALL_STRING): Do not do errno handling in asm.
42831         (__CLONE_SYSCALL_STRING): Delete.
42832         (__INTERNAL_SYSCALL_STRING): Delete.
42833         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
42834         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
42835         i386.
42836         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
42837         (inline_syscall*): Add 'err' argument.
42838         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
42839         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
42840         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
42841         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
42842
42843         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
42844         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
42845
42846 2011-08-30  Andreas Schwab  <schwab@redhat.com>
42847
42848         * elf/rtld.c (dl_main): Relocate objects in dependency order.
42849
42850 2011-08-29  Jiri Olsa <jolsa@redhat.com>
42851
42852         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
42853         directive.
42854
42855 2011-08-24  David S. Miller  <davem@davemloft.net>
42856
42857         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
42858
42859 2011-08-24  Andreas Schwab  <schwab@redhat.com>
42860
42861         * elf/Makefile: Add rules to build and run unload8 test.
42862         * elf/unload8.c: New file.
42863         * elf/unload8mod1.c: New file.
42864         * elf/unload8mod1x.c: New file.
42865         * elf/unload8mod2.c: New file.
42866         * elf/unload8mod3.c: New file.
42867
42868         * elf/dl-close.c (_dl_close_worker): Reset private search list if
42869         it wasn't used.
42870
42871 2011-08-23  David S. Miller  <davem@davemloft.net>
42872
42873         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
42874         subtract stack bias.
42875         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
42876         %sp not %fp in calculations.
42877         (_JMPBUF_UNWINDS_ADJ): Likewise.
42878
42879         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
42880         (aio_suspend): Call it to force an exception region around the
42881         AIO_MISC_WAIT() invocation.
42882
42883 2011-08-23  Andreas Schwab  <schwab@redhat.com>
42884
42885         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
42886         backslash.
42887
42888 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
42889
42890         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
42891         protection macro.
42892         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
42893         and <dl-machine.h>.
42894         (Elf64_FuncDesc): Remove.
42895
42896 2011-08-22  David S. Miller  <davem@davemloft.net>
42897
42898         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
42899         sigaltstack check, add missing cfi directives.
42900         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
42901         missing cfi directives, and sigaltstack handling.
42902
42903 2011-08-16  Andreas Schwab  <schwab@redhat.com>
42904
42905         [BZ #11724]
42906         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
42907         object is seen twice.
42908         * elf/dl-fini.c (_dl_sort_fini): Likewise.
42909
42910         * elf/Makefile (distribute): Add tst-initorder2.c.
42911         (tests): Add tst-initorder2.
42912         (modules-names): Add tst-initorder2a tst-initorder2b
42913         tst-initorder2c tst-initorder2d.  Add rules to build them.
42914         ($(objpfx)tst-initorder2.out): New rule.
42915         * elf/tst-initorder2.c: New file.
42916         * elf/tst-initorder2.exp: New file.
42917
42918 2011-08-22  Andreas Schwab  <schwab@redhat.com>
42919
42920         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
42921
42922         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
42923         dependencies back to end of function.
42924
42925         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
42926         $(elfobjdir)/ld.so.
42927
42928 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
42929
42930         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
42931         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
42932         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
42933         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
42934         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
42935         of __vdso_gettimeofday.
42936         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
42937         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
42938         attribute_hidden.
42939         (_libc_vdso_platform_setup): Remove initialization of
42940         __vdso_gettimeofday and __vdso_time.
42941
42942 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42943
42944         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
42945         and fgetc_unlocked.
42946         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
42947         getc_unlocked.
42948
42949         * elf/dl-open.c (add_to_global): Report additions to the global scope
42950         for LD_DEBUG=scopes.
42951         (dl_open_worker): Also print scope of newly loaded dependencies.
42952         (_dl_show_scope): Indicate if there is no scope.
42953
42954         [BZ #13114]
42955         * stdio-common/Makefile (tests): Add bug24.
42956         * stdio-common/bug24.c: New file.
42957
42958 2011-08-19  Andreas Jaeger  <aj@suse.de>
42959
42960         [BZ #13114]
42961         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
42962         non-existant file when using close-on-exec mode.
42963
42964 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42965
42966         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
42967         the very first instruction.
42968
42969         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
42970         the CFI state in the end.
42971         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
42972         inclusion of dl-trampoline.h.
42973         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
42974
42975 2011-08-19  Andreas Schwab  <schwab@redhat.com>
42976
42977         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
42978         expectations for long double.
42979
42980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
42981         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
42982
42983 2011-08-14  David S. Miller  <davem@davemloft.net>
42984
42985         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
42986         artificual limit depends upon the system page size.
42987
42988 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42989
42990         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
42991         * resolv/Makefile: Define CFLAGS-libresolv.
42992
42993 2011-08-17  Andreas Schwab  <schwab@redhat.com>
42994
42995         * nss/makedb.c (compute_tables): Make variables used in nested
42996         function static.
42997
42998 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42999
43000         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43001         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43002         if buffer was too small.
43003
43004         * elf/pldd.c (main): Attach to all threads in the process.
43005         Rewrite /proc handling to use *at functions.
43006
43007 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43008
43009         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43010         specifies first scope to show.
43011         (dl_open_worker): Update callers.  Move printing scope of new
43012         object to before the relocation.
43013         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43014         * sysdeps/generic/ldsodefs.h: Update declaration.
43015
43016         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43017         string for the scope number.
43018
43019 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43020
43021         * nscd/servicescache.c (cache_addserv): Make sure written is always
43022         initialized.
43023
43024 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43025
43026         * sysdeps/i386/i486/bits/atomic.h
43027         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43028         statement expression, so as to suppress "set but not used" warning.
43029         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43030
43031         * string/strncat.c (STRNCAT): Use prototype definition.
43032
43033         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43034         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43035         -Iprograms here.
43036         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43037         (localedef-modules): Add localedef.
43038         (locale-modules): Add locale.
43039
43040         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43041         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43042         to avoid a warning.
43043
43044 2011-08-14  David S. Miller  <davem@davemloft.net>
43045
43046         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43047         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43048
43049 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43050
43051         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43052         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43053         * elf/rtld.c (dl_main): Set l_name of vDSO.
43054         Call _dl_show_scope when DL_DEBUG_SCOPES.
43055         (process_dl_debug): Recognize scopes flag and also set it for all.
43056         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43057         Declare _dl_show_scope.
43058
43059         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43060         (do_dlopen): Pass caller_dlopen to dl_open.
43061         (__libc_dlopen_mode): Initialize caller_dlopen.
43062
43063         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43064         of libc.  Make tolower call locale-independent.  Optimize a bit by
43065         using isdigit instead of isalnum.
43066         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43067
43068 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43069
43070         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43071         was a dependency or dynamically loaded.
43072
43073 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43074
43075         * intl/l10nflist.c: Allow architecture-specific pop function.
43076         * sysdeps/x86_64/l10nflist.c: New file.
43077
43078         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43079         classification.
43080
43081 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43082
43083         * include/dirent.h: Add libc_hidden_proto for scandirat and
43084         scandirat64.  Don't declare __scandirat64.
43085         * dirent/scandirat.c: Add libc_hidden_def.
43086         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43087         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43088
43089 2011-08-10  David S. Miller  <davem@davemloft.net>
43090
43091         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43092         enum.
43093         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43094         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43095         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43096
43097 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43098
43099         * Versions.def [libc]: Add GLIBC_2.15.
43100         * dirent/Makefile (routines): Add scandirat and scandirat64.
43101         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43102         GLIBC_2.15.
43103         * dirent/dirent.h: Declare scandirat and scandirat64.
43104         * dirent/scandirat.c: New file.
43105         * dirent/scandirat64.c: New file.
43106         * sysdeps/wordsize-64/scandirat.c: New file.
43107         * sysdeps/wordsize-64/scandirat64.c: New file.
43108         * dirent/opendir.c: Define opendirat.
43109         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43110         using scandirat.
43111         * dirent/scandir64.c: Adjust for scandir.c change.
43112         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43113         __scandirat64, and __scandir_cancel_handler.
43114         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43115         additional parameter and use openat instead of open (outside of ld.so).
43116         Add new __opendir as wrapper around __opendirat.
43117         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43118         here without requiring old scandirat implementation.
43119
43120 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43121
43122         * dirent/scandir.c (cancel_handler): Renamed to
43123         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43124         defined.  Adjust users.
43125         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43126         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43127
43128 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43129
43130         * string/test-string.h (IMPL): Use __STRING to expand name and then
43131         stringify it.
43132
43133         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43134         of cleanups.
43135
43136 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43137
43138         * string/Makefile: Update.
43139         (strop-tests): Append strncat.
43140         * string/test-wcscmp.c: New file.
43141         New comprehensive test for wcscmp.
43142         * string/test-strcmp.c: Update.
43143         (WIDE): New define.
43144
43145 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43146
43147         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43148         line.
43149
43150 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43151
43152         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43153         encoding to ACE if AI_IDN.
43154
43155 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43156
43157         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43158         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43159
43160 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43161
43162         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43163         Fix overflow bug in strncat.
43164         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43165
43166         * string/test-strncat.c: Update.
43167         Add new tests for checking overflow bugs.
43168
43169 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43170
43171         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43172         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43173         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43174         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43175         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43176         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43177         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43178         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43179         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43180
43181         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43182         (USE_AS_STRCAT): Define.
43183         Add strcat and strncat support.
43184         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43185
43186 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43187
43188         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43189         __n bigger than INT_MAX+1.
43190         (__strncmp_g): Likewise.
43191
43192 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43193
43194         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43195         * libio/stido.h: Likewise.
43196
43197         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43198         (AF_NFC): Define.
43199         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43200         (AF_NFC): Define.
43201
43202         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43203         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43204         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43205         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43206         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43207
43208         [BZ #13021]
43209         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43210         installed.
43211
43212         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43213         typo.
43214         (_dl_x86_64_save_sse): Likewise.
43215
43216 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43217
43218         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43219         OSXSAVE.
43220         (_dl_x86_64_save_sse): Likewise.
43221
43222         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43223
43224         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43225
43226 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43227
43228         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43229         change.
43230         (_dl_x86_64_save_sse): Use correct AVX check.
43231
43232 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43233
43234         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43235         bug in strncpy/strncat.
43236         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43237
43238 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43239
43240         * string/tester.c (test_strcat): Add tests for different alignments
43241         of source and destination.
43242         (test_strncat): Likewise.
43243
43244 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43245
43246         [BZ #12852]
43247         * posix/glob.c (glob): Check passed in values before using them in
43248         expressions to avoid some overflows.
43249         (glob_in_dir): Likewise.
43250
43251         [BZ #13007]
43252         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43253         check for AVX enablement so that we don't crash with old kernels and
43254         new hardware.
43255         * elf/tst-audit4.c: Add same checks here.
43256         * elf/tst-audit6.c: Likewise.
43257
43258         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43259
43260 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43261
43262         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43263
43264 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43265
43266         * po/cs.po: Update from translation team.
43267         * po/bg.po: Likewise.
43268
43269 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43270
43271         * misc/sys/cdefs.h: Add support for const attribute.
43272         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43273         to gnu_dev_{major,minor,makedev} functions.
43274
43275 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43276
43277         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43278
43279 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43280
43281         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43282         strlen results.
43283
43284 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43285
43286         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43287         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43288         register in order to avoid conflicts with the soft frame pointer
43289         being held in r11 when necessary.
43290         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43291         (INTERNAL_VSYSCALL_NCS): Likewise.
43292
43293 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43294
43295         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43296         * elf/dl-fini.c (_dl_fini): Adjust caller.
43297         * elf/dl-close.c (_dl_close_worker): Likewise.
43298         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43299
43300 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43301
43302         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43303         "aux_cache->nlibs < 0".
43304
43305         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43306         in the reload-count case.
43307
43308 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43309
43310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43311         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43312         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43313         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43314         * sysdeps/x86_64/multiarch/strcat.S: New file.
43315         * sysdeps/x86_64/multiarch/strncat.S: New file.
43316         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43317         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43318         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43319         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43320         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43321         (USE_AS_STRCAT): Define.
43322         Add strcat and strncat support.
43323         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43324         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43325         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43326         * string/strncat.c: Update.
43327         (USE_AS_STRNCAT): Define.
43328         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43329         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43330         and i7.
43331         * sysdeps/x86_64/multiarch/init-arch.h
43332         (bit_Prefer_PMINUB_for_stringop): New.
43333         (index_Prefer_PMINUB_for_stringop): Likewise.
43334         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43335         bit_Prefer_PMINUB_for_stringop.
43336
43337 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43338
43339         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43340         buffer64.
43341         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43342         of casting of buffer.
43343         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43344         buffer32 and buffer64.
43345         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43346         writes instead of casting of buffer.
43347         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43348         buffer32.
43349         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43350         casting of buffer.
43351
43352 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43353
43354         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43355
43356 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43357
43358         * nscd/nscd.c (termination_handler): Don't do anything for a database
43359         if it has not yet been initialized.
43360
43361 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43362
43363         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43364
43365 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43366
43367         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43368
43369 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43370
43371         * po/nl.po: Update from translation team.
43372         * po/sv.po: Likewise.
43373
43374 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43375
43376         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43377         now disallowed by GCC.
43378
43379         * configure.in (use-default-link): Default to yes if a test -shared
43380         link meets our qualifications.
43381         * configure: Regenerated.
43382
43383         * config.make.in (output-format): New variable.
43384         * configure.in: Check for ld --print-output-format support.
43385         * configure: Regenerated.
43386         * Makerules ($(common-objpfx)format.lds)
43387         [$(output-format) != unknown]: Just use $(output-format),
43388         instead of the linker-script munging.
43389
43390 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43391
43392         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43393         of $(common-objpfx)shlib.lds.
43394         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43395
43396         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43397         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43398
43399         * configure.in (-z relro check): Adjust test code to add a large
43400         writable data section after it.
43401         * configure: Regenerated.
43402
43403 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43404
43405         * configure.in (-z relro check): Fix test code to make the variable
43406         truly const.
43407         * configure: Regenerated.
43408
43409 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43410
43411         * nscd/nscd.h (struct traced_file): Define.
43412         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43413         elements.  Add traced_files.
43414         (inotify_fd): Declare.
43415         (register_traced_file): Declare.
43416         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43417         (inotify_fd): Export.
43418         (resolv_conf_descr): Remove.
43419         (nscd_init): Move inotify descriptor creation to main.
43420         Don't register files for notification here.
43421         (register_traced_file): New function.
43422         (invalidate_cache): Don't use reset_res to determine whether to call
43423         res_init, go through the list of registered files.
43424         (main_loop_poll): The inotify descriptors are now stored in the
43425         structures for the traced files.
43426         (main_loop_epoll): Likewise
43427         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43428         to __nss_disable_nscd.
43429         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43430         for a database anymore.  Check the records for all the registered
43431         files instead.
43432         * nss/Makefile (libnss_files-routines): Add files-init.
43433         (libnss_db-routines): Add db-init.
43434         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43435         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43436         * nss/nss_db/db-init.c: New file.
43437         * nss/nss_files/files-init.c: New file.
43438         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43439         __nss_lookup_function.
43440         (__nss_lookup_function): Call nss_load_library.
43441         (nss_load_all_libraries): New function.
43442         (__nss_disable_nscd): Take parameter with callback function for files
43443         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43444         used for the cached services.
43445         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43446         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43447         options for features to all the files in nscd.
43448
43449         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43450
43451 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43452
43453         * csu/elf-init.c (__libc_csu_init): Comment typo.
43454
43455 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43456
43457         * po/pl.po: Update from translation team.
43458         * po/ja.po: Likewise.
43459         * po/ru.po: Likewise.
43460         * po/ko.po: Likewise.
43461         * po/fr.po: Likewise.
43462
43463 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43464
43465         * configure.in (.ctors/.dtors header and trailer check):
43466         Use an empirical test on a built program.
43467         * configure: Regenerated.
43468
43469         * configure.in (-z relro check): Use an empirical test on a built DSO.
43470         Detect, but do not require, on ia64.
43471         * configure: Regenerated.
43472
43473         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43474         Update tests that use readelf to use $READELF instead.
43475         * configure: Regenerated.
43476
43477 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43478
43479         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43480         if the result is not used.
43481
43482 2011-07-05  Andreas Jaeger  <aj@suse.de>
43483
43484         [BZ#9696]
43485         * stdlib/tst-strtod.c: Add testcase.
43486
43487 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43488
43489         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43490         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43491         The latter has a higher limit.  Take additional parameter to pass to
43492         the new function.
43493         (__pathconf): Pass file to __statfs_link_max.
43494         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43495         __statfs_link_max.
43496         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43497         __statfs_link_max.
43498
43499         [BZ #12868]
43500         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43501         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43502         Handle Lustre.
43503         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43504         (__statfs_filesize_max): Likewise.
43505         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43506
43507 2011-07-05  Andreas Jaeger  <aj@suse.de>
43508
43509         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43510
43511 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43512
43513         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43514         `status' variable.
43515         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43516         Likewise.
43517
43518 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43519
43520         * Makefile (strop-tests): Add strncat.
43521         * string/test-strncat.c: New file.
43522
43523 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43524
43525         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43526
43527 2011-06-21  Andreas Jaeger  <aj@suse.de>
43528
43529         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43530         Copy rule from iconvdata/Makefile.
43531
43532 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43533
43534         [BZ #12922]
43535         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43536         but no long options are defined, just return 'W'.
43537
43538 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43539
43540         [BZ #9696]
43541         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43542
43543 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43544
43545         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43546         netgroups to read.
43547         (innetgr): Likewise.
43548
43549 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43550
43551         * config.make.in (install_root): Default to $(DESTDIR).
43552
43553 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43554
43555         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43556
43557 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43558
43559         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43560
43561         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43562         containing directory rather than embedding absolute directory names.
43563
43564         * scripts/check-local-headers.sh: Rewritten using awk.
43565         Match by word, not by line.  Print error messages for matches.
43566         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43567
43568         * Makerules [shlib-lds-flags empty]:
43569         ($(common-objpfx)libc_pic.opts): New target.
43570         ($(common-objpfx)libc_pic.os.clean): New target.
43571         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43572
43573         * config.make.in (OBJCOPY): New variable.
43574         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43575         * configure: Regenerated.
43576
43577         * config.make.in (use-default-link): New variable.
43578         * configure.in (use_default_link): Grok --with-default-link to set it.
43579         * configure: Regenerated.
43580         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43581         (shlib-lds, shlib-lds-flags): Define to empty.
43582
43583         * Makerules (shlib-lds): New variable.
43584         (shlib-lds-flags): New variable.
43585         (build-shlib, build-moduile, build-module-asneeded): Use it.
43586         ($(common-objpfx)libc.so): Use $(shlib-lds).
43587         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43588         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43589
43590         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43591         DT_FLAGS/DT_FLAGS_1 with zero flags.
43592
43593         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43594         linker script munging.
43595
43596 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43597
43598         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43599         as 128-bit value.
43600         * crypt/sha512.c (sha512_process_block): Perform total addition using
43601         128-bit if possible.
43602         (__sha512_finish_ctx): Likewise.
43603         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43604         as 64-bit value.
43605         * crypt/sha256.c (SWAP64): Define.
43606         (sha256_process_block): Perform total addition using 64-bit if
43607         possible.
43608         (__sha256_finish_ctx): Likewise.
43609
43610 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
43611
43612         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
43613         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43614         * nscd/hstcache.c (cache_addhst): Likewise.
43615         * nscd/grpcache.c (cache_addgr): Likewise.
43616         * nscd/aicache.c (addhstaiX): Likewise
43617         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
43618
43619 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
43620
43621         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
43622         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43623         * nscd/hstcache.c (cache_addhst): Likewise.
43624         * nscd/grpcache.c (cache_addgr): Likewise.
43625         * nscd/aicache.c (addhstaiX): Likewise
43626
43627 2011-07-01  Andreas Schwab  <schwab@redhat.com>
43628
43629         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
43630         domain only when needed.
43631
43632 2011-06-30  Andreas Schwab  <schwab@redhat.com>
43633
43634         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
43635         is always restored.
43636
43637 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
43638
43639         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
43640         are re-adding the entry.
43641         * nscd/servicescache.c (cache_addserv): Likewise.
43642
43643 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
43644
43645         * sysdeps/generic/dl-irel.h: fix protection against multiple
43646         inclusions.
43647         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
43648
43649 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
43650
43651         [BZ #12935]
43652         * malloc/memusage.sh: Fix quoting in message.
43653         * debug/xtrace.sh: Likewise.
43654
43655         * configure.in: Remove support for --experimental-malloc option, make
43656         it the default.
43657         * config.make.in: Likewise.
43658         * malloc/Makefile: Likewise.
43659
43660 2011-06-27  Andreas Schwab  <schwab@redhat.com>
43661
43662         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
43663         two-byte characters.
43664
43665 2011-06-27  Roland McGrath  <roland@hack.frob.com>
43666
43667         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
43668         AC_CACHE_CHECK invocation.
43669         * configure: Regenerated.
43670
43671         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
43672
43673 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
43674
43675         [BZ #12350]
43676         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
43677         bit from old_res_options.
43678
43679         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
43680
43681         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
43682         value type for setfct.
43683
43684 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
43685
43686         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43687         __gettimeofday instead of gettimeofday.
43688
43689 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
43690
43691         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
43692
43693 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
43694
43695         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
43696
43697         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
43698         info.
43699
43700 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43701
43702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43703         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43704         strcpy-sse2-unaligned strncpy-sse2-unaligned
43705         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
43706         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
43707         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
43708         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
43709         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
43710         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
43711         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
43712         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
43713         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
43714         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
43715         (STRCPY): Support SSE2 and SSSE3 versions.
43716
43717 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
43718
43719         [BZ #12874]
43720         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
43721         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
43722         kernels which artificially limit size of requests.
43723
43724 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43725
43726         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43727         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43728         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
43729         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
43730         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
43731         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
43732         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
43733         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
43734         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
43735         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
43736         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
43737         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
43738         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
43739         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
43740         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
43741         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43742         Enable unaligned load optimization for Intel Core i3, i5 and i7
43743         processors.
43744         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
43745         Define.
43746         (index_Fast_Unaligned_Load): Define.
43747         (HAS_FAST_UNALIGNED_LOAD): Define.
43748
43749 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
43750
43751         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
43752
43753 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43754
43755         [BZ #12907]
43756         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
43757         until it is clear that the information is realy needed.
43758         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
43759
43760 2011-06-22  Andreas Schwab  <schwab@redhat.com>
43761
43762         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
43763
43764 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43765
43766         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43767         /sys/devices/system/cpu/online if it is usable.
43768
43769         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
43770         reading the information from the /proc filesystem to once a second.
43771
43772 2011-06-21  Andreas Jaeger  <aj@suse.de>
43773
43774         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
43775         NULL after inclusion of kernel headers.
43776
43777 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
43778
43779         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
43780         calls to internal_setent.
43781
43782         [BZ #12885]
43783         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
43784         addresses using gethostbyname4_r ignore IPv4 addresses.
43785
43786         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
43787         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
43788
43789         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
43790
43791 2011-06-20  David S. Miller  <davem@davemloft.net>
43792
43793         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
43794         inclusions.
43795         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
43796
43797         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
43798         (elf_irel): Use it.
43799         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
43800         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
43801         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
43802         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
43803         * sysdeps/x86_64/dl-irel.h: Likewise.
43804
43805         * elf/dl-runtime.c: Use elf_ifunc_invoke.
43806         * elf/dl-sym.c: Likewise.
43807
43808 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43809
43810         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
43811         need to dereference resplen2.
43812
43813 2011-06-14  Andreas Schwab  <schwab@redhat.com>
43814
43815         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
43816
43817 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43818
43819         * Makeconfig: Define vardbdir and inst_vardbdir.
43820         * nss/Makefile: Add rules to install db-Makefile.
43821
43822         * nss/nss_db/db-XXX.c: Cleanup.
43823
43824         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
43825         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
43826         GLIBC_PRIVATE.
43827         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
43828         * nss/makedb.c: Implement -g option to specify that value strings
43829         are generated and should not be added to table iterated over for
43830         get*ent calls.
43831         * nss/nss_db/db-initgroups.c: New file.
43832
43833         * nss/getent.c: Add support for initgroups lookups through getgrouplist
43834         interface.
43835
43836         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
43837         (internal_getgrouplist): Adjust to name change.
43838         Update use_initgroups_entry if this is not the first call.
43839         * nss/databases.def: Add initgroups entry.
43840
43841         * nss/makedb.c (compute_tables): Check result of multiple hash table
43842         sizes to minimize maximum chain length.
43843
43844 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
43845
43846         * Versions.def: Add entry for libnss_db.
43847         * shlib-versions: Likewise.
43848         * nss/Makefile: Add rules to build libnss_db.
43849         * nss/Versions: Add libnss_db information.  Organize libnss_files
43850         entries better.
43851         * nss/db-Makefile: Add gshadow support.  Change rules for the new
43852         makedb progra.  Some minor improvements to generate smaller files.
43853         * nss/nss_db/nss_db.h: Move NSS database header data structures to
43854         here from...
43855         * nss/makedb.c: ...here.
43856         Improve database format to be smaller and require less memory at
43857         runtime.
43858         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
43859         db anymore.
43860         * nss/nss_db/db-netgrp.c: Likewise.
43861         * nss/nss_db/db-open.c: Likewise.
43862         * nss/nss_files/flies-XXX.x: Adjust comments.
43863         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
43864         * nss/nss_files/files-grp.c: Likewise.
43865         * nss/nss_files/files-hosts.c: Likewise.
43866         * nss/nss_files/files-network.c: Likewise.
43867         * nss/nss_files/files-proto.c: Likewise.
43868         * nss/nss_files/files-pwd.c: Likewise.
43869         * nss/nss_files/files-rpc.c: Likewise.
43870         * nss/nss_files/files-service.c: Likewise.
43871         * nss/nss_files/files-sgrp.c: Likewise.
43872         * nss/nss_files/files-spwd.c: Likewise.
43873         * nss/nss_db/db-alias.c: Removed.
43874         * nss/nss_db/dummy-db.h: Removed.
43875
43876 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
43877
43878         * nss/makedb.c: Rewritten to not use database library.
43879         * nss/Makefile: Update to build new makedb program.
43880
43881 2011-06-14  Andreas Jaeger  <aj@suse.de>
43882
43883         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
43884         memset declaration.
43885
43886 2011-06-10  Andreas Schwab  <schwab@redhat.com>
43887
43888         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
43889         tmpbuf.
43890
43891 2011-06-10  Roland McGrath  <roland@hack.frob.com>
43892
43893         * Makerules (shlib.lds): Fail if the linker script comes out empty.
43894         * elf/Makefile ($(objpfx)ld.so): Likewise.
43895
43896         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
43897         Don't list ld.so twice in dependencies.
43898
43899         * posix/bug-regex31.c: Include <stdlib.h>.
43900
43901         * nscd/hstcache.c (cache_addhst): Remove unused variable.
43902
43903         * nis/nss_compat/compat-spwd.c
43904         (getspent_next_nss_netgr): Remove unused variable.
43905         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
43906
43907         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
43908         nonmembers" output to use the right array.
43909
43910         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
43911
43912         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
43913
43914         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
43915         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
43916         * catgets/gencat.c (read_input_file): Likewise.
43917         * locale/programs/locarchive.c (enlarge_archive): Likewise.
43918
43919         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
43920         variable definition inside #if's controlling its use.
43921
43922         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
43923
43924         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
43925
43926         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
43927
43928         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
43929         unreachable code.
43930
43931         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
43932
43933         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
43934         * configure: Regenerated.
43935
43936         * Makerules: Revert last change.
43937         * elf/Makefile: Likewise.
43938
43939 2011-06-09  Roland McGrath  <roland@hack.frob.com>
43940
43941         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
43942         * elf/Makefile ($(objpfx)librtld.os): Likewise.
43943         (reloc-link): Likewise.
43944
43945 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
43946
43947         * elf/Makefile: Add rules to build pldd.
43948         * elf/pldd.c: New file.
43949         * elf/pldd-xx.c: New file.
43950
43951 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
43952
43953         * version.h: Update for 2.15 development version.
43954
43955 2011-06-07  David S. Miller  <davem@davemloft.net>
43956
43957         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
43958         ifuncs.
43959         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
43960         elf_machine_lazy_rel): Likewise.
43961         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
43962         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
43963         elf_machine_lazy_rel): Likewise.
43964         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
43965         dl_hwcap via passed in argument.
43966         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
43967         Likewise.
43968
43969 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43970
43971         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
43972
43973 2011-06-06  Roland McGrath  <roland@hack.frob.com>
43974
43975         [BZ #12849]
43976         * manual/fdl-1.1.texi: New file, verbatim from:
43977         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
43978         * manual/lgpl-2.1.texi: New file, verbatim from:
43979         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
43980         * manual/Makefile (licenses): New variable, list those new file names.
43981         (texis): Use it.
43982         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
43983
43984         * manual/fdl.texi: File removed.
43985         * manual/lesser.texi: File removed.
43986         * manual/libc.texinfo (Copying, Documentation License):
43987         Use new @include file names, put @appendix directive before @include.
43988
43989 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
43990
43991         [BZ #12841]
43992         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
43993         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
43994         (mq_open): Add __NTH.
43995
43996 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
43997
43998         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43999         Assume Intel Core i3/i5/i7 processor if AVX is available.
44000
44001 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44002
44003         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44004         typo.
44005
44006 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44007
44008         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44009         memory.  Use alloca_account.  Fix memory leak when retrying.
44010
44011 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44012
44013         * version.h (RELEASE): Bump for 2.14 release.
44014         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44015
44016         * config.make.in (RANLIB): Remove entry.
44017
44018 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44019
44020         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44021         (libc.pot): Work around missing support for .ksh extension in xgettext.
44022
44023         [BZ #12684]
44024         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44025         if both request failed.
44026         (send_dg): In case of server errors clear resplen or *resplen2.
44027
44028         [BZ #12454]
44029         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44030         when there are multiple maps.
44031         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44032         (_dl_fini): Remove test here.
44033
44034         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44035
44036 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44037
44038         [BZ #12350]
44039         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44040         bit from old_res_options.
44041         (gaih_inet): Likewise.
44042
44043         [BZ #11099]
44044         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44045         as signed.
44046
44047         * resolv/res_init.c (res_setoptions): Make the code more compact.
44048
44049         [BZ #11558]
44050         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44051         set RES_USEVC.
44052
44053         [BZ #11634]
44054         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44055
44056         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44057
44058         [BZ #11781]
44059         * malloc/malloc.h: Declare malloc hook variables as volatile.
44060
44061         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44062         in last patch.
44063
44064         [BZ #11799]
44065         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44066         raise in the comment.
44067         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44068         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44069         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44070
44071 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44072
44073         [BZ #12811]
44074         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44075         grow the buffers more if it already has to be sufficient.
44076         (build_wcs_upper_buffer): Likewise.
44077         * posix/regexec.c (check_matching): Likewise.
44078         (clean_state_log_if_needed): Likewise.
44079         (extend_buffers): Don't enlarge buffers beyond size of the input
44080         buffer.
44081         Patches mostly by Emil Wojak <emil@wojak.eu>.
44082         * posix/bug-regex32.c: New file.
44083         * posix/Makefile (tests): Add bug-regex32.
44084
44085         * locale/findlocale.c (_nl_find_locale): Return right away if
44086         _nl_explode_name failed.
44087         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44088
44089         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44090
44091         * debug/xtrace.sh: Unify messages.
44092         * malloc/memusage.sh: Likewise.
44093
44094         [BZ #12813]
44095         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44096         time symbol from vDSO.  Substitute with vsyscall if not available.
44097         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44098         __vdso_time.
44099
44100         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44101         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44102         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44103         Add sendmmsg and internal_sendmmsg.
44104         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44105         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44106         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44107
44108         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44109         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44110         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44111
44112 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44113
44114         [BZ #12813]
44115         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44116         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44117         available.
44118         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44119         __vdso_getcpu.
44120
44121         [BZ #12814]
44122         * iconvdata/Makefile (tests): Add bug-iconv9.
44123         * iconvdata/bug-iconv9.c: New file.
44124
44125 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44126
44127         [BZ #12814]
44128         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44129
44130 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44131
44132         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44133         (struct user_regs_struct): Change intcs field back to cs.
44134
44135 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44136
44137         * po/ja.po: Update from translation team.
44138
44139 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44140
44141         [BZ #12795]
44142         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44143         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44144
44145 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44146
44147         * stdlib/longlong.h: Update from GCC.
44148
44149 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44150
44151         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44152         parameter name.
44153         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44154         Add parameter name.
44155         (__sysconf): Pass it down.
44156
44157 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44158
44159         [BZ #12671]
44160         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44161         some situations.
44162         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44163         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44164         add in in __libc_use_alloca calls.  Adjust callers.
44165         (glob): Use malloc in some situations.
44166
44167         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44168         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44169         pltexit.
44170
44171 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44172
44173         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44174         and CLOCK_BOOTTIME_ALARM.
44175
44176         [BZ #12782]
44177         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44178         is returned.
44179
44180         * string/_strerror.c (__strerror_r): Print negative errors as signed
44181         numbers.
44182
44183         [BZ #12777]
44184         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44185         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44186         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44187
44188         * configure.in: Fix typo in redirection and correct removal of test
44189         files in two cases.
44190
44191         [BZ #12788]
44192         * locale/setlocale.c (new_composite_name): Fix test to check for
44193         identical name of all categories.
44194
44195         [BZ #12792]
44196         * libio/filedoalloc.c (local_isatty): New function.
44197         (_IO_file_doallocate): Use local_isatty.
44198         * stdio-common/perror.c (perror): In case a new stream is used
44199         forward the stream error.
44200         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44201         error flag.
44202
44203 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44204
44205         [BZ #11869]
44206         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44207         alloca.
44208         * include/alloca.h (extend_alloca_account): Define.
44209
44210         [BZ #11857]
44211         * posix/regex.h: Fix comments with documentation of user-accessible
44212         fields after compilation and describe correct free'ing of pattern
44213         after re_compile_pattern.
44214         Patch by Reuben Thomas <rrt@sc3d.org>.
44215
44216 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44217
44218         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44219         and -mno-altivec to prevent the compiler from using Altivec and/or
44220         VSX instructions when the corresponding registers are not available.
44221
44222 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44223
44224         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44225
44226 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44227
44228         * libio/freopen.c (freopen): Use __dup2, not dup2.
44229         * libio/freopen64.c (freopen64): Likewise.
44230
44231 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44232
44233         [BZ #12775]
44234         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44235         * math/Makefile (tests): Add test-powl.
44236         (CFLAGS-test-powl.c): Define.
44237         * math/test-powl.c: New file.
44238
44239 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44240
44241         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44242
44243 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44244
44245         [BZ #11837]
44246         * iconvdata/gb18030.c: Update to GB18020-2005.
44247
44248 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44249
44250         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44251         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44252         Patch by Aharon Robbins <arnold@skeeve.com>.
44253
44254         [BZ #11892]
44255         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44256         on the stack.
44257
44258         [BZ #11895]
44259         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44260         through underflows.
44261
44262         [BZ #12766]
44263         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44264         point to strings before performing equality test for error_one_per_line
44265         mode.
44266
44267         [BZ #11697]
44268         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44269
44270         [BZ #11820]
44271         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44272         (struct user_fpregs_struct): Avoid __uint*_t types.
44273
44274         [BZ #6420]
44275         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44276         symbol info.  Use it instead of calling _dl_addr locally.
44277         (lock_and_info): New function.
44278         (tr_freehook): Call lock_and_info and pass symbol info as additional
44279         parameter to tr_where.
44280         (tr_mallochook): Likewise.
44281         (tr_reallochook): Likewise.
44282         (tr_memalignhook): Likewise.
44283
44284         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44285         used and couldn't be at all thread-safe.
44286
44287 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44288
44289         * libio/freopen.c (freopen): Don't close old file descriptor
44290         before the new one is opened.  Instead dup the new file descriptor
44291         to the old one after the new stream is created.
44292         * libio/freopen64.c (freopen64): Likewise.
44293         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44294         * libio/fileops.c (_IO_new_file_close_it): Handle new
44295         _IO_FLAGS2_NOCLOSE flag.
44296         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44297         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44298         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44299         _IO_FLAGS2_NOCLOSE flag.
44300         * include/unistd.h: Add hidden_proto for dup3.
44301         Define __have_dup3.
44302         * io/dup3.c: Define hidden symbol.
44303         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44304
44305         [BZ #7101]
44306         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44307         when an incomplete long option is used.
44308         * posix/tst-getopt_long1.c: New file.
44309         * posix/Makefile (tests): Add tst-getopt_long1.
44310
44311         [BZ #10138]
44312         * scripts/config.guess: Update from autoconf-2.68.
44313         * scripts/config.sub: Likewise.
44314
44315         [BZ #10157]
44316         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44317         tests into ...
44318         (has_cpuclock): ...this.  New function.
44319         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44320         macro here based on has_cpuclock code.
44321
44322         [BZ #10149]
44323         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44324         First byte (not low byte) is now always NUL.
44325         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44326
44327         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44328         Use non-cancelable interfaces.
44329
44330         [BZ #9809]
44331         * locale/iso-639.def: Add entry for Sorani.
44332
44333         [BZ #11901]
44334         * include/stdlib.h: Move include protection to the right place.
44335         Define abort_msg_s.  Declare __abort_msg with it.
44336         * stdlib/abort.c (__abort_msg): Adjust type.
44337         * assert/assert.c (__assert_fail_base): New function.  Majority
44338         of code from __assert_fail.  Allocate memory for __abort_msg with
44339         mmap.
44340         (__assert_fail): Now call __assert_fail_base.
44341         * assert/assert-perr.c: Remove bulk of implementation.  Use
44342         __assert_fail_base.
44343         * include/assert.hL Declare __assert_fail_base.
44344         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44345         mmap.
44346         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44347
44348 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44349
44350         [BZ #11952]
44351         [BZ #12453]
44352         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44353         until all modules are registered in the DTV.
44354         * elf/Makefile: Add rules to build and run tst-tls19.
44355         * elf/tst-tls19.c: New file.
44356         * elf/tst-tls19mod1.c: New file.
44357         * elf/tst-tls19mod2.c: New file.
44358         * elf/tst-tls19mod3.c: New file.
44359         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44360
44361         [BZ #12083]
44362         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44363         correctly.
44364
44365         [BZ #12601]
44366         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44367         two-byte sequence errors.
44368         * iconvdata/Makefile (tests): Add bug-iconv8.
44369         * iconvdata/bug-iconv8.c: New file.
44370
44371         [BZ #12626]
44372         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44373         buf2 definition.
44374
44375         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44376
44377         [BZ #12432]
44378         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44379         (dummy_getcfa): New function.
44380         (init): Get _Unwind_GetCFA address, use dummy if not found.
44381         (backtrace_helper): In recursion check, also check whether CFA changes.
44382         (__backtrace): Completely initialize arg.
44383
44384         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44385         storing incomplete byte sequence in state object.  Avoid testing for
44386         guaranteed too small input if we know there is enough data available.
44387
44388 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44389
44390         * Makeconfig (+link-pie): Indent.
44391         * Rules (binaries-pie): Define if $(have-fpie) and
44392         $(build-shared).
44393         (binaries-shared): Also filter out $(binaries-pie).
44394         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44395         * nscd/Makefile (others-pie): Add nscd.
44396         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44397         ($(objpfx)nscd): Remove command override.
44398         * login/Makefile (others-pie): Add pt_chown.
44399         ($(objpfx)pt_chown): Remove command override.
44400         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44401         remove command overrides.
44402
44403 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44404
44405         * libio/tst_putwc.c: Fix error messages.
44406
44407         [BZ #12724]
44408         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44409         currently writing and seek to current position when not.
44410         * libio/Makefile (tests): Add bug-fclose1.
44411         * libio/bug-fclose1.c: New file.
44412
44413 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44414
44415         [BZ #12511]
44416         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44417         don't set DF_1_NODELETE here.
44418         (do_lookup_x): When entering new entry test for copy relocation
44419         and if necessary set DF_1_NODELETE flag.
44420         * elf/tst-unique4.cc: New file.
44421         * elf/tst-unique4.h: New file.
44422         * elf/tst-unique4lib.cc: New file.
44423         * elf/Makefile: Add rules to build and run tst-unique4.
44424         Patch by Piotr Bury <pbury@goahead.com>.
44425
44426 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44427
44428         [BZ #12052]
44429         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44430
44431         [BZ #12625]
44432         * misc/mntent_r.c (addmntent): Flush the stream after the output
44433
44434         [BZ #12393]
44435         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44436         (is_trusted_path_normalize): Skip initial colon.  Append slash
44437         to empty buffer.  Duplicate is_trusted_path code but allow
44438         constructed patch to be prefix.
44439         (is_dst): Allow $ORIGIN followed by /.
44440         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44441         Correct testing of result of is_trusted_path_normalize
44442         (decompose_rpath): Fix warning.
44443
44444 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44445
44446         [BZ #11257]
44447         * grp/initgroups.c (internal_getgrouplist): When we found the service
44448         list through the initgroups entry in nsswitch.conf do not always
44449         continue on a successful lookup.  Don't always use the
44450         __nss_group_database value if it is set.
44451         * nss/nsswitch.conf (initgroups): Change action for successful db
44452         lookup to continue for compatibility.
44453
44454 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44455
44456         [BZ #11532]
44457         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44458         and CP774 modules.
44459         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44460         and CP774 modules.
44461         * iconvdata/tst-tables.sh: Likewise.
44462         * iconvdata/cp770.c: New file.
44463         * iconvdata/cp771.c: New file.
44464         * iconvdata/cp772.c: New file.
44465         * iconvdata/cp773.c: New file.
44466         * iconvdata/cp774.c: New file.
44467         * iconvdata/testdata/CP770: New file.
44468         * iconvdata/testdata/CP770..UTF8: New file.
44469         * iconvdata/testdata/CP771: New file.
44470         * iconvdata/testdata/CP771..UTF8: New file.
44471         * iconvdata/testdata/CP772: New file.
44472         * iconvdata/testdata/CP772..UTF8: New file.
44473         * iconvdata/testdata/CP773: New file.
44474         * iconvdata/testdata/CP773..UTF8: New file.
44475         * iconvdata/testdata/CP774: New file.
44476         * iconvdata/testdata/CP774..UTF8: New file.
44477
44478         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44479         END CHARMAP line.
44480         * iconvdata/gen-8bit-gap.sh: Likewise.
44481         * iconvdata/gen-8bit.sh: Likewise.
44482
44483         * locale/iso-639.def: Add ary entry.
44484
44485         [BZ #11258]
44486         * locale/C-translit.h.in: Add U20A1 transliteration.
44487
44488         [BZ #12178]
44489         * locale/iso-639.def: Add wae entry.
44490         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44491
44492         [BZ #12545]
44493         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44494         for n.
44495
44496         [BZ #12711]
44497         * locale/C-translit.h.in: Add entry for U20B9.
44498         Patch by pravin.d.s@gmail.com.
44499
44500 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44501
44502         [BZ #12713]
44503         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44504         ENAMETOOLONG use generic getcwd.
44505         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44506         in rtld.  Use *stat64.
44507         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44508         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44509         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44510         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44511         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44512         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44513         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44514         __fstatat64 macros.
44515         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44516         * dirent/rewinddir.c: Add libc_hidden_def.
44517         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44518         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44519
44520         * include/dirent.h (__alloc_dir): Add flags parameter.
44521         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44522         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44523         __alloc_dir.
44524         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44525         from fdopendir if O_CLOEXEC is already set.
44526
44527 2011-03-15  Alan Modra  <amodra@gmail.com>
44528
44529         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44530         l_tls_firstbyte_offset non-zero.  Save padding offset in
44531         l_tls_firstbyte_offset for later use.
44532         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44533         freeing static tls block.
44534
44535 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44536
44537         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44538         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44539         being defined by the kernel headers.
44540
44541 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44542
44543         [BZ #12734]
44544         * resolv/resolv.h: Define RES_NOTLDQUERY.
44545         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44546         no-tld-query and set RES_NOTLDQUERY.
44547         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44548         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44549         modern BIND to search name as TLD unless forbidden.
44550
44551 2011-05-07  Petr Baudis  <pasky@suse.cz>
44552             Ulrich Drepper  <drepper@gmail.com>
44553
44554         [BZ #12393]
44555         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44556         (is_trusted_path): ...to here.
44557         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44558         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44559         using is_trusted_path_normalize() in setuid scripts.
44560
44561 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44562
44563         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44564         __BEGIN/__END_DECLS.
44565
44566 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44567
44568         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44569         NSS_STATUS_NOTFOUND if no record was found.
44570
44571 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44572
44573         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44574         (headers-not-in-tirpc): Remove rpc/netdb.h
44575         * resolv/netdb.h: Revert last change.
44576
44577 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44578
44579         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44580         circular dependency between libgcc.a and libc.a.
44581
44582 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44583
44584         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44585         * nis/Makefile: Don't install rpcsvc/*.
44586         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44587         instead of <rpc/types.h>.
44588         (MAXHOSTNAMELEN): Define.
44589
44590 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44591
44592         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44593
44594 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44595
44596         [BZ #12714]
44597         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44598         gethostbyname4_r when IPv6 results are possible.
44599
44600 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44601
44602         [BZ #12723]
44603         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44604         _PC_PIPE_BUF handling.
44605
44606 2011-04-30  Bruno Haible  <bruno@clisp.org>
44607
44608         [BZ #12717]
44609         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
44610         * resolv/netdb.h (getnameinfo): Change type of flags parameter
44611         to 'int'.
44612         * inet/getnameinfo.c (getnameinfo): Likewise.
44613
44614 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
44615
44616         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
44617         to groups setting in database lookup.
44618         * nss/nsswitch.conf: Add initgroups entry.
44619
44620 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
44621
44622         [BZ #12685]
44623         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
44624         mode string.
44625         Patch by Eric Blake <eblake@redhat.com>.
44626
44627 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
44628
44629         * sunrpc/Makefile (need-export-routines): Add svc_run.
44630         (routines): Remove svc_run.
44631         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
44632         * sunrpc/clnt_perr.c (clnt_perrno): Export.
44633         * sunrpc/svc_run.c (svc_run): Likewise.
44634         * sunrpc/svc_udp.c (svcudp_create): Likewise.
44635
44636 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
44637
44638         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
44639         problem in reallocation in last patch.
44640
44641 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
44642
44643         * sunrpc/Makefile: Move inclusion of Rules.
44644
44645 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44646
44647         * nss/nss_files/files-initgroups.c: New file.
44648         * nss/Makefile (libnss_files-routines): Add files-initgroups.
44649         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
44650         _nss_files_initgroups_dyn.
44651
44652 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
44653
44654         * elf/elf.h (R_ARM_IRELATIVE): Define.
44655
44656 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44657
44658         * po/ru.po: Update from translation team.
44659
44660 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44661
44662         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
44663         dependencies.
44664
44665 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
44666
44667         [BZ #12653]
44668         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
44669         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
44670         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
44671         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
44672         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
44673
44674 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
44675
44676         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
44677         differing bytes.
44678         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
44679         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
44680         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
44681
44682 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44683
44684         [BZ #12420]
44685         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
44686         storing it.
44687         * stdlib/bug-getcontext.c: New file.
44688         * stdlib/Makefile: Add rules to build and run bug-getcontext.
44689
44690 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44691
44692         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
44693         instructions into .machine "z9-109".
44694         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
44695         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
44696
44697 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44698
44699         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
44700         between environment variables and auxiliary vector.
44701
44702 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
44703
44704         * Makefile: Add rules to build linkobj/libc.so.
44705         * include/libc-symbols.h: Define libc_hidden_nolink.
44706         * include/rpc/auth.h: Mark functions which are to be hidden.
44707         * include/rpc/auth_des.h: Likewise.
44708         * include/rpc/auth_unix.h: Likewise.
44709         * include/rpc/clnt.h: Likewise.
44710         * include/rpc/des_crypt.h: Likewise.
44711         * include/rpc/key_prot.h: Likewise.
44712         * include/rpc/pmap_clnt.h: Likewise.
44713         * include/rpc/pmap_prot.h: Likewise.
44714         * include/rpc/pmap_rmt.h: Likewise.
44715         * include/rpc/rpc_msg.h: Likewise.
44716         * include/rpc/svc.h: Likewise.
44717         * include/rpc/svc_auth.h: Likewise.
44718         * include/rpc/xdr.h: Likewise.
44719         * nis/Makefile: Link all DSOs against linkobj/libc.so.
44720         * nss/Makefile: Likewise.
44721         * sunrpc/Makefile: Don't install headers.  Build library with normal
44722         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
44723         * sunrpc/auth_des.c: Hide exported symbols by default, export some
44724         for the compat linking library.  Remove use of INTDEF/INTUSE.
44725         * sunrpc/auth_none.c: Likewise.
44726         * sunrpc/auth_unix.c: Likewise.
44727         * sunrpc/authdes_prot.c: Likewise.
44728         * sunrpc/authuxprot.c: Likewise.
44729         * sunrpc/clnt_gen.c: Likewise.
44730         * sunrpc/clnt_perr.c: Likewise.
44731         * sunrpc/clnt_raw.c: Likewise.
44732         * sunrpc/clnt_simp.c: Likewise.
44733         * sunrpc/clnt_tcp.c: Likewise.
44734         * sunrpc/clnt_udp.c: Likewise.
44735         * sunrpc/clnt_unix.c: Likewise.
44736         * sunrpc/des_crypt.c: Likewise.
44737         * sunrpc/des_soft.c: Likewise.
44738         * sunrpc/get_myaddr.c: Likewise.
44739         * sunrpc/key_call.c: Likewise.
44740         * sunrpc/key_prot.c: Likewise.
44741         * sunrpc/netname.c: Likewise.
44742         * sunrpc/pm_getmaps.c: Likewise.
44743         * sunrpc/pm_getport.c: Likewise.
44744         * sunrpc/pmap_clnt.c: Likewise.
44745         * sunrpc/pmap_prot.c: Likewise.
44746         * sunrpc/pmap_prot2.c: Likewise.
44747         * sunrpc/pmap_rmt.c: Likewise.
44748         * sunrpc/publickey.c: Likewise.
44749         * sunrpc/rpc_cmsg.c: Likewise.
44750         * sunrpc/rpc_common.c: Likewise.
44751         * sunrpc/rpc_dtable.c: Likewise.
44752         * sunrpc/rpc_prot.c: Likewise.
44753         * sunrpc/rpc_thread.c: Likewise.
44754         * sunrpc/rtime.c: Likewise.
44755         * sunrpc/svc.c: Likewise.
44756         * sunrpc/svc_auth.c: Likewise.
44757         * sunrpc/svc_authux.c: Likewise.
44758         * sunrpc/svc_raw.c: Likewise.
44759         * sunrpc/svc_run.c: Likewise.
44760         * sunrpc/svc_simple.c: Likewise.
44761         * sunrpc/svc_tcp.c: Likewise.
44762         * sunrpc/svc_udp.c: Likewise.
44763         * sunrpc/svc_unix.c: Likewise.
44764         * sunrpc/svcauth_des.c: Likewise.
44765         * sunrpc/xcrypt.c: Likewise.
44766         * sunrpc/xdr.c: Likewise.
44767         * sunrpc/xdr_array.c: Likewise.
44768         * sunrpc/xdr_float.c: Likewise.
44769         * sunrpc/xdr_intXX_t.c: Likewise.
44770         * sunrpc/xdr_mem.c: Likewise.
44771         * sunrpc/xdr_rec.c: Likewise.
44772         * sunrpc/xdr_ref.c: Likewise.
44773         * sunrpc/xdr_sizeof.c: Likewise.
44774         * sunrpc/xdr_stdio.c: Likewise.
44775
44776 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
44777
44778         [BZ #12650]
44779         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
44780         * sysdeps/ia64/dl-tls.h: Likewise.
44781         * sysdeps/powerpc/dl-tls.h: Likewise.
44782         * sysdeps/s390/dl-tls.h: Likewise.
44783         * sysdeps/sh/dl-tls.h: Likewise.
44784         * sysdeps/sparc/dl-tls.h: Likewise.
44785         * sysdeps/x86_64/dl-tls.h: Likewise.
44786         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
44787
44788 2011-03-14  Andreas Schwab  <schwab@redhat.com>
44789
44790         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
44791         rpath element also skip the following colon.
44792         (expand_dynamic_string_token): Add is_path parameter and pass
44793         down to DL_DST_REQUIRED and _dl_dst_substitute.
44794         (decompose_rpath): Call expand_dynamic_string_token with
44795         non-zero is_path.  Ignore empty rpaths.
44796         (_dl_map_object_from_fd): Call expand_dynamic_string_token
44797         with zero is_path.
44798
44799 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
44800
44801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
44802         Make cancelable.
44803
44804 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
44805
44806         [BZ #12655]
44807         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
44808         Patch by Filipe David Manana <fdmanana@apache.org>.
44809
44810 2011-04-07  Andreas Schwab  <schwab@redhat.com>
44811
44812         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
44813         Maintain aligned stack.
44814         (CHECK_RSP): Remove unused macro.
44815
44816 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
44817
44818         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
44819         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
44820
44821 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
44822
44823         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
44824
44825         * include/features.h: Mention __USE_XOPEN2K8 in comment.
44826
44827 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
44828
44829         [BZ #12518]
44830         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
44831         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
44832         * sysdeps/x86_64/memmove.c: New file.
44833         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
44834         (memcpy): Renamed to ...
44835         (__new_memcpy): This.
44836         (memcpy): Provide GLIBC_2_14 memcpy.
44837         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
44838         (memcpy): Provide GLIBC_2_2_5 memcpy.
44839
44840 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44841
44842         [BZ #12631]
44843         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
44844
44845 2011-03-30  Andreas Schwab  <schwab@redhat.com>
44846
44847         * misc/syncfs.c: New file.
44848         * misc/Makefile (routines): Add syncfs.
44849         * posix/unistd.h: Declare syncfs.
44850         * sysdeps/unix/syscalls.list: Add syncfs.
44851
44852 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44853
44854         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
44855         open_by_handle_at.
44856         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44857         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44858         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44859         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44860         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44861         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
44862         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44863
44864 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44865
44866         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
44867         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44868         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
44869         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44870         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44872         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44873
44874         * io/Makefile: Compile fallocate.c, fallocate64.c, and
44875         sync_file_range.c with -fexceptions.
44876         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
44877         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
44878         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
44879         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
44880         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
44881         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
44882         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
44883         sync_file_range as cancellation point
44884         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
44885         now a wrapper around __call_sync_file_range with cancellation handling.
44886         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
44887         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
44888         function name to __call_sync_file_range.
44889         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
44890         Add call_sync_file_range.
44891
44892 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44893
44894         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
44895         bits/timex.h.
44896
44897 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44898
44899         * iconv/iconv.h: Fix typo in comment.
44900         * io/fcntl.h: Likewise.
44901         * libio/stdio.h: Likewise.
44902         * posix/spawn.h: Likewise.
44903         * posix/unistd.h: Likewise.
44904         * stdlib/stdlib.h: Likewise.
44905         * time/time.h: Likewise.
44906         * wcsmbs/wchar.h: Likewise.
44907
44908         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
44909         open_by_handle): Add.
44910         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
44911         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
44912         Augment a few comments.
44913         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44914         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44915         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44916         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44917         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44918         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
44919         open_by_handle.
44920
44921         * io/fcntl.h (AT_EMPTY_PATH): Define.
44922
44923 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
44924
44925         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
44926         * sysdeps/unix/sysv/linux/bits/time.h: New file.
44927         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
44928         to...
44929         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
44930         * Versions.def: Add GLIBC_2.14.
44931         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
44932         Export.
44933
44934 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
44935
44936         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
44937         round counter.
44938         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44939
44940 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
44941
44942         [BZ #12597]
44943         * string/test-strncmp.c (do_page_test): New function.
44944         (check2): Likewise.
44945         (test_main): Call check2.
44946         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
44947
44948 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
44949
44950         [BZ #12587]
44951         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
44952         Handle cache information in CPU leaf 4.
44953         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44954
44955 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
44956
44957         [BZ #12583]
44958         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
44959         character representation.
44960         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
44961
44962 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
44963
44964         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
44965         END(__isnan) to END(__isnanf) to match function entry point/label
44966         EALIGN(__isnanf,...).
44967
44968 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
44969
44970         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
44971
44972 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
44973
44974         [BZ #12510]
44975         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
44976         copy from the symbol referenced in the relocation to initialize the
44977         used variable.
44978         Patch by Piotr Bury <pbury@goahead.com>.
44979         * elf/Makefile: Add rules to build and tst-unique3.
44980         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
44981         * elf/tst-unique3.cc: New file.
44982         * elf/tst-unique3.h: New file.
44983         * elf/tst-unique3lib.cc: New file.
44984         * elf/tst-unique3lib2.cc: New file.
44985
44986         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
44987
44988 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
44989
44990         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
44991         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
44992         to _start.
44993
44994 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
44995
44996         * elf/dl-load.c (_dl_map_object): If we are looking for the first
44997         to-be-loaded object along a path to loader is ld.so.
44998
44999 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45000             Ulrich Drepper  <drepper@gmail.com>
45001
45002         * sysdeps/x86_64/memset.S: After aligning destination, code
45003         branches to different locations depending on the value of
45004         misalignment, when multiarch is enabled. Fix this.
45005
45006 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45007
45008         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45009         Set _x86_64_preferred_memory_instruction for AMD processsors.
45010         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45011         Set bit_Prefer_SSE_for_memop for AMD processors.
45012
45013 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45014
45015         * libio/fmemopen.c (fmemopen): Optimize a bit.
45016
45017 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45018
45019         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45020
45021 2011-03-03  Roland McGrath  <roland@redhat.com>
45022
45023         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45024
45025 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45026
45027         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45028         __bzero_ultra1 instead of __memset_ultra1.
45029
45030 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45031             Ulrich Drepper  <drepper@gmail.com>
45032
45033         [BZ #12509]
45034         * include/link.h (struct link_map): Add l_orig_initfini.
45035         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45036         returning unsuccessfully.
45037         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45038         close of a file loaded at startup, restore the original l_initfini
45039         list.
45040         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45041         list, store the pointer.
45042         * elf/Makefile ($(objpfx)noload-mem): New rule.
45043         (noload-ENV): Define.
45044         (tests): Add $(objpfx)noload-mem.
45045         * elf/noload.c: Include <memcheck.h>.
45046         (main): Call mtrace.  Close all opened handles.
45047
45048 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45049
45050         [BZ #12454]
45051         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45052         dependencies are missing.
45053
45054 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45055
45056         Fix __if_freereq crash: Unlike the generic version which uses free,
45057         Hurd needs munmap.
45058         * sysdeps/mach/hurd/ifreq.h: New file.
45059
45060 2011-01-27  Petr Baudis  <pasky@suse.cz>
45061             Ulrich Drepper  <drepper@gmail.com>
45062
45063         [BZ 12445]#
45064         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45065         to extend_alloca().
45066         * stdio-common/bug23.c: New file.
45067         * stdio-common/Makefile (tests): Add bug23.
45068
45069 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45070             Ulrich Drepper  <drepper@gmail.com>
45071
45072         [BZ #12489]
45073         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45074         before performing relro protection.  At old place add assertion
45075         to make sure nothing changed.
45076
45077 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45078             Glauber de Oliveira Costa  <glommer@gmail.com>
45079
45080         * elf/elf.h: Add new ARM TLS relocs.
45081
45082 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45083
45084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45085         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45086         cast from r3.
45087         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45088         'tests' variable.
45089         * sysdeps/wordsize-64/tst-writev.c: New file.
45090
45091 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45092
45093         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45094         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45095         insns in _dl_start to prevent a TOC reference before relocs are
45096         resolved.
45097
45098 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45099
45100         [BZ #12469]
45101         * Makeconfig: Remove RANLIB definition.
45102         * Makerules: Don't use RANLIB.
45103         * aclocal.m4: Remove ranlib test.
45104         * configure.in: No need to check for ranlib.
45105         * elf/rtld-Rules: Don't use RANLIB.
45106
45107 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45108
45109         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45110         protection macro.
45111         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45112         inclusion protection macro.
45113
45114         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45115         SIGRTMIN and SIGRTMAX and print information in that case only when
45116         SIGRTMIN is defined.
45117
45118 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45119
45120         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45121         arginfo fn returning -1.
45122
45123         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45124         and thousands string is zero terminated.
45125
45126 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45127
45128         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45129         sysdeps/unix/sysv/linux/bits/socket.h.
45130
45131 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45132
45133         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45134         (__CPU_COUNT): Remove old macros.
45135         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45136         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45137         (__CPU_ALLOC, __CPU_FREE): Add macros.
45138         (__sched_cpualloc, __sched_cpufree): Add declarations.
45139
45140 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45141
45142         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45143         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45144         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45145         (readdhstai): Return value of addhstaiX call.
45146         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45147         (addgrbyX): Return value returned by cache_addgr.
45148         (readdgrbyname): Return value returned by addgrbyX.
45149         (readdgrbygid): Likewise.
45150         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45151         (addpwbyX): Return value returned by cache_addpw.
45152         (readdpwbyname): Return value returned by addhstbyX.
45153         (readdpwbyuid): Likewise.
45154         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45155         (addservbyX): Return value returned by cache_addserv.
45156         (readdservbyname): Return value returned by addservbyX:
45157         (readdservbyport): Likewise.
45158         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45159         (addhstbyX): Return value returned by cache_addhst.
45160         (readdhstbyname): Return value returned by addhstbyX.
45161         (readdhstbyaddr): Likewise.
45162         (readdhstbynamev6): Likewise.
45163         (readdhstbyaddrv6): Likewise.
45164         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45165         (readdinitgroups): Return value returned by addinitgroupsX.
45166         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45167         (prune_cache): Keep track of timeout value of re-added entries.
45168         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45169         * nscd/nscd.h: Adjust prototypes of readd* functions.
45170
45171 2011-02-04  Roland McGrath  <roland@redhat.com>
45172
45173         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45174         (nis_stats): Likewise.
45175         * nis/nis_modify.c (nis_modify): Likewise.
45176         * nis/nis_remove.c (nis_remove): Likewise.
45177         * nis/nis_add.c (nis_add): Likewise.
45178
45179         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45180
45181         * posix/fnmatch_loop.c: Add some consts.
45182
45183         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45184
45185 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45186
45187         [BZ #12460]
45188         * config.make.in (config-cflags-novzeroupper): Define.
45189         * configure.in: Substitute libc_cv_cc_novzeroupper.
45190         * elf/Makefile (AVX-CFLAGS): Define.
45191         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45192         (CFLAGS-tst-auditmod4a.c): Likewise.
45193         (CFLAGS-tst-auditmod4b.c): Likewise.
45194         (CFLAGS-tst-auditmod6b.c): Likewise.
45195         (CFLAGS-tst-auditmod6c.c): Likewise.
45196         (CFLAGS-tst-auditmod7b.c): Likewise.
45197         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45198
45199 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45200
45201         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45202         function to the callback.
45203         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45204
45205 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45206
45207         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45208         of errno.
45209
45210 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45211
45212         [BZ #11724]
45213         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45214         of constructors.
45215         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45216         of destructors.
45217         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45218
45219         [BZ #11724]
45220         * elf/Makefile: Add rules to build and run new test.
45221         * elf/tst-initorder.c: New file.
45222         * elf/tst-initorder.exp: New file.
45223         * elf/tst-initordera1.c: New file.
45224         * elf/tst-initordera2.c: New file.
45225         * elf/tst-initordera3.c: New file.
45226         * elf/tst-initordera4.c: New file.
45227         * elf/tst-initorderb1.c: New file.
45228         * elf/tst-initorderb2.c: New file.
45229         * elf/tst-order-a1.c: New file.
45230         * elf/tst-order-a2.c: New file.
45231         * elf/tst-order-a3.c: New file.
45232         * elf/tst-order-a4.c: New file.
45233         * elf/tst-order-b1.c: New file.
45234         * elf/tst-order-b2.c: New file.
45235         * elf/tst-order-main.c: New file.
45236         New test case by George Gensure <werkt0@gmail.com>.
45237
45238 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45239
45240         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45241         decoding ACE if AI_CANONIDN.
45242
45243 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45244
45245         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45246
45247 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45248
45249         * version.h (RELEASE): Bump for 2.13 release.
45250         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45251
45252         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45253
45254         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45255         MADV_NOHUGEPAGE.
45256         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45257         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45258         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45259         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45260         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45261         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45262
45263         * posix/getconf.c: Update copyright year.
45264         * catgets/gencat.c: Likewise.
45265         * csu/version.c: Likewise.
45266         * debug/catchsegv.sh: Likewise.
45267         * debug/xtrace.sh: Likewise.
45268         * elf/ldconfig.c: Likewise.
45269         * elf/ldd.bash.in: Likewise.
45270         * elf/sprof.c (print_version): Likewise.
45271         * iconv/iconv_prog.c: Likewise.
45272         * iconv/iconvconfig.c: Likewise.
45273         * locale/programs/locale.c: Likewise.
45274         * locale/programs/localedef.c: Likewise.
45275         * malloc/memusage.sh: Likewise.
45276         * malloc/mtrace.pl: Likewise.
45277         * nscd/nscd.c (print_version): Likewise.
45278         * nss/getent.c: Likewise.
45279
45280         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45281         PF_CAIF, and PF_ALG.
45282         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45283
45284 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45285
45286         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45287         (modules-names): Use them.
45288         (ifunc-test-modules, ifunc-pie-tests): Define.
45289         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45290         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45291         (test-extras): Likewise.
45292         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45293         $(compile-command.c).
45294         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45295         (all-built-dso): Define.
45296         (check-textrel.out, check-execstack.out): Depend on it.
45297
45298         * configure.in: Don't override --enable-multi-arch.
45299
45300 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45301
45302         [BZ #6812]
45303         * nscd/hstcache.c (tryagain): Define.
45304         (cache_addhst): Return tryagain not notfound for temporary errors.
45305         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45306         failed.
45307
45308 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45309
45310         [BZ #10563]
45311         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45312         to make the syscall.
45313         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45314
45315         [BZ #12378]
45316         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45317         and fall back to matching as normal character if the string ends before
45318         the matching ']' is found.  This is what POSIX requires.
45319         * posix/testfnm.c: Adjust test result.
45320         * posix/globtest.sh: Adjust test result.  Add new test.
45321         * posix/tst-fnmatch.input: Likewise.
45322         * posix/tst-fnmatch2.c: Add new test.
45323
45324 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45325
45326         * elf/Makefile (check-execstack): Revert last change.  Depend on
45327         check-execstack.h.
45328         (check-execstack.h): New target.
45329         (generated): Add check-execstack.h.
45330         * elf/check-execstack.c: Include "check-execstack.h".
45331         (main): Revert last change.
45332         (handle_file): Return zero if GNU_STACK is absent and
45333         DEFAULT_STACK_PERMS doesn't include PF_X.
45334
45335 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45336
45337         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45338         in child fails because the descriptor is already closed.
45339         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45340         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45341         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45342
45343         [BZ #12397]
45344         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45345         syscall.
45346
45347         [BZ #10484]
45348         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45349         temporary buffer used to handle multi lookups locally.
45350         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45351
45352 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45353
45354         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45355         loader is ld.so.
45356
45357 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45358
45359         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45360         alignment for SSE2.
45361
45362 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45363
45364         [BZ #12394]
45365         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45366         characters.  When rounding increased number of integer digits recompute
45367         number of groups.
45368         * stdio-common/tst-grouping.c: New file.
45369         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45370
45371 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45372
45373         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45374         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45375
45376         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45377         void.
45378         * bits/select.h: Likewise.
45379
45380 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45381
45382         * po/ja.po: Update from translation team.
45383
45384 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45385
45386         [BZ #11155]
45387         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45388         implementation just like for lxstat, fxstatat, et al.
45389
45390 2010-12-27  Jim Meyering  <meyering@redhat.com>
45391
45392         [BZ #12348]
45393         * posix/regexec.c (build_trtable): Return failure indication upon
45394         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45395
45396 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45397
45398         [BZ #12201]
45399         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45400         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45401         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45402         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45403
45404         [BZ #12207]
45405         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45406
45407         [BZ #12204]
45408         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45409         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45410
45411 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45412
45413         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45414         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45415         script has SORT_BY_INIT_PRIORITY.
45416         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45417         NO_CTORS_DTORS_SECTIONS is defined.
45418         * elf/soinit.c: Likewise.
45419         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45420         NO_CTORS_DTORS_SECTIONS is defined.
45421         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45422         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45423         * sysdeps/sh/init-first.c: Likewise.
45424         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45425
45426 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45427
45428         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45429         always use the slow path.
45430
45431 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45432
45433         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45434         similar rule which adds the sysdep directories to the header search in
45435         order to pick up the correct platform stackinfo.h.
45436         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45437         perform test if it is, otherwise return successfully without testing.
45438         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45439         DEFAULT_STACK_PERMS define in stackinfo.h.
45440         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45441         defined in stackinfo.h.
45442         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45443         DEFAULT_STACK_PERMS defined in stackinfo.h.
45444         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45445         * sysdeps/ia64/stackinfo.h: Likewise.
45446         * sysdeps/s390/stackinfo.h: Likewise.
45447         * sysdeps/sh/stackinfo.h: Likewise.
45448         * sysdeps/sparc/stackinfo.h: Likewise.
45449         * sysdeps/x86_64/stackinfo.h: Likewise.
45450         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45451         PF_X for powerpc64.  Retain PF_X for powerpc32.
45452
45453 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45454
45455         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45456         accurately.
45457         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45458         GETDENTS_64BIT_ALIGNED.
45459
45460 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45461
45462         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45463
45464 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45465
45466         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45467         _GNU_SOURCE.
45468
45469         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45470         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45471         Remove __restrict.
45472         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45473         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45474
45475 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45476
45477         [BZ #11655]
45478         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45479         are initialized.
45480
45481 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45482
45483         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45484
45485 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45486
45487         * po/it.po: Update from translation team.
45488
45489 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45490
45491         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45492         unused codes.
45493
45494 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45495
45496         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45497
45498 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45499
45500         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45501         specially.
45502         (gaih_getanswer_slice): Likewise.
45503
45504 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45505
45506         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45507
45508 2010-05-31  Petr Baudis  <pasky@suse.cz>
45509
45510         [BZ #11149]
45511         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45512         silently even in the chroot mode.
45513
45514 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45515
45516         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45517         last patch a bit.  Pretty printing
45518
45519 2010-05-31  Petr Baudis <pasky@suse.cz>
45520
45521         [BZ #10085]
45522         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45523         initialization of skip_initgroups_dyn.
45524
45525 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45526
45527         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45528         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45529
45530 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45531
45532         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45533
45534 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45535
45536         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45537         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45538         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45539         ($(objpfx)tst-fnmatch-mem): New rule.
45540         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45541         * posix/tst-fnmatch.c (main): Call mtrace.
45542
45543 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45544
45545         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45546         Support Intel processor model 6 and model 0x2c.
45547
45548 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45549
45550         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45551           signed comparison.
45552
45553 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45554
45555         [BZ #12205]
45556         * string/test-strncasecmp.c (check_result): New function.
45557         (do_one_test): Use it.
45558         (check1): New function.
45559         (test_main): Use it.
45560         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45561         Support strcasecmp and strncasecmp.
45562
45563 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45564
45565         [BZ #12194]
45566         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45567         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45568
45569 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45570
45571         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45572         IFUNC support.
45573         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45574         memset-x86-64.
45575         * sysdeps/x86_64/multiarch/bzero.S: New file.
45576         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45577         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45578         * sysdeps/x86_64/multiarch/memset.S: New file.
45579         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45580         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45581         Set bit_Prefer_SSE_for_memop for Intel processors.
45582         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45583         Define.
45584         (index_Prefer_SSE_for_memop): Define.
45585         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45586
45587 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45588
45589         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45590         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45591
45592 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45593
45594         [BZ #12191]
45595         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45596         (__x86_64_raw_data_cache_size_half): Likewise.
45597         (__x86_64_raw_shared_cache_size): Likewise.
45598         (__x86_64_raw_shared_cache_size_half): Likewise.
45599
45600         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45601         (__x86_64_raw_data_cache_size_half): Likewise.
45602         (__x86_64_raw_shared_cache_size): Likewise.
45603         (__x86_64_raw_shared_cache_size_half): Likewise.
45604         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45605         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45606         and __x86_64_raw_shared_cache_size_half.  Round
45607         __x86_64_data_cache_size_half, __x86_64_data_cache_size
45608         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
45609         to multiple of 256 bytes.
45610
45611 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45612
45613         [BZ #12167]
45614         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
45615         of inacessible symlinks.  Verify result of symlink before returning it.
45616         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
45617         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
45618
45619 2010-10-28  Erich Ritz  <erichritz@gmail.com>
45620
45621         * math/math.h (isinf): Fix typo in comment.
45622
45623 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
45624
45625         * po/da.po: Update from translation team.
45626
45627 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
45628
45629         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
45630         is added to the list.
45631
45632 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45633             Ulrich Drepper  <drepper@gmail.com>
45634
45635         * elf/dl-object.c (_dl_new_object): Don't append the new object to
45636         the global list here.  Move code to...
45637         (_dl_add_to_namespace_list): ...here.  New function.
45638         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
45639         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
45640         * elf/dl-load.c (lose): Don't remove the element from the list.
45641         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
45642         (_dl_map_object): Likewise.
45643
45644 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
45645
45646         [BZ #12159]
45647         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
45648         into all bytes of SSE register.
45649         Patch by Richard Li <richardpku@gmail.com>.
45650
45651 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
45652
45653         [BZ #12140]
45654         * malloc/malloc.c (_int_free): Fill correct number of bytes when
45655         perturbing.
45656
45657 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
45658
45659         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
45660         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
45661         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
45662         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
45663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
45664         submachine.
45665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
45666
45667 2010-10-22  Andreas Schwab  <schwab@redhat.com>
45668
45669         * include/dlfcn.h (__RTLD_SECURE): Define.
45670         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
45671         mode & __RTLD_SECURE instead.
45672         (open_path): Rename preloaded parameter to secure.
45673         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
45674         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
45675         * elf/dl-deps.c (openaux): Likewise.
45676         * elf/rtld.c (struct map_args): Remove is_preloaded.
45677         (map_doit): Don't use it.
45678         (dl_main): Likewise.
45679         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
45680         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
45681
45682 2010-09-09  Andreas Schwab  <schwab@redhat.com>
45683
45684         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
45685         (sysd-rules-targets): Remove duplicates.
45686         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
45687         rtld-%.$o dependency.
45688
45689 2010-10-18  Andreas Schwab  <schwab@redhat.com>
45690
45691         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
45692         _dl_map_object do it.
45693
45694 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
45695
45696         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
45697         fast fma builtins, define the macros in the C99 standard.
45698         (FP_FAST_FMAF): Likewise.
45699         (FP_FAST_FMAL): Likewise.
45700         * sysdeps/x86_64/bits/mathdef.h: Likewise.
45701
45702         * bits/mathdef.h: Update copyright year.
45703         * sysdeps/powerpc/bits/mathdef.h: Likewise.
45704
45705 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
45706
45707         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
45708         builtins, define the macros in the C99 standard.
45709         (FP_FAST_FMAF): Likewise.
45710         (FP_FAST_FMAL): Likewise.
45711         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
45712         multiply/add.
45713         (FP_FAST_FMAF): Likewise.
45714
45715 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
45716
45717         [BZ #3268]
45718         * math/libm-test.inc (fma_test): Some new testcases.
45719         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
45720         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
45721         y and infinite z.  Do multiplication by C already in long double.
45722         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
45723         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
45724         y and infinite z.  Do bitwise or of inexact bit into u.d.
45725         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
45726         * sysdeps/i386/fpu/s_fmaf.S: Removed.
45727         * sysdeps/i386/fpu/s_fma.S: Removed.
45728         * sysdeps/i386/fpu/s_fmal.S: Removed.
45729
45730 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
45731
45732         [BZ #3268]
45733         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
45734         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
45735         computation is not scheduled after fetestexcept.  Fix value
45736         of minimum denormal long double.
45737
45738 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
45739
45740         [BZ #3268]
45741         * math/libm-test.inc (fma_test): Add some more tests.
45742         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
45743         correctly.
45744
45745 2010-10-15  Andreas Schwab  <schwab@redhat.com>
45746
45747         * scripts/data/localplt-s390-linux-gnu.data: New file.
45748         * scripts/data/localplt-s390x-linux-gnu.data: New file.
45749
45750 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
45751
45752         [BZ #3268]
45753         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
45754         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
45755         instead of dbl-64.
45756         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
45757         inlines.
45758         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
45759         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
45760         if one of x and y is very large and the other is subnormal.
45761         * sysdeps/s390/fpu/s_fmaf.c: New file.
45762         * sysdeps/s390/fpu/s_fma.c: New file.
45763         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
45764         * sysdeps/powerpc/fpu/s_fma.S: New file.
45765         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
45766         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
45767         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
45768
45769 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
45770
45771         [BZ #3268]
45772         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
45773         fma tests.
45774         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
45775         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
45776         * sysdeps/i386/i686/multiarch/s_fma.c: Include
45777         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
45778         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
45779         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
45780         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
45781
45782 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
45783
45784         [BZ #12078]
45785         * posix/regcomp.c (parse_branch): One more memory leak plugged.
45786         * posix/bug-regex31.input: Add test case.
45787
45788 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45789
45790         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
45791         * posix/bug-regex31.input: New file.
45792
45793         [BZ #12078]
45794         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
45795         (parse_sub_exp): Fix last change, use postorder.
45796
45797         * posix/bug-regex31.c: New file.
45798         * posix/Makefile: Add rules to build and run bug-regex31.
45799
45800         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
45801
45802         [BZ #12078]
45803         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
45804
45805         [BZ #12108]
45806         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
45807         to have entries in sys_siglist.
45808
45809         [BZ #12093]
45810         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
45811         be NULL.
45812
45813 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
45814
45815         [BZ #3268]
45816         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
45817         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
45818         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
45819         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
45820         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
45821         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
45822         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
45823         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
45824         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
45825         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
45826         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
45827         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
45828         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
45829         * math/ftestexcept.c (fetestexcept): Likewise.
45830         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
45831         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
45832         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
45833         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
45834         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
45835         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
45836         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
45837
45838 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45839
45840         [BZ #12107]
45841         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
45842         newline.
45843
45844 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
45845
45846         * string/bug-strstr1.c: New file.
45847         * string/Makefile: Add rules to build and run bug-strstr1.
45848
45849 2010-10-05  Eric Blake  <eblake@redhat.com>
45850
45851         [BZ #12092]
45852         * string/str-two-way.h (two_way_long_needle): Always clear memory
45853         when skipping input due to the shift table.
45854
45855 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
45856
45857         [BZ #12005]
45858         * malloc/mcheck.c: Handle large requests.
45859
45860         [BZ #12077]
45861         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
45862         for strncmp and strncasecmp.
45863         * string/stratcliff.c: Add tests for strcmp and strncmp.
45864         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
45865
45866 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
45867
45868         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
45869         __set_fpscr.
45870
45871 2010-09-30  Andreas Jaeger  <aj@suse.de>
45872
45873         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
45874         (CGROUP_SUPER_MAGIC): Define.
45875         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45876         Handle btrfs and cgroup file systems.
45877         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
45878         Likewise.
45879
45880 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
45881
45882         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
45883         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
45884
45885 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45886
45887         [BZ #12067]
45888         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
45889         trying to locate the ELF header.
45890
45891 2010-09-27  Andreas Schwab  <schwab@redhat.com>
45892
45893         [BZ #11611]
45894         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
45895         Mask out sign-bit copies when constructing f_fsid.
45896
45897 2010-09-24  Petr Baudis <pasky@suse.cz>
45898
45899         * debug/stack_chk_fail_local.c: Add missing licence exception.
45900         * debug/warning-nop.c: Likewise.
45901
45902 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
45903
45904         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
45905         implementing getdents64 using getdents syscall, set d_type if
45906         __ASSUME_GETDENTS32_D_TYPE.
45907
45908 2010-09-16  Andreas Schwab  <schwab@redhat.com>
45909
45910         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
45911         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
45912
45913 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
45914
45915         [BZ #12037]
45916         * posix/unistd.h: Undo change of feature selection for ftruncate from
45917         2010-01-11.
45918
45919 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
45920
45921         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
45922         detection.
45923
45924 2010-09-20  Andreas Schwab  <schwab@redhat.com>
45925
45926         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
45927         fanotify_mark.
45928         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
45929
45930 2010-09-14  Andreas Schwab  <schwab@redhat.com>
45931
45932         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
45933         variables after CHECK_SP call.
45934         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
45935
45936 2010-09-13  Andreas Schwab  <schwab@redhat.com>
45937             Ulrich Drepper  <drepper@redhat.com>
45938
45939         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
45940         re-relocationg ld.so.
45941         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
45942         _dl_init_paths call.
45943         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
45944         here anymore.
45945
45946 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
45947
45948         * resolv/res_init.c (__res_vinit): Count the default server we added.
45949
45950 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
45951             Ulrich Drepper  <drepper@redhat.com>
45952
45953         [BZ #11968]
45954         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
45955         (____longjmp_chk): Use %ebx for saving value across system call.
45956         Add unwind info.
45957
45958 2010-09-06  Andreas Schwab  <schwab@redhat.com>
45959
45960         * manual/Makefile: Don't mix pattern rules with normal rules.
45961
45962 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
45963
45964         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
45965         operation.
45966         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
45967         * libio/iofopncook.c (_IO_cookie_init): Likewise.
45968         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
45969         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
45970         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
45971         Likewise.
45972
45973 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
45974
45975         [BZ #11979]
45976         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
45977         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
45978
45979 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
45980
45981         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
45982         * sysdeps/x86_64/addmul_1.S: Likewise.
45983         * sysdeps/x86_64/lshift.S: Likewise.
45984         * sysdeps/x86_64/mul_1.S: Likewise.
45985         * sysdeps/x86_64/rshift.S: Likewise.
45986         * sysdeps/x86_64/sub_n.S: Likewise.
45987         * sysdeps/x86_64/submul_1.S: Likewise.
45988
45989 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45990
45991         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
45992         Define __sched_param instead of SCHED_* and sched_param when
45993         <bits/sched.h> is included with __need_schedparam defined.
45994         * bits/sched.h [__need_schedparam]
45995         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
45996         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
45997         (__defined_schedparam): Define to 1.
45998         (__sched_param): New structure, identical to sched_param.
45999         (__need_schedparam): Undefine.
46000
46001 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46002
46003         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46004         (epoll_create1): Declare.
46005
46006         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46007
46008 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46009
46010         [BZ #7066]
46011         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46012         shifting retval into place.
46013
46014 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46015
46016         * nis/rpcsvc/nis.h: Update copyright notice.
46017         * nis/rpcsvc/nis.x: Likewise.
46018         * nis/rpcsvc/nis_callback.h: Likewise.
46019         * nis/rpcsvc/nis_callback.x: Likewise.
46020         * nis/rpcsvc/nis_object.x: Likewise.
46021         * nis/rpcsvc/nis_tags.h: Likewise.
46022         * nis/rpcsvc/yp.h: Likewise.
46023         * nis/rpcsvc/yp.x: Likewise.
46024         * nis/rpcsvc/ypupd.h: Likewise.
46025         * nis/yp_xdr.c: Likewise.
46026         * nis/ypupdate_xdr.c: Likewise.
46027
46028         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46029         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46030         (pmap_getport): Use __libc_rpc_getport.
46031         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46032         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46033         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46034
46035 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46036
46037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46038         fanotify_mark.
46039
46040 2010-08-27  Roland McGrath  <roland@redhat.com>
46041
46042         * sysdeps/i386/i686/multiarch/Makefile
46043         (CFLAGS-varshift.c): New variable.
46044
46045 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46046
46047         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46048         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46049
46050         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46051
46052         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46053
46054 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46055
46056         * sysdeps/x86_64/strlen.S: Unroll the loop.
46057         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46058         strlen-sse2 strlen-sse2-bsf.
46059         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46060         __strlen_no_bsf if bit_Slow_BSF is set.
46061         (__strlen_sse42): Removed.
46062         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46063         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46064
46065 2010-08-25  Roland McGrath  <roland@redhat.com>
46066
46067         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46068         * sysdeps/x86_64/multiarch/varshift.c: New file.
46069         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46070         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46071         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46072         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46073
46074 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46075
46076         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46077         strlen-sse2 strlen-sse2-bsf.
46078         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46079         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46080         (__strlen_sse2): Removed.
46081         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46082         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46083         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46084         bit_Slow_BSF for Atom.
46085         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46086         (index_Slow_BSF): Define.
46087         (HAS_SLOW_BSF): Define.
46088
46089 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46090
46091         [BZ #10851]
46092         * resolv/res_init.c (__res_vinit): When no server address at all
46093         is given default to loopback.
46094
46095 2010-08-24  Roland McGrath  <roland@redhat.com>
46096
46097         * configure.in: Remove config-name.h generation.
46098         * configure: Regenerated.
46099         * config-name.in: File removed.
46100         * scripts/config-uname.sh: New file.
46101         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46102         ($(objdir)config-name.h): New target.
46103
46104         * sunrpc/rpc_parse.h: Avoid nested comment.
46105
46106 2010-08-24  Richard Henderson  <rth@redhat.com>
46107             Ulrich Drepper  <drepper@redhat.com>
46108             H.J. Lu  <hongjiu.lu@intel.com>
46109
46110         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46111         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46112         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46113         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46114         _mm_alignr_epi8 with _mm_loadu_si128.
46115         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46116         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46117         (__m128i_shift_right): Removed.
46118         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46119         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46120         * sysdeps/x86_64/multiarch/varshift.h: New file.
46121         * sysdeps/x86_64/multiarch/varshift.S: New file.
46122
46123 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46124
46125         * configure.in: Move assembler checks to before sysdep dir checking.
46126
46127 2010-08-20  Petr Baudis  <pasky@suse.cz>
46128
46129         * LICENSES: Sync the sunrpc license.
46130
46131 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46132
46133         * sunrpc/auth_des.c: Update copyright notice once again.
46134         * sunrpc/auth_none.c: Likewise.
46135         * sunrpc/auth_unix.c: Likewise.
46136         * sunrpc/authdes_prot.c: Likewise.
46137         * sunrpc/authuxprot.c: Likewise.
46138         * sunrpc/bindrsvprt.c: Likewise.
46139         * sunrpc/clnt_gen.c: Likewise.
46140         * sunrpc/clnt_perr.c: Likewise.
46141         * sunrpc/clnt_raw.c: Likewise.
46142         * sunrpc/clnt_simp.c: Likewise.
46143         * sunrpc/clnt_tcp.c: Likewise.
46144         * sunrpc/clnt_udp.c: Likewise.
46145         * sunrpc/clnt_unix.c: Likewise.
46146         * sunrpc/des_crypt.c: Likewise.
46147         * sunrpc/des_soft.c: Likewise.
46148         * sunrpc/get_myaddr.c: Likewise.
46149         * sunrpc/getrpcport.c: Likewise.
46150         * sunrpc/key_call.c: Likewise.
46151         * sunrpc/key_prot.c: Likewise.
46152         * sunrpc/openchild.c: Likewise.
46153         * sunrpc/pm_getmaps.c: Likewise.
46154         * sunrpc/pm_getport.c: Likewise.
46155         * sunrpc/pmap_clnt.c: Likewise.
46156         * sunrpc/pmap_prot.c: Likewise.
46157         * sunrpc/pmap_prot2.c: Likewise.
46158         * sunrpc/pmap_rmt.c: Likewise.
46159         * sunrpc/rpc/auth.h: Likewise.
46160         * sunrpc/rpc/auth_unix.h: Likewise.
46161         * sunrpc/rpc/clnt.h: Likewise.
46162         * sunrpc/rpc/des_crypt.h: Likewise.
46163         * sunrpc/rpc/key_prot.h: Likewise.
46164         * sunrpc/rpc/netdb.h: Likewise.
46165         * sunrpc/rpc/pmap_clnt.h: Likewise.
46166         * sunrpc/rpc/pmap_prot.h: Likewise.
46167         * sunrpc/rpc/pmap_rmt.h: Likewise.
46168         * sunrpc/rpc/rpc.h: Likewise.
46169         * sunrpc/rpc/rpc_des.h: Likewise.
46170         * sunrpc/rpc/rpc_msg.h: Likewise.
46171         * sunrpc/rpc/svc.h: Likewise.
46172         * sunrpc/rpc/svc_auth.h: Likewise.
46173         * sunrpc/rpc/types.h: Likewise.
46174         * sunrpc/rpc/xdr.h: Likewise.
46175         * sunrpc/rpc_clntout.c: Likewise.
46176         * sunrpc/rpc_cmsg.c: Likewise.
46177         * sunrpc/rpc_common.c: Likewise.
46178         * sunrpc/rpc_cout.c: Likewise.
46179         * sunrpc/rpc_dtable.c: Likewise.
46180         * sunrpc/rpc_hout.c: Likewise.
46181         * sunrpc/rpc_main.c: Likewise.
46182         * sunrpc/rpc_parse.c: Likewise.
46183         * sunrpc/rpc_parse.h: Likewise.
46184         * sunrpc/rpc_prot.c: Likewise.
46185         * sunrpc/rpc_sample.c: Likewise.
46186         * sunrpc/rpc_scan.c: Likewise.
46187         * sunrpc/rpc_scan.h: Likewise.
46188         * sunrpc/rpc_svcout.c: Likewise.
46189         * sunrpc/rpc_tblout.c: Likewise.
46190         * sunrpc/rpc_util.c: Likewise.
46191         * sunrpc/rpc_util.h: Likewise.
46192         * sunrpc/rpcinfo.c: Likewise.
46193         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46194         * sunrpc/rpcsvc/key_prot.x: Likewise.
46195         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46196         * sunrpc/rpcsvc/mount.x: Likewise.
46197         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46198         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46199         * sunrpc/rpcsvc/rex.x: Likewise.
46200         * sunrpc/rpcsvc/rstat.x: Likewise.
46201         * sunrpc/rpcsvc/rusers.x: Likewise.
46202         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46203         * sunrpc/rpcsvc/spray.x: Likewise.
46204         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46205         * sunrpc/rtime.c: Likewise.
46206         * sunrpc/svc.c: Likewise.
46207         * sunrpc/svc_auth.c: Likewise.
46208         * sunrpc/svc_authux.c: Likewise.
46209         * sunrpc/svc_raw.c: Likewise.
46210         * sunrpc/svc_run.c: Likewise.
46211         * sunrpc/svc_simple.c: Likewise.
46212         * sunrpc/svc_tcp.c: Likewise.
46213         * sunrpc/svc_udp.c: Likewise.
46214         * sunrpc/svc_unix.c: Likewise.
46215         * sunrpc/svcauth_des.c: Likewise.
46216         * sunrpc/xcrypt.c: Likewise.
46217         * sunrpc/xdr.c: Likewise.
46218         * sunrpc/xdr_array.c: Likewise.
46219         * sunrpc/xdr_float.c: Likewise.
46220         * sunrpc/xdr_mem.c: Likewise.
46221         * sunrpc/xdr_rec.c: Likewise.
46222         * sunrpc/xdr_ref.c: Likewise.
46223         * sunrpc/xdr_sizeof.c: Likewise.
46224         * sunrpc/xdr_stdio.c: Likewise.
46225
46226         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46227         handling.
46228
46229 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46230
46231         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46232
46233 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46234
46235         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46236         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46237         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46238         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46239         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46240         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46241         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46242         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46243         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46244         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46245         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46246         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46247         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46248         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46249
46250 2010-07-26  Anton Blanchard  <anton@samba.org>
46251
46252         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46253         * malloc/arena.c (heap_trim): Likewise.
46254
46255 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46256
46257         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46258         here.  Not...
46259         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46260         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46261
46262 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46263
46264         * sysdeps/i386/elf/Makefile: New file.
46265
46266 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46267
46268         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46269         from fanotify_init.
46270         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46271         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46272
46273 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46274
46275         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46276         of strncasecmp_l.
46277         * sysdeps/multiarch/strcmp.S: Likewise.
46278
46279 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46280
46281         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46282         strncase_l-nonascii.
46283         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46284         Add strncase_l-ssse3.
46285         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46286         * sysdeps/x86_64/strcmp.S: Likewise.
46287         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46288         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46289         * sysdeps/x86_64/strncase.S: New file.
46290         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46291         * sysdeps/x86_64/strncase_l.S: New file.
46292         * string/Makefile (strop-tests): Add strncasecmp.
46293         * string/test-strncasecmp.c: New file.
46294
46295         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46296         warning.
46297
46298         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46299         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46300
46301 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46302
46303         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46304
46305 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46306
46307         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46308         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46309         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46310
46311 2010-05-01  Alan Modra  <amodra@gmail.com>
46312
46313         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46314         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46315         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46316         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46317         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46318         tidying.  Don't tail-call __sigjmp_save for static lib.
46319         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46320         save location.
46321         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46322         (CALL_MCOUNT): Add eh info, and nop after bl.
46323         (TAIL_CALL_SYSCALL_ERROR): New macro.
46324         (PSEUDO_RET): Use it.
46325         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46326         Correct save location of integer regs and cr.
46327         (_dl_profile_resolve): Correct cr save location.  Delete nops
46328         after bl when SHARED.  Reduce cfi size a little by better
46329         placement of cfi directives.
46330         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46331         make a stack frame.  Instead use parm save area as a temp.
46332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46333         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46335         Don't make a stack frame for parent, use parm save area.
46336         Increase child stack frame to 112 bytes.  Don't save unused reg,
46337         and adjust reg usage.  Set up cfi on error recovery and
46338         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46340         (__makecontext): Add dummy nop after jump to exit.
46341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46342         Use correct parm save area and cr save, reduce stack frame.
46343         Correct cfi for possible PSEUDO_RET frame setup.
46344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46345         Branch to local label emitted by PSEUDO_RET rather than
46346         __syscall_error.
46347
46348 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46349
46350         [BZ #11904]
46351         * locale/programs/locale.c (print_assignment): New function.
46352         (show_locale_vars): Use it.
46353
46354 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46355
46356         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46357         field.
46358         (struct statfs64): Likewise.
46359         (_STATFS_F_FLAGS): Define.
46360         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46361         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46362         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46363         (ST_VALID): Define locally.
46364         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46365         __statvfs_getflags, use the provided value.
46366         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46367         __ASSUME_STATFS_F_FLAGS.
46368
46369         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46370
46371         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46372         Add sys/fanotify.h.
46373         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46374         fanotify_mask for GLIBC_2.13.
46375         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46376         fanotify_init and fanotify_mark.
46377         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46378         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46379
46380         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46381         Add prlimit.
46382         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46383         prlimit64 for GLIBC_2.13.
46384         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46385         prlimit64.
46386         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46387         syscall.
46388         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46389         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46390         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46391         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46392         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46393         add prlimit alias.
46394         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46395
46396         [BZ #11903]
46397         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46398         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46399
46400         * nss/Makefile: Add rules to build and run tst-nss-test1.
46401         * shlib-versions: Add entry for libnss_test1.
46402         * nss/nss_test1.c: New file.
46403         * nss/tst-nss-test1.c: New file.
46404
46405         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46406         (__nss_configure_lookup): Set appropriate entry in
46407         __nss_configure_lookup to true.
46408         * nss/nsswitch.h: Define enum with indeces of databases in
46409         databases and __nss_database_custom arrays.  Declare
46410         __nss_database_custom.
46411         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46412         to avoid using nscd when custom rules are installed.
46413         * nss/getXXbyYY_r.c: Likewise.
46414         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46415
46416         * nss/nss_files/files-parse.c: Whitespace fixes.
46417
46418 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46419
46420         [BZ #11883]
46421         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46422         * posix/fnmatch_loop.c: Likewise.
46423
46424 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46425
46426         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46427         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46428         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46429         * Versions.def [GLIBC_2.13]: Add.
46430
46431 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46432
46433         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46434         Also fail if tpwd after pwuid call is NULL.
46435
46436 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46437
46438         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46439         when converting to ms.
46440
46441 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46442
46443         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46444         EOPNOTSUPP errors with ENOTTY.
46445         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46446         EOPNOTSUPP errors with ENOTTY.
46447
46448 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46449
46450         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46451         Add strcasecmp_l-ssse3.
46452         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46453         strcasecmp.
46454         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46455         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46456         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46457
46458 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46459
46460         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46461
46462         * string/Makefile (strop-tests): Add strcasecmp.
46463         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46464         strcasecmp_l-nonascii.
46465         (gen-as-const-headers): Add locale-defines.sym.
46466         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46467         * sysdeps/x86_64/strcasecmp.S: New file.
46468         * sysdeps/x86_64/strcasecmp_l.S: New file.
46469         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46470         * sysdeps/x86_64/locale-defines.sym: New file.
46471         * string/test-strcasecmp.c: New file.
46472
46473         * string/test-strcasestr.c: Test both ends of the range of characters.
46474         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46475
46476 2010-07-29  Roland McGrath  <roland@redhat.com>
46477
46478         [BZ #11856]
46479         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46480
46481 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46482
46483         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46484         for ld.so.
46485
46486 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46487
46488         * manual/memory.texi (Malloc Tunable Parameters): Document
46489         M_PERTURB.
46490
46491 2010-07-26  Roland McGrath  <roland@redhat.com>
46492
46493         [BZ #11840]
46494         * configure.in (-fgnu89-inline check): Set and substitute
46495         gnu89_inline, not libc_cv_gnu89_inline.
46496         * configure: Regenerated.
46497         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46498
46499 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46500
46501         * string/test-strnlen.c: New file.
46502         * string/Makefile (strop-tests): Add strnlen.
46503         * string/tester.c (test_strnlen): Add a few more test cases.
46504         * string/tst-strlen.c: Better error reporting.
46505
46506         * sysdeps/x86_64/strnlen.S: New file.
46507
46508 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46509
46510         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46511         lower-latency instructions.
46512
46513 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46514
46515         * string/test-strcasestr.c: New file.
46516         * string/test-strstr.c: New file.
46517         * string/Makefile (strop-tests): Add strstr and strcasestr.
46518         * string/str-two-way.h: Don't undefine MAX.
46519         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46520
46521 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46522
46523         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46524         strcasestr-nonascii.
46525         (CFLAGS-strcasestr-nonascii.c): Define.
46526         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46527         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46528         Remove unused attribute.
46529
46530 2010-07-20  Roland McGrath  <roland@redhat.com>
46531
46532         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46533         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46534         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46535         like LD_HWCAP_MASK can disable hwcaps.
46536
46537 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46538
46539         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46540
46541 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46542
46543         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46544         call in strcasestr.
46545         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46546         __strcasestr_sse42_nonascii.
46547         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46548         strcasestr-nonascii.c.
46549         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46550
46551 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46552
46553         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46554         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46555         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46556         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46557
46558 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46559
46560         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46561         fcntl.
46562
46563 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46564
46565         [BZ #11577]
46566         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46567         dl_signal_cerror.
46568
46569 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46570
46571         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46572         _PC_PIPE_BUF using F_GETPIPE_SZ.
46573
46574 2010-07-05  Roland McGrath  <roland@redhat.com>
46575
46576         * manual/arith.texi (Rounding Functions): Fix rint description
46577         implicit in round description.
46578
46579 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46580
46581         * elf/Makefile: Fix linking for a few tests to make recent linker
46582         happy.
46583
46584 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46585
46586         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46587         $(common-objpfx)libc_nonshared.a.
46588
46589 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46590
46591         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46592         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46593         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46594         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46595         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46596         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46597         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46598         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46599         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46604         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
46608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
46609         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
46611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
46613         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
46614         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
46615         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
46616         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
46617         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
46618         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
46619         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
46620         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
46621         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
46622         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
46623         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
46624         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
46625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
46626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
46627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
46628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
46629         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
46630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
46631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
46632         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
46633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
46634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
46635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
46636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
46637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
46638         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
46639
46640 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
46641
46642         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
46643         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
46644         * string/memmove.c (memmove): Renamed to ...
46645         (MEMMOVE): ...this.  Default to memmove.
46646         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
46647         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
46648         (END_CHK): Define.
46649         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46650         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
46651         mempcpy-ssse3-back memmove-ssse3-back.
46652         * sysdeps/x86_64/multiarch/bcopy.S: New file .
46653         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
46654         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
46655         * sysdeps/x86_64/multiarch/memcpy.S: New file.
46656         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
46657         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
46658         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
46659         * sysdeps/x86_64/multiarch/memmove.c: New file.
46660         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
46661         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
46662         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
46663         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
46664         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
46665         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
46666         Define.
46667         (index_Fast_Copy_Backward): Define.
46668         (HAS_ARCH_FEATURE): Define.
46669         (HAS_FAST_REP_STRING): Define.
46670         (HAS_FAST_COPY_BACKWARD): Define.
46671
46672 2010-06-21  Andreas Schwab  <schwab@redhat.com>
46673
46674         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46675         Restore proper fallback handling.
46676
46677 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
46678
46679         [BZ #11701]
46680         * posix/group_member.c (__group_member): Correct checking loop.
46681
46682         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
46683         OOM in getpwuid_r correctly.  Return error number when the caller
46684         should return, otherwise -1.
46685         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
46686         call returning > 0 value.
46687         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
46688
46689 2010-06-07  Andreas Schwab  <schwab@redhat.com>
46690
46691         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
46692         libc_nonshared.a from targets in modules-names.
46693
46694 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
46695
46696         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
46697         requires it.
46698
46699 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
46700
46701         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
46702         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
46703         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
46704         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
46705
46706 2010-06-02  Andreas Schwab  <schwab@redhat.com>
46707
46708         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
46709
46710 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
46711
46712         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
46713         and F_GETPIPE_SZ.
46714         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46715         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46716         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46717         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46718         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46719         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
46720
46721 2010-06-14  Roland McGrath  <roland@redhat.com>
46722
46723         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
46724
46725 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
46726
46727         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
46728         __REDIRECT followed by __THROW.
46729         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
46730         * posix/getopt.h (getopt): Likewise.
46731
46732 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46733
46734         * hurd/lookup-at.c (__file_name_lookup_at): Accept
46735         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
46736         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
46737         in AT_FLAGS.
46738         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
46739         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
46740
46741 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
46742
46743         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
46744
46745 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
46746
46747         [BZ #11640]
46748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46749         Properly check family and model.
46750
46751 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
46752
46753         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
46754
46755 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
46756
46757         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
46758
46759 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
46760
46761         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
46762         symbol reference.
46763
46764 2010-05-19  Andreas Schwab  <schwab@redhat.com>
46765
46766         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
46767         symbol reference.
46768
46769 2010-05-21  Andreas Schwab  <schwab@redhat.com>
46770
46771         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
46772         and internal_recvmmsg.
46773         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
46774         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
46775         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
46776         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
46777
46778         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
46779         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
46780         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
46781
46782 2010-05-20  Andreas Schwab  <schwab@redhat.com>
46783
46784         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
46785
46786 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
46787
46788         POWER7 optimizations.
46789         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
46790         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
46791
46792 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
46793
46794         * version.h: Update for 2.13 development version.
46795
46796 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
46797
46798         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
46799         exceptions.  Return 0.
46800
46801 2010-05-07  Roland McGrath  <roland@redhat.com>
46802
46803         * elf/ldconfig.c (main): Add a const.
46804
46805 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
46806
46807         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
46808         (args_options): Add no-idn option.
46809         (ahosts_keys_int): Add idn_flags to ai_flags.
46810         (parse_option): Handle 'i' option to clear idn_flags.
46811
46812         * malloc/malloc.c (_int_free): Possible race in the most recently
46813         added check.  Only act on the data if no current modification
46814         happened.
46815
46816 See ChangeLog.17 for earlier changes.